AFTD Auto-Formalizing Theoretical Domains

op874_ten_vertex_no_strict_cut_seven_matchings

theoremverified

For the graph on vertices 0 through 9 with edges (0,1),(0,2),(0,4),(1,6),(1,8),(2,3),(2,4),(3,6),(3,8),(4,5),(5,7),(5,9),(6,7),(7,9),(8,9), and each of the seven listed pairings (01,23,45,67,89), (01,24,36,57,89), (01,24,38,59,67), (02,16,38,45,79), (02,18,36,45,79), (04,16,23,57,89), and (04,18,23,59,67), contract each listed pair. For every Boolean assignment to the five contracted pairs, some pair has at least two incident nonmatching edges whose other endpoint has the same Boolean value, counted with multiplicity. The seven pairings are indexed by the displayed partition table; their exhaustive classification as perfect matchings is a separate claim.

Statement

theorem op874_ten_vertex_no_strict_cut_seven_matchings :
  let L : Fin 15 → Fin 10 := ![0,0,0,1,1,2,2,3,3,4,5,5,6,7,8]
  let R : Fin 15 → Fin 10 := ![1,2,4,6,8,3,4,6,8,5,7,9,7,9,9]
  let part : Fin 7 → Fin 10 → Fin 5 := ![![0,0,1,1,2,2,3,3,4,4],![0,0,1,2,1,3,2,3,4,4],![0,0,1,2,1,3,4,4,2,3],![0,1,0,2,3,3,1,4,2,4],![0,1,0,2,3,3,2,4,1,4],![0,1,2,2,0,3,1,3,4,4],![0,1,2,2,0,3,4,4,1,3]]
  ∀ (i : Fin 7) (b : Fin 5 → Bool),
    ∃ v : Fin 5, 2 ≤ ((Finset.univ : Finset (Fin 15)).filter fun e =>
      part i (L e) ≠ part i (R e) ∧
      (part i (L e) = v ∨ part i (R e) = v) ∧
      b (part i (L e)) = b (part i (R e))).card
Source
Finite obstruction to a strict matching-cut shortcut for OP-874, experiments 43520 and 43523.
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext

The proof, explained

The theorem is established by finite exhaustive computation. First, the statement is formulated for explicit 5-tuples of Boolean values and verified computationally across all 7 pairings and all 32 Boolean assignments using Lean's `decide` tactic. Next, function extensionality lifts the result from explicit 5-tuples to arbitrary Boolean assignment functions on Fin 5. Finally, unfolding the local edge and partition definitions in the main theorem reduces it directly to this general result.

  1. For each pairing index i ∈ Fin 7 and every explicit Boolean assignment (b₀, b₁, b₂, b₃, b₄), there exists a contracted vertex v ∈ Fin 5 with at least two incident nonmatching edges sharing its Boolean value. automation

    The pairing index i is split into its 7 cases using `fin_cases i`. For each case, the five Boolean variables are reverted into universally quantified hypotheses, producing a decidable proposition on finite types. The tactic `decide` exhaustively verifies all 7 × 32 = 224 cases by direct computation.

    line 25

      fin_cases i <;> revert b0 b1 b2 b3 b4 <;> decide
  2. Every assignment function b : Fin 5 → Bool is identically equal to the vector ![b 0, b 1, b 2, b 3, b 4] of its values.

    By function extensionality (`funext v`), two functions on Fin 5 are equal if their values agree on all five points. Exhaustive case analysis on v (`fin_cases v`) proves each component equality by definition (`rfl`).

    lines 29–31

      have heq : ![b 0,b 1,b 2,b 3,b 4] = b := by
        funext v
        fin_cases v <;> rfl
  3. For each pairing index i and every Boolean assignment function b : Fin 5 → Bool, there exists a contracted vertex with at least two incident nonmatching edges sharing its Boolean value.

    Rewriting b with the vector equality `heq` from the previous step reduces the statement to `cut_kernel` applied to the five values b(0), …, b(4).

    lines 32–33

    uses cut_kernel

      rw [← heq]
      exact cut_kernel i (b 0) (b 1) (b 2) (b 3) (b 4)
  4. The main theorem holds for the 10-vertex graph, its 15 edges, and the seven pairings.

    The local definitions for the edge endpoints and the partition table are unfolded using `dsimp only`, aligning the theorem statement syntactically with the definition of `sameDegree`. The goal is then closed immediately by invoking `IN1276.all_cuts`.

    lines 46–47

    uses IN1276.all_cuts

      dsimp only
      exact IN1276.all_cuts
cut_kernel
For each of the seven pairings and every explicit five-tuple of Booleans (b₀, b₁, b₂, b₃, b₄), there is a contracted vertex with at least two incident nonmatching edges whose other endpoint has the same Boolean value.
IN1276.all_cuts
For each of the seven pairings and every Boolean assignment function b : Fin 5 → Bool, there is a contracted vertex with at least two incident nonmatching edges whose other endpoint has the same Boolean value.

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 4096set_option maxHeartbeats 4000000namespace IN1276def left : Fin 15 → Fin 10 := ![0,0,0,1,1,2,2,3,3,4,5,5,6,7,8]def right : Fin 15 → Fin 10 := ![1,2,4,6,8,3,4,6,8,5,7,9,7,9,9]def part : Fin 7 → Fin 10 → Fin 5 :=  ![![0,0,1,1,2,2,3,3,4,4],    ![0,0,1,2,1,3,2,3,4,4],    ![0,0,1,2,1,3,4,4,2,3],    ![0,1,0,2,3,3,1,4,2,4],    ![0,1,0,2,3,3,2,4,1,4],    ![0,1,2,2,0,3,1,3,4,4],    ![0,1,2,2,0,3,4,4,1,3]]def sameDegree (i : Fin 7) (b : Fin 5 → Bool) (v : Fin 5) : Nat :=  (Finset.univ.filter fun e : Fin 15 =>    part i (left e) ≠ part i (right e) ∧    (part i (left e) = v ∨ part i (right e) = v) ∧    b (part i (left e)) = b (part i (right e))).cardtheorem cut_kernel (i : Fin 7) (b0 b1 b2 b3 b4 : Bool) :    ∃ v : Fin 5, 2 ≤ sameDegree i ![b0,b1,b2,b3,b4] v := by  fin_cases i <;> revert b0 b1 b2 b3 b4 <;> decidetheorem all_cuts (i : Fin 7) (b : Fin 5 → Bool) :    ∃ v : Fin 5, 2 ≤ sameDegree i b v := by  have heq : ![b 0,b 1,b 2,b 3,b 4] = b := by    funext v    fin_cases v <;> rfl  rw [← heq]  exact cut_kernel i (b 0) (b 1) (b 2) (b 3) (b 4)end IN1276theorem op874_ten_vertex_no_strict_cut_seven_matchings :  let L : Fin 15 → Fin 10 := ![0,0,0,1,1,2,2,3,3,4,5,5,6,7,8]  let R : Fin 15 → Fin 10 := ![1,2,4,6,8,3,4,6,8,5,7,9,7,9,9]  let part : Fin 7 → Fin 10 → Fin 5 := ![![0,0,1,1,2,2,3,3,4,4],![0,0,1,2,1,3,2,3,4,4],![0,0,1,2,1,3,4,4,2,3],![0,1,0,2,3,3,1,4,2,4],![0,1,0,2,3,3,2,4,1,4],![0,1,2,2,0,3,1,3,4,4],![0,1,2,2,0,3,4,4,1,3]]  ∀ (i : Fin 7) (b : Fin 5 → Bool),    ∃ v : Fin 5, 2 ≤ ((Finset.univ : Finset (Fin 15)).filter fun e =>      part i (L e) ≠ part i (R e) ∧      (part i (L e) = v ∨ part i (R e) = v) ∧      b (part i (L e)) = b (part i (R e))).card := by  dsimp only  exact IN1276.all_cuts
See it in the graphDiscuss this resultChallenge it