Course page · chapter in the book · slides
Each file opens in a reader with colored syntax, line numbers you can link to, an outline and names that lead to their definitions; the reader also links to the raw file.
The English code of Lecture 3 — the kernel, the tactics, the axioms of Boolean algebra and the Boole Lab — is here; the English book, slides and lab use it. The Polish book and slides show a Polish version of the lecture code: the same program, with Polish identifiers and comments, generated from the English files with a dictionary of names and comments.
jadro.py — from kernel.py:
the kernel, five rules and the environment of axioms and theoremsskladnia.py — from syntax.py:
reading and printing terms and proofstaktyki.py — from tactics.py:
pattern matching, the tactics rw and calc, a small solverboole.py — from boolean.py:
Huntington's axioms (1904) and the first theoremsac.py — from ac.py:
associativity and commutativity as a tactic (the deep dive on proof compression)robbins.py — from robbins.py:
the Robbins algebra, Lean-like tactic blocks, lemmas with hypotheses, sectionsrobbins_dowod.py — from
robbins_proof.py: the whole proof that Robbins algebras
are BooleanThe Boole Lab code (library.py,
solver.py, lab.py,
robbins_lab.py — both complete proofs of the Robbins
theorem step by step) exists
only in English; the Polish lab page uses the Polish theorem names stored in the library. The library in Lean 4:
lean/BooleLabEn.lean (Polish names:
lean/BooleLab.lean).
Example (Polish version):
from boole import teoria_z_twierdzeniami
from skladnia import lean
B, dowody = teoria_z_twierdzeniami()
print(lean(dowody["idem_plus"]))