AFTD Auto-Formalizing Theoretical Domains

even_linked_double_star_broom_tip_obstruction

theoremverified

Given a copy of a linked double star with arms n+m−1 and one, with p≥1 and m≥1, suppose the host contains no copy with arms n,m. On the supplied 2p-spine its last endpoint has fewer than m neighbors outside the spine. At least n+1 vertices off the spine are neighbors of the first endpoint and nonneighbors of the last endpoint.

Statement

theorem even_linked_double_star_broom_tip_obstruction {V : Type*} [Fintype V]
    (G : SimpleGraph V) (p n m : ℕ) (hp : 0 < p) (hm : 1 ≤ m)
    (f : (even_linked_double_star p (n+m-1) 1).Copy G)
    (havoid : ¬(even_linked_double_star p n m).IsContained G) :
    let P : Fin (2*p) ↪ V := ⟨fun i => f (.inl i),fun _ _ h => Sum.inl.inj (f.injective h)⟩
    let x := P ⟨0,by omega⟩
    let y := P ⟨2*p-1,by omega⟩
    (∃ B : Finset V, B.card < m ∧ ∀ v, v ∉ Set.range P → G.Adj y v → v ∈ B) ∧
      ∃ A : Finset V, n+1 ≤ A.card ∧ ∀ v ∈ A, v ∉ Set.range P ∧ G.Adj x v ∧ Gᶜ.Adj y v
Source
https://arxiv.org/abs/2611.19632; structural lemma 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_leaves_on_spineGiven a red simple path on 2p vertices, p≥1, suppose its endpoints have exterior red leaf pools L and R with at least n and m vertices…
Used by 1

The proof, explained

We consider a copy of a linked double star with n+m-1 leaves at the first spine endpoint x and one leaf t at the last spine endpoint y. If the set R of off-spine neighbors of y had size at least m, then the leaf sets L and R would contain at least n+m vertices in total (as t ∈ R \\ L), allowing us to embed the forbidden double star with arms n,m; hence |R| < m. Removing R from L yields at least n+1 vertices that are neighbors of x off the spine but nonneighbors of y.

  1. In the model graph even_linked_double_star p n m, any two consecutive spine vertices are adjacent.

    By definition of the even linked double star, an edge exists between spine vertices i and j whenever i.val + 1 = j.val. We also verify irreflexivity: if the vertices were equal, Sum.inl.inj and congrArg Fin.val would give i.val = j.val, contradicting i.val + 1 = j.val.

    lines 4–8

    uses congrArg, Fin.val, Sum.inl.inj

    private theorem ds1310_broom_tip_obstruction_src_path {p n m : ℕ} (i j : Fin (2*p)) (hij : i.val+1=j.val) :
        (even_linked_double_star p n m).Adj (.inl i) (.inl j) := by
      refine ⟨?_,Or.inl (Or.inl ⟨i,j,rfl,rfl,Or.inl hij⟩)⟩
      intro h; have := congrArg Fin.val (Sum.inl.inj h); omega
    
  2. In the model graph even_linked_double_star p n m, the first spine vertex is adjacent to each left leaf.

    The first spine vertex has value 0, so by definition of the graph relation it is adjacent to every left leaf l. The two vertices are distinct because they reside in different summands of the disjoint union.

    lines 9–12

    private theorem ds1310_broom_tip_obstruction_src_left {p n m : ℕ} (i : Fin (2*p)) (l : Fin n) (hi : i.val=0) :
        (even_linked_double_star p n m).Adj (.inl i) (.inr (.inl l)) :=
      ⟨by simp,Or.inl (Or.inr (.inl ⟨i,l,hi,.inl ⟨rfl,rfl⟩⟩))⟩
    
  3. In the model graph even_linked_double_star p n m, the last spine vertex is adjacent to each right leaf.

    The last spine vertex has index value 2p - 1, so its value plus 1 is 2p, satisfying the condition for adjacency to each right leaf l. Distinctness holds as they belong to different summands.

    lines 13–16

    private theorem ds1310_broom_tip_obstruction_src_right {p n m : ℕ} (i : Fin (2*p)) (l : Fin m) (hi : i.val+1=2*p) :
        (even_linked_double_star p n m).Adj (.inl i) (.inr (.inr l)) :=
      ⟨by simp,Or.inl (Or.inr (.inr ⟨i,l,hi,.inl ⟨rfl,rfl⟩⟩))⟩
    
  4. The condition 0 < p ensures that index 0 and index 2p - 1 are valid spine indices for the endpoints x and y of P.

    The definitions of the first spine vertex x = P(0) and the last spine vertex y = P(2p - 1) require proving 0 < 2p and 2p - 1 < 2p, both of which follow by linear integer arithmetic from p > 0.

    lines 17–25

    theorem even_linked_double_star_broom_tip_obstruction {V : Type*} [Fintype V]
        (G : SimpleGraph V) (p n m : ℕ) (hp : 0 < p) (hm : 1 ≤ m)
        (f : (even_linked_double_star p (n+m-1) 1).Copy G)
        (havoid : ¬(even_linked_double_star p n m).IsContained G) :
        let P : Fin (2*p) ↪ V := ⟨fun i => f (.inl i),fun _ _ h => Sum.inl.inj (f.injective h)⟩
        let x := P ⟨0,by omega⟩
        let y := P ⟨2*p-1,by omega⟩
        (∃ B : Finset V, B.card < m ∧ ∀ v, v ∉ Set.range P → G.Adj y v → v ∈ B) ∧
          ∃ A : Finset V, n+1 ≤ A.card ∧ ∀ v ∈ A, v ∉ Set.range P ∧ G.Adj x v ∧ Gᶜ.Adj y v := by
  5. Define the spine path P with endpoints x and y, the set L of n+m-1 left leaves, the set R of off-spine neighbors of y, and the right leaf t, noting that |L| = n+m-1.

    We name the spine embedding P from the given copy f, with endpoints x = P(0) and y = P(2p-1). We define L as the image of the n+m-1 left leaves under f, R as the finset of off-spine vertices adjacent to y, and t as the image of the unique right leaf. Since f is injective, the cardinality of L is n+m-1.

    lines 26–36

      classical
      dsimp only
      let P : Fin (2*p) ↪ V := ⟨fun i => f (.inl i),fun _ _ h => Sum.inl.inj (f.injective h)⟩
      let x := P ⟨0,by omega⟩
      let y := P ⟨2*p-1,by omega⟩
      let left : Fin (n+m-1) ↪ V := ⟨fun i => f (.inr (.inl i)),fun _ _ h => Sum.inl.inj (Sum.inr.inj (f.injective h))⟩
      let L := Finset.univ.map left
      let E := (Finset.univ.map P)ᶜ
      let R := E.filter (G.Adj y)
      let t := f (.inr (.inr 0))
      have hL : L.card = n+m-1 := by simp [L]
  6. Every vertex in L lies off the spine P and is adjacent to x in G.

    Each vertex in L is the image under f of a left leaf in the model double star. Because f is injective, it cannot coincide with any spine vertex. Adjacency in the model graph between the first spine vertex and each left leaf is given by ds1310_broom_tip_obstruction_src_left, which f preserves into G.

    lines 37–40

    uses Finset.mem_map.mp, ds1310_broom_tip_obstruction_src_left

      have hle (v) (hv : v ∈ L) : v ∉ Set.range P ∧ G.Adj x v := by
        obtain ⟨i,_,rfl⟩ := Finset.mem_map.mp hv
        refine ⟨?_,f.toHom.map_rel' (ds1310_broom_tip_obstruction_src_left _ i rfl)⟩
        rintro ⟨j,h⟩; cases f.injective h
  7. A vertex belongs to R if and only if it lies off the spine P and is adjacent to y in G.

    By definition, R filters the complement of the spine by adjacency to y. Unpacking membership in the filtered finset and complement shows that any v ∈ R is off the spine and adjacent to y, and conversely, any off-spine neighbor of y satisfies the filtering condition to belong to R.

    lines 41–47

    uses Finset.mem_filter.mp, Finset.mem_compl.mp, Finset.mem_map.mpr, Finset.mem_univ, Finset.mem_filter.mpr, Finset.mem_compl.mpr, Finset.mem_map.mp

      have hre (v) (hv : v ∈ R) : v ∉ Set.range P ∧ G.Adj y v := by
        obtain ⟨he,ha⟩ := Finset.mem_filter.mp hv
        refine ⟨?_,ha⟩
        rintro ⟨i,rfl⟩; exact (Finset.mem_compl.mp he) (Finset.mem_map.mpr ⟨i,Finset.mem_univ _,rfl⟩)
      have hmem (v) (hv : v ∉ Set.range P) (ha : G.Adj y v) : v ∈ R := by
        apply Finset.mem_filter.mpr; refine ⟨Finset.mem_compl.mpr ?_,ha⟩
        intro h; obtain ⟨i,_,hi⟩ := Finset.mem_map.mp h; exact hv ⟨i,hi⟩
  8. The leaf vertex t is an off-spine neighbor of y belonging to R, and t does not belong to L.

    The vertex t corresponds to the unique right leaf in the double star. Injectivity of f implies that t is disjoint from the spine and disjoint from the left leaves L. By ds1310_broom_tip_obstruction_src_right, t is adjacent to the last spine vertex y, so t ∈ R.

    lines 48–51

    uses ds1310_broom_tip_obstruction_src_right, Finset.mem_map.mp, Sum.inr.inj

      have htn : t ∉ Set.range P := by rintro ⟨i,h⟩; cases f.injective h
      have htR : t ∈ R := hmem t htn (f.toHom.map_rel' (ds1310_broom_tip_obstruction_src_right _ 0 (by dsimp; omega)))
      have htL : t ∉ L := by
        intro ht; obtain ⟨i,_,he⟩ := Finset.mem_map.mp ht; cases Sum.inr.inj (f.injective he)
  9. The set R of off-spine neighbors of y has cardinality strictly less than m.

    Suppose for contradiction that |R| ≥ m. We could then apply even_linked_double_star_leaves_on_spine on the spine P with left leaves L and right leaves R to find a forbidden copy of even_linked_double_star p n m. The spine adjacency holds by ds1310_broom_tip_obstruction_src_path; we have |L| = n+m-1 ≥ n and |R| ≥ m; and {t} ∪ L ⊆ L ∪ R with t ∉ L gives |L ∪ R| ≥ |L| + 1 = n+m. This contradicts the avoidance hypothesis havoid.

    lines 52–58

    uses even_linked_double_star_leaves_on_spine, ds1310_broom_tip_obstruction_src_path, Finset.insert_subset, Finset.mem_union_right, Finset.subset_union_left, Finset.card_le_card, Finset.card_insert_of_notMem

      have hlt : R.card < m := by
        by_contra! h
        apply havoid
        apply even_linked_double_star_leaves_on_spine G p n m hp P
          (fun i j hij => f.toHom.map_rel' (ds1310_broom_tip_obstruction_src_path i j hij)) L R (by omega) h _ hle hre
        have hh : insert t L ⊆ L ∪ R := Finset.insert_subset (Finset.mem_union_right _ htR) Finset.subset_union_left
        have hc := Finset.card_le_card hh; rw [Finset.card_insert_of_notMem htL,hL] at hc; omega
  10. The set B = R satisfies the first conclusion, and we choose A = L \\ R for the second.

    The set R has cardinality less than m and contains every off-spine neighbor of y, establishing the first conjunct. Choosing A = L \\ R leaves us to verify |L \\ R| ≥ n+1 and the non-adjacency of its elements to y.

    line 59

      refine ⟨⟨R,hlt,hmem⟩, L \ R, ?_, ?_⟩
  11. The set difference L \\ R contains at least n+1 vertices.

    Since t ∈ R and L ∩ R ⊆ R, we have {t} ∪ (L ∩ R) ⊆ R. Because t ∉ L, t cannot belong to L ∩ R, so |R| ≥ |L ∩ R| + 1. Using |R| < m and the partition identity |L \\ R| + |L ∩ R| = |L| = n+m-1, linear arithmetic yields |L \\ R| ≥ n+1.

    lines 60–65

    uses Finset.insert_subset, Finset.inter_subset_right, Finset.mem_inter.mp, Finset.card_le_card, Finset.card_insert_of_notMem, Finset.card_sdiff_add_card_inter

      · have hs : insert t (L ∩ R) ⊆ R := Finset.insert_subset htR Finset.inter_subset_right
        have hn : t ∉ L ∩ R := fun h => htL (Finset.mem_inter.mp h).1
        have hh := Finset.card_le_card hs
        rw [Finset.card_insert_of_notMem hn] at hh
        have he := Finset.card_sdiff_add_card_inter L R
        omega
  12. Every vertex in L \\ R lies off the spine, is adjacent to x in G, and is adjacent to y in the complement graph Gᶜ.

    Any v ∈ L \\ R belongs to L, hence lies off the spine and is adjacent to x. Furthermore, v ∉ R means v cannot be adjacent to y in G (since R contains all off-spine neighbors of y). Since v is off the spine while y is on the spine, v ≠ y, and thus v is adjacent to y in the complement graph Gᶜ.

    lines 66–70

    uses Finset.mem_sdiff.mp

      · intro v hv
        obtain ⟨hl,hr⟩ := Finset.mem_sdiff.mp hv
        obtain ⟨he,hadj⟩ := hle v hl
        refine ⟨he,hadj,?_,fun h => hr (hmem v he h)⟩
        exact fun h => he ⟨_,h⟩
congrArg
If two inputs are equal, applying a function to both yields equal outputs.
Fin.val
The canonical projection from Fin n to the underlying natural number.
Sum.inl.inj
The left injection into a sum type is injective: if Sum.inl a = Sum.inl b, then a = b.
Sum.inr.inj
The right injection into a sum type is injective: if Sum.inr a = Sum.inr b, then a = b.
ds1310_broom_tip_obstruction_src_path
In the model graph even_linked_double_star p n m, consecutive spine vertices are adjacent.
ds1310_broom_tip_obstruction_src_left
In the model graph even_linked_double_star p n m, the first spine vertex is adjacent to each left leaf.
ds1310_broom_tip_obstruction_src_right
In the model graph even_linked_double_star p n m, the last spine vertex is adjacent to each right leaf.
even_linked_double_star_leaves_on_spine
A host graph containing a 2p-spine with at least n off-spine leaves at the first endpoint, at least m off-spine leaves at the last endpoint, and at least n+m total leaves contains a copy of even_linked_double_star p n m.
Finset.mem_map.mp
An element belongs to the image of a finset under an embedding if and only if it is the image of some element.
Finset.mem_map.mpr
The image of an element in a finset under an embedding belongs to the mapped finset.
Finset.mem_filter.mp
An element belongs to a filtered finset only if it belongs to the base finset and satisfies the predicate.
Finset.mem_filter.mpr
An element in a finset that satisfies the predicate belongs to the filtered finset.
Finset.mem_compl.mp
An element in the complement of a finset does not belong to the finset.
Finset.mem_compl.mpr
An element not in a finset belongs to its complement.
Finset.mem_univ
Every element of a finite type belongs to the universal finset.
Finset.insert_subset
Inserting an element into a finset produces a subset of t if the element is in t and the finset is a subset of t.
Finset.mem_union_right
An element belonging to the second finset belongs to their union.
Finset.subset_union_left
A finset is a subset of its union with any other finset.
Finset.card_le_card
If one finset is a subset of another, its cardinality is less than or equal to that of the second.
Finset.card_insert_of_notMem
Inserting an element not in a finset increases its cardinality by one.
Finset.inter_subset_right
The intersection of two finsets is a subset of the second.
Finset.mem_inter.mp
An element in the intersection of two finsets belongs to both.
Finset.card_sdiff_add_card_inter
The cardinality of the set difference plus the cardinality of the intersection equals the cardinality of the first finset.
Finset.mem_sdiff.mp
An element in the set difference s \\ t belongs to s and not to t.

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_broom_tip_obstruction_src_path {p n m : ℕ} (i j : Fin (2*p)) (hij : i.val+1=j.val) :    (even_linked_double_star p n m).Adj (.inl i) (.inl j) := by  refine ⟨?_,Or.inl (Or.inl ⟨i,j,rfl,rfl,Or.inl hij⟩)⟩  intro h; have := congrArg Fin.val (Sum.inl.inj h); omegaprivate theorem ds1310_broom_tip_obstruction_src_left {p n m : ℕ} (i : Fin (2*p)) (l : Fin n) (hi : i.val=0) :    (even_linked_double_star p n m).Adj (.inl i) (.inr (.inl l)) :=  ⟨by simp,Or.inl (Or.inr (.inl ⟨i,l,hi,.inl ⟨rfl,rfl⟩⟩))⟩private theorem ds1310_broom_tip_obstruction_src_right {p n m : ℕ} (i : Fin (2*p)) (l : Fin m) (hi : i.val+1=2*p) :    (even_linked_double_star p n m).Adj (.inl i) (.inr (.inr l)) :=  ⟨by simp,Or.inl (Or.inr (.inr ⟨i,l,hi,.inl ⟨rfl,rfl⟩⟩))⟩theorem even_linked_double_star_broom_tip_obstruction {V : Type*} [Fintype V]    (G : SimpleGraph V) (p n m : ℕ) (hp : 0 < p) (hm : 1 ≤ m)    (f : (even_linked_double_star p (n+m-1) 1).Copy G)    (havoid : ¬(even_linked_double_star p n m).IsContained G) :    let P : Fin (2*p) ↪ V := ⟨fun i => f (.inl i),fun _ _ h => Sum.inl.inj (f.injective h)⟩    let x := P ⟨0,by omega⟩    let y := P ⟨2*p-1,by omega⟩    (∃ B : Finset V, B.card < m ∧ ∀ v, v ∉ Set.range P → G.Adj y v → v ∈ B) ∧      ∃ A : Finset V, n+1 ≤ A.card ∧ ∀ v ∈ A, v ∉ Set.range P ∧ G.Adj x v ∧ Gᶜ.Adj y v := by  classical  dsimp only  let P : Fin (2*p) ↪ V := ⟨fun i => f (.inl i),fun _ _ h => Sum.inl.inj (f.injective h)⟩  let x := P ⟨0,by omega⟩  let y := P ⟨2*p-1,by omega⟩  let left : Fin (n+m-1) ↪ V := ⟨fun i => f (.inr (.inl i)),fun _ _ h => Sum.inl.inj (Sum.inr.inj (f.injective h))⟩  let L := Finset.univ.map left  let E := (Finset.univ.map P)ᶜ  let R := E.filter (G.Adj y)  let t := f (.inr (.inr 0))  have hL : L.card = n+m-1 := by simp [L]  have hle (v) (hv : v ∈ L) : v ∉ Set.range P ∧ G.Adj x v := by    obtain ⟨i,_,rfl⟩ := Finset.mem_map.mp hv    refine ⟨?_,f.toHom.map_rel' (ds1310_broom_tip_obstruction_src_left _ i rfl)⟩    rintro ⟨j,h⟩; cases f.injective h  have hre (v) (hv : v ∈ R) : v ∉ Set.range P ∧ G.Adj y v := by    obtain ⟨he,ha⟩ := Finset.mem_filter.mp hv    refine ⟨?_,ha⟩    rintro ⟨i,rfl⟩; exact (Finset.mem_compl.mp he) (Finset.mem_map.mpr ⟨i,Finset.mem_univ _,rfl⟩)  have hmem (v) (hv : v ∉ Set.range P) (ha : G.Adj y v) : v ∈ R := by    apply Finset.mem_filter.mpr; refine ⟨Finset.mem_compl.mpr ?_,ha⟩    intro h; obtain ⟨i,_,hi⟩ := Finset.mem_map.mp h; exact hv ⟨i,hi⟩  have htn : t ∉ Set.range P := by rintro ⟨i,h⟩; cases f.injective h  have htR : t ∈ R := hmem t htn (f.toHom.map_rel' (ds1310_broom_tip_obstruction_src_right _ 0 (by dsimp; omega)))  have htL : t ∉ L := by    intro ht; obtain ⟨i,_,he⟩ := Finset.mem_map.mp ht; cases Sum.inr.inj (f.injective he)  have hlt : R.card < m := by    by_contra! h    apply havoid    apply even_linked_double_star_leaves_on_spine G p n m hp P      (fun i j hij => f.toHom.map_rel' (ds1310_broom_tip_obstruction_src_path i j hij)) L R (by omega) h _ hle hre    have hh : insert t L ⊆ L ∪ R := Finset.insert_subset (Finset.mem_union_right _ htR) Finset.subset_union_left    have hc := Finset.card_le_card hh; rw [Finset.card_insert_of_notMem htL,hL] at hc; omega  refine ⟨⟨R,hlt,hmem⟩, L \ R, ?_, ?_⟩  · have hs : insert t (L ∩ R) ⊆ R := Finset.insert_subset htR Finset.inter_subset_right    have hn : t ∉ L ∩ R := fun h => htL (Finset.mem_inter.mp h).1    have hh := Finset.card_le_card hs    rw [Finset.card_insert_of_notMem hn] at hh    have he := Finset.card_sdiff_add_card_inter L R    omega  · intro v hv    obtain ⟨hl,hr⟩ := Finset.mem_sdiff.mp hv    obtain ⟨he,hadj⟩ := hle v hl    refine ⟨he,hadj,?_,fun h => hr (hmem v he h)⟩    exact fun h => he ⟨_,h⟩
See it in the graphDiscuss this resultChallenge it