AFTD Auto-Formalizing Theoretical Domains

op874_disjoint_matching_palettes_cut_data

theoremverified

The displayed matching involution and cut on the eight-cycle give a simple cubic graph with a locally maximal matching cut; the matching contraction has a proper four-edge-coloring, and vertices 1 and 2 have the same bit.

Statement

theorem op874_disjoint_matching_palettes_cut_data :
    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]
    let w : Fin 8 → Fin 4 := ![3,2,3,1,0,2,1,0]
    Function.Involutive mate ∧
    (∀ v, mate v ≠ v ∧ mate v ≠ v-1 ∧ mate v ≠ v+1 ∧ bit (mate v) = bit v) ∧
    (∀ v, (if bit (v-1) = bit v then 1 else 0) +
          (if bit (v+1) = bit v then 1 else 0) +
          (if bit (mate v-1) = bit v then 1 else 0) +
          (if bit (mate v+1) = bit v then 1 else 0) ≤ (2 : ℕ)) ∧
    (∀ v, w (v-1) ≠ w v) ∧
    (∀ v, Function.Injective ![w (v-1),w v,w (mate v-1),w (mate v)]) ∧
    bit 1 = bit 2
Source
Finite data for the matching-palette obstruction in OP-874; https://arxiv.org/abs/2610.41950.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 1

The proof, explained

The theorem verifies six combinatorial properties of explicit functions mate, bit, and w on the eight-cycle: that mate is a fixed-point-free involution forming chords disjoint from the cycle edges while preserving the cut bit, that the cut is locally maximal, that w gives a proper 4-edge-coloring of the contracted graph, and that vertices 1 and 2 have identical bits. After unfolding definitions and decomposing the statement into six subgoals, each claim is verified mechanically by exhaustive finite computation (decide, fin_cases, and simp_all) over the finite domains Fin 8 and Fin 4.

  1. The goal is reduced to verifying six independent combinatorial properties of the functions mate, bit, and w.

    Unfolding the local definitions of mate, bit, and w simplifies the goal, and splitting the resulting six-way conjunction produces six separate subgoals.

    lines 14–15

      dsimp
      refine ⟨?_, ?_, ?_, ?_, ?_, ?_⟩
  2. mate is an involution on Fin 8. automation

    For an arbitrary vertex v, the identity mate (mate v) = v is checked by exhausting all eight elements of Fin 8 with fin_cases and evaluating each case directly with decide.

    lines 16–17

      · intro v
        fin_cases v <;> decide
  3. The matching mate has no fixed points, shares no edges with the cycle, and preserves the cut bit. automation

    For every vertex v, the conditions mate v ≠ v, mate v ≠ v - 1, mate v ≠ v + 1, and bit (mate v) = bit v are verified for all eight vertices simultaneously via finite domain evaluation using decide.

    line 18

      · decide
  4. The cut satisfies the local maximality inequality at every vertex. automation

    For each vertex v, the sum of indicator terms counting incident edges in the contracted graph that remain within the same cut part is at most 2. Since Fin 8 is finite, decide verifies this arithmetic inequality across all eight vertices.

    line 19

      · decide
  5. The coloring w assigns distinct colors to adjacent vertices along the 8-cycle. automation

    For every vertex v, the condition w (v - 1) ≠ w v is verified for all eight vertices by direct finite evaluation using decide.

    line 20

      · decide
  6. Around each matching edge, the four colors assigned to incident edges in the contracted graph are pairwise distinct. automation

    To prove that the 4-tuple ![w (v-1), w v, w (mate v-1), w (mate v)] is injective, we assume its values at indices i, j ∈ Fin 4 are equal. Exhausting all 8 choices of v and all 4 × 4 = 16 pairs of indices (i, j) with fin_cases, simp_all closes every case either because i = j or because the assumed equality between distinct explicit colors is contradictory.

    lines 21–22

      · intro v i j h
        fin_cases v <;> fin_cases i <;> fin_cases j <;> simp_all
  7. Vertices 1 and 2 share the same cut bit. automation

    Both bit 1 and bit 2 evaluate to false, so the equality bit 1 = bit 2 is verified directly by computation using decide.

    line 23

      · 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_matching_palettes_cut_data :    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]    let w : Fin 8 → Fin 4 := ![3,2,3,1,0,2,1,0]    Function.Involutive mate ∧    (∀ v, mate v ≠ v ∧ mate v ≠ v-1 ∧ mate v ≠ v+1 ∧ bit (mate v) = bit v) ∧    (∀ v, (if bit (v-1) = bit v then 1 else 0) +          (if bit (v+1) = bit v then 1 else 0) +          (if bit (mate v-1) = bit v then 1 else 0) +          (if bit (mate v+1) = bit v then 1 else 0) ≤ (2 : ℕ)) ∧    (∀ v, w (v-1) ≠ w v) ∧    (∀ v, Function.Injective ![w (v-1),w v,w (mate v-1),w (mate v)]) ∧    bit 1 = bit 2 := by  dsimp  refine ⟨?_, ?_, ?_, ?_, ?_, ?_⟩  · intro v    fin_cases v <;> decide  · decide  · decide  · decide  · intro v i j h    fin_cases v <;> fin_cases i <;> fin_cases j <;> simp_all  · decide
See it in the graphDiscuss this resultChallenge it