Skip to main content

Aristotle SDK - Python library for automated theorem proving with Lean

Project description

Aristotle - The Era of Vibe Proving is Here

The Aristotle SDK is a Python library and command-line tool for interacting with the Aristotle API. Aristotle is capable of proving and formally verifying graduate and research level problems in math, software, and more.

Sign up for access and view the complete documentation at aristotle.harmonic.fun

Quick Start

# Install
uv pip install aristotlelib

# Authenticate
export ARISTOTLE_API_KEY="your-api-key-here"

# Submit a Lean project for sorry filling
aristotle submit "Fill in all sorries" --project-dir ./my-lean-project --wait

# Formalize a math paper into Lean
aristotle formalize paper.tex --wait --destination output.tar.gz

Installation

Requires Python 3.10 or later. Pick one of the following methods.

Using uv (recommended)

We recommend uv for fast, reliable Python package management.

Run Aristotle directly without a separate install step:

uvx --from aristotlelib@latest aristotle --version

Or install it into your environment:

uv pip install aristotlelib

Using pip

pip install aristotlelib

To upgrade:

pip install --upgrade aristotlelib

Authentication

To use Aristotle, you need an API key.

  1. Sign up or log in at aristotle.harmonic.fun.
  2. Go to Dashboard → API Keys and create a new key.

Save it as an environment variable (recommended)

Set your key once so it's available automatically in every terminal session.

macOS / Linux

Open your terminal and run these two commands, replacing your-api-key-here with your actual key:

echo 'export ARISTOTLE_API_KEY="your-api-key-here"' >> ~/.zshrc
source ~/.zshrc

The first command saves the key to your shell startup file (~/.zshrc) so every new terminal session will have it. The second command loads it into your current session right away.

If you use bash instead of zsh, replace ~/.zshrc with ~/.bashrc in both commands.

Windows

Open PowerShell and run:

setx ARISTOTLE_API_KEY "your-api-key-here"

Then close and reopen PowerShell for the change to take effect.

Pass it directly to a command

Alternatively, you can add --api-key to any command without saving it:

aristotle submit "My prompt" --api-key your-api-key-here

CLI Quick Reference

Fill sorries in a Lean project:

aristotle submit "Fill in all sorries in this project" --project-dir ./my-lean-project --wait

Formalize a document:

aristotle formalize paper.tex --wait --destination output.tar.gz

List your recent projects:

aristotle list --limit 10

Download a project's files:

aristotle download <project-id> --destination result.tar.gz

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aristotlelib-2.0.0-py3-none-any.whl (28.2 kB view details)

Uploaded Python 3

File details

Details for the file aristotlelib-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: aristotlelib-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 28.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aristotlelib-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ded8cfa471aa7029a203ea79e92b9adfba21148457fc967d4d2d65b51afffe2
MD5 434dfb1013e7bcbfc35f1466a62bcf9b
BLAKE2b-256 640931d4a2c9a50dcea2fb13ca34b4c6acb81c66d445a713738a14c4105bf1c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for aristotlelib-2.0.0-py3-none-any.whl:

Publisher: build.yml on harmonic-ai/aristotle-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page