Boole Lab

Boolean algebra · the kernel of Lecture 3 · Lean-style tactics · in the browser
starting…
GOALSA tactic acts on the first goal (the Goal panel); trans t turns one goal into two. Colored underlines show where the selected suggestion matches.
SUGGESTIONSEvery rewrite of the goal by the axioms and theorems: green ones close the goal, blue ones shrink it; the pink dot is the first step of a proof found by the solver — and the solver finds a proof of every true equation (in an exercise it follows the library proof) and shows a false one with a counterexample. TAB or → accepts the grey proposal.
CERTIFICATETactics build a tree of the rules Refl, Symm, Trans, CongrArg, Inst; qed hands it to the kernel together with the original statement.
start:
prove:
library:

Paste a whole proof

One command per line: the first line is bl prove …, the last one qed; blank lines and -- … comments are skipped. The commands run in order and stop at the first error — earlier steps remain (undo reverts them). The same works when you paste several lines straight into the terminal. Scripts from bl lib and script paste as they are.

The whole lab runs in your browser: Python (Pyodide, that is CPython compiled to WebAssembly, from jsDelivr) starts in a Web Worker and fetches the files kernel.py, syntax.py, tactics.py, tacticals.py, boolean.py, library.py, solver.py, theories.py and lab.py from this site — exactly the code published with Lecture 3. Commands never leave the browser; your own theorems and tactics are kept in its storage (localStorage) and the kernel checks them again at every start. A command in a ?cmd=… link is part of the page address, though, so the server can see it.

Three laws (as in Peano Lab): every qed is checked by the kernel against the original statement; a failing tactic leaves the proof state unchanged; the kernel imports nothing from the tactics or the interface. Tactics are written as in Lean 4 (rw with the same matching semantics), so bl lean name gives a file that compiles in Lean unchanged — the whole library is in lean/BooleLabEn.lean.