Unique Corner-to-Corner Grid Path — Interactive Lean 4 Witness (MathOverflow #499752)
@devallibus ·
DOI 10.5281/zenodo.24662657
·
GitHub
Click any interior cell to toggle a wall block and test whether the s → t path stays unique!
Grid n × n
7 × 7
Removed |S|
9
Proven min f(n)
9
Checking paths...
n =
7
Load Lean Optimal S
n
Clear Walls
Show Z
2
winding parity χ
p
Highlight deg-1 leaves
Removed wall cell (x in S)
Unique simple path p (or Path #1)
Second simple path p' (when non-unique!)
Degree-1 dead-end leaf (blocks for free!)
Dual Z
2
parity χ
p
= 0 (blue) / 1 (purple)