AFTD Auto-Formalizing Theoretical Domains

saturated_small_shore_two_exceptional_singletons_pool_card_eq

theoremverified

In the second small-shore arithmetic branch, the displayed total, representative, separator and size inequalities force the pool vertex count eb to equal its group count m, and the second-shore B count b1 to vanish.

Statement

theorem saturated_small_shore_two_exceptional_singletons_pool_card_eq (k c m eb b0 b1 c0 d : ℕ)
    (hkc : c ≤ k) (heb : m ≤ eb)
    (htotal : b0+b1+eb+c0+d+m+6=2*k)
    (hrep : b0+b1+eb+c0+6≤c)
    (hcut : 1≤d → d+b1+eb+c≤2*k) : eb=m ∧ b1=0
Source
OP-1957: arithmetic reduction of the saturated positive-barrier branches.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 1

The proof, explained

The proof proceeds by linear integer arithmetic. It first establishes 1 ≤ d by contradiction, since d = 0 would force k ≤ m while the representative inequality guarantees m + 6 ≤ k. Applying this fact activates the conditional cut inequality d + b₁ + eb + c ≤ 2k, which when compared to the total count equation forces b₁ + eb ≤ m; together with m ≤ eb, this forces eb = m and b₁ = 0.

  1. 1 ≤ d

    Suppose, for contradiction, that d < 1, which means d = 0 for natural numbers. Substituting d = 0 into the total count identity gives 2k = (b₀ + b₁ + eb + c₀ + 6) + m ≤ c + m ≤ k + m, which implies k ≤ m. On the other hand, combining m ≤ eb with the representative bound yields m + 6 ≤ eb + 6 ≤ c ≤ k, a contradiction since m + 6 ≤ m is impossible. Linear integer arithmetic (`omega`) detects this contradiction and closes the subproof.

    lines 6–8

      have hd : 1≤d := by
        by_contra h
        omega
  2. eb = m ∧ b₁ = 0

    Specializing the conditional cut inequality `hcut` with the established fact 1 ≤ d yields d + b₁ + eb + c ≤ 2k. Comparing this upper bound against the total sum b₀ + b₁ + eb + c₀ + d + m + 6 = 2k implies c ≤ b₀ + c₀ + m + 6. Combining this with the representative lower bound b₀ + b₁ + eb + c₀ + 6 ≤ c cancels the common terms b₀ + c₀ + 6 to force b₁ + eb ≤ m. Since m ≤ eb and b₁ ≥ 0, this sandwich forces b₁ = 0 and eb = m. Linear integer arithmetic (`omega`) verifies these bounds and closes the goal.

    lines 9–10

      have hh := hcut hd
      omega

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_small_shore_two_exceptional_singletons_pool_card_eq (k c m eb b0 b1 c0 d : ℕ)    (hkc : c ≤ k) (heb : m ≤ eb)    (htotal : b0+b1+eb+c0+d+m+6=2*k)    (hrep : b0+b1+eb+c0+6≤c)    (hcut : 1≤d → d+b1+eb+c≤2*k) : eb=m ∧ b1=0 := by  have hd : 1≤d := by    by_contra h    omega  have hh := hcut hd  omega
See it in the graphDiscuss this resultChallenge it