AFTD Auto-Formalizing Theoretical Domains

pk_free_hole_four_site_gate_complete

theoremverified

Suppose a vertex outside an induced k-cycle in a P_k-free graph, k at least five, has at least one neighbor on the cycle and all such neighbors lie among its first four consecutive vertices. In any connected set D outside the closed neighborhood of that cycle, this vertex is adjacent to all of D as soon as it sees one vertex of D.

Statement

theorem pk_free_hole_four_site_gate_complete {V : Type*} (G : SimpleGraph V) {k : ℕ}
    (hk : 5 ≤ k) (hp : IsPkFree G k) (f : SimpleGraph.cycleGraph k ↪g G)
    (D : Set V) (hD : (G.induce D).Preconnected)
    (far : ∀ x∈D, ∀ j, x ≠ f j ∧ ¬G.Adj x (f j))
    (a : V) (ha : ∀ j, a ≠ f j) (touch : ∃ j, G.Adj a (f j))
    (arc : ∀ j, G.Adj a (f j) → j.val < 4) (meet : ∃ x∈D, G.Adj a x) :
    ∀ x ∈ D, G.Adj a x
Source
OP-606, longest-hole campaign in arXiv:2610.36290. Experiments 44743, 44746, 44748 and 44749.
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
  • pk_free_hole_tail_attachment_outside_short_arcIn a graph with no induced path on k vertices, fix an induced k-cycle in cyclic order and an induced path on d vertices disjoint from it,…
  • IsPkFreeA simple graph G is P_k-free if it contains no induced subgraph isomorphic to the path on k vertices.
  • g$g(S,M) = \dim_{\mathbb{F}_p}(S^{\perp}_M) - \dim_{\mathbb{F}_p}(S_M)$.
Used by 1

The proof, explained

To show that the vertex a is adjacent to every vertex in D, we first prove a local propagation lemma: if a is adjacent to u ∈ D and v ∈ D is adjacent to u, then a must also be adjacent to v. If a were not adjacent to v, the vertices v, u, a would form an induced 3-vertex path that is disjoint from the cycle f and attaches to f only at the endpoint a. By an existing attachment theorem for P_k-free graphs with k ≥ 5, such a path must attach to the cycle at some index at least 3 + 1 = 4, contradicting the hypothesis that all neighbors of a on the cycle have index strictly less than 4. Adjacency to a then extends along any walk in the induced subgraph on D by induction, and since D is preconnected, it reaches every vertex of D from the initial neighbor.

  1. Any three vertices x, y, z with x ~ y, y ~ z, x ≁ z, and x ≠ z define an induced path embedding of P₃ into G.

    We define `Op606Gate.path3` sending the vertices 0, 1, 2 of P₃ to x, y, z respectively. Injectivity and the equivalence of adjacency in P₃ with adjacency in G are verified by exhausting all pairs of indices in {0, 1, 2} and simplifying using the adjacency relations and `SimpleGraph.pathGraph_adj`.

    lines 3–18

    uses SimpleGraph.pathGraph_adj

    private def path3 {V : Type*} (G : SimpleGraph V) (x y z : V) (hxy : G.Adj x y) (hyz : G.Adj y z)
        (hxz : ¬G.Adj x z) (hne : x ≠ z) : SimpleGraph.pathGraph 3 ↪g G where
      toFun := ![x,y,z]
      inj' := by
        have h₁ := hxy.ne
        have h₂ := hyz.ne
        intro i j h
        fin_cases i <;> fin_cases j <;> simp_all
      map_rel_iff' := by
        have h₁ := hxy.symm
        have h₂ := hyz.symm
        have h₃ : ¬G.Adj z x := fun h => hxz h.symm
        intro i j
        change G.Adj (![x,y,z] i) (![x,y,z] j) ↔ (SimpleGraph.pathGraph 3).Adj i j
        fin_cases i <;> fin_cases j <;> simp_all [SimpleGraph.pathGraph_adj]
    
  2. Assuming a is adjacent to u ∈ D and v ∈ D is a neighbor of u not adjacent to a, the vertices v, u, a form an induced 3-vertex path in G.

    To prove the local step `hop` (that adjacency to a propagates across any edge in D), we proceed by contradiction and suppose a is not adjacent to v. Because v ∈ D cannot see the cycle f, but a has a neighbor on f, we have v ≠ a. Since v ~ u and u ~ a while v ≁ a and v ≠ a, the helper `path3` yields an induced path p = (v, u, a) of length 2 (3 vertices).

    lines 28–36

      classical
      have hop (u v : D) (uv : (G.induce D).Adj u v) (hu : G.Adj a u.val) : G.Adj a v.val := by
        by_contra hv
        have hva : ¬G.Adj v.val a := fun h => hv h.symm
        have hne : v.val ≠ a := by
          intro he
          obtain ⟨i,hi⟩ := touch
          exact (far v.val v.property i).2 (he ▸ hi)
        let p := Op606Gate.path3 G v.val u.val a uv.symm hu.symm hva hne
  3. The induced path p = (v, u, a) is disjoint from the cycle f and has edges to f only at its endpoint a.

    For disjointness (`apart`), vertices v and u belong to D, so by hypothesis `far` they do not lie on f; the vertex a also does not lie on f by hypothesis `ha`. For the attachment condition (`onlyEnd`), neither v nor u can be adjacent to any vertex of f by `far`, which leaves the endpoint a = p(2) as the only possible neighbor of f along p.

    lines 37–46

        have apart (i : Fin 3) (j : Fin k) : p i ≠ f j := by
          fin_cases i
          · exact (far v.val v.property j).1
          · exact (far u.val u.property j).1
          · exact ha j
        have onlyEnd (i : Fin 3) (j : Fin k) (h : G.Adj (p i) (f j)) : i=2 := by
          fin_cases i
          · exact ((far v.val v.property j).2 h).elim
          · exact ((far u.val u.property j).2 h).elim
          · rfl
  4. The existence of the path p leads to a contradiction, establishing that a must be adjacent to v.

    Because p is an induced path of d = 3 vertices in a P_k-free graph with d + 1 = 4 < 5 ≤ k attaching to the hole f only at its endpoint a, `pk_free_hole_tail_attachment_outside_short_arc` implies that a must have a neighbor on f at index j ≥ 4. However, the hypothesis `arc` asserts that all neighbors of a on f have index strictly less than 4. By `not_lt_of_ge`, these two inequalities contradict each other, completing the proof of `hop`.

    lines 47–49

    uses pk_free_hole_tail_attachment_outside_short_arc, not_lt_of_ge

        obtain ⟨j,hj,h⟩ := pk_free_hole_tail_attachment_outside_short_arc G (by decide : 0 < 3) (by omega)
          hp f p apart 2 (by decide) onlyEnd touch
        exact (not_lt_of_ge hj) (arc j h)
  5. If a is adjacent to u ∈ D, then a is adjacent to the end vertex of any walk in D starting from u.

    We prove this lemma (`pass`) by induction on the walk w from u to v in the induced subgraph G[D]. The base case (an empty walk) is trivial. In the inductive step, adjacency to a transfers across the first step of the walk using `hop`, and the induction hypothesis carries it to the end.

    lines 50–53

      have pass {u v : D} (w : (G.induce D).Walk u v) : G.Adj a u.val → G.Adj a v.val := by
        induction w with
        | nil => exact id
        | cons e _ ih => exact fun h => ih (hop _ _ e h)
  6. The vertex a is adjacent to every vertex in D.

    By hypothesis `meet`, there is some vertex u ∈ D adjacent to a. Given any v ∈ D, because the induced subgraph on D is preconnected (`hD`), there exists a walk in D connecting u to v. Applying `pass` along this walk concludes that a is adjacent to v.

    lines 54–56

      obtain ⟨u,hu,adj⟩ := meet
      intro v hv
      exact pass ((hD ⟨u,hu⟩ ⟨v,hv⟩).some) adj
SimpleGraph.pathGraph_adj
In the path graph on n vertices, two vertices are adjacent if and only if their indices differ by 1.
pk_free_hole_tail_attachment_outside_short_arc
In a P_k-free graph, if an induced path of d vertices (with d + 1 < k) is disjoint from an induced k-cycle and attaches to the cycle only through its final endpoint, and that endpoint has a neighbor on the cycle, then it must have a neighbor on the cycle at index at least d + 1.
not_lt_of_ge
In a preorder, if a ≤ b then b is not strictly less than a.

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

namespace Op606Gateprivate def path3 {V : Type*} (G : SimpleGraph V) (x y z : V) (hxy : G.Adj x y) (hyz : G.Adj y z)    (hxz : ¬G.Adj x z) (hne : x ≠ z) : SimpleGraph.pathGraph 3 ↪g G where  toFun := ![x,y,z]  inj' := by    have h₁ := hxy.ne    have h₂ := hyz.ne    intro i j h    fin_cases i <;> fin_cases j <;> simp_all  map_rel_iff' := by    have h₁ := hxy.symm    have h₂ := hyz.symm    have h₃ : ¬G.Adj z x := fun h => hxz h.symm    intro i j    change G.Adj (![x,y,z] i) (![x,y,z] j) ↔ (SimpleGraph.pathGraph 3).Adj i j    fin_cases i <;> fin_cases j <;> simp_all [SimpleGraph.pathGraph_adj]end Op606Gatetheorem pk_free_hole_four_site_gate_complete {V : Type*} (G : SimpleGraph V) {k : ℕ}    (hk : 5 ≤ k) (hp : IsPkFree G k) (f : SimpleGraph.cycleGraph k ↪g G)    (D : Set V) (hD : (G.induce D).Preconnected)    (far : ∀ x∈D, ∀ j, x ≠ f j ∧ ¬G.Adj x (f j))    (a : V) (ha : ∀ j, a ≠ f j) (touch : ∃ j, G.Adj a (f j))    (arc : ∀ j, G.Adj a (f j) → j.val < 4) (meet : ∃ x∈D, G.Adj a x) :    ∀ x ∈ D, G.Adj a x := by  classical  have hop (u v : D) (uv : (G.induce D).Adj u v) (hu : G.Adj a u.val) : G.Adj a v.val := by    by_contra hv    have hva : ¬G.Adj v.val a := fun h => hv h.symm    have hne : v.val ≠ a := by      intro he      obtain ⟨i,hi⟩ := touch      exact (far v.val v.property i).2 (he ▸ hi)    let p := Op606Gate.path3 G v.val u.val a uv.symm hu.symm hva hne    have apart (i : Fin 3) (j : Fin k) : p i ≠ f j := by      fin_cases i      · exact (far v.val v.property j).1      · exact (far u.val u.property j).1      · exact ha j    have onlyEnd (i : Fin 3) (j : Fin k) (h : G.Adj (p i) (f j)) : i=2 := by      fin_cases i      · exact ((far v.val v.property j).2 h).elim      · exact ((far u.val u.property j).2 h).elim      · rfl    obtain ⟨j,hj,h⟩ := pk_free_hole_tail_attachment_outside_short_arc G (by decide : 0 < 3) (by omega)      hp f p apart 2 (by decide) onlyEnd touch    exact (not_lt_of_ge hj) (arc j h)  have pass {u v : D} (w : (G.induce D).Walk u v) : G.Adj a u.val → G.Adj a v.val := by    induction w with    | nil => exact id    | cons e _ ih => exact fun h => ih (hop _ _ e h)  obtain ⟨u,hu,adj⟩ := meet  intro v hv  exact pass ((hD ⟨u,hu⟩ ⟨v,hv⟩).some) adj
See it in the graphDiscuss this resultChallenge it