Skip to main content

CLI tool for submitting Lean proof requests to the Aleph Prover API

Project description

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

Project details


Download files

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

Source Distribution

alephprover-0.2.0rc1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

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

alephprover-0.2.0rc1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file alephprover-0.2.0rc1.tar.gz.

File metadata

  • Download URL: alephprover-0.2.0rc1.tar.gz
  • Upload date:
  • Size: 10.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for alephprover-0.2.0rc1.tar.gz
Algorithm Hash digest
SHA256 e24ac5514ddf5a3be1cc77b68a788b87f19f9518db2b25695bd45aca1c97224c
MD5 9431fcf9bf95631fa8399493ac8179fe
BLAKE2b-256 326ae3f0efc17018a31b356a02b96329c1b684d80193e294826af57199ef62c2

See more details on using hashes here.

Provenance

The following attestation bundles were made for alephprover-0.2.0rc1.tar.gz:

Publisher: publish.yml on logiq-ai/alephprover

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

File details

Details for the file alephprover-0.2.0rc1-py3-none-any.whl.

File metadata

  • Download URL: alephprover-0.2.0rc1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for alephprover-0.2.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e143f660d147e73baabb94442f8956caed24f7acee4807cdf9ae42562e8adb6
MD5 f64f38fcad507338f9499a7de3498078
BLAKE2b-256 9f8e7bc3fafae1f96b8a6bf7104a9b6c6ae9a2b0ea66714af2238dba3d24f95e

See more details on using hashes here.

Provenance

The following attestation bundles were made for alephprover-0.2.0rc1-py3-none-any.whl:

Publisher: publish.yml on logiq-ai/alephprover

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