New to Lean? Write the claim in your own words, then prepare a draft request for an AI you choose. MathCase copies the request; it does not send your words to an AI or verify that the proposed Lean statement says the same thing.
Statement in Lean and theorem name
Lean checks whether the named theorem proves this statement. Compare it with your English claim to make sure they say the same thing.
Exact proposition SHA-256 · Not set
Review and edit AI prompt
Check the proof
Add the exact proposition and its declaration name to check that the theorem proves the target.
Opening the public Lean editor sends your proof code and any generated target check to live.lean-lang.org.
Online checks and saved receipts
The online editor shows compiler output. It chooses its own Lean and Mathlib versions, which may differ from the MathCase local checker (Lean 4.33.1). To save a receipt, use the local check below.
Prefer a separate window?
After Lean connects, check the editor's Messages panel for the result. Use the editor's Run control if it appears. Copy any edits back into this workbench to save them.
If “No connection to Lean” appears or “Updating…” does not finish, Lean has not checked your proof. Copy any edits back here, then reload from this draft or open it in a new tab. If the error remains, try the pinned local check below. The online editor’s output is not saved here; import a receipt from the local check to record the result.
Check locally and save a receipt
Choose Save the whole claim to download a packet with the plain claim, exact proposition, theorem name, and Lean source. Place it in the MathCase checkout and run the command below. The starter uses Lean Core. For sources importing Mathlib, use an already prepared Lean 4.33.1 project and add --lake-project PATH; this command does not fetch packages.
A MathCase Codespace can install the pinned Lean Core toolchain; Mathlib is not included by default.
Load the receipt to see whether its claim, proposition, theorem name, and proof code match this draft. The fingerprints identify the saved content. MathCase does not sign visitor receipts.
Your check record
Compiler diagnostics from receipt
Check details and file fingerprints
- Imported receipt file SHA-256
- Lean exit code
- Named Lean theorem
- Reported axioms
- Generated check input SHA-256
- Lean stdout SHA-256
- Lean stderr SHA-256
- Current source SHA-256
- Current exact proposition SHA-256
- Current plain claim SHA-256