AFTD Auto-Formalizing Theoretical Domains

pk_free_hole_dominating_exit_two_turn_capture

theoremverified

In a P_k-free graph with an induced k-cycle, k at least six, let D be a connected far region whose boundary vertices have neighbors on the cycle. Start cops on sites 3 through k−1. Suppose a gate a belongs to the exits left uncovered by sites 4 through k−1, and every such exit is equal or adjacent to a. The cops have a single legal joint move after which every possible robber reply from every start in D is within one move of capture.

Statement

theorem pk_free_hole_dominating_exit_two_turn_capture {V : Type*} (G : SimpleGraph V) {k : ℕ}
    (hk : 6 ≤ 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))
    (boundary : ∀ u∈D, ∀ z, G.Adj u z → z∈D ∨ ∃ j, G.Adj z (f j))
    (a : V) (ha : a∈op606ExposedExits G f D)
    (dom : ∀ b∈op606ExposedExits G f D, a=b ∨ G.Adj a b) :
    ∃ C' : Fin (k-3) → V,
      (∀ i, C' i=f ⟨i.val+3,by have := i.isLt; omega⟩ ∨ G.Adj (f ⟨i.val+3,by have := i.isLt; omega⟩) (C' i)) ∧
      ∀ r∈D, ∀ z, z=r ∨ G.Adj r z → ∃ i, C' i=z ∨ G.Adj (C' i) z
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 4
  • pk_free_hole_four_site_gate_completeSuppose 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…
  • 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)$.

The proof, explained

The proof shows that cops initially placed on cycle sites 3 through $k-1$ can legally move the cop at site 3 to the dominating exit $a$ while all other cops stay in place, achieving full two-turn capture. First, since $a$ only attaches to cycle sites below 4, an induced 2-vertex path $u-a$ shows that $a$ is adjacent to site 3 (making the cop's step to $a$ legal) and that $a$ completely dominates $D$. Second, any robber reply is covered: replies staying in $D$ are adjacent to $a$; replies reaching or adjacent to cycle sites 4 through $k-1$ are covered by the stationary cops; and any other boundary reply must itself be an exposed exit, which is dominated by $a$ by hypothesis.

  1. The gate $a$ is disjoint from the cycle and adjacent to every vertex in $D$.

    In the theorem statement, linear arithmetic (`omega`) verifies that the cop indices $i+3$ are valid vertices of the $k$-cycle. Unpacking the definition of an exposed exit gives a neighbor $u \in D$ of $a$, an attachment to the cycle, and the property that $a$ has no incidences or edges to cycle sites with index at least 4. If $a$ were a cycle vertex, $u \in D$ would be adjacent to the cycle, contradicting the assumption that $D$ is far from the cycle. Thus $a$ is disjoint from the cycle. Since all cycle neighbors of $a$ have index strictly less than 4, the four-site gate completeness lemma (`pk_free_hole_four_site_gate_complete`) applies to show that $a$ is adjacent to every vertex in $D$.

    lines 13–22

    uses pk_free_hole_four_site_gate_complete

          (∀ i, C' i=f ⟨i.val+3,by have := i.isLt; omega⟩ ∨ G.Adj (f ⟨i.val+3,by have := i.isLt; omega⟩) (C' i)) ∧
          ∀ r∈D, ∀ z, z=r ∨ G.Adj r z → ∃ i, C' i=z ∨ G.Adj (C' i) z := by
      classical
      obtain ⟨hmeet,htouch,hfree⟩ := ha
      obtain ⟨u,hu,huA⟩ := hmeet
      have hAway (j : Fin k) : a ≠ f j := by
        intro h
        exact (far u hu j).2 (h ▸ huA)
      have complete := pk_free_hole_four_site_gate_complete G (by omega) hp f D hD far a hAway htouch
          (fun j h => by by_contra! hh; exact (hfree j hh).2 h) ⟨u,hu,huA.symm⟩
  2. The edge between $u$ and $a$ defines an induced path $p \cong P_2$ disjoint from the cycle, attaching to the cycle only at $a$.

    We construct the path embedding $p : P_2 \hookrightarrow G$ mapping 0 to $u$ and 1 to $a$. Since $u$ and $a$ are distinct adjacent vertices, $p$ is an induced path. Both vertices are disjoint from the cycle because $u \in D$ is far from the cycle and $a$ does not lie on the cycle. Furthermore, since $u \in D$ has no edges to the cycle, any cycle attachment of the path must occur at the endpoint $p(1) = a$.

    lines 23–41

    uses SimpleGraph.pathGraph_adj

      let p : SimpleGraph.pathGraph 2 ↪g G := {
        toFun := ![u,a]
        inj' := by
          have h₁ := huA.ne
          intro i j h
          fin_cases i <;> fin_cases j <;> simp_all
        map_rel_iff' := by
          have h₁ := huA.symm
          intro i j
          change G.Adj (![u,a] i) (![u,a] j) ↔ (SimpleGraph.pathGraph 2).Adj i j
          fin_cases i <;> fin_cases j <;> simp_all [SimpleGraph.pathGraph_adj] <;> first | assumption | decide }
      have apart (i : Fin 2) (j : Fin k) : p i ≠ f j := by
        fin_cases i
        · exact (far u hu j).1
        · exact hAway j
      have onlyEnd (i : Fin 2) (j : Fin k) (h : G.Adj (p i) (f j)) : i=1 := by
        fin_cases i
        · exact ((far u hu j).2 h).elim
        · rfl
  3. The gate $a$ is adjacent to cycle site 3.

    Applying the tail attachment lemma (`pk_free_hole_tail_attachment_outside_short_arc`) to the path $p$ of length 2 shows that its end vertex $a$ must have a cycle neighbor at index $j \ge 2 + 1 = 3$. But $a$ is an exposed exit, so it has no edges to cycle sites with index at least 4. Therefore, $j = 3$ exactly, meaning $a$ is adjacent to $f(3)$.

    lines 42–47

    uses pk_free_hole_tail_attachment_outside_short_arc

      obtain ⟨j,hj,hja⟩ := pk_free_hole_tail_attachment_outside_short_arc G (by decide : 0<2) (by omega)
          hp f p apart 1 (by decide) onlyEnd htouch
      change G.Adj a (f j) at hja
      have hj₃ : j.val=3 := by
        by_contra h
        exact (hfree j (by omega)).2 hja
  4. Moving the cop at site 3 to $a$ and keeping all other cops at sites 4 through $k-1$ in place is a legal joint move.

    The cops are indexed by $i \in \{0, \dots, k-4\}$, with cop $i$ initially at cycle site $i+3$. We define the new configuration $C'$ by moving cop 0 from site 3 to $a$ and leaving every cop $i > 0$ at its initial site $i+3$. This joint move is legal because the move of cop 0 follows the edge between $f(3)$ and $a$ (using symmetry `G.adj_comm`), while all other cops satisfy $C'(i) = f(i+3)$ by `Function.update_of_ne`.

    lines 48–61

    uses Function.update_self, Fin.ext, G.adj_comm, Or.inl, Function.update_of_ne

      let ix (i : Fin (k-3)) : Fin k := ⟨i.val+3,by have := i.isLt; omega⟩
      let z₀ : Fin (k-3) := ⟨0,by omega⟩
      let C (i : Fin (k-3)) := f (ix i)
      let C' := Function.update C z₀ a
      have hc₀ : C' z₀=a := Function.update_self ..
      refine ⟨C',?_,?_⟩
      · intro i
        by_cases hi : i=z₀
        · subst i
          have heq : ix z₀ = j := Fin.ext (by change 0+3=j.val; omega)
          right
          change G.Adj (f (ix z₀)) (C' z₀)
          rwa [heq,hc₀,G.adj_comm]
        · exact Or.inl (Function.update_of_ne hi _ _)
  5. Any robber reply that remains in $D$ is within one move of capture by the cop at $a$.

    Let the robber start at $r \in D$ and move to $z$. If $z \in D$, then because $a$ is adjacent to every vertex in $D$, the cop at $a$ ($C'(0) = a$) is adjacent to $z$, threatening immediate capture.

    lines 62–64

      · intro r hr z hz
        by_cases hD' : z∈D
        · exact ⟨z₀,.inr (hc₀ ▸ complete z hD')⟩
  6. Any robber reply outside $D$ that reaches or touches cycle sites 4 through $k-1$ is covered by the stationary cop at that site.

    When $z \notin D$, the robber must have moved along an edge, so $r \sim z$. By the boundary assumption, $z$ has a neighbor on the cycle. If $z$ is equal or adjacent to some cycle site $j \ge 4$, we consider the cop with index $i = j - 3$. Since $j \ge 4$, $i \ne 0$, so this cop stayed at $C'(i) = f(j)$. Hence cop $i$ either already occupies $z$ or is adjacent to $z$.

    lines 65–77

    uses congrArg, Fin.ext, Function.update_of_ne, Eq.symm

        have hadj : G.Adj r z := hz.resolve_left (fun h => hD' (h ▸ hr))
        have near := (boundary r hr z hadj).resolve_left hD'
        by_cases hcovered : ∃ j : Fin k, 4 ≤ j.val ∧ (z=f j ∨ G.Adj z (f j))
        · obtain ⟨j,hj,h⟩ := hcovered
          let i : Fin (k-3) := ⟨j.val-3,by have := j.isLt; omega⟩
          have hi : i ≠ z₀ := by
            intro hi
            have hh := congrArg Fin.val hi
            change j.val-3=0 at hh
            omega
          have hix : ix i=j := Fin.ext (by change j.val-3+3=j.val; omega)
          have hc : C' i=f j := (Function.update_of_ne hi _ _).trans (congrArg f hix)
          exact ⟨i,hc ▸ h.imp Eq.symm (fun edge => edge.symm)⟩
  7. Any robber reply outside $D$ that avoids cycle sites 4 through $k-1$ is an exposed exit and is covered by the cop at $a$.

    If $z \notin D$ is neither equal nor adjacent to any cycle site $j \ge 4$, then $z$ satisfies all conditions of `op606ExposedExits`: it has neighbor $r \in D$, touches the cycle, and has no incidence or adjacency to sites at or above 4. By the hypothesis that $a$ dominates all exposed exits, $z = a$ or $a \sim z$. Since cop 0 is at $a$, cop 0 covers $z$.

    lines 78–80

        · have hfree' (j : Fin k) (hj : 4≤j.val) : z≠f j ∧ ¬G.Adj z (f j) :=
            ⟨fun he => hcovered ⟨j,hj,.inl he⟩,fun he => hcovered ⟨j,hj,.inr he⟩⟩
          exact ⟨z₀,hc₀ ▸ dom z ⟨⟨r,hr,hadj⟩,near,hfree'⟩⟩
pk_free_hole_four_site_gate_complete
In a $P_k$-free graph with $k \ge 5$ and an induced $k$-cycle, if a far preconnected set $D$ has a gate $a$ disjoint from the cycle with at least one cycle neighbor, all of which have index strictly less than 4, and $a$ has a neighbor in $D$, then $a$ is adjacent to every vertex in $D$.
SimpleGraph.pathGraph_adj
In the path graph $P_n$, 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 with an induced $k$-cycle, if an induced path of length $d$ ($0 < d$ and $d+1 < k$) is disjoint from the cycle and attaches to the cycle only at its endpoint $e$, then $e$ must have a cycle neighbor at index at least $d+1$.
Function.update_self
Evaluating a function updated at $a$ with value $v$ at the input $a$ yields $v$.
Fin.ext
Two elements of $\text{Fin } n$ are equal if and only if their underlying natural values are equal.
G.adj_comm
In a simple graph $G$, adjacency is symmetric: $u$ is adjacent to $v$ if and only if $v$ is adjacent to $u$.
Function.update_of_ne
Updating a function $f$ at point $a'$ with value $v$ and evaluating at a different point $a \ne a'$ yields the original value $f(a)$.
Or.inl
Disjunction introduction on the left: if $A$ holds, then $A \lor B$ holds.
congrArg
Applying a function to equal arguments produces equal results: if $a_1 = a_2$, then $f(a_1) = f(a_2)$.
Eq.symm
Equality is symmetric: if $a = b$, then $b = 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

def op606ExposedExits {V : Type*} {k : ℕ} (G : SimpleGraph V) (f : SimpleGraph.cycleGraph k ↪g G) (D : Set V) : Set V :=  {a | (∃ u∈D, G.Adj u a) ∧ (∃ j, G.Adj a (f j)) ∧    ∀ j : Fin k, 4 ≤ j.val → a ≠ f j ∧ ¬G.Adj a (f j)}theorem pk_free_hole_dominating_exit_two_turn_capture {V : Type*} (G : SimpleGraph V) {k : ℕ}    (hk : 6 ≤ 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))    (boundary : ∀ u∈D, ∀ z, G.Adj u z → z∈D ∨ ∃ j, G.Adj z (f j))    (a : V) (ha : a∈op606ExposedExits G f D)    (dom : ∀ b∈op606ExposedExits G f D, a=b ∨ G.Adj a b) :    ∃ C' : Fin (k-3) → V,      (∀ i, C' i=f ⟨i.val+3,by have := i.isLt; omega⟩ ∨ G.Adj (f ⟨i.val+3,by have := i.isLt; omega⟩) (C' i)) ∧      ∀ r∈D, ∀ z, z=r ∨ G.Adj r z → ∃ i, C' i=z ∨ G.Adj (C' i) z := by  classical  obtain ⟨hmeet,htouch,hfree⟩ := ha  obtain ⟨u,hu,huA⟩ := hmeet  have hAway (j : Fin k) : a ≠ f j := by    intro h    exact (far u hu j).2 (h ▸ huA)  have complete := pk_free_hole_four_site_gate_complete G (by omega) hp f D hD far a hAway htouch      (fun j h => by by_contra! hh; exact (hfree j hh).2 h) ⟨u,hu,huA.symm⟩  let p : SimpleGraph.pathGraph 2 ↪g G := {    toFun := ![u,a]    inj' := by      have h₁ := huA.ne      intro i j h      fin_cases i <;> fin_cases j <;> simp_all    map_rel_iff' := by      have h₁ := huA.symm      intro i j      change G.Adj (![u,a] i) (![u,a] j) ↔ (SimpleGraph.pathGraph 2).Adj i j      fin_cases i <;> fin_cases j <;> simp_all [SimpleGraph.pathGraph_adj] <;> first | assumption | decide }  have apart (i : Fin 2) (j : Fin k) : p i ≠ f j := by    fin_cases i    · exact (far u hu j).1    · exact hAway j  have onlyEnd (i : Fin 2) (j : Fin k) (h : G.Adj (p i) (f j)) : i=1 := by    fin_cases i    · exact ((far u hu j).2 h).elim    · rfl  obtain ⟨j,hj,hja⟩ := pk_free_hole_tail_attachment_outside_short_arc G (by decide : 0<2) (by omega)      hp f p apart 1 (by decide) onlyEnd htouch  change G.Adj a (f j) at hja  have hj₃ : j.val=3 := by    by_contra h    exact (hfree j (by omega)).2 hja  let ix (i : Fin (k-3)) : Fin k := ⟨i.val+3,by have := i.isLt; omega⟩  let z₀ : Fin (k-3) := ⟨0,by omega⟩  let C (i : Fin (k-3)) := f (ix i)  let C' := Function.update C z₀ a  have hc₀ : C' z₀=a := Function.update_self ..  refine ⟨C',?_,?_⟩  · intro i    by_cases hi : i=z₀    · subst i      have heq : ix z₀ = j := Fin.ext (by change 0+3=j.val; omega)      right      change G.Adj (f (ix z₀)) (C' z₀)      rwa [heq,hc₀,G.adj_comm]    · exact Or.inl (Function.update_of_ne hi _ _)  · intro r hr z hz    by_cases hD' : z∈D    · exact ⟨z₀,.inr (hc₀ ▸ complete z hD')⟩    have hadj : G.Adj r z := hz.resolve_left (fun h => hD' (h ▸ hr))    have near := (boundary r hr z hadj).resolve_left hD'    by_cases hcovered : ∃ j : Fin k, 4 ≤ j.val ∧ (z=f j ∨ G.Adj z (f j))    · obtain ⟨j,hj,h⟩ := hcovered      let i : Fin (k-3) := ⟨j.val-3,by have := j.isLt; omega⟩      have hi : i ≠ z₀ := by        intro hi        have hh := congrArg Fin.val hi        change j.val-3=0 at hh        omega      have hix : ix i=j := Fin.ext (by change j.val-3+3=j.val; omega)      have hc : C' i=f j := (Function.update_of_ne hi _ _).trans (congrArg f hix)      exact ⟨i,hc ▸ h.imp Eq.symm (fun edge => edge.symm)⟩    · have hfree' (j : Fin k) (hj : 4≤j.val) : z≠f j ∧ ¬G.Adj z (f j) :=        ⟨fun he => hcovered ⟨j,hj,.inl he⟩,fun he => hcovered ⟨j,hj,.inr he⟩⟩      exact ⟨z₀,hc₀ ▸ dom z ⟨⟨r,hr,hadj⟩,near,hfree'⟩⟩
See it in the graphDiscuss this resultChallenge it