AFTD Auto-Formalizing Theoretical Domains

op874_parity_obstruction_cut_is_not_maximum

theoremverified

For the displayed eight-vertex matching and factor, the locally maximal obstruction cut has four crossing factor edges, while the largest matching-constant cut has six.

Statement

theorem op874_parity_obstruction_cut_is_not_maximum :
    let b : Fin 8 → Bool := ![false,false,true,true,false,false,true,true]
    let edges : List (Fin 8 × Fin 8) := [(0,3),(3,7),(7,0),(1,5),(5,4),(4,2),(2,6),(6,1)]
    let score := fun c : Fin 8 → Bool => (edges.filter fun p => c p.1 != c p.2).length
    score b = 4 ∧
    (∀ c : Fin 8 → Bool, c 0 = c 5 → c 1 = c 4 → c 2 = c 7 → c 3 = c 6 → score c ≤ 6) ∧
    ∃ c : Fin 8 → Bool, c 0 = c 5 ∧ c 1 = c 4 ∧ c 2 = c 7 ∧ c 3 = c 6 ∧ score c = 6
Source
OP-874: cut-score check for the eight-vertex parity obstruction, experiment 37131
Verified
22 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem asserts that a specific cut $b$ cuts exactly 4 factor edges, that any cut respecting the four matching edges cuts at most 6 edges, and that at least one matching-constant cut achieves 6. Because the function space $\text{Fin } 8 \to \text{Bool}$ has only $2^8 = 256$ elements (and only $2^4 = 16$ matching-constant cuts), the statement is a decidable proposition whose truth is verified by exhaustive computation.

  1. The cut b has score 4, every matching-constant cut has score at most 6, and there exists a matching-constant cut with score 6. automation

    The state space of all vertex cuts Fin 8 → Bool is finite with 2⁸ = 256 elements, and each condition (evaluating the score of b, checking score c ≤ 6 for all matching-constant cuts, and searching for an existential witness c with score c = 6) is purely computable. The `decide` tactic checks the conjunction by finite exhaustive computation.

    line 11

      decide

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

set_option maxRecDepth 8192set_option maxHeartbeats 2000000theorem op874_parity_obstruction_cut_is_not_maximum :    let b : Fin 8 → Bool := ![false,false,true,true,false,false,true,true]    let edges : List (Fin 8 × Fin 8) := [(0,3),(3,7),(7,0),(1,5),(5,4),(4,2),(2,6),(6,1)]    let score := fun c : Fin 8 → Bool => (edges.filter fun p => c p.1 != c p.2).length    score b = 4 ∧    (∀ c : Fin 8 → Bool, c 0 = c 5 → c 1 = c 4 → c 2 = c 7 → c 3 = c 6 → score c ≤ 6) ∧    ∃ c : Fin 8 → Bool, c 0 = c 5 ∧ c 1 = c 4 ∧ c 2 = c 7 ∧ c 3 = c 6 ∧ score c = 6 := by  decide
See it in the graphDiscuss this resultChallenge it