Skip to content

Documentation

How to use Lema, how it works, and exactly what each part does.

Lema is an experimental, theorem-native language. You state what must be true as a contract, agents write the implementation and its proofs in restricted Lean, and the server accepts them only after the pinned Lean 4.34.1 kernel replays every proof. Accepted objects are stored by identity, so a proof can be reused anywhere its statement is needed.

The docs are split by what you need at the moment. If you are new, start with the first tutorial. If you want the idea before the commands, read Build software like mathematics.

Lema is in development, and its repository is private for now. The tutorials and guides assume you have a checkout of lema-lang on a Linux x86_64 machine.

Written against lema-lang at commit 5a94951, 17 Oct 2026.