AFTD Auto-Formalizing Theoretical Domains

saturated_positive_small_shore_forces_two_singleton_groups

theoremverified

Under the displayed small-shore count conditions, a positive barrier, and the implication that a singleton pool has no groups, the B-only pool is empty, the second shore has no B vertices and has one C vertex, and each of the two exceptional groups has one C vertex.

Statement

theorem saturated_positive_small_shore_forces_two_singleton_groups
    (k c m eb a b0 b1 b2 b3 c0 c1 c2 c3 d : ℕ)
    (hc : 7 ≤ c) (hkc : c ≤ k) (heb : m ≤ eb)
    (ha : 1 ≤ a ∧ a ≤ 2) (hc1 : 1 ≤ c1)
    (he2 : (c2 = 0 ∧ b2 = 0) ∨ 1 ≤ c2)
    (he3 : (c3 = 0 ∧ b3 = 0) ∨ 1 ≤ c3)
    (hodd0 : Odd (a+b0+c0+d)) (hodd1 : Odd (b1+c1))
    (hs : m + (if 1 ≤ c2 then 1 else 0) + (if 1 ≤ c3 then 1 else 0) + 1 ≤ c)
    (hspos : 1 ≤ m + (if 1 ≤ c2 then 1 else 0) + (if 1 ≤ c3 then 1 else 0))
    (hb : b0+b1+b2+b3+eb+5 ≤ 2*k)
    (htotal : a+b0+b1+b2+b3+eb+c0+c1+c2+c3+d+m+
      (if 1 ≤ c2 then 1 else 0) + (if 1 ≤ c3 then 1 else 0) = 2*k)
    (hsmall : c1+c2+c3 ≤ 3)
    (hrooty : a+b0+c0+b2+c2+b3+c3+eb+2 ≤ c)
    (hrepA : 2 ≤ a → c1+c2+c3 ≤ 2)
    (hrep0C : 1 ≤ c0 → b1+b2+b3+eb+c1+c2+c3+3 ≤ c)
    (hcutD : 1 ≤ d → d+b1+b2+b3+eb+c ≤ 2*k)
    (hrep1C : 2 ≤ c1 → a+b0+b2+b3+eb+c0+c2+c3+3 ≤ c)
    (hrep2C : 1 ≤ c2 → a+b0+b1+b3+eb+c0+c1+c3+3 ≤ c)
    (hrep3C : 1 ≤ c3 → a+b0+b1+b2+eb+c0+c1+c2+3 ≤ c)
    (hcrit : (b0+b1+b2+b3+eb+5 < 2*k →
        m+b0+b1+b2+b3+eb+6 ≤ 2*k) ∧
      (b0+b1+b2+b3+eb+5 = 2*k → m ≤ 1 ∧
        (if 1 ≤ b0 then 1 else 0) + (if 1 ≤ b1 then 1 else 0) +
        (if 1 ≤ b2 then 1 else 0) + (if 1 ≤ b3 then 1 else 0) + m ≤ 1))
    (hpool : eb=m → m=0) :
    m=0 ∧ eb=0 ∧ b1=0 ∧ c1=1 ∧ c2=1 ∧ c3=1
Source
OP-1957: positive-barrier reduction after the strict common-nonneighbor pool bound.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3
Used by 2

The proof, explained

The proof uses the arithmetic classification lemma five_odd_saturated_small_shore_arithmetic_no_connectedness to split into two possible small-shore configurations: one where group 1 has 3 C vertices, and one where groups 1, 2, and 3 each have 1 C vertex. In the 3-C case, groups 2 and 3 are empty and the barrier positivity condition forces m ≥ 1; applying the specialized pool cardinality lemma forces eb = m, which through the pool hypothesis gives m = 0, a contradiction. In the remaining case, groups 2 and 3 are singletons with one C vertex each, and the two-exceptional-singletons lemma forces eb = m and b1 = 0, which through the pool hypothesis completely determines m = eb = b1 = 0 and c1 = c2 = c3 = 1.

  1. The configuration satisfies a = 1, and branches into either c1 = 3 with c2 + c3 = 0, or c1 = 1 with c2 + c3 = 2 and singleton conditions on groups 2 and 3.

    Applying the classification theorem five_odd_saturated_small_shore_arithmetic_no_connectedness to the full collection of saturated small-shore inequalities restricts the parameters to two cases: either shore 1 has 3 C vertices while groups 2 and 3 have no C vertices, or shore 1 has 1 C vertex and any non-empty group among 2 and 3 is a singleton (b_i + c_i = 1 with c_i = 1).

    lines 28–31

    uses five_odd_saturated_small_shore_arithmetic_no_connectedness

      have hsplit := five_odd_saturated_small_shore_arithmetic_no_connectedness
        k c m eb a b0 b1 b2 b3 c0 c1 c2 c3 d hc hkc heb ha hc1 he2 he3 hodd0 hodd1 hs hb htotal hsmall
        hrooty hrepA hrep0C hcutD hrep1C hrep2C hrep3C hcrit
      rcases hsplit with ⟨ha1, ⟨hc1_3, hc23_0, hroot⟩ | ⟨hc1_1, hc23_2, hsingle2, hsingle3⟩⟩
  2. In the first branch (c1 = 3, c2 + c3 = 0), the counts satisfy c2 = c3 = 0, b2 = b3 = 0, and m ≥ 1.

    Since c2 + c3 = 0, non-negativity forces c2 = 0 and c3 = 0. Hypotheses he2 and he3 state that each group i ∈ {2, 3} either has c_i = b_i = 0 or c_i ≥ 1; having c_i = 0 thus forces b2 = 0 and b3 = 0. Because c2 = c3 = 0, the conditional indicators if 1 ≤ c_i then 1 else 0 both evaluate to 0, reducing the positivity hypothesis hspos to 1 ≤ m.

    lines 32–45

      · have hc2 : c2 = 0 := by omega
        have hc3 : c3 = 0 := by omega
        have hb2 : b2 = 0 := by
          rcases he2 with ⟨_, hb2⟩ | h2
          · exact hb2
          · omega
        have hb3 : b3 = 0 := by
          rcases he3 with ⟨_, hb3⟩ | h3
          · exact hb3
          · omega
        have h1 : 1 ≤ m := by
          have : (if 1 ≤ c2 then 1 else 0) = 0 := by simp [hc2]
          have : (if 1 ≤ c3 then 1 else 0) = 0 := by simp [hc3]
          omega
  3. The remaining inequalities in the first branch simplify to match the hypotheses of the 3-C-vertex pool theorem.

    Substituting a = 1, c1 = 3, c2 = c3 = 0, and b2 = b3 = 0 simplifies the root bound to b0 + c0 + eb + 4 = c, the total count to b0 + b1 + eb + c0 + d + m + 4 = 2k, and the boundary condition to b0 + b1 + eb + 5 ≤ 2k. The representative and cut bounds simplify analogously, and the critical condition hcrit simplifies because the indicator terms for b2 ≥ 1 and b3 ≥ 1 vanish.

    lines 46–70

        have hroot' : b0 + c0 + eb + 4 = c := by omega
        have htotal' : b0 + b1 + eb + c0 + d + m + 4 = 2 * k := by
          have : (if 1 ≤ c2 then 1 else 0) = 0 := by simp [hc2]
          have : (if 1 ≤ c3 then 1 else 0) = 0 := by simp [hc3]
          omega
        have hb' : b0 + b1 + eb + 5 ≤ 2 * k := by omega
        have hrep0' : 1 ≤ c0 → b1 + eb + 6 ≤ c := by
          intro hc0
          have := hrep0C hc0
          omega
        have hcut' : 1 ≤ d → d + b1 + eb + c ≤ 2 * k := by
          intro hd
          have := hcutD hd
          omega
        have hcrit' : (b0 + b1 + eb + 5 < 2 * k → m + b0 + b1 + eb + 6 ≤ 2 * k) ∧
          (b0 + b1 + eb + 5 = 2 * k → m ≤ 1 ∧
            ((if 1 ≤ b0 then 1 else 0) + (if 1 ≤ b1 then 1 else 0) + m ≤ 1)) := by
          refine ⟨fun hlt => ?_, fun heq => ?_⟩
          · have := hcrit.1 (by omega)
            omega
          · have ⟨hm1, hsum⟩ := hcrit.2 (by omega)
            refine ⟨hm1, ?_⟩
            have : (if 1 ≤ b2 then 1 else 0) = 0 := by simp [hb2]
            have : (if 1 ≤ b3 then 1 else 0) = 0 := by simp [hb3]
            omega
  4. The first branch is impossible.

    Applying saturated_small_shore_three_c_vertices_pool_card_eq to the simplified bounds yields eb = m. The pool hypothesis hpool then forces m = 0, directly contradicting 1 ≤ m.

    lines 71–74

    uses saturated_small_shore_three_c_vertices_pool_card_eq

        have hebm := saturated_small_shore_three_c_vertices_pool_card_eq k c m eb b0 b1 c0 d
          hc hkc heb hroot' htotal' hb' hrep0' hcut' hcrit'
        have hm0 := hpool hebm
        omega
  5. In the second branch (c1 = 1, c2 + c3 = 2), the counts satisfy c2 = 1, c3 = 1, and b2 = b3 = 0.

    If c2 were not 1, then c2 + c3 = 2 would imply c2 = 0 and c3 = 2; but c3 ≥ 1 triggers the singleton condition from hsingle3 that c3 = 1, a contradiction. Thus c2 = 1 and c3 = 1. Applying the singleton conditions hsingle2 and hsingle3 then gives b2 + 1 = 1 and b3 + 1 = 1, forcing b2 = 0 and b3 = 0.

    lines 75–85

      · have hc2 : c2 = 1 := by
          by_contra hc2_ne
          have : c2 = 0 := by omega
          have hc3 : c3 = 2 := by omega
          have ⟨hc3_1, _⟩ := hsingle3 (by omega)
          omega
        have hc3 : c3 = 1 := by omega
        have ⟨_, hb21⟩ := hsingle2 (by omega)
        have hb2 : b2 = 0 := by omega
        have ⟨_, hb31⟩ := hsingle3 (by omega)
        have hb3 : b3 = 0 := by omega
  6. The inequalities in the second branch simplify to match the hypotheses of the two-exceptional-singletons theorem.

    With a = 1, c1 = c2 = c3 = 1, and b2 = b3 = 0, both conditional indicators for c2 ≥ 1 and c3 ≥ 1 equal 1. The total count simplifies to b0 + b1 + eb + c0 + d + m + 6 = 2k, the representative bound hrep2C simplifies to b0 + b1 + eb + c0 + 6 ≤ c, and the cut bound hcutD simplifies to d + b1 + eb + c ≤ 2k whenever d ≥ 1.

    lines 86–96

        have htotal' : b0 + b1 + eb + c0 + d + m + 6 = 2 * k := by
          have : (if 1 ≤ c2 then 1 else 0) = 1 := by simp [hc2]
          have : (if 1 ≤ c3 then 1 else 0) = 1 := by simp [hc3]
          omega
        have hrep' : b0 + b1 + eb + c0 + 6 ≤ c := by
          have := hrep2C (by omega)
          omega
        have hcut' : 1 ≤ d → d + b1 + eb + c ≤ 2 * k := by
          intro hd
          have := hcutD hd
          omega
  7. The target parameter values hold: m = 0, eb = 0, b1 = 0, and c1 = c2 = c3 = 1.

    Applying saturated_small_shore_two_exceptional_singletons_pool_card_eq yields eb = m and b1 = 0. By the pool hypothesis hpool, eb = m implies m = 0. Together with m ≤ eb, this implies eb = 0. Combining these with the previously determined values c1 = 1, c2 = 1, and c3 = 1 completes the goal.

    lines 97–101

    uses saturated_small_shore_two_exceptional_singletons_pool_card_eq

        have ⟨hebm, hb10⟩ := saturated_small_shore_two_exceptional_singletons_pool_card_eq
          k c m eb b0 b1 c0 d hkc heb htotal' hrep' hcut'
        have hm0 := hpool hebm
        have heb0 : eb = 0 := by omega
        refine ⟨hm0, heb0, hb10, hc1_1, hc2, hc3⟩
five_odd_saturated_small_shore_arithmetic_no_connectedness
Under the saturated small-shore arithmetic conditions, the central vertex count is a = 1, and the configuration must either have c1 = 3 with c2 + c3 = 0, or c1 = 1 with c2 + c3 = 2 and each active group among {2, 3} being a singleton with one C vertex and no B vertices.
saturated_small_shore_three_c_vertices_pool_card_eq
In a saturated small-shore configuration where the first shore has 3 C vertices and groups 2 and 3 are empty, the pool and excess boundaries coincide (eb = m).
saturated_small_shore_two_exceptional_singletons_pool_card_eq
In a saturated small-shore configuration with two exceptional singleton groups, the pool and excess boundaries coincide (eb = m) and group 1 has no B vertices (b1 = 0).

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 saturated_positive_small_shore_forces_two_singleton_groups    (k c m eb a b0 b1 b2 b3 c0 c1 c2 c3 d : ℕ)    (hc : 7 ≤ c) (hkc : c ≤ k) (heb : m ≤ eb)    (ha : 1 ≤ a ∧ a ≤ 2) (hc1 : 1 ≤ c1)    (he2 : (c2 = 0 ∧ b2 = 0) ∨ 1 ≤ c2)    (he3 : (c3 = 0 ∧ b3 = 0) ∨ 1 ≤ c3)    (hodd0 : Odd (a+b0+c0+d)) (hodd1 : Odd (b1+c1))    (hs : m + (if 1 ≤ c2 then 1 else 0) + (if 1 ≤ c3 then 1 else 0) + 1 ≤ c)    (hspos : 1 ≤ m + (if 1 ≤ c2 then 1 else 0) + (if 1 ≤ c3 then 1 else 0))    (hb : b0+b1+b2+b3+eb+5 ≤ 2*k)    (htotal : a+b0+b1+b2+b3+eb+c0+c1+c2+c3+d+m+      (if 1 ≤ c2 then 1 else 0) + (if 1 ≤ c3 then 1 else 0) = 2*k)    (hsmall : c1+c2+c3 ≤ 3)    (hrooty : a+b0+c0+b2+c2+b3+c3+eb+2 ≤ c)    (hrepA : 2 ≤ a → c1+c2+c3 ≤ 2)    (hrep0C : 1 ≤ c0 → b1+b2+b3+eb+c1+c2+c3+3 ≤ c)    (hcutD : 1 ≤ d → d+b1+b2+b3+eb+c ≤ 2*k)    (hrep1C : 2 ≤ c1 → a+b0+b2+b3+eb+c0+c2+c3+3 ≤ c)    (hrep2C : 1 ≤ c2 → a+b0+b1+b3+eb+c0+c1+c3+3 ≤ c)    (hrep3C : 1 ≤ c3 → a+b0+b1+b2+eb+c0+c1+c2+3 ≤ c)    (hcrit : (b0+b1+b2+b3+eb+5 < 2*k →        m+b0+b1+b2+b3+eb+6 ≤ 2*k) ∧      (b0+b1+b2+b3+eb+5 = 2*k → m ≤ 1 ∧        (if 1 ≤ b0 then 1 else 0) + (if 1 ≤ b1 then 1 else 0) +        (if 1 ≤ b2 then 1 else 0) + (if 1 ≤ b3 then 1 else 0) + m ≤ 1))    (hpool : eb=m → m=0) :    m=0 ∧ eb=0 ∧ b1=0 ∧ c1=1 ∧ c2=1 ∧ c3=1 := by  have hsplit := five_odd_saturated_small_shore_arithmetic_no_connectedness    k c m eb a b0 b1 b2 b3 c0 c1 c2 c3 d hc hkc heb ha hc1 he2 he3 hodd0 hodd1 hs hb htotal hsmall    hrooty hrepA hrep0C hcutD hrep1C hrep2C hrep3C hcrit  rcases hsplit with ⟨ha1, ⟨hc1_3, hc23_0, hroot⟩ | ⟨hc1_1, hc23_2, hsingle2, hsingle3⟩⟩  · have hc2 : c2 = 0 := by omega    have hc3 : c3 = 0 := by omega    have hb2 : b2 = 0 := by      rcases he2 with ⟨_, hb2⟩ | h2      · exact hb2      · omega    have hb3 : b3 = 0 := by      rcases he3 with ⟨_, hb3⟩ | h3      · exact hb3      · omega    have h1 : 1 ≤ m := by      have : (if 1 ≤ c2 then 1 else 0) = 0 := by simp [hc2]      have : (if 1 ≤ c3 then 1 else 0) = 0 := by simp [hc3]      omega    have hroot' : b0 + c0 + eb + 4 = c := by omega    have htotal' : b0 + b1 + eb + c0 + d + m + 4 = 2 * k := by      have : (if 1 ≤ c2 then 1 else 0) = 0 := by simp [hc2]      have : (if 1 ≤ c3 then 1 else 0) = 0 := by simp [hc3]      omega    have hb' : b0 + b1 + eb + 5 ≤ 2 * k := by omega    have hrep0' : 1 ≤ c0 → b1 + eb + 6 ≤ c := by      intro hc0      have := hrep0C hc0      omega    have hcut' : 1 ≤ d → d + b1 + eb + c ≤ 2 * k := by      intro hd      have := hcutD hd      omega    have hcrit' : (b0 + b1 + eb + 5 < 2 * k → m + b0 + b1 + eb + 6 ≤ 2 * k) ∧      (b0 + b1 + eb + 5 = 2 * k → m ≤ 1 ∧        ((if 1 ≤ b0 then 1 else 0) + (if 1 ≤ b1 then 1 else 0) + m ≤ 1)) := by      refine ⟨fun hlt => ?_, fun heq => ?_⟩      · have := hcrit.1 (by omega)        omega      · have ⟨hm1, hsum⟩ := hcrit.2 (by omega)        refine ⟨hm1, ?_⟩        have : (if 1 ≤ b2 then 1 else 0) = 0 := by simp [hb2]        have : (if 1 ≤ b3 then 1 else 0) = 0 := by simp [hb3]        omega    have hebm := saturated_small_shore_three_c_vertices_pool_card_eq k c m eb b0 b1 c0 d      hc hkc heb hroot' htotal' hb' hrep0' hcut' hcrit'    have hm0 := hpool hebm    omega  · have hc2 : c2 = 1 := by      by_contra hc2_ne      have : c2 = 0 := by omega      have hc3 : c3 = 2 := by omega      have ⟨hc3_1, _⟩ := hsingle3 (by omega)      omega    have hc3 : c3 = 1 := by omega    have ⟨_, hb21⟩ := hsingle2 (by omega)    have hb2 : b2 = 0 := by omega    have ⟨_, hb31⟩ := hsingle3 (by omega)    have hb3 : b3 = 0 := by omega    have htotal' : b0 + b1 + eb + c0 + d + m + 6 = 2 * k := by      have : (if 1 ≤ c2 then 1 else 0) = 1 := by simp [hc2]      have : (if 1 ≤ c3 then 1 else 0) = 1 := by simp [hc3]      omega    have hrep' : b0 + b1 + eb + c0 + 6 ≤ c := by      have := hrep2C (by omega)      omega    have hcut' : 1 ≤ d → d + b1 + eb + c ≤ 2 * k := by      intro hd      have := hcutD hd      omega    have ⟨hebm, hb10⟩ := saturated_small_shore_two_exceptional_singletons_pool_card_eq      k c m eb b0 b1 c0 d hkc heb htotal' hrep' hcut'    have hm0 := hpool hebm    have heb0 : eb = 0 := by omega    refine ⟨hm0, heb0, hb10, hc1_1, hc2, hc3⟩
See it in the graphDiscuss this resultChallenge it