Skip to content

agent-maestro/machlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MachLib — for machines, by machines

A self-contained formal mathematics library built for machine consumption. Independent foundations. Multi-proof corpus. Verified by the Lean 4 kernel.

Install

pip install machlib

Try it

from machlib import load

ds = load("machlib-eml-1k")
print(ds[0]["theorem"]["statement"]["informal"])
# eml(x, 1) equals exp(x) for all real x

print(len(ds[0]["proofs"]))  # 2 — multiple ranked proofs per theorem

What's here

foundations/ Independent Lean 4 foundations — ~3,400 lines, zero Mathlib
corpus/ 1K+ verified theorem-proof records with full metadata
gym/ Gymnasium-compatible training environment, 54-tactic vocabulary
tools/ Generator, verifier, ranker, exporter, CLI
api/ REST API for theorems, proofs, tactics, search
docs/ Audience-organised guides + reference

Why MachLib (not Mathlib)

Mathlib is the cathedral, by humans, for humans. MachLib is the training gym, for machines, by machines. You don't train for a marathon inside a cathedral.

See PHILOSOPHY.md for the full case.

Status

Seed phase. 256 records, foundations built on Mathlib (transitional). Phase 1 (independence) and Phase 2 (1K records) in progress.

License

CC BY 4.0 — open, citable, usable by anyone.

About

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors