Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Lean4 Python Packages

Python packages with the GitHub topic lean4. Sorted by monthly downloads, with stars and forks.
oOo0oOo
lean-lsp-mcp

Lean Theorem Prover MCP

322K 570 87
oOo0oOo
leanclient

Python client to interact with the lean4 language server.

318K 50 13
BoringQuantSystems
nanobook

Rust execution layer for Python trading strategies: deterministic LOB whose core matching rules are proved on a Lean 4 model, portfolio backtests, pre-trade risk, and IBKR rebalancing.

8K 12 2
machinefabric
lungo-py

Python support library for lungo: call proved Lean code from Python

6K 0 0
FrancoFantomius
logic-prover

A formal logic theorem prover, formula explorer, deducer, and Lean 4 exporter in Python with Cython acceleration.

5K 0 0
cgarryZA
machinechecked

Read a mathematical paper beside its Lean formalisation, and see claim by claim what Lean establishes.

5K 0 0
conao3
leanfran

Write functions and proofs in Lean 4 and generate Rust, Python, TypeScript, Clojure, PHP, Go and C code from them

5K 53 4
mohamedeh-ab
simmynet

Zero-drift C++17/20 & Python DSL compiler folding group classifiers, exact span{1, π} phasors, and elliptic-curve checks into 9 ns Lean-verified kernels.

5K 1 0
Volland
vertep

SCXML statecharts, Orleans-style virtual actors and AI agents in Rust, with charts as RDF and a Lean-verified core

4K 3 0
CalQuity
rung-cli

Stop coding agents from faking green builds: zero-config shortcut & dep checks, fix proofs, byte-bound verdicts, browser evidence, TLA+ and Lean.

4K 5 1
justincasher
lean-explore

A search engine for Lean 4 declarations

4K 83 16
gift-framework
giftpy

Certified mathematical identities of the K₇ framework: E₈×E₈ gauge theory on a G₂-holonomy manifold, 460+ relations, 0 sorry, Lean 4. Formerly gift-framework/core (GIFT Core). Distinct from Arithmon/Lean, the Sieve methodology layer.

3K 3 0
jakeryderv
neumera

Foundational implementations and utilities for machine learning, numerical computing, and optimization.

3K 1 0
professorpalmer
hpflow

A proof gate for agent-written code, an adversary that proves what the laws leave open, and an audit ladder from review findings to fixes. Lean 4, paper and data.

3K 3 0
lean-pkg
lean-pkg

lean-pkg: lifecycle registry and trust gate for Lean 4 verification packages (comparator/nanoda acceptance bar)

3K 4 0
createcentury
cholqr

Fast, compile-friendly shifted CholeskyQR3 for batched tall-skinny matrices in PyTorch

3K 0 0
Goblohan
darm-guard

Runtime authorization for AI agents: a broker executes only what a decision kernel, compiled from a machine-checked Lean 4 model, admits, and leaves signed evidence of every effect.

2K 0 0
fabio-rovai
open-ontologies-lite

Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.

2K 3K 344
rohanvinaik
detective-spec

Writes the behavioral contract for a Python function — every behavior pinned by a test, every question it cannot answer named

2K 0 0
conao3
lean-python

Write functions and proofs in Lean 4 and generate Rust, Python, TypeScript, Clojure, PHP, Go and C code from them

2K 53 4
Volland
leanelpi

λProlog inside Lean 4: write tactics, commands and proof search as logic programs, share types with Lean both ways, get kernel-checked proofs

2K 12 1
lean-dojo
lean-dojo

Tool for data extraction and interacting with Lean programmatically.

2K 856 122
4thel00z
docboss

Word engine written from scratch in Rust: reads .docx and legacy .doc, extracts text, Markdown, HTML and JSON, renders pages to PNG, writes DOCX, opens encrypted and remote files, checked against ECMA-376 and [MS-DOC] with a Lean ledger. CLI, Python bindings and a terminal explorer.

1K 4 1
Archerkattri
mathlas-mcp

Airtight math tools an AI uses over MCP — 3.7M-theorem search, PSLQ constant ID, OEIS, real Lean kernel checks, applicability checklists. No LLM inside, no API key.

993 14 1
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology