in1277_seven_block_1_factorcritical
The displayed seven-vertex block 1 in the explicit control graph is 1-factor-critical.
Statement
theorem in1277_seven_block_1_factorcritical : is_k_factor_critical (in1261_seven_graph.induce {v | v ∈ ({7,8,9,10,11,12,13} : Finset (Fin 28))}) 1- Source
- OP-1957 seven-block control, experiment 43349
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 3
- in1261_seven_graphThe symmetric graph on 28 vertices whose unequal ordered endpoints avoid the displayed forbidden pairs.
- is_k_factor_criticalA simple graph G on a finite vertex type V is k-factor-critical if for every subset S of V with cardinality k, the induced subgraph on Sᶜ…
- in1261_seven_forbidden_orderedOrdered forbidden pairs of the explicit seven-by-seven boundary control graph.
- Used by 1
- in1261_seven_control_factorcritical_blocksEach of the four displayed seven-vertex induced blocks of the control graph is 1-factor-critical.
The proof, explained
To prove that the induced subgraph on the 7-vertex block B₁ = {7, 8, 9, 10, 11, 12, 13} is 1-factor-critical, we must show that deleting any single vertex r ∈ B₁ leaves a 6-vertex graph admitting a perfect matching. A general lemma shows that a perfect matching exists whenever there is an involution on the vertices that pairs each vertex with an adjacent one. The proof constructs an explicit function `in1277_block_1_table` providing such an involution on B₁ \ {r} for each choice of r. Exhaustive finite evaluation via `decide` verifies that this table always pairs adjacent vertices in the control graph, which immediately implies that the block is 1-factor-critical.
Adjacency in the explicit graph `in1261_seven_graph` is decidable. automation
Unfolding the definitions of `in1261_seven_graph` and `in1261_seven_forbidden_ordered` expresses adjacency as a quantifier-free boolean combination of equalities and inequalities on finite types, for which Lean synthesizes a `DecidableRel` instance.
unfold in1261_seven_graph in1261_seven_forbidden_ordered infer_instance
Given an involution f on the vertices of a graph G mapping every vertex to an adjacent vertex, the graph of f forms a valid spanning subgraph P of G.
We define a subgraph P whose vertex set is the entire vertex type (`Set.univ`) and whose edge set consists of all pairs (x, y) with y = f(x). Every such edge is an edge of G because x is adjacent to f(x) by assumption. The adjacency relation is symmetric because f is an involution: y = f(x) implies f(y) = f(f(x)) = x, so x = f(y).
uses
Set.mem_univclassical let P : G.Subgraph := ⟨Set.univ, fun x y => y = f x, by intro x y h; subst y; exact hadj x, by intro x y h; exact Set.mem_univ x, by constructor intro x y h subst y exact (hinv x).symm⟩
The subgraph P is a perfect matching of G.
By `SimpleGraph.Subgraph.isPerfectMatching_iff`, a subgraph is a perfect matching if and only if every vertex has a unique incident edge in P. For any vertex x, the unique neighbor in P is f(x), since the edge relation y = f(x) uniquely determines y.
uses
SimpleGraph.Subgraph.isPerfectMatching_iffrefine ⟨P, ?_⟩ rw [SimpleGraph.Subgraph.isPerfectMatching_iff] intro x exact ⟨f x, rfl, fun y h => h⟩
For any vertex subset A and any single removed vertex r ∈ A, the table function f(r, ·) defines a self-map `blockPartner` on the remaining vertices A \ {r}.
Let S ⊆ A have cardinality 1. By `Finset.card_eq_one.mp`, S = {r} for some r ∈ A. We consider the induced subgraph H on A \ {r}. For every remaining vertex x ∈ A \ {r}, hypothesis h guarantees that f(r, x) ∈ A and f(r, x) ≠ r, meaning f(r, x) ∈ A \ {r}. Thus f(r, ·) restricts to a well-defined map `blockPartner` from the vertices of H to itself.
uses
Finset.card_eq_one.mp,Finset.coe_singleton,Set.mem_singleton_iff,Set.mem_compl_iff,Subtype.ext,congrArgclassical intro S hS obtain ⟨r, rfl⟩ := Finset.card_eq_one.mp hS let H := (in1261_seven_graph.induce {v | v ∈ A}).induce ((↑({r} : Finset {v // v ∈ A}) : Set {v // v ∈ A})ᶜ) let blockPartner : {x : {v // v ∈ A} // x ∈ (↑({r} : Finset {v // v ∈ A}) : Set {v // v ∈ A})ᶜ} → {x : {v // v ∈ A} // x ∈ (↑({r} : Finset {v // v ∈ A}) : Set {v // v ∈ A})ᶜ} := fun x => ⟨⟨f r.val x.val.val, (h r.val x.val.val r.property x.val.property (by intro e; apply x.property; simp only [Finset.coe_singleton, Set.mem_singleton_iff]; exact Subtype.ext e)).1⟩, by simp only [Finset.coe_singleton, Set.mem_compl_iff, Set.mem_singleton_iff] intro e have he := congrArg Subtype.val e exact (h r.val x.val.val r.property x.val.property (by intro ee; apply x.property; simp only [Finset.coe_singleton, Set.mem_singleton_iff]; exact Subtype.ext ee)).2.1 he⟩
If the table function f(r, ·) is an involution and preserves adjacency on A \ {r} for every r ∈ A, then the induced subgraph on A is 1-factor-critical.
We apply `in1277_block_1_perfect_matching_of_adjacency_involution` to the induced subgraph H on A \ {r} and the map `blockPartner`. By hypothesis h, `blockPartner` is an involution (f(r, f(r, x)) = x) and connects every vertex x to an adjacent vertex in H. The lemma therefore provides a perfect matching in H = A \ {r}. Since r ∈ A was arbitrary, the induced subgraph on A is 1-factor-critical.
uses
in1277_block_1_perfect_matching_of_adjacency_involution,Subtype.ext,Finset.coe_singleton,Set.mem_singleton_iffapply in1277_block_1_perfect_matching_of_adjacency_involution H blockPartner · intro x apply Subtype.ext apply Subtype.ext exact (h r.val x.val.val r.property x.val.property (by intro e; apply x.property; simp only [Finset.coe_singleton, Set.mem_singleton_iff]; exact Subtype.ext e)).2.2.1 · intro x exact (h r.val x.val.val r.property x.val.property (by intro e; apply x.property; simp only [Finset.coe_singleton, Set.mem_singleton_iff]; exact Subtype.ext e)).2.2.2
The explicit table `in1277_block_1_table` satisfies all required involution and adjacency conditions on {7, 8, 9, 10, 11, 12, 13}. automation
The `decide` tactic checks the condition by exhaustive finite evaluation over all pairs (r, x) with r, x ∈ {7, 8, 9, 10, 11, 12, 13} and x ≠ r, verifying that the partner is in the block, differs from r, is an involution, and is adjacent to x in `in1261_seven_graph`.
decideThe induced subgraph on block 1, {7, 8, 9, 10, 11, 12, 13}, is 1-factor-critical.
The result follows by applying the reduction lemma `in1277_block_1_factor_block_from_table` with A = {7, 8, 9, 10, 11, 12, 13}, the lookup table `in1277_block_1_table`, and the verified validity theorem `in1277_block_1_table_valid`.
uses
in1277_block_1_factor_block_from_table,in1277_block_1_table_validexact in1277_block_1_factor_block_from_table _ in1277_block_1_table in1277_block_1_table_valid
congrArg- Applying a function to both sides of an equality preserves the equality.
Finset.card_eq_one.mp- A finite set has cardinality 1 if and only if it is a singleton.
Finset.coe_singleton- The coercion of a singleton finset {a} to a set is the singleton set {a}.
in1277_block_1_factor_block_from_table- An induced subgraph on a vertex set A is 1-factor-critical if there is a function f(r, x) that, for each deleted vertex r ∈ A, defines an adjacency-preserving involution on A \ {r}.
in1277_block_1_perfect_matching_of_adjacency_involution- If a function on the vertices of a graph is an involution and connects every vertex to an adjacent vertex, then the graph admits a perfect matching.
in1277_block_1_table_valid- The explicit table in1277_block_1_table defines an involution without fixed points on {7,8,9,10,11,12,13} \ {r} for each r ∈ {7,8,9,10,11,12,13}, and every vertex is adjacent to its partner.
Set.mem_compl_iff- An element belongs to the complement of a set if and only if it does not belong to the set.
Set.mem_singleton_iff- An element belongs to a singleton set {b} if and only if it equals b.
Set.mem_univ- Every element of a type belongs to its universal set Set.univ.
SimpleGraph.Subgraph.isPerfectMatching_iff- A subgraph is a perfect matching if and only if every vertex of the ambient graph has exactly one neighbor in the subgraph.
Subtype.ext- Two elements of a subtype are equal if and only if their underlying values are equal.
- Verification of the matching table in Step 6 is entirely automated by `decide`, which exhaustively checks all pairs of vertices by finite computation.
- Subtype coercions and memberships for induced subgraphs and complements (in Steps 4 and 5) require explicit proof terms in Lean that have no counterpart in an informal paper proof.
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.
set_option maxHeartbeats 4000000set_option maxRecDepth 10000set_option linter.all falselocal instance aftdLocal_ee8c8ba2eaeba4dc_0 : DecidableRel in1261_seven_graph.Adj := by unfold in1261_seven_graph in1261_seven_forbidden_ordered infer_instanceprivate theorem in1277_block_1_perfect_matching_of_adjacency_involution {V : Type*} (G : SimpleGraph V) (f : V → V) (hinv : Function.Involutive f) (hadj : ∀ x, G.Adj x (f x)) : ∃ P : G.Subgraph, P.IsPerfectMatching := by classical let P : G.Subgraph := ⟨Set.univ, fun x y => y = f x, by intro x y h; subst y; exact hadj x, by intro x y h; exact Set.mem_univ x, by constructor intro x y h subst y exact (hinv x).symm⟩ refine ⟨P, ?_⟩ rw [SimpleGraph.Subgraph.isPerfectMatching_iff] intro x exact ⟨f x, rfl, fun y h => h⟩private theorem in1277_block_1_factor_block_from_table (A : Finset (Fin 28)) (f : Fin 28 → Fin 28 → Fin 28) (h : ∀ r x, r ∈ A → x ∈ A → x ≠ r → f r x ∈ A ∧ f r x ≠ r ∧ f r (f r x) = x ∧ in1261_seven_graph.Adj x (f r x)) : is_k_factor_critical (in1261_seven_graph.induce {v | v ∈ A}) 1 := by classical intro S hS obtain ⟨r, rfl⟩ := Finset.card_eq_one.mp hS let H := (in1261_seven_graph.induce {v | v ∈ A}).induce ((↑({r} : Finset {v // v ∈ A}) : Set {v // v ∈ A})ᶜ) let blockPartner : {x : {v // v ∈ A} // x ∈ (↑({r} : Finset {v // v ∈ A}) : Set {v // v ∈ A})ᶜ} → {x : {v // v ∈ A} // x ∈ (↑({r} : Finset {v // v ∈ A}) : Set {v // v ∈ A})ᶜ} := fun x => ⟨⟨f r.val x.val.val, (h r.val x.val.val r.property x.val.property (by intro e; apply x.property; simp only [Finset.coe_singleton, Set.mem_singleton_iff]; exact Subtype.ext e)).1⟩, by simp only [Finset.coe_singleton, Set.mem_compl_iff, Set.mem_singleton_iff] intro e have he := congrArg Subtype.val e exact (h r.val x.val.val r.property x.val.property (by intro ee; apply x.property; simp only [Finset.coe_singleton, Set.mem_singleton_iff]; exact Subtype.ext ee)).2.1 he⟩ apply in1277_block_1_perfect_matching_of_adjacency_involution H blockPartner · intro x apply Subtype.ext apply Subtype.ext exact (h r.val x.val.val r.property x.val.property (by intro e; apply x.property; simp only [Finset.coe_singleton, Set.mem_singleton_iff]; exact Subtype.ext e)).2.2.1 · intro x exact (h r.val x.val.val r.property x.val.property (by intro e; apply x.property; simp only [Finset.coe_singleton, Set.mem_singleton_iff]; exact Subtype.ext e)).2.2.2private def in1277_block_1_table (r x : Fin 28) : Fin 28 := if r = 7 ∧ x = 8 then 9 else if r = 7 ∧ x = 9 then 8 else if r = 7 ∧ x = 10 then 11 else if r = 7 ∧ x = 11 then 10 else if r = 7 ∧ x = 12 then 13 else if r = 7 ∧ x = 13 then 12 else if r = 8 ∧ x = 7 then 13 else if r = 8 ∧ x = 13 then 7 else if r = 8 ∧ x = 9 then 10 else if r = 8 ∧ x = 10 then 9 else if r = 8 ∧ x = 11 then 12 else if r = 8 ∧ x = 12 then 11 else if r = 9 ∧ x = 7 then 8 else if r = 9 ∧ x = 8 then 7 else if r = 9 ∧ x = 10 then 11 else if r = 9 ∧ x = 11 then 10 else if r = 9 ∧ x = 12 then 13 else if r = 9 ∧ x = 13 then 12 else if r = 10 ∧ x = 7 then 13 else if r = 10 ∧ x = 13 then 7 else if r = 10 ∧ x = 8 then 9 else if r = 10 ∧ x = 9 then 8 else if r = 10 ∧ x = 11 then 12 else if r = 10 ∧ x = 12 then 11 else if r = 11 ∧ x = 7 then 8 else if r = 11 ∧ x = 8 then 7 else if r = 11 ∧ x = 9 then 10 else if r = 11 ∧ x = 10 then 9 else if r = 11 ∧ x = 12 then 13 else if r = 11 ∧ x = 13 then 12 else if r = 12 ∧ x = 7 then 13 else if r = 12 ∧ x = 13 then 7 else if r = 12 ∧ x = 8 then 9 else if r = 12 ∧ x = 9 then 8 else if r = 12 ∧ x = 10 then 11 else if r = 12 ∧ x = 11 then 10 else if r = 13 ∧ x = 7 then 8 else if r = 13 ∧ x = 8 then 7 else if r = 13 ∧ x = 9 then 10 else if r = 13 ∧ x = 10 then 9 else if r = 13 ∧ x = 11 then 12 else if r = 13 ∧ x = 12 then 11 else xprivate theorem in1277_block_1_table_valid : ∀ r x : Fin 28, r ∈ ({7,8,9,10,11,12,13} : Finset (Fin 28)) → x ∈ ({7,8,9,10,11,12,13} : Finset (Fin 28)) → x ≠ r → in1277_block_1_table r x ∈ ({7,8,9,10,11,12,13} : Finset (Fin 28)) ∧ in1277_block_1_table r x ≠ r ∧ in1277_block_1_table r (in1277_block_1_table r x) = x ∧ in1261_seven_graph.Adj x (in1277_block_1_table r x) := by decidetheorem in1277_seven_block_1_factorcritical : is_k_factor_critical (in1261_seven_graph.induce {v | v ∈ ({7,8,9,10,11,12,13} : Finset (Fin 28))}) 1 := by exact in1277_block_1_factor_block_from_table _ in1277_block_1_table in1277_block_1_table_valid