AFTD Auto-Formalizing Theoretical Domains

empty_pool_exceptional_shape_arithmetic

theoremverified

The stated total, representative, and cut counts force the first shore to occupy the entire opposite block and the second shore to be a singleton.

Statement

theorem empty_pool_exceptional_shape_arithmetic
    (k c b0 c0 d0 b1 : ℕ) (hc : 7 ≤ c) (hkc : c ≤ k)
    (htotal : b0+c0+d0+b1+6=2*k)
    (hrep : b0+b1+c0+6 ≤ c)
    (hD : d0 ≤ 2*k-c)
    (hcut : 1 ≤ d0 → d0+b1 ≤ 2*k-c) :
    d0=2*k-c ∧ b1=0 ∧ b0+c0+6=c
Source
OP-1957; empty-pool exceptional aggregate pattern, experiments 41503 and 41553.
Verified
27 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 1

The proof, explained

The proof deduces the values of $d_0$, $b_1$, and $b_0 + c_0 + 6$ by linear arithmetic on the given equations and bounds. The total sum $b_0 + c_0 + d_0 + b_1 + 6 = 2k$ combined with $b_0 + b_1 + c_0 + 6 \le c$ forces $d_0 \ge 2k - c$, which squeezes $d_0$ against its upper bound to yield $d_0 = 2k - c$. Since $c \le k$ and $c \ge 7$, $d_0 \ge 1$, which activates the cut inequality $d_0 + b_1 \le 2k - c$ to force $b_1 = 0$, and the remaining equality $b_0 + c_0 + 6 = c$ follows immediately. Lean's `omega` tactic closes this linear arithmetic goal in a single step.

  1. $d_0 = 2k - c$, $b_1 = 0$, and $b_0 + c_0 + 6 = c$ automation

    The goal is a system of linear constraints over the natural numbers. Rewriting the total sum as $(b_0 + c_0 + b_1 + 6) + d_0 = 2k$ and using the upper bound $b_0 + c_0 + b_1 + 6 \le c$ forces $d_0 \ge 2k - c$, which matches the hypothesis $d_0 \le 2k - c$ to give $d_0 = 2k - c$. Because $c \le k$ and $c \ge 7$, we have $d_0 = 2k - c \ge k \ge 7 \ge 1$. This satisfies the premise of the cut hypothesis $1 \le d_0 \to d_0 + b_1 \le 2k - c$, implying $d_0 + b_1 \le d_0$ and thus $b_1 = 0$. Substituting $d_0 = 2k - c$ and $b_1 = 0$ back into the total sum yields $b_0 + c_0 + 6 = c$. The `omega` tactic verifies all these linear deductions automatically.

    line 8

      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 empty_pool_exceptional_shape_arithmetic    (k c b0 c0 d0 b1 : ℕ) (hc : 7 ≤ c) (hkc : c ≤ k)    (htotal : b0+c0+d0+b1+6=2*k)    (hrep : b0+b1+c0+6 ≤ c)    (hD : d0 ≤ 2*k-c)    (hcut : 1 ≤ d0 → d0+b1 ≤ 2*k-c) :    d0=2*k-c ∧ b1=0 ∧ b0+c0+6=c := by  omega
See it in the graphDiscuss this resultChallenge it