AFTD Auto-Formalizing Theoretical Domains

op1957_exceptional_pool_example_not_extendible

theoremverified

The exceptional 44-vertex graph is not 11-extendible.

Statement

theorem op1957_exceptional_pool_example_not_extendible : ¬ is_k_extendable op1957_exceptional_pool_example_graph 11
Source
OP-1957; exceptional 44-vertex graph, experiments 40070–40073.
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 6

The proof, explained

The theorem proves by contradiction that the exceptional 44-vertex graph G is not 11-extendable. Assuming G is 11-extendable, we construct an explicit perfect matching on an induced 22-vertex subgraph G[S] via a fixed-point-free adjacency-preserving involution. Extendability requires that the complementary 22-vertex induced subgraph G[R] also admits a perfect matching. However, R contains a 4-vertex subset U whose neighbors in G[R] are all contained in a 3-vertex subset T, which by a Hall-type bound would require |U| ≤ |T|, a contradiction since 4 > 3.

  1. The forbidden pair relation on Fin 44 is decidable.

    Unfolding the definition of `op1957_exceptional_pool_example_forbidden`, which is a finite boolean combination of inequalities and equalities between vertex indices in `Fin 44`, Lean's typeclass resolution (`infer_instance`) synthesizes a decision procedure.

    lines 1–4

    instance op1957_exceptional_pool_example_not_extendible_forbidden_dec (u v : Fin 44) :
        Decidable (op1957_exceptional_pool_example_forbidden u v) := by
      unfold op1957_exceptional_pool_example_forbidden
      infer_instance
  2. Adjacency in the exceptional 44-vertex graph is decidable.

    Two vertices u and v are adjacent when u ≠ v and neither directed pair between them is forbidden. Since equality and forbidden pairs on `Fin 44` are decidable, typeclass resolution (`infer_instance`) provides decidability of adjacency.

    lines 6–11

    instance op1957_exceptional_pool_example_not_extendible_adj_dec :
        DecidableRel op1957_exceptional_pool_example_graph.Adj := by
      intro u v
      unfold op1957_exceptional_pool_example_graph
      dsimp
      infer_instance
  3. Assume for contradiction that the graph is 11-extendable.

    We proceed by contradiction: using classical logic, assume that `op1957_exceptional_pool_example_graph` is 11-extendable (hypothesis `hext`).

    lines 29–30

      classical
      intro hext
  4. The induced subgraph on S admits a perfect matching.

    Let S be the set of vertices in `bad_S`. We define a map f on S using the explicit pairing table `bad_mate` (verified by `decide` to map S into S). Exhaustive computation (`decide`) confirms that f is an involution (f (f v) = v) and that each vertex v ∈ S is adjacent to f(v) in the induced subgraph G[S]. Applying `perfect_matching_of_adjacency_involution` to f yields a perfect matching on G[S].

    lines 31–37

    uses perfect_matching_of_adjacency_involution

      let S := {v : Fin 44 | v ∈ op1957_exceptional_pool_example_not_extendible_bad_S}
      let f (v : S) : S := ⟨op1957_exceptional_pool_example_not_extendible_bad_mate v.val, by revert v; decide⟩
      have hi : Function.Involutive f := by intro v; revert v; decide
      have ha : ∀ v : S, (op1957_exceptional_pool_example_graph.induce S).Adj v (f v) := by
        intro v; revert v; decide
      have hS : ∃ P : (op1957_exceptional_pool_example_graph.induce S).Subgraph, P.IsPerfectMatching :=
        perfect_matching_of_adjacency_involution _ f hi ha
  5. The vertex subset S has cardinality 22 = 2 * 11.

    We convert the set cardinality `ncard` to finset cardinality using `Set.ncard_coe_finset`, and direct computation (`decide`) evaluates |S| to 22, which equals 2 * 11.

    lines 38–41

    uses Set.ncard_coe_finset

      have hsize : S.ncard = 2 * 11 := by
        change (op1957_exceptional_pool_example_not_extendible_bad_S : Set (Fin 44)).ncard = 2 * 11
        rw [Set.ncard_coe_finset]
        decide
  6. The induced subgraph on the complement R = Sᶜ must also have a perfect matching.

    By definition, S is the complement of R in the 44-vertex set, so Sᶜ = R. Since the graph is assumed 11-extendable, |S| = 2 * 11, and G[S] has a perfect matching, `extendible_matchable_two_k_vertices_complement_matchable` implies that the complementary induced subgraph G[R] admits a perfect matching hR.

    lines 42–46

    uses extendible_matchable_two_k_vertices_complement_matchable

      have hcomp : Sᶜ = {v : Fin 44 | v ∈ op1957_exceptional_pool_example_not_extendible_bad_R} := by
        ext v
        simp [S, op1957_exceptional_pool_example_not_extendible_bad_S]
      have hR := extendible_matchable_two_k_vertices_complement_matchable op1957_exceptional_pool_example_graph 11 hext S hsize hS
      rw [hcomp] at hR
  7. Any perfect matching on G[R] forces |U| ≤ |T|.

    We verify by finite evaluation (`decide`) that U = {6, 7, 8, 9} is a subset of R and that every neighbor of U within G[R] belongs to T = {10, 11, 12}. By `induced_perfect_matching_neighbors_card_bound`, the existence of a perfect matching on G[R] implies |U| ≤ |T|.

    lines 47–51

    uses induced_perfect_matching_neighbors_card_bound

      have hU : op1957_exceptional_pool_example_not_extendible_bad_U ⊆ op1957_exceptional_pool_example_not_extendible_bad_R := by decide
      have hcover : ∀ u ∈ op1957_exceptional_pool_example_not_extendible_bad_U, ∀ v ∈ op1957_exceptional_pool_example_not_extendible_bad_R,
          op1957_exceptional_pool_example_graph.Adj u v → v ∈ op1957_exceptional_pool_example_not_extendible_bad_T := by decide
      have hb := induced_perfect_matching_neighbors_card_bound op1957_exceptional_pool_example_graph op1957_exceptional_pool_example_not_extendible_bad_R
        op1957_exceptional_pool_example_not_extendible_bad_U op1957_exceptional_pool_example_not_extendible_bad_T hU hcover hR
  8. Contradiction, showing the exceptional graph is not 11-extendable.

    Direct computation (`decide`) verifies ¬(|U| ≤ |T|), since |U| = 4 and |T| = 3. This contradicts the upper bound |U| ≤ |T|, concluding the proof.

    lines 52–53

      have hn : ¬ op1957_exceptional_pool_example_not_extendible_bad_U.card ≤ op1957_exceptional_pool_example_not_extendible_bad_T.card := by decide
      exact hn hb
perfect_matching_of_adjacency_involution
A fixed-point-free involution on the vertices of a graph whose orbits form edges determines a perfect matching.
Set.ncard_coe_finset
The cardinality (ncard) of a finset coerced to a set equals its finset cardinality (card).
extendible_matchable_two_k_vertices_complement_matchable
In a k-extendable graph, if an induced subgraph on 2k vertices has a perfect matching, then the induced subgraph on the complementary vertices also has a perfect matching.
induced_perfect_matching_neighbors_card_bound
If the induced subgraph on a vertex set R has a perfect matching, and all neighbors in R of a subset U ⊆ R are contained in T ⊆ R, then |U| ≤ |T|.

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

instance op1957_exceptional_pool_example_not_extendible_forbidden_dec (u v : Fin 44) :    Decidable (op1957_exceptional_pool_example_forbidden u v) := by  unfold op1957_exceptional_pool_example_forbidden  infer_instanceinstance op1957_exceptional_pool_example_not_extendible_adj_dec :    DecidableRel op1957_exceptional_pool_example_graph.Adj := by  intro u v  unfold op1957_exceptional_pool_example_graph  dsimp  infer_instancedef op1957_exceptional_pool_example_not_extendible_bad_R : Finset (Fin 44) :=  {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 22, 23, 24, 33, 34, 35, 36, 37, 38, 39}def op1957_exceptional_pool_example_not_extendible_bad_S : Finset (Fin 44) :=  Finset.univ \ op1957_exceptional_pool_example_not_extendible_bad_Rdef op1957_exceptional_pool_example_not_extendible_bad_U : Finset (Fin 44) :=  {6, 7, 8, 9}def op1957_exceptional_pool_example_not_extendible_bad_T : Finset (Fin 44) :=  {10, 11, 12}def op1957_exceptional_pool_example_not_extendible_bad_mate : Fin 44 → Fin 44 :=  ![43, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 42, 41, 40, 32, 31, 30, 29, 28, 27, 22, 23, 24, 26, 25, 21, 20, 19, 18, 17, 16, 33, 34, 35, 36, 37, 38, 39, 15, 14, 13, 0]theorem op1957_exceptional_pool_example_not_extendible : ¬ is_k_extendable op1957_exceptional_pool_example_graph 11 := by  classical  intro hext  let S := {v : Fin 44 | v ∈ op1957_exceptional_pool_example_not_extendible_bad_S}  let f (v : S) : S := ⟨op1957_exceptional_pool_example_not_extendible_bad_mate v.val, by revert v; decide⟩  have hi : Function.Involutive f := by intro v; revert v; decide  have ha : ∀ v : S, (op1957_exceptional_pool_example_graph.induce S).Adj v (f v) := by    intro v; revert v; decide  have hS : ∃ P : (op1957_exceptional_pool_example_graph.induce S).Subgraph, P.IsPerfectMatching :=    perfect_matching_of_adjacency_involution _ f hi ha  have hsize : S.ncard = 2 * 11 := by    change (op1957_exceptional_pool_example_not_extendible_bad_S : Set (Fin 44)).ncard = 2 * 11    rw [Set.ncard_coe_finset]    decide  have hcomp : Sᶜ = {v : Fin 44 | v ∈ op1957_exceptional_pool_example_not_extendible_bad_R} := by    ext v    simp [S, op1957_exceptional_pool_example_not_extendible_bad_S]  have hR := extendible_matchable_two_k_vertices_complement_matchable op1957_exceptional_pool_example_graph 11 hext S hsize hS  rw [hcomp] at hR  have hU : op1957_exceptional_pool_example_not_extendible_bad_U ⊆ op1957_exceptional_pool_example_not_extendible_bad_R := by decide  have hcover : ∀ u ∈ op1957_exceptional_pool_example_not_extendible_bad_U, ∀ v ∈ op1957_exceptional_pool_example_not_extendible_bad_R,      op1957_exceptional_pool_example_graph.Adj u v → v ∈ op1957_exceptional_pool_example_not_extendible_bad_T := by decide  have hb := induced_perfect_matching_neighbors_card_bound op1957_exceptional_pool_example_graph op1957_exceptional_pool_example_not_extendible_bad_R    op1957_exceptional_pool_example_not_extendible_bad_U op1957_exceptional_pool_example_not_extendible_bad_T hU hcover hR  have hn : ¬ op1957_exceptional_pool_example_not_extendible_bad_U.card ≤ op1957_exceptional_pool_example_not_extendible_bad_T.card := by decide  exact hn hb
See it in the graphDiscuss this resultChallenge it