AFTD Auto-Formalizing Theoretical Domains

even_linked_double_star_clique_core_upper

theoremverified

When m<p, 1≤s≤min(n,m+1), and the finite host order is at least max(2n+2p−1,n+2m+3p−1), a clique in the first color on n+m+2p−s vertices or more forces the full even-linked double star in one of the two colors.

Statement

theorem even_linked_double_star_clique_core_upper {V : Type*} [Fintype V] (G : SimpleGraph V)
    (p n m s : ℕ) (hp : m < p) (hs : 1 ≤ s) (hsn : s ≤ n) (hsm : s ≤ m+1)
    (hN : max (2*n+2*p-1) (n+2*m+3*p-1) ≤ Fintype.card V)
    (C : Finset V) (hcard : n+m+2*p-s ≤ C.card) (hcl : G.IsClique (C : Set V)) :
    (even_linked_double_star p n m).IsContained G ∨
      (even_linked_double_star p n m).IsContained Gᶜ
Source
https://arxiv.org/abs/2611.19632; clique specialization of the flexible-core result for OP-1853.
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
  • even_linked_double_starFor natural numbers p, n, and m, the even-linked double star S_{2p}(n, m) is the simple graph on vertex set Fin(2p) ⊕ Fin(n) ⊕ Fin(m)…
  • even_linked_double_star_flexible_coreLet p≥1, 1≤s≤n, s≤m+1, and let a finite host have at least max(2n+2p−1,n+2m+3p−1) vertices. In a set C of n+m+2p−s vertices suppose at…

The proof, explained

The proof reduces the monochromatic containment of the even-linked double star to the flexible core theorem even_linked_double_star_flexible_core applied to a sub-clique C' ⊆ C of exact size n + m + 2p - s. To verify that every vertex of C' can serve as the root for an embedding of the smaller double star, a helper lemma ds1310_clique_core_upper_into_clique establishes that any graph on at most |C'| vertices embeds into the clique C' with any designated root mapping to any specified vertex. Because distinct vertices in a clique are always adjacent, every root-preserving injection is a graph embedding, satisfying the hypothesis of the flexible core reduction.

  1. There exists an embedding from the vertex set U into the clique C.

    Because the cardinality of U is at most that of C, the library lemma Function.Embedding.nonempty_of_card_le provides an injective map e from U into C.

    lines 8–10

    uses Function.Embedding.nonempty_of_card_le

      classical
      have he : Nonempty (U ↪ ↥C) := Function.Embedding.nonempty_of_card_le (by simpa using hsize)
      obtain ⟨e⟩ := he
  2. There is an embedding f from U into V with image in C that sends root to x.

    Post-composing the embedding e with the transposition Equiv.swap (e root) ⟨x, hx⟩ swaps the image of root with x while preserving injectivity. Composing further with the subtype inclusion gives an injection f : U ↪ V whose values all lie in C and which maps root to x.

    lines 11–13

    uses Equiv.swap, Function.Embedding.subtype

      let E := e.trans (Equiv.swap (e root) ⟨x,hx⟩).toEmbedding
      let f : U ↪ V := E.trans (Function.Embedding.subtype _)
      have hf (u : U) : f u ∈ C := (E u).property
  3. f is a graph embedding of H into G that embeds H into C with f root = x.

    Because f is injective, any two adjacent vertices in H map to distinct vertices of C. Since C is a clique in G, these images are adjacent in G, so f preserves adjacency. The condition f root = x holds by the definition of the swap permutation.

    lines 14–18

    uses Equiv.swap

      refine ⟨⟨⟨f,?_⟩,f.injective⟩,hf,?_⟩
      · intro a b hab
        exact hcl (hf a) (hf b) (fun he => hab.ne (f.injective he))
      · change ((Equiv.swap (e root) ⟨x,hx⟩) (e root)).val = x
        simp
  4. There is a sub-clique C' ⊆ C of size exactly n + m + 2p - s.

    Since the clique C has size at least n + m + 2p - s, Finset.exists_subset_card_eq yields a subset C' ⊆ C with |C'| = n + m + 2p - s.

    lines 26–27

    uses Finset.exists_subset_card_eq

      classical
      obtain ⟨C',hsub,hsize⟩ := Finset.exists_subset_card_eq hcard
  5. It suffices to show that every vertex of C' can serve as the root of an embedding of the smaller double star into C'.

    We apply even_linked_double_star_flexible_core with X = C'. The arithmetic preconditions 0 < p and n + max(p, 2s - 1) ≤ |C'| are resolved by linear arithmetic from the hypotheses.

    lines 28–29

    uses even_linked_double_star_flexible_core, Finset.Subset.refl

      apply even_linked_double_star_flexible_core G p n m s (by omega) hs hsn hsm hN C' C'
          hsize (Finset.Subset.refl _) (by omega)
  6. Every x ∈ C' is the root of an embedding of the smaller double star into C'.

    The subset C' inherits the clique property from C. The smaller double star even_linked_double_star p (n - s) m has 2p + (n - s) + m vertices, which equals |C'| = n + m + 2p - s. The helper lemma ds1310_clique_core_upper_into_clique therefore produces the required embedding into C' rooted at x.

    lines 30–34

    uses ds1310_clique_core_upper_into_clique

      intro x hx
      apply ds1310_clique_core_upper_into_clique _ _ C' x hx
      · intro a ha b hb hne
        exact hcl (hsub ha) (hsub hb) hne
      · simp; omega
Function.Embedding.nonempty_of_card_le
If a finite type α has cardinality at most that of β, then there exists an embedding (injective map) from α to β.
Equiv.swap
The permutation of a type that transposes two given elements and fixes all other elements.
Function.Embedding.subtype
The canonical embedding of a subtype into its ambient type.
Finset.exists_subset_card_eq
If a finite set has cardinality at least k, it contains a subset of cardinality exactly k.
Finset.Subset.refl
Every set is a subset of itself.
even_linked_double_star_flexible_core
A Ramsey reduction showing that under suitable host order and parameter bounds, if every vertex in a subset X ⊆ C can serve as the root for a copy of a smaller double star in C, then the full double star is contained in G or in its complement.
ds1310_clique_core_upper_into_clique
Any finite graph H can be embedded into a clique C with any chosen root vertex mapping to a prescribed vertex of C, provided |H| ≤ |C|.

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 BigOperatorsprivate theorem ds1310_clique_core_upper_into_clique {V U : Type*} [Fintype U] {G : SimpleGraph V}    (H : SimpleGraph U) (root : U) (C : Finset V) (x : V) (hx : x∈C)    (hcl : G.IsClique (C : Set V)) (hsize : Fintype.card U ≤ C.card) :    ∃ f : H.Copy G, (∀ v, f v ∈ C) ∧ f root = x := by  classical  have he : Nonempty (U ↪ ↥C) := Function.Embedding.nonempty_of_card_le (by simpa using hsize)  obtain ⟨e⟩ := he  let E := e.trans (Equiv.swap (e root) ⟨x,hx⟩).toEmbedding  let f : U ↪ V := E.trans (Function.Embedding.subtype _)  have hf (u : U) : f u ∈ C := (E u).property  refine ⟨⟨⟨f,?_⟩,f.injective⟩,hf,?_⟩  · intro a b hab    exact hcl (hf a) (hf b) (fun he => hab.ne (f.injective he))  · change ((Equiv.swap (e root) ⟨x,hx⟩) (e root)).val = x    simptheorem even_linked_double_star_clique_core_upper {V : Type*} [Fintype V] (G : SimpleGraph V)    (p n m s : ℕ) (hp : m < p) (hs : 1 ≤ s) (hsn : s ≤ n) (hsm : s ≤ m+1)    (hN : max (2*n+2*p-1) (n+2*m+3*p-1) ≤ Fintype.card V)    (C : Finset V) (hcard : n+m+2*p-s ≤ C.card) (hcl : G.IsClique (C : Set V)) :    (even_linked_double_star p n m).IsContained G ∨      (even_linked_double_star p n m).IsContained Gᶜ := by  classical  obtain ⟨C',hsub,hsize⟩ := Finset.exists_subset_card_eq hcard  apply even_linked_double_star_flexible_core G p n m s (by omega) hs hsn hsm hN C' C'      hsize (Finset.Subset.refl _) (by omega)  intro x hx  apply ds1310_clique_core_upper_into_clique _ _ C' x hx  · intro a ha b hb hne    exact hcl (hsub ha) (hsub hb) hne  · simp; omega
See it in the graphDiscuss this resultChallenge it