AFTD Auto-Formalizing Theoretical Domains

boundary_five_odd_positive_barrier_forces_patterns_with_extendibility

theoremverified

The displayed positive-barrier defect patterns hold under the original saturated five-by-odd assumptions together with explicit k-extendibility and independence-number bounds.

Statement

theorem boundary_five_odd_positive_barrier_forces_patterns_with_extendibility
    (k c : ℕ) (hc : 7 ≤ c) (hcodd : Odd c) (hkc : c ≤ k)
    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (A B C D : Finset (Fin (4*k)))
    (hAB : Disjoint A B) (hAC : Disjoint A C) (hAD : Disjoint A D)
    (hBC : Disjoint B C) (hBD : Disjoint B D) (hCD : Disjoint C D)
    (hcover : A ∪ B ∪ C ∪ D = Finset.univ)
    (hA : A.card=5) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c)
    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)
    (hnoCD : ∀ a ∈ C, ∀ b ∈ D, ¬ G.Adj a b)
    (hcritB : is_k_factor_critical (G.induce {v | v ∈ B}) 1)
    (hconnB : (G.induce {v | v ∈ B}).Connected)
    (hext : is_k_extendable G k)
    (hind : ∀ I : Finset (Fin (4*k)),
      (∀ u ∈ I, ∀ v ∈ I, u ≠ v → ¬ G.Adj u v) → I.card ≤ k)
    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)
    (hsep : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty →
      Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ →
      (∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card)
    (x p q y : Fin (4*k)) (hxA : x ∈ A) (hp : p ∈ C) (hq : q ∈ C)
    (hpq : p ≠ q) (hxp : ¬ G.Adj x p) (hxq : ¬ G.Adj x q)
    (hfull : ∀ z ∈ C, z ≠ p → z ≠ q → G.Adj x z)
    (hsatA : ∀ a ∈ A, a ≠ x → G.Adj x a)
    (hsatD : ∀ d ∈ D, G.Adj x d)
    (hyC : y ∈ C) (hyp : y ≠ p) (hyq : y ≠ q)
    (X Y U : Finset (Fin (4*k))) (s : ℕ)
    (hXY : Disjoint X Y) (hXU : Disjoint X U) (hYU : Disjoint Y U)
    (hxX : x ∈ X) (hyY : y ∈ Y) (hoddX : Odd X.card) (hoddY : Odd Y.card)
    (hs : 1 ≤ s) (hsize : X.card+Y.card+U.card+s=2*k)
    (hUodd : s ≤ (G.induce {v | v ∈ U}).oddComponents.ncard)
    (hUparity : U.card % 2 = s % 2)
    (hcross : ∀ a ∈ X, ∀ b ∈ Y, G.Adj a b → a=x ∧ b=y)
    (hantiX : ∀ a ∈ X, ∀ u ∈ U, ¬ G.Adj a u)
    (hantiY : ∀ b ∈ Y, ∀ u ∈ U, ¬ G.Adj b u) :
    (∃ r ∈ ({p,q} : Finset (Fin (4*k))), ∃ T ⊆ A.erase x, T.card=2 ∧
      ∀ a ∈ T, ¬ G.Adj a y ∧ ¬ G.Adj a r) ∨
    (∀ a ∈ A.erase x, ¬ G.Adj a y) ∨
    (G.Adj p q ∧ (G.Adj y p ∨ G.Adj y q) ∧
      ∃ T ⊆ B, ∃ Z ⊆ (C \ {p,q,y}), T.card+Z.card=c-4 ∧
        (∀ b ∈ T, ¬ G.Adj b p ∧ ¬ G.Adj b q ∧ ¬ G.Adj b y) ∧
        (∀ z ∈ Z, ¬ G.Adj z p ∧ ¬ G.Adj z q ∧ ¬ G.Adj z y)) ∨
    (¬ G.Adj p q ∧ ¬ G.Adj y p ∧ ¬ G.Adj y q)
Source
OP-1957; positive-separator case of the five-by-odd essential-edge pattern transfer.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 14
Used by 1

The proof, explained

The proof splits into cases on the size of the shore intersection X ∩ A. When |X ∩ A| ≤ 2, an auxiliary lemma for small shores shows that p, q, and y form an independent triple, yielding the fourth pattern. When |X ∩ A| ≥ 3, an auxiliary lemma for large shores shows that either y shares two non-neighbors in A \ {x} with some r ∈ {p, q} (the first pattern) or y has no neighbors in A \ {x} (the second pattern).

  1. If |X ∩ A| ≤ 2, then p, q, and y are pairwise non-adjacent (Pattern 4).

    We divide into cases according to whether |X ∩ A| ≤ 2. In this branch, applying boundary_five_odd_positive_small_shore_forces_independent_triple proves that p, q, and y form an independent set of three vertices (¬ G.Adj p q ∧ ¬ G.Adj y p ∧ ¬ G.Adj y q). This satisfies the fourth disjunct of the theorem.

    lines 43–47

    uses boundary_five_odd_positive_small_shore_forces_independent_triple, Or.inr

      by_cases hsmall : (X ∩ A).card ≤ 2
      · exact Or.inr (Or.inr (Or.inr (boundary_five_odd_positive_small_shore_forces_independent_triple
          k c hc hcodd hkc G A B C D hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD
          hcritB hconnB hext hind hdegree hsep x p q y hxA hp hq hpq hxp hxq hfull hsatA hsatD
          hyC hyp hyq X Y U s hXY hXU hYU hxX hyY hoddX hoddY hs hsize hUodd hUparity hcross hantiX hantiY hsmall)))
  2. In the remaining case, |X ∩ A| ≥ 3.

    Since the case condition |X ∩ A| ≤ 2 is negated, linear arithmetic on natural numbers (handled by omega) gives |X ∩ A| ≥ 3.

    line 48

      · have hlarge : 3 ≤ (X ∩ A).card := by omega
  3. If |X ∩ A| ≥ 3, then either Pattern 1 or Pattern 2 holds.

    Applying boundary_five_odd_positive_large_shore_forces_common_defects under the hypothesis |X ∩ A| ≥ 3 yields a disjunction: either there exists r ∈ {p, q} and a pair T ⊆ A \ {x} non-adjacent to both y and r, or no vertex in A \ {x} is adjacent to y. Case analysis on this disjunction closes the proof by placing the first case into the first disjunct and the second case into the second disjunct of the main goal.

    lines 49–54

    uses boundary_five_odd_positive_large_shore_forces_common_defects, Or.inl, Or.inr

        rcases boundary_five_odd_positive_large_shore_forces_common_defects
          k c hc hcodd hkc G A B C D hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD
          hcritB hconnB hext hind hdegree hsep x p q y hxA hp hq hpq hxp hxq hfull hsatA hsatD
          hyC hyp hyq X Y U s hXY hXU hYU hxX hyY hoddX hoddY hs hsize hUodd hUparity hcross hantiX hantiY hlarge with h | h
        · exact Or.inl h
        · exact Or.inr (Or.inl h)
boundary_five_odd_positive_small_shore_forces_independent_triple
Under the saturated 5-by-odd barrier and extendibility assumptions, if the shore intersection satisfies |X ∩ A| ≤ 2, then p, q, and y are mutually non-adjacent.
boundary_five_odd_positive_large_shore_forces_common_defects
Under the saturated 5-by-odd barrier and extendibility assumptions, if |X ∩ A| ≥ 3, then either some r ∈ {p, q} shares two common non-neighbors in A \ {x} with y, or y has no neighbors in A \ {x}.
Or.inl
From a proof of P, concludes P ∨ Q.
Or.inr
From a proof of Q, concludes P ∨ 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

theorem boundary_five_odd_positive_barrier_forces_patterns_with_extendibility    (k c : ℕ) (hc : 7 ≤ c) (hcodd : Odd c) (hkc : c ≤ k)    (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (A B C D : Finset (Fin (4*k)))    (hAB : Disjoint A B) (hAC : Disjoint A C) (hAD : Disjoint A D)    (hBC : Disjoint B C) (hBD : Disjoint B D) (hCD : Disjoint C D)    (hcover : A ∪ B ∪ C ∪ D = Finset.univ)    (hA : A.card=5) (hB : B.card=2*k-5) (hC : C.card=c) (hD : D.card=2*k-c)    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)    (hnoCD : ∀ a ∈ C, ∀ b ∈ D, ¬ G.Adj a b)    (hcritB : is_k_factor_critical (G.induce {v | v ∈ B}) 1)    (hconnB : (G.induce {v | v ∈ B}).Connected)    (hext : is_k_extendable G k)    (hind : ∀ I : Finset (Fin (4*k)),      (∀ u ∈ I, ∀ v ∈ I, u ≠ v → ¬ G.Adj u v) → I.card ≤ k)    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)    (hsep : ∀ S P Q : Finset (Fin (4*k)), P.Nonempty → Q.Nonempty →      Disjoint S P → Disjoint S Q → Disjoint P Q → S ∪ P ∪ Q = Finset.univ →      (∀ u ∈ P, ∀ v ∈ Q, ¬ G.Adj u v) → 2*k ≤ S.card)    (x p q y : Fin (4*k)) (hxA : x ∈ A) (hp : p ∈ C) (hq : q ∈ C)    (hpq : p ≠ q) (hxp : ¬ G.Adj x p) (hxq : ¬ G.Adj x q)    (hfull : ∀ z ∈ C, z ≠ p → z ≠ q → G.Adj x z)    (hsatA : ∀ a ∈ A, a ≠ x → G.Adj x a)    (hsatD : ∀ d ∈ D, G.Adj x d)    (hyC : y ∈ C) (hyp : y ≠ p) (hyq : y ≠ q)    (X Y U : Finset (Fin (4*k))) (s : ℕ)    (hXY : Disjoint X Y) (hXU : Disjoint X U) (hYU : Disjoint Y U)    (hxX : x ∈ X) (hyY : y ∈ Y) (hoddX : Odd X.card) (hoddY : Odd Y.card)    (hs : 1 ≤ s) (hsize : X.card+Y.card+U.card+s=2*k)    (hUodd : s ≤ (G.induce {v | v ∈ U}).oddComponents.ncard)    (hUparity : U.card % 2 = s % 2)    (hcross : ∀ a ∈ X, ∀ b ∈ Y, G.Adj a b → a=x ∧ b=y)    (hantiX : ∀ a ∈ X, ∀ u ∈ U, ¬ G.Adj a u)    (hantiY : ∀ b ∈ Y, ∀ u ∈ U, ¬ G.Adj b u) :    (∃ r ∈ ({p,q} : Finset (Fin (4*k))), ∃ T ⊆ A.erase x, T.card=2 ∧      ∀ a ∈ T, ¬ G.Adj a y ∧ ¬ G.Adj a r) ∨    (∀ a ∈ A.erase x, ¬ G.Adj a y) ∨    (G.Adj p q ∧ (G.Adj y p ∨ G.Adj y q) ∧      ∃ T ⊆ B, ∃ Z ⊆ (C \ {p,q,y}), T.card+Z.card=c-4 ∧        (∀ b ∈ T, ¬ G.Adj b p ∧ ¬ G.Adj b q ∧ ¬ G.Adj b y) ∧        (∀ z ∈ Z, ¬ G.Adj z p ∧ ¬ G.Adj z q ∧ ¬ G.Adj z y)) ∨    (¬ G.Adj p q ∧ ¬ G.Adj y p ∧ ¬ G.Adj y q) := by  by_cases hsmall : (X ∩ A).card ≤ 2  · exact Or.inr (Or.inr (Or.inr (boundary_five_odd_positive_small_shore_forces_independent_triple      k c hc hcodd hkc G A B C D hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD      hcritB hconnB hext hind hdegree hsep x p q y hxA hp hq hpq hxp hxq hfull hsatA hsatD      hyC hyp hyq X Y U s hXY hXU hYU hxX hyY hoddX hoddY hs hsize hUodd hUparity hcross hantiX hantiY hsmall)))  · have hlarge : 3 ≤ (X ∩ A).card := by omega    rcases boundary_five_odd_positive_large_shore_forces_common_defects      k c hc hcodd hkc G A B C D hAB hAC hAD hBC hBD hCD hcover hA hB hC hD hnoAB hnoCD      hcritB hconnB hext hind hdegree hsep x p q y hxA hp hq hpq hxp hxq hfull hsatA hsatD      hyC hyp hyq X Y U s hXY hXU hYU hxX hyY hoddX hoddY hs hsize hUodd hUparity hcross hantiX hantiY hlarge with h | h    · exact Or.inl h    · exact Or.inr (Or.inl h)
See it in the graphDiscuss this resultChallenge it