AFTD Auto-Formalizing Theoretical Domains

in1261_seven_target_edge_not_extendible

theoremverified

Deleting the edge from vertex 0 to vertex 14 leaves the explicit seven-by-seven control graph not 7-extendible.

Statement

theorem in1261_seven_target_edge_not_extendible:
    ¬ is_k_extendable (in1261_seven_graph.deleteEdges {s((0 : Fin 28),(14 : Fin 28))}) 7
Source
OP-1957: finite seven-by-seven control from experiment 43349; related problem arXiv:2611.22690.
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 7
  • in1261_seven_graphThe symmetric graph on 28 vertices whose unequal ordered endpoints avoid the displayed forbidden pairs.
  • 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…
  • indexed_disjoint_cross_edges_form_matchingInjectively indexed edges with disjoint endpoint ranges form a matching of the expected size.
  • odd_groups_budget_after_forced_matchingOdd anticomplete groups disjoint from a forced matching require distinct matching partners outside the groups and outside the forced…
  • in1261_seven_forbidden_orderedOrdered forbidden pairs of the explicit seven-by-seven boundary control graph.
  • g$g(S,M) = \dim_{\mathbb{F}_p}(S^{\perp}_M) - \dim_{\mathbb{F}_p}(S_M)$.
  • FThe prime field $\mathrm{GF}(p)$, realized as $\mathbb{Z}/p\mathbb{Z}$ via ZMod.
Used by 1

The proof, explained

To show that the graph is not 7-extendable, we assume for contradiction that every 7-edge matching extends to a perfect matching. We exhibit an explicit 7-edge matching M on 14 vertices and an isolated family of 3 odd vertex subsets whose union L has size 13 and is disjoint from M. By a Tutte-type parity barrier argument (odd_groups_budget_after_forced_matching), each of the 3 odd components requires a distinct vertex outside L not covered by M to be matched to, but only 28 - 13 - 14 = 1 such vertex exists, yielding the contradiction 3 ≤ 1.

  1. Adjacency in the graph in1261_seven_graph is decidable. automation

    Unfolding the definitions of in1261_seven_graph and its forbidden ordered pairs in1261_seven_forbidden_ordered reduces adjacency to decidable boolean arithmetic, allowing Lean's typeclass synthesis to synthesize a DecidableRel instance.

    lines 3–5

    local instance  aftdLocal_e6441a87442aa8c3_0 : DecidableRel in1261_seven_graph.Adj := by
      unfold in1261_seven_graph in1261_seven_forbidden_ordered
      infer_instance
  2. The vertex sequences f and g are disjoint from the barrier sets F i. automation

    A direct computational check (decide) verifies that none of the 14 vertices defined by f and g belong to any of the three candidate barrier sets F 0, F 1, or F 2.

    lines 6–12

    private theorem in1261_free_test :
      let f : Fin 7 → Fin 28 := ![5,15,17,19,22,24,26]
      let g : Fin 7 → Fin 28 := ![6,16,18,20,23,25,27]
      let F : Fin 3 → Finset (Fin 28) := ![{0},{1,2,3},{7,8,9,10,11,12,13,14,21}]
      ∀ i : Fin 3, ∀ u : Fin 28, u ∈ F i →
        (∀ t : Fin 7, f t ≠ u) ∧ (∀ t : Fin 7, g t ≠ u) := by
      decide
  3. Assume for contradiction that the graph is 7-extendable and define the matching sequences f and g.

    We assume for contradiction that the graph H, obtained by removing the edge between vertices 0 and 14 from in1261_seven_graph, is 7-extendable. We define two sequences f and g of 7 vertices each, representing candidate edge endpoints.

    lines 16–20

      classical
      intro hExt
      let H := in1261_seven_graph.deleteEdges {s((0 : Fin 28),(14 : Fin 28))}
      let f : Fin 7 → Fin 28 := ![5,15,17,19,22,24,26]
      let g : Fin 7 → Fin 28 := ![6,16,18,20,23,25,27]
  4. The sequences f and g define 7 pairwise disjoint edges in H. automation

    Exhaustive finite case analysis shows that f and g are injective, their ranges are disjoint, and each pair (f(i), g(i)) is an adjacent edge in H.

    lines 21–24

      have hf : Function.Injective f := by intro i j h; fin_cases i <;> fin_cases j <;> simp_all [f]
      have hg : Function.Injective g := by intro i j h; fin_cases i <;> fin_cases j <;> simp_all [g]
      have hfg : ∀ i j, f i ≠ g j := by intro i j; fin_cases i <;> fin_cases j <;> decide
      have hadj : ∀ i, H.Adj (f i) (g i) := by intro i; fin_cases i <;> decide
  5. The 7 edges form a matching M in H, which extends to a perfect matching P.

    By indexed_disjoint_cross_edges_form_matching, the edges (f(i), g(i)) form a 7-edge matching M whose vertex set is the range of f union the range of g. The assumption that H is 7-extendable implies that M extends to a perfect matching P of H.

    lines 25–26

    uses indexed_disjoint_cross_edges_form_matching

      obtain ⟨M,hM,hMcard,hMverts⟩ := indexed_disjoint_cross_edges_form_matching H 7 f g hf hg hfg hadj
      obtain ⟨P,hP,hMP⟩ := hExt.2.2 M hM hMcard
  6. Define the three odd sets F 0, F 1, F 2 and their union L.

    We define F 0 = {0}, F 1 = {1, 2, 3}, and F 2 = {7, 8, 9, 10, 11, 12, 13, 14, 21}, and set L to be the 13-element set containing all of them.

    lines 27–28

      let F : Fin 3 → Finset (Fin 28) := ![{0},{1,2,3},{7,8,9,10,11,12,13,14,21}]
      let L : Finset (Fin 28) := {0,1,2,3,7,8,9,10,11,12,13,14,21}
  7. The sets F i are pairwise disjoint, odd-sized subsets of L with no edges to the rest of L. automation

    By exhaustive finite checks, each F i is a subset of L, each has odd cardinality (1, 3, and 9 respectively), they are mutually disjoint, and there are no edges in H between any F i and L \\ F i. In particular, the absence of an edge between 0 and 14 holds because that edge was explicitly deleted from the graph.

    lines 29–36

      have hsub : ∀ i ∈ (Finset.univ : Finset (Fin 3)), F i ⊆ L := by
        intro i hi; fin_cases i <;> decide
      have hodd : ∀ i ∈ (Finset.univ : Finset (Fin 3)), Odd (F i).card := by
        intro i hi; fin_cases i <;> decide
      have hdis : ∀ i ∈ (Finset.univ : Finset (Fin 3)), ∀ j ∈ (Finset.univ : Finset (Fin 3)), i ≠ j → Disjoint (F i) (F j) := by
        intro i hi j hj hij; fin_cases i <;> fin_cases j <;> simp_all [F] <;> decide
      have hanti : ∀ i ∈ (Finset.univ : Finset (Fin 3)), ∀ u ∈ F i, ∀ v ∈ L, v ∉ F i → ¬ H.Adj u v := by
        intro i hi; fin_cases i <;> decide
  8. The matching M is completely disjoint from the sets F i.

    Using the precomputed lemma in1261_free_test, no vertex in F i appears in f or g. Rewriting the vertex set of M as the union of the ranges of f and g via Set.mem_union, Set.mem_range, not_or, and not_exists shows that M.verts contains no vertex from any F i.

    lines 37–44

    uses in1261_free_test, Set.mem_union, Set.mem_range, not_or, not_exists

      have hfree0 : ∀ i : Fin 3, ∀ u : Fin 28, u ∈ F i →
          (∀ t : Fin 7, f t ≠ u) ∧ (∀ t : Fin 7, g t ≠ u) := by
        simpa only [F,f,g] using in1261_free_test
      have hfree : ∀ i ∈ (Finset.univ : Finset (Fin 3)), ∀ u ∈ F i, u ∉ M.verts := by
        intro i hi u hu
        rw [hMverts]
        simp only [Set.mem_union, Set.mem_range, not_or, not_exists]
        exact hfree0 i u hu
  9. The parity barrier inequality forces 3 ≤ 1, reaching a contradiction. automation

    By odd_groups_budget_after_forced_matching, each of the 3 odd subsets F i requires an unmatched vertex outside L not covered by M, so 3 ≤ |(V \\ L) \\ M.verts|. Out of 28 vertices, L contains 13 and M contains 14 disjoint vertices, leaving only 1 available vertex (vertex 4). Simplifying 3 ≤ 1 yields False, completing the proof by contradiction.

    lines 45–50

    uses odd_groups_budget_after_forced_matching

      have hb := odd_groups_budget_after_forced_matching H P M hP hM hMP Finset.univ F L hsub hodd hdis hanti hfree
      have hcard : ((Finset.univ \ L).filter (fun v => v ∉ M.verts)).card=1 := by
        simp only [hMverts]
        decide
      rw [hcard] at hb
      simp at hb
indexed_disjoint_cross_edges_form_matching
A family of r edges between two disjoint lists of distinct vertices forms a matching of size r whose vertex set is the union of the two lists.
in1261_free_test
None of the vertices in any of the three sets F i are in the range of f or g.
Set.mem_union
An element belongs to the union of two sets if and only if it belongs to the first set or the second set.
Set.mem_range
An element belongs to the range of a function if and only if it is the image of some input.
not_or
Neither P nor Q holds if and only if P is false and Q is false.
not_exists
No element satisfies P if and only if every element fails P.
odd_groups_budget_after_forced_matching
If a matching T extends to a perfect matching P, any family of pairwise disjoint odd subsets in L that have no edges to L \\ F_i and avoid T requires at least as many available vertices in V \\ L not covered by T as there are odd subsets.

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 maxHeartbeats 4000000set_option linter.all falselocal instance  aftdLocal_e6441a87442aa8c3_0 : DecidableRel in1261_seven_graph.Adj := by  unfold in1261_seven_graph in1261_seven_forbidden_ordered  infer_instanceprivate theorem in1261_free_test :  let f : Fin 7 → Fin 28 := ![5,15,17,19,22,24,26]  let g : Fin 7 → Fin 28 := ![6,16,18,20,23,25,27]  let F : Fin 3 → Finset (Fin 28) := ![{0},{1,2,3},{7,8,9,10,11,12,13,14,21}]  ∀ i : Fin 3, ∀ u : Fin 28, u ∈ F i →    (∀ t : Fin 7, f t ≠ u) ∧ (∀ t : Fin 7, g t ≠ u) := by  decidetheorem in1261_seven_target_edge_not_extendible:    ¬ is_k_extendable (in1261_seven_graph.deleteEdges {s((0 : Fin 28),(14 : Fin 28))}) 7 := by  classical  intro hExt  let H := in1261_seven_graph.deleteEdges {s((0 : Fin 28),(14 : Fin 28))}  let f : Fin 7 → Fin 28 := ![5,15,17,19,22,24,26]  let g : Fin 7 → Fin 28 := ![6,16,18,20,23,25,27]  have hf : Function.Injective f := by intro i j h; fin_cases i <;> fin_cases j <;> simp_all [f]  have hg : Function.Injective g := by intro i j h; fin_cases i <;> fin_cases j <;> simp_all [g]  have hfg : ∀ i j, f i ≠ g j := by intro i j; fin_cases i <;> fin_cases j <;> decide  have hadj : ∀ i, H.Adj (f i) (g i) := by intro i; fin_cases i <;> decide  obtain ⟨M,hM,hMcard,hMverts⟩ := indexed_disjoint_cross_edges_form_matching H 7 f g hf hg hfg hadj  obtain ⟨P,hP,hMP⟩ := hExt.2.2 M hM hMcard  let F : Fin 3 → Finset (Fin 28) := ![{0},{1,2,3},{7,8,9,10,11,12,13,14,21}]  let L : Finset (Fin 28) := {0,1,2,3,7,8,9,10,11,12,13,14,21}  have hsub : ∀ i ∈ (Finset.univ : Finset (Fin 3)), F i ⊆ L := by    intro i hi; fin_cases i <;> decide  have hodd : ∀ i ∈ (Finset.univ : Finset (Fin 3)), Odd (F i).card := by    intro i hi; fin_cases i <;> decide  have hdis : ∀ i ∈ (Finset.univ : Finset (Fin 3)), ∀ j ∈ (Finset.univ : Finset (Fin 3)), i ≠ j → Disjoint (F i) (F j) := by    intro i hi j hj hij; fin_cases i <;> fin_cases j <;> simp_all [F] <;> decide  have hanti : ∀ i ∈ (Finset.univ : Finset (Fin 3)), ∀ u ∈ F i, ∀ v ∈ L, v ∉ F i → ¬ H.Adj u v := by    intro i hi; fin_cases i <;> decide  have hfree0 : ∀ i : Fin 3, ∀ u : Fin 28, u ∈ F i →      (∀ t : Fin 7, f t ≠ u) ∧ (∀ t : Fin 7, g t ≠ u) := by    simpa only [F,f,g] using in1261_free_test  have hfree : ∀ i ∈ (Finset.univ : Finset (Fin 3)), ∀ u ∈ F i, u ∉ M.verts := by    intro i hi u hu    rw [hMverts]    simp only [Set.mem_union, Set.mem_range, not_or, not_exists]    exact hfree0 i u hu  have hb := odd_groups_budget_after_forced_matching H P M hP hM hMP Finset.univ F L hsub hodd hdis hanti hfree  have hcard : ((Finset.univ \ L).filter (fun v => v ∉ M.verts)).card=1 := by    simp only [hMverts]    decide  rw [hcard] at hb  simp at hb
See it in the graphDiscuss this resultChallenge it