Lean 4 library formalizing percolation theory and random‑cluster model
It implements a comprehensive formalization of percolation theory and the random‑cluster model in Lean 4, letting researchers write and verify proofs about critical probabilities, duality, and phase transitions. The library supplies graph and lattice definitions, measure constructions, and key theorems like FKG and Russo’s formula, all integrated with Mathlib. Intended for mathematicians and formal‑methods engineers, it saves time by offering a ready‑made, well‑tested foundation instead of building the theory from scratch. Its tight coupling with Mathlib and thorough documentation make it more reliable than ad‑hoc formalizations.
View on GitHub →random-fields/percolation