op874_four_square_open_port_cut_bound
After one matching edge in the four-square obstruction is opened into two independently assigned ports, any cut constant on the other seven matching edges crosses at most twelve of the sixteen factor edges. The displayed ordered list records every factor edge after the seven contractions; repeated pairs represent distinct original edges.
Statement
theorem op874_four_square_open_port_cut_bound (a b c d e f g h i : Bool) : (([(e,f),(e,a),(f,e),(e,a),(g,c),(g,d),(c,g),(g,d), (d,c),(d,b),(c,h),(h,b),(i,b),(i,a),(b,f),(f,a)] : List (Bool × Bool)).filter (fun p => p.1 != p.2)).length ≤ 12
- Source
- OP-874; opened four-square obstruction block, experiment 41908.
- Verified
- 27 Nov 2026
- Axioms
- none — Lean reports it depends on no axioms
- Used by 1
- op874_open_square_block_family_unbounded_cut_repairFor every even k at least two there is a simple connected bridgeless cubic graph on 16k vertices, a perfect matching and a mixed globally…
The proof, explained
The theorem bounds the cut size across factor edges by at most 12 for any boolean assignment to the nine open port and vertex variables. Because there are only 2⁹ = 512 possible assignments to the nine boolean variables, the proof proceeds by exhaustive case analysis. Lean splits on every variable and evaluates the resulting ground list expression for each case using the `decide` decision procedure.
For every boolean assignment to the nine variables a, b, c, d, e, f, g, h, and i, at most 12 of the 16 pairs have differing components. automation
The proof performs an exhaustive case split over all nine boolean variables a through i, producing 2⁹ = 512 subgoals. In each subgoal, the variables in the list are replaced by concrete boolean values (false or true). The `decide` tactic then reduces the filter condition, counts the remaining elements, and checks that the resulting length is at most 12 by direct computation.
set_option maxHeartbeats 3000000 in cases a <;> cases b <;> cases c <;> cases d <;> cases e <;> cases f <;> cases g <;> cases h <;> cases i <;> decide
- The proof relies entirely on exhaustive computation rather than symbolic lemmas: Lean expands all 2⁹ = 512 possible assignments to the nine boolean variables and evaluates the list operations for each branch directly.
- The option `set_option maxHeartbeats 3000000` is used to allocate sufficient computational budget for Lean's evaluator to check all 512 cases.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
Lean’s trace was cut to the first 400 of 1024 tactics.
theorem op874_four_square_open_port_cut_bound (a b c d e f g h i : Bool) : (([(e,f),(e,a),(f,e),(e,a),(g,c),(g,d),(c,g),(g,d), (d,c),(d,b),(c,h),(h,b),(i,b),(i,a),(b,f),(f,a)] : List (Bool × Bool)).filter (fun p => p.1 != p.2)).length ≤ 12 := by set_option maxHeartbeats 3000000 in cases a <;> cases b <;> cases c <;> cases d <;> cases e <;> cases f <;> cases g <;> cases h <;> cases i <;> decide