Litex lets you write mathematical objects, definitions, statements and proofs close to ordinary mathematical writing. Its native checker checks domains and proof steps, and makes accepted facts available to later statements.
have a R = 2
a + 1 = 3
The first line introduces a real number and its value. The second states a fact that the checker verifies using that context. A persistent Session lets you continue from accepted statements while correcting a failed step.
On macOS or Linux:
brew install litexlang/tap/litexOn Windows:
scoop bucket add litex https://github.com/litexlang/scoop-litex
scoop install litexFor other installation options, see the setup guide.
# Check a fact
litex -e '1 + 1 = 2'
# Start an interactive Session
litex -session
# Check a saved proof
litex -f proof.lit| Task | Reference |
|---|---|
| Learn the language | Tutorial, cheatsheet |
| Look up syntax, domains and proof rules | Manual |
| Use the command line and read JSON output | CLI reference |
| Write proofs with an agent | Agent Guide, primer |
| Compile supported proofs to Lean | Compiler guide |
| Read mathematical examples | Examples, sample chapters, showcases |
Litex is under active development. The Lean backend compiles supported proof routes for independent checking; coverage and limitations are described in the compiler guide. The manual describes the native checker's trust boundary.
Created and maintained by Jiachen Shen. Report bugs with a minimal example at GitHub Issues. Community discussion is on Zulip.
Released under the Apache License 2.0.