AFTD Auto-Formalizing Theoretical Domains

even_linked_double_star_padded_cycle_upper

theoremverifiedoriginal

Take p≥5, n≥m≥2 and m≤p−1. Outside two distinct centers there are disjoint sets A of n+1 vertices and W of at least 2m+3p−4 vertices. The centers are red- and blue-complete, respectively, to A. Let U consist of all vertices of W red-complete to A, with at least m+p+1 such vertices. Suppose W contains a monochromatic cycle on 2p−2 vertices, at most p−3 of its vertices are outside U, and at least p−1 vertices outside U and the cycle lie in W. Assume also that at most floor((p−1)/2) cycle vertices lie outside U, or that W outside U has size at most 2p−3 and p≤2m+3. Then one color contains the even-linked double star of path order 2p and arms n,m.

Statement

theorem even_linked_double_star_padded_cycle_upper {V : Type*} [DecidableEq V] (G : SimpleGraph V) (p n m : ℕ)
    (hp : 5 ≤ p) (hm : 2 ≤ m) (hmk : m ≤ p-1) (hnm : m ≤ n) (r b : V) (hrb : r ≠ b)
    (A W U : Finset V) (hAW : Disjoint A W)
    (hrA : r ∉ A) (hrW : r ∉ W) (hbA : b ∉ A) (hbW : b ∉ W)
    (hA : A.card=n+1) (hr : ∀ a ∈ A, G.Adj r a) (hb : ∀ a ∈ A, Gᶜ.Adj b a)
    (hW : 2*m+3*p-4 ≤ W.card) (hU : U ⊆ W) (hUc : m+p+1 ≤ U.card)
    (hUr : ∀ u ∈ U, ∀ a ∈ A, G.Adj u a)
    (hUb : ∀ z ∈ W, z ∉ U → ∃ a ∈ A, Gᶜ.Adj z a)
    (Z : Fin (2*(p-1)) ↪ V) (hZ : Finset.univ.map Z ⊆ W)
    (hcyc : (∀ i, G.Adj (Z i) (Z (finRotate _ i))) ∨
      (∀ i, Gᶜ.Adj (Z i) (Z (finRotate _ i))))
    (hexc : (Finset.univ.map Z \ U).card ≤ p-3)
    (hbalance : 2*(Finset.univ.map Z \ U).card ≤ p-1 ∨ ((W \ U).card ≤ 2*p-3 ∧ p ≤ 2*m+3))
    (hrest : p-1 ≤ ((W \ U) \ Finset.univ.map Z).card) :
    (even_linked_double_star p n m).IsContained G ∨ (even_linked_double_star p n m).IsContained Gᶜ
Related work
https://arxiv.org/abs/2611.19632, OP-1853.
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3

Read back from the Lean

Let $V$ be a type with decidable equality, $G$ a simple graph on $V$, and $p, n, m \in \mathbb{N}$ natural numbers. Assume: 1. $5 \le p$, 2. $2 \le m$, 3. $m \le p - 1$, 4. $m \le n$, 5. $r, b \in V$ are distinct vertices ($r \ne b$), 6. $A, W, U$ are finite subsets of $V$, 7. $A$ and $W$ are disjoint, 8. $r \notin A$ and $r \notin W$, 9. $b \notin A$ and $b \notin W$, 10. $|A| = n + 1$, 11. $r$ is adjacent in $G$ to every vertex $a \in A$, 12. $b$ is adjacent in the complement graph $G^c$ to every vertex $a \in A$ (i.e., non-adjacent in $G$), 13. $|W| \ge 2m + 3p - 4$, 14. $U \subseteq W$, 15. $|U| \ge m + p + 1$, 16. every vertex $u \in U$ is adjacent in $G$ to every vertex $a \in A$, 17. every vertex $z \in W \setminus U$ is adjacent in $G^c$ to some vertex $a \in A$ (i.e., has a non-neighbor in $A$ with respect to $G$), 18. $Z : \text{Fin}(2(p-1)) \hookrightarrow V$ is an injective map, 19. the image of $Z$ is contained in $W$, 20. the vertices $Z(i)$ form a cycle of length $2(p-1)$ in either $G$ or $G^c$ (where each $Z(i)$ is adjacent to $Z((i+1) \bmod 2(p-1))$), 21. at most $p - 3$ vertices in the image of $Z$ lie outside $U$ ($|Z(\text{univ}) \setminus U| \le p - 3$), 22. either $2 \cdot |Z(\text{univ}) \setminus U| \le p - 1$, or both $|W \setminus U| \le 2p - 3$ and $p \le 2m + 3$, 23. at least $p - 1$ vertices in $W \setminus U$ are not in the image of $Z$ ($|(W \setminus U) \setminus Z(\text{univ})| \ge p - 1$). Then, the even linked double star graph with parameters $(p, n, m)$ is contained in $G$, or it is contained in the complement graph $G^c$.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

The proof, explained

The proof reduces the theorem to two monochromatic cycle lemmas by setting $k = p - 1$ and reindexing the path parameter $p$ as $(p - 1) + 1$. Depending on whether the given cycle of length $2(p-1)$ has all edges in $G$ (red) or all edges in $G^c$ (blue), it applies `even_linked_double_star_padded_red_cycle_upper` or `even_linked_double_star_padded_blue_cycle_upper`, respectively. All size, degree, and balance bounds required by the helper lemmas are checked by linear arithmetic.

  1. It suffices to prove that the even-linked double star with path parameter $(p - 1) + 1$ and arms $n, m$ is contained in $G$ or in $G^c$.

    Because $p \ge 5$, $(p - 1) + 1 = p$. Rewriting with this equality reindexes the double star so that its path parameter matches the form $k + 1$ expected by the helper lemmas, with $k = p - 1$.

    lines 19–22

      have hp' : p-1+1=p := by omega
      have htr (H : SimpleGraph V) : (even_linked_double_star (p-1+1) n m).IsContained H ↔
          (even_linked_double_star p n m).IsContained H := by rw [hp']
      rw [←htr G,←htr Gᶜ]
  2. If the cycle $Z$ on $2(p-1)$ vertices is red (all edges in $G$), then $G$ or $G^c$ contains the required double star.

    We split into cases on whether the monochromatic cycle $Z$ is red or blue. In the red case, we invoke `even_linked_double_star_padded_red_cycle_upper` with parameter $k = p - 1$. Its conditions require $k = p - 1 \ge 4$, $m \ge 1$, $|A| \ge n + 1$, $|W| \ge 3(p-1) + 2m - 1 = 2m + 3p - 4$, $|U| \ge m + (p-1) + 2 = m + p + 1$, and $|Z \setminus U| \le p - 3 = k - 2$, all of which follow from the hypotheses by linear arithmetic.

    lines 23–25

    uses even_linked_double_star_padded_red_cycle_upper

      rcases hcyc with h|h
      · exact even_linked_double_star_padded_red_cycle_upper G (p-1) n m (by omega) (by omega) r b A W U
          hAW hrA hrW hbA hbW (by omega) hr hb (by omega) hU (by omega) hUr hUb Z hZ h (by omega) hrest
  3. If the cycle $Z$ is blue (all edges in $G^c$), then $G$ or $G^c$ contains the required double star.

    In the blue case, we apply `even_linked_double_star_padded_blue_cycle_upper` with $k = p - 1$. The size conditions on $A$, $W$, and $U$ hold as before, and $m \le k$ is given by $m \le p - 1$. For the balance hypothesis, we case split: either $2|Z \setminus U| \le p - 1 = k$ (deduced via `Or.inl`), or $|W \setminus U| \le 2p - 3 < 2(p-1)$ together with $p - 1 \le 2m + 2$ from $p \le 2m + 3$ (deduced via `Or.inr`). Both cases satisfy the lemma's requirements.

    lines 26–30

    uses even_linked_double_star_padded_blue_cycle_upper, Or.inl, Or.inr

      · exact even_linked_double_star_padded_blue_cycle_upper G (p-1) n m (by omega) (by omega) hmk r b A W U
          hAW hrA hrW hbA hbW (by omega) hr hb (by omega) hU (by omega) hUr hUb Z hZ h (by omega) (by
            rcases hbalance with hh|⟨hh,hq⟩
            · exact Or.inl hh
            · exact Or.inr ⟨by omega,by omega⟩) hrest
even_linked_double_star_padded_red_cycle_upper
Under padding and degree conditions with a red cycle of length $2k$ ($k \ge 4$) in $W$ having at most $k - 2$ vertices outside $U$, either $G$ or $G^c$ contains the even-linked double star with path parameter $k + 1$ and arms $n, m$.
even_linked_double_star_padded_blue_cycle_upper
Under padding, degree, and balance conditions with a blue cycle of length $2k$ ($k \ge 4$, $m \le k$) in $W$ having at most $k - 1$ vertices outside $U$, either $G$ or $G^c$ contains the even-linked double star with path parameter $k + 1$ and arms $n, m$.
Or.inl
Introduces a disjunction $P \lor Q$ from a proof of the left disjunct $P$.
Or.inr
Introduces a disjunction $P \lor Q$ from a proof of the right disjunct $Q$.

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

open SimpleGraph Classicalopen scoped BigOperatorstheorem even_linked_double_star_padded_cycle_upper {V : Type*} [DecidableEq V] (G : SimpleGraph V) (p n m : ℕ)    (hp : 5 ≤ p) (hm : 2 ≤ m) (hmk : m ≤ p-1) (hnm : m ≤ n) (r b : V) (hrb : r ≠ b)    (A W U : Finset V) (hAW : Disjoint A W)    (hrA : r ∉ A) (hrW : r ∉ W) (hbA : b ∉ A) (hbW : b ∉ W)    (hA : A.card=n+1) (hr : ∀ a ∈ A, G.Adj r a) (hb : ∀ a ∈ A, Gᶜ.Adj b a)    (hW : 2*m+3*p-4 ≤ W.card) (hU : U ⊆ W) (hUc : m+p+1 ≤ U.card)    (hUr : ∀ u ∈ U, ∀ a ∈ A, G.Adj u a)    (hUb : ∀ z ∈ W, z ∉ U → ∃ a ∈ A, Gᶜ.Adj z a)    (Z : Fin (2*(p-1)) ↪ V) (hZ : Finset.univ.map Z ⊆ W)    (hcyc : (∀ i, G.Adj (Z i) (Z (finRotate _ i))) ∨      (∀ i, Gᶜ.Adj (Z i) (Z (finRotate _ i))))    (hexc : (Finset.univ.map Z \ U).card ≤ p-3)    (hbalance : 2*(Finset.univ.map Z \ U).card ≤ p-1 ∨ ((W \ U).card ≤ 2*p-3 ∧ p ≤ 2*m+3))    (hrest : p-1 ≤ ((W \ U) \ Finset.univ.map Z).card) :    (even_linked_double_star p n m).IsContained G ∨ (even_linked_double_star p n m).IsContained Gᶜ := by  have hp' : p-1+1=p := by omega  have htr (H : SimpleGraph V) : (even_linked_double_star (p-1+1) n m).IsContained H ↔      (even_linked_double_star p n m).IsContained H := by rw [hp']  rw [←htr G,←htr Gᶜ]  rcases hcyc with h|h  · exact even_linked_double_star_padded_red_cycle_upper G (p-1) n m (by omega) (by omega) r b A W U      hAW hrA hrW hbA hbW (by omega) hr hb (by omega) hU (by omega) hUr hUb Z hZ h (by omega) hrest  · exact even_linked_double_star_padded_blue_cycle_upper G (p-1) n m (by omega) (by omega) hmk r b A W U      hAW hrA hrW hbA hbW (by omega) hr hb (by omega) hU (by omega) hUr hUb Z hZ h (by omega) (by        rcases hbalance with hh|⟨hh,hq⟩        · exact Or.inl hh        · exact Or.inr ⟨by omega,by omega⟩) hrest
See it in the graphDiscuss this resultChallenge it