Line 11 fails: δ = ε / 2 is too big.
- 4
Given ε : ℝ where ε > 0valid · Context - 5
Let δ = ε / 2valid · Context - 7
Given x : ℝvalid · Context - 8
Assume |x − 2| < δvalid · Context - 9
Step: |3·x − 6| = 3·|x − 2|valid · SymPy - 10
Step: < 3·δvalid · Z3 - 11
Step: = εinvalid · SymPyAlgebraic step failed: ((3 * δ)) - (ε) simplifies to ε/2 ≠ 0.
Counterexample: δ=1/4, ε=1/2, x=15/8
- 12
Therefore ∃ δ > 0, ∀ x ∈ ℝ, |x − 2| < δ ⇒ |3·x − 6| < ε [witness: ε / 2]invalid · Z3 (Witness) - 2at QED
Claim: ∀ ε > 0, ∃ δ > 0, ∀ x ∈ ℝ, |x − 2| < δ ⇒ |3·x − 6| < εinvalid · QED
Check proofs the way your notes write them.
Lemmata checks every line, and when one fails it shows which, why, and a counterexample.
Free. Runs in your browser, or offline on your desktop. No account.
Write what your lecturer writes.
Type the symbol, or its name: forall, \epsilon, <=. Both read the same, and the app's symbol strip inserts any of these with a click.
forallfor allexiststhere existsinelement ofnotinnot an element ofsubseteqsubset<=less or equal>=greater or equal!=not equal=>implies<=>if and only if\epsilonepsilon\deltadeltaooinfinitysqrt(x)square root^-1inverseRealthe realsIntthe integersNatthe naturals
It also says what you assumed.
Cancelling (x − 1) is right, unless x = 1. The checker points out the assumption the proof never states; add Assume x != 1 and the warning goes.
- 3
Given x : Realvalid · Context - 4
Step: (x^2 - 1) / (x - 1) = x + 1warning · SymPyUnresolved domain obligation
requires non-zero denominator ((x - 1) ≠ 0) in (((x ^ 2) - 1) / (x - 1)) (violated at x=1).
- Algebra and logic, both. Calculations are checked by SymPy; inequalities, quantifiers and deductions by Z3.
- Strict when you want it. Turn on strict domains and an unstated assumption fails the proof instead of warning.
- What is known, at every line. Click any step to see the variables in scope, the hypotheses and the facts derived so far.
- Honest about its limits. When the solver cannot decide, it says so. What it can check
Your module, as proofs you can check.
Course packs transcribe a module's results into Lemmata, numbered as in the notes, with deliberate mistakes to find. Install them from the Library, use a theorem in your own proof, or make a pack of your own.
| Pack | Entries | Traps | Chapters |
|---|---|---|---|
| MTH2008 Real Analysis | 67 | 10 | 5 |
| MTH2010 Algebra | 29 | 1 | 2 |
| Notation Notation and traps | 37 | 23 | 2 |
More are published to the public pack registry, where every entry is re-checked before it is listed. Search it from the Library.
For lecturers and departments.
Lemmata is a study tool, not a grader: it explains and points, and never scores anyone.
- Publish a module
- Put your results and exercises in a pack and open a pull request. The registry checks every entry with the engine students use before anyone can install it. How to publish
- Traps to find
- A pack can carry deliberate mistakes. Students open one as an exercise and look for the failing line before the checker shows it.
- Your own copy
- Host it yourself: one
site.jsonsets the name, the accent colour, the packs a first visit installs and your own registry. Self-hosting - What it can and cannot check
- The capability matrix lists every construction the checker supports and every known gap, each one verified by a test. Read it
Before Lean, not instead of it.
Proof assistants such as Lean check everything, once you have learned type theory and their syntax. A computer algebra system checks one calculation at a time. Lemmata sits between them: the whole argument, line by line, in the notation of your notes, so you learn what a checked proof feels like before you formalise one.
Use it your way.
-
In your browser
Nothing to install. The checker runs on your computer, inside the page, and your work stays there.
Open Lemmata -
On your desktop
Linux, Windows and macOS. Works offline from the first launch.
Download -
From the command line
Check
Install the CLI.aetherfiles from a terminal or a script. -
On your own server
A folder of static files that any web server can host, branded with one config file.
Self-host
Bring tonight's problem sheet.
Type the first line of your proof and see how far the argument holds.
Open Lemmata