Skip to main content

Aleph Prover CLI

Prove Lean4 theorems with the Aleph Prover API from your terminal or from Claude Code.

Install

# Run directly with uvx (no install needed)
uvx alephprover prove <file_path> <theorem_name>

# Or install globally
uv tool install alephprover

# Or with pip
pip install alephprover

Usage

# Set your API key (get one at https://alephprover.logicalintelligence.com/account)
export PROVER_API_KEY="sk-aleph-..."

# Submit a proof request
alephprover prove Mathlib/Algebra/Group/Basic.lean mul_left_cancel

# With hints and budgets
alephprover prove MyProject/Basic.lean my_theorem \
  --hints "try induction on n" \
  --time-budget 30 \
  --cost-budget 10

The CLI will:

  1. Find the Lean project root (walks up to lakefile.lean / lakefile.toml)
  2. Zip the project (excluding build artifacts)
  3. Upload to the API and poll for completion
  4. Download and apply the proof diff via git apply

Other commands

# Check request status
alephprover status <request_id>

# List your proof requests
alephprover list
alephprover list --search "mul_left_cancel"

# Continue a partial or cancelled request with new budget
alephprover continue <request_id>
alephprover continue <request_id> --time-budget 60 --cost-budget 20 --hints "try simp first"

# Cancel a running request
alephprover cancel <request_id>

# Download results or specific artifacts
alephprover download <request_id>
alephprover download <request_id> --artifact <artifact_id> -o output.zip

Claude Code Skill

Install the /prove skill for Claude Code:

# Install in current project
uvx alephprover install-skill

# Or install globally (available in all projects)
uvx alephprover install-skill --global

Then in Claude Code:

/prove mul_left_cancel in Mathlib/Algebra/Group/Basic.lean
/prove my_theorem in MyProject/Basic.lean with hint: try induction on n

Configuration

Variable Required Default Description
PROVER_API_KEY Yes — API key (sk-aleph-...) from Account Settings
PROVER_API_URL No https://alephprover.logicalintelligence.com API base URL

Requirements

  • Python >= 3.10
  • uv (for uvx usage) or pip install alephprover
  • git (for applying patches)
  • An Aleph Prover account with an API key

Metadata

Release files for alephprover 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alephprover 0.2.3
File Size Uploaded Provenance
alephprover-0.2.3.tar.gz 11.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for alephprover 0.2.3
File Interpreter ABI Platform
alephprover-0.2.3-py3-none-any.whl Python 3 none any Details

Total release size: 22.8 kB

Release files / alephprover-0.2.3.tar.gz

Download URL alephprover-0.2.3.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
007bdfbd4cec2297af23e0894cc8696beb4888e01eae45e20ea41daf1a67a6e6
BLAKE2b-256 checksum
How to use checksums
f2593666cecc06c1f1576a57a4f3139e01fe55aa84f4427351855b42953b3cdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 19, 2026.

Transparency log

Release files / alephprover-0.2.3-py3-none-any.whl

Download URL alephprover-0.2.3-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7d1cc65d01a4e667bc6b74b09fd8c6959d185c70c7c3c15e96c5ab3344c6a471
BLAKE2b-256 checksum
How to use checksums
c9937611e1d79d02a471e5314484cce5970dbc7004a971cb0a96ba3fd7d3a303
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 19, 2026.

Transparency log

Security for alephprover 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for alephprover-0.2.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page