AFTD Auto-Formalizing Theoretical Domains

op1957_barrier_count_example_not_extendible

theoremverified

The explicit 44-vertex barrier count example is not 11-extendible.

Statement

theorem op1957_barrier_count_example_not_extendible :
    ¬ is_k_extendable op1957_barrier_count_example_graph 11
Source
OP-1957; explicit graph from the saturated barrier count model, experiments 39772, 39775 and 39778.
Verified
26 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 6

The proof, explained

The proof proceeds by contradiction, assuming the graph is 11-extendible. A 22-vertex subset S is shown to possess a perfect matching via an explicit involution f. By 11-extendibility, the 22-vertex complement R must also possess a perfect matching. However, a 7-vertex subset U of R has its entire neighborhood in R contained in a 6-vertex subset T, which contradicts Hall-like neighborhood bounds for matchings.

  1. The forbidden relation and graph adjacency are decidable.

    By unfolding the definition of forbidden pairs into finite arithmetic conditions and synthesizing the decidability instance, both the forbidden edge relation and graph adjacency are decidable.

    lines 4–10

    instance : DecidableRel op1957_barrier_count_example_forbidden := fun _ _ => by
      unfold op1957_barrier_count_example_forbidden
      infer_instance
    
    instance : DecidableRel op1957_barrier_count_example_graph.Adj := fun u v => by
      change Decidable (u ≠ v ∧ ¬ op1957_barrier_count_example_forbidden u v ∧ ¬ op1957_barrier_count_example_forbidden v u)
      infer_instance
  2. Assume for contradiction that the graph is 11-extendible.

    Assume the graph is 11-extendible to derive a contradiction.

    lines 26–27

      classical
      intro hext
  3. Construct an involution f on S which matches each vertex to an adjacent vertex.

    Define S as the complement of R, and define f by in1159_bad_mate, verifying by decision procedures that it is an involution on S and induces adjacent pairs.

    lines 28–34

    uses perfect_matching_of_adjacency_involution

      let S := {v : Fin 44 | v ∈ in1159_bad_S}
      let f (v : S) : S := ⟨in1159_bad_mate v.val, by revert v; decide⟩
      have hi : Function.Involutive f := by intro v; revert v; decide
      have ha : ∀ v : S, (op1957_barrier_count_example_graph.induce S).Adj v (f v) := by
        intro v; revert v; decide
      have hS : ∃ P : (op1957_barrier_count_example_graph.induce S).Subgraph, P.IsPerfectMatching :=
        perfect_matching_of_adjacency_involution _ f hi ha
  4. The cardinality of S is 22 = 2 * 11, and S complement is R.

    Compute the size of S and show its complement is R.

    lines 35–41

    uses Set.ncard_coe_finset

      have hsize : S.ncard = 2*11 := by
        change (in1159_bad_S : Set (Fin 44)).ncard = 2*11
        rw [Set.ncard_coe_finset]
        decide
      have hcomp : Sᶜ = {v : Fin 44 | v ∈ in1159_bad_R} := by
        ext v
        simp [S,in1159_bad_S]
  5. The induced subgraph on R admits a perfect matching.

    Since the graph is 11-extendible and S has size 2*11 with a perfect matching, its complement R has a perfect matching.

    lines 42–43

    uses extendible_matchable_two_k_vertices_complement_matchable

      have hR := extendible_matchable_two_k_vertices_complement_matchable op1957_barrier_count_example_graph 11 hext S hsize hS
      rw [hcomp] at hR
  6. All neighbors of U in R belong to T.

    Check by decision procedure that U is a subset of R and every edge from U into R ends in T.

    lines 44–46

      have hU : in1159_bad_U ⊆ in1159_bad_R := by decide
      have hcover : ∀ u ∈ in1159_bad_U, ∀ v ∈ in1159_bad_R,
          op1957_barrier_count_example_graph.Adj u v → v ∈ in1159_bad_T := by decide
  7. The existence of a perfect matching forces |U| <= |T|, contradicting |U| = 7 and |T| = 6.

    A perfect matching on R restricts to an injection from U to its neighborhood in T, so |U| <= |T|, but |U|=7 and |T|=6.

    lines 47–50

    uses induced_perfect_matching_neighbors_card_bound

      have hb := induced_perfect_matching_neighbors_card_bound op1957_barrier_count_example_graph in1159_bad_R
        in1159_bad_U in1159_bad_T hU hcover hR
      have hn : ¬ in1159_bad_U.card ≤ in1159_bad_T.card := by decide
      exact hn hb

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 100000set_option maxHeartbeats 4000000instance : DecidableRel op1957_barrier_count_example_forbidden := fun _ _ => by  unfold op1957_barrier_count_example_forbidden  infer_instanceinstance : DecidableRel op1957_barrier_count_example_graph.Adj := fun u v => by  change Decidable (u ≠ v ∧ ¬ op1957_barrier_count_example_forbidden u v ∧ ¬ op1957_barrier_count_example_forbidden v u)  infer_instancedef in1159_bad_R : Finset (Fin 44) :=  {0,1,2,3,4,5,6,7,8,9,10,11,22,23,25,26,27,28,33,34,35,36}def in1159_bad_S : Finset (Fin 44) := Finset.univ \ in1159_bad_Rdef in1159_bad_U : Finset (Fin 44) := {5,6,7,8,9,10,11}def in1159_bad_T : Finset (Fin 44) := {22,23,25,26,27,28}def in1159_bad_mate : Fin 44 → Fin 44 :=  ![0,1,2,3,4,5,6,7,8,9,10,11,43,42,41,40,39,38,37,32,31,30,22,23,29,    25,26,27,28,24,21,20,19,33,34,35,36,18,17,16,15,14,13,12]theorem op1957_barrier_count_example_not_extendible :    ¬ is_k_extendable op1957_barrier_count_example_graph 11 := by  classical  intro hext  let S := {v : Fin 44 | v ∈ in1159_bad_S}  let f (v : S) : S := ⟨in1159_bad_mate v.val, by revert v; decide⟩  have hi : Function.Involutive f := by intro v; revert v; decide  have ha : ∀ v : S, (op1957_barrier_count_example_graph.induce S).Adj v (f v) := by    intro v; revert v; decide  have hS : ∃ P : (op1957_barrier_count_example_graph.induce S).Subgraph, P.IsPerfectMatching :=    perfect_matching_of_adjacency_involution _ f hi ha  have hsize : S.ncard = 2*11 := by    change (in1159_bad_S : Set (Fin 44)).ncard = 2*11    rw [Set.ncard_coe_finset]    decide  have hcomp : Sᶜ = {v : Fin 44 | v ∈ in1159_bad_R} := by    ext v    simp [S,in1159_bad_S]  have hR := extendible_matchable_two_k_vertices_complement_matchable op1957_barrier_count_example_graph 11 hext S hsize hS  rw [hcomp] at hR  have hU : in1159_bad_U ⊆ in1159_bad_R := by decide  have hcover : ∀ u ∈ in1159_bad_U, ∀ v ∈ in1159_bad_R,      op1957_barrier_count_example_graph.Adj u v → v ∈ in1159_bad_T := by decide  have hb := induced_perfect_matching_neighbors_card_bound op1957_barrier_count_example_graph in1159_bad_R    in1159_bad_U in1159_bad_T hU hcover hR  have hn : ¬ in1159_bad_U.card ≤ in1159_bad_T.card := by decide  exact hn hb
See it in the graphDiscuss this resultChallenge it