AFTD Auto-Formalizing Theoretical Domains

op874_disjoint_palette_cut_is_maximum

theoremverified

The matching-constant cut used in the eight-vertex disjoint-palette obstruction is globally maximum for that matching: its eight-cycle has six crossing edges and no matching-constant bit assignment has more.

Statement

theorem op874_disjoint_palette_cut_is_maximum :
    let mate : Fin 8 → Fin 8 := ![6,4,7,5,1,3,0,2]
    let bit : Fin 8 → Bool := ![true,false,false,true,false,true,true,false]
    (Finset.univ.filter fun v : Fin 8 => bit v ≠ bit (v+1)).card = 6 ∧
    (∀ b : Fin 8 → Bool, (∀ v, b v = b (mate v)) →
      (Finset.univ.filter fun v : Fin 8 => b v ≠ b (v+1)).card ≤ 6)
Source
Maximum-cut certificate for the matching-palette obstruction in OP-874; https://arxiv.org/abs/2610.41950.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1

The proof, explained

The theorem asserts that the specified bit assignment on the 8-cycle cuts 6 edges, and that this is globally maximal among all bit assignments constant on the edges of the given matching. Because the space of all bit assignments on eight vertices is finite ($2^8 = 256$ configurations), the statement is purely computational. The proof consists of running Lean's `decide` tactic, which verifies the claim by exhaustive evaluation.

  1. The given bit assignment cuts exactly 6 edges of the 8-cycle, and no matching-invariant assignment cuts more than 6 edges. automation

    Because the domain $\mathrm{Fin}\, 8 \to \mathrm{Bool}$ is finite (containing $2^8 = 256$ possible bit assignments, only $2^4 = 16$ of which satisfy the matching-invariance condition), the quantified claim is over a finite search space. The operations of filtering the finite set $\mathrm{Fin}\, 8$, testing inequality of booleans, and computing set cardinality are all decidable. The `decide` tactic checks the conjunction by exhaustive computation: it verifies that the specified assignment has a cut size of 6, and then tests all 256 assignments to confirm that any assignment invariant under `mate` cuts at most 6 edges of the cycle.

    line 7

      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

theorem op874_disjoint_palette_cut_is_maximum :    let mate : Fin 8 → Fin 8 := ![6,4,7,5,1,3,0,2]    let bit : Fin 8 → Bool := ![true,false,false,true,false,true,true,false]    (Finset.univ.filter fun v : Fin 8 => bit v ≠ bit (v+1)).card = 6 ∧    (∀ b : Fin 8 → Bool, (∀ v, b v = b (mate v)) →      (Finset.univ.filter fun v : Fin 8 => b v ≠ b (v+1)).card ≤ 6) := by  decide
See it in the graphDiscuss this resultChallenge it