op1957_hidden_barrier_not_extendible
The 40-vertex hidden-barrier graph is not 10-extendible.
Statement
theorem op1957_hidden_barrier_not_extendible : ¬ is_k_extendable op1957_hidden_barrier_graph 10- Source
- OP-1957; hidden barrier relaxation, experiment 40492.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 5
- op1957_hidden_barrier_graphA balanced join of two 20-vertex hub-and-triangle graphs, with six cross edges deleted at one hub; auxiliary finite sets encode the…
- is_k_extendableFor a finite vertex type V (with [Fintype V]), a simple graph G : SimpleGraph V and k : ℕ, is_k_extendable G k is the Prop that is the…
- perfect_matching_odd_anticomplete_groups_boundIn a graph with a perfect matching, disjoint odd vertex groups that are anticomplete to the rest of L cannot outnumber vertices outside L.
- extendible_matchable_two_k_vertices_complement_matchableIn a finite k-extendible graph, the complement of any matchable set of exactly 2k vertices is matchable.
- perfect_matching_of_adjacency_involutionA simple graph has a perfect matching if it has an involution that sends every vertex to an adjacent vertex.
The proof, explained
Assume for contradiction that the 40-vertex hidden-barrier graph is 10-extendable. We exhibit an explicit 20-vertex subset S whose induced subgraph admits a perfect matching via an explicit involution. By 10-extendability, the 20-vertex complement R = Sᶜ must also admit a perfect matching; however, R contains a barrier of 7 pairwise disjoint, odd-sized anticomplete components inside a subset L, which by a Tutte-type counting bound requires |R \ L| ≥ 7, contradicting |R \ L| = 3.
Assume for contradiction that the graph is 10-extendable.
Assume for contradiction that op1957_hidden_barrier_graph is 10-extendable (intro hext), operating under classical logic.
set_option maxHeartbeats 4000000 in classical intro hext
The 20-vertex induced subgraph G[S] has a perfect matching.
Define S to be the 20-element subset in1209_hidden_S, and define f : S → S by pairing vertices via in1209_hidden_mate. Verification by finite exhaustion (decide) confirms that f is an involution and that every vertex v ∈ S is adjacent to f(v). Applying perfect_matching_of_adjacency_involution produces a perfect matching on G[S].
uses
perfect_matching_of_adjacency_involutionlet S := {v : Fin 40 | v ∈ in1209_hidden_S} let f (v : S) : S := ⟨in1209_hidden_mate v.val, by revert v; decide⟩ have hi : Function.Involutive f := by intro v; revert v; decide have ha : ∀ v : S, (op1957_hidden_barrier_graph.induce S).Adj v (f v) := by intro v revert v decide have hS : ∃ P : (op1957_hidden_barrier_graph.induce S).Subgraph, P.IsPerfectMatching := perfect_matching_of_adjacency_involution _ f hi ha
The induced subgraph on the complement R = Sᶜ has a perfect matching.
Compute that |S| = 20 = 2 · 10 using Set.ncard_coe_finset, and identify Sᶜ with the 20-element set in1209_hidden_R. By extendible_matchable_two_k_vertices_complement_matchable, the 10-extendability hypothesis implies that the complement G[R] must also possess a perfect matching.
uses
Set.ncard_coe_finset,extendible_matchable_two_k_vertices_complement_matchablehave hsize : S.ncard = 2*10 := by change (in1209_hidden_S : Set (Fin 40)).ncard = 2*10 rw [Set.ncard_coe_finset] decide have hcomp : Sᶜ = {v : Fin 40 | v ∈ in1209_hidden_R} := by ext v simp [S,in1209_hidden_R] have hR := extendible_matchable_two_k_vertices_complement_matchable op1957_hidden_barrier_graph 10 hext S hsize hS rw [hcomp] at hR
The complement R contains a barrier: seven pairwise disjoint odd sets in L that are mutually anticomplete within L.
Let R = in1209_hidden_R. Define an index set J of size 7, seven subsets F i ⊆ R, and a subset L ⊆ R consisting of vertices with index less than 20. Exhaustive checks by decide establish that each F i is contained in L, each F i has odd cardinality, the F i are pairwise disjoint, and there are no edges in G[R] between F i and L \ F i.
let R : Set (Fin 40) := {v | v ∈ in1209_hidden_R} let J : Finset (Fin 7) := Finset.univ let F : Fin 7 → Finset R := fun i => Finset.univ.filter (fun v => v.val ∈ in1209_hidden_group i) let L : Finset R := Finset.univ.filter (fun v => v.val.val < 20) have hsub : ∀ i ∈ J, F i ⊆ L := by intro i hi revert i decide have hodd : ∀ i ∈ J, Odd (F i).card := by intro i hi revert i decide have hdis : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → Disjoint (F i) (F j) := by intro i hi j hj hij revert i j decide have hanti : ∀ i ∈ J, ∀ u ∈ F i, ∀ v ∈ L, v ∉ F i → ¬ (op1957_hidden_barrier_graph.induce R).Adj u v := by intro i hi revert i decide
A Tutte-type parity barrier bound leads to a contradiction.
Let P be a perfect matching on G[R]. By perfect_matching_odd_anticomplete_groups_bound, the number of odd anticomplete groups inside L cannot exceed the number of vertices outside L, yielding |J| ≤ |R \ L|. However, |J| = 7 and |R \ L| = 3, so decide verifies ¬(|J| ≤ |R \ L|), which contradicts the bound and completes the proof.
uses
perfect_matching_odd_anticomplete_groups_boundobtain ⟨P,hP⟩ := hR have hb := perfect_matching_odd_anticomplete_groups_bound (op1957_hidden_barrier_graph.induce R) P hP J F L hsub hodd hdis hanti have hn : ¬ J.card ≤ ((Finset.univ : Finset R) \ L).card := by decide exact hn hb
perfect_matching_of_adjacency_involution- If an induced subgraph admits an involutive vertex map pairing each vertex with a neighbor, it has a perfect matching.
Set.ncard_coe_finset- The cardinality of a coerced finite set as a Set equals its cardinality as a Finset.
extendible_matchable_two_k_vertices_complement_matchable- In a k-extendable graph, if a set of 2k vertices induces a subgraph with a perfect matching, then its complement also induces a subgraph with a perfect matching.
perfect_matching_odd_anticomplete_groups_bound- In a graph with a perfect matching, the number of pairwise disjoint odd-sized vertex sets that are mutually anticomplete within a subset L cannot exceed the number of vertices outside L.
- Finite verifications of set inclusions, odd cardinalities, disjointness, anticompleteness, and arithmetic inequalities on finite graphs are discharged by computation using the decide tactic.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem op1957_hidden_barrier_not_extendible : ¬ is_k_extendable op1957_hidden_barrier_graph 10 := by set_option maxHeartbeats 4000000 in classical intro hext let S := {v : Fin 40 | v ∈ in1209_hidden_S} let f (v : S) : S := ⟨in1209_hidden_mate v.val, by revert v; decide⟩ have hi : Function.Involutive f := by intro v; revert v; decide have ha : ∀ v : S, (op1957_hidden_barrier_graph.induce S).Adj v (f v) := by intro v revert v decide have hS : ∃ P : (op1957_hidden_barrier_graph.induce S).Subgraph, P.IsPerfectMatching := perfect_matching_of_adjacency_involution _ f hi ha have hsize : S.ncard = 2*10 := by change (in1209_hidden_S : Set (Fin 40)).ncard = 2*10 rw [Set.ncard_coe_finset] decide have hcomp : Sᶜ = {v : Fin 40 | v ∈ in1209_hidden_R} := by ext v simp [S,in1209_hidden_R] have hR := extendible_matchable_two_k_vertices_complement_matchable op1957_hidden_barrier_graph 10 hext S hsize hS rw [hcomp] at hR let R : Set (Fin 40) := {v | v ∈ in1209_hidden_R} let J : Finset (Fin 7) := Finset.univ let F : Fin 7 → Finset R := fun i => Finset.univ.filter (fun v => v.val ∈ in1209_hidden_group i) let L : Finset R := Finset.univ.filter (fun v => v.val.val < 20) have hsub : ∀ i ∈ J, F i ⊆ L := by intro i hi revert i decide have hodd : ∀ i ∈ J, Odd (F i).card := by intro i hi revert i decide have hdis : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → Disjoint (F i) (F j) := by intro i hi j hj hij revert i j decide have hanti : ∀ i ∈ J, ∀ u ∈ F i, ∀ v ∈ L, v ∉ F i → ¬ (op1957_hidden_barrier_graph.induce R).Adj u v := by intro i hi revert i decide obtain ⟨P,hP⟩ := hR have hb := perfect_matching_odd_anticomplete_groups_bound (op1957_hidden_barrier_graph.induce R) P hP J F L hsub hodd hdis hanti have hn : ¬ J.card ≤ ((Finset.univ : Finset R) \ L).card := by decide exact hn hb