AFTD Auto-Formalizing Theoretical Domains

five_odd_saturated_large_shore_arithmetic_core

theoremverified

The displayed natural-number endpoint, degree, separator and B-component inequalities cannot all hold in the A-rich aggregate obstruction.

Statement

theorem five_odd_saturated_large_shore_arithmetic_core
    (k c m eb a b0 b1 c0 d : ℕ)
    (hc : 7 ≤ c) (hkc : c ≤ k) (heb : m ≤ eb)
    (ha : 3 ≤ a ∧ a ≤ 4) (hodd : Odd (a+b0+c0+d))
    (hb : b0+b1+eb+5 ≤ 2*k)
    (htotal : a+b0+b1+eb+c0+1+d+m = 2*k)
    (hrooty : a+b0+c0+eb+2 ≤ c)
    (hrepB : 1 ≤ b0 → b1+eb+9 ≤ 2*k)
    (hrepC : 1 ≤ c0 → b1+eb+4 ≤ c)
    (hcutD : 1 ≤ d → d+b1+eb+c ≤ 2*k)
    (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)) : False
Source
OP-1957: small arithmetic core for the unbounded saturated large-shore count reduction.
Verified
24 Nov 2026
Axioms
Quot.soundpropext
Used by 3

The proof, explained

The proof shows by contradiction that the system of inequalities and parity condition is inconsistent. First, the cut and separator bounds force the boundary parameters $d$ and $c_0$ to vanish. Next, the criticality condition forces the inequality $b_0 + b_1 + eb + 5 \le 2k$ to hold as an exact equality, which activates a constraint bounding a sum of indicator variables and $m$ by 1; since $b_1 \ge 1$, this forces both $m = 0$ and $b_0 = 0$. Finally, comparing the simplified total sum with this equality yields $a = 4$, which contradicts the assumption that $a + b_0 + c_0 + d$ is odd.

  1. $d = 0$

    Assume for contradiction that $d \ne 0$, so $d \ge 1$. The hypothesis `hcutD` then gives $d + b_1 + eb + c \le 2k$. Combining this with the lower bound on $c$ from `hrooty` ($a + b_0 + c_0 + eb + 2 \le c$) and the total sum equation `htotal` ($a + b_0 + b_1 + eb + c_0 + 1 + d + m = 2k$) yields an arithmetic contradiction via `omega`. Thus $d = 0$.

    lines 16–19

      have hd : d = 0 := by
        by_contra hn
        have h := hcutD (by omega)
        omega
  2. $c_0 = 0$

    Assume for contradiction that $c_0 \ne 0$, so $1 \le c_0$. The hypothesis `hrepC` then yields $b_1 + eb + 4 \le c$. Together with $c \le k$ (`hkc`), $a + b_0 + c_0 + eb + 2 \le c$ (`hrooty`), and $d = 0$, linear arithmetic shows this is incompatible with the total sum equation `htotal`, so $c_0 = 0$.

    lines 20–23

      have hc0 : c0 = 0 := by
        by_contra hn
        have h := hrepC (by omega)
        omega
  3. $b_0 + b_1 + eb + 5 = 2k$

    From `hb`, we have $b_0 + b_1 + eb + 5 \le 2k$. If strict inequality held, the first conjunct of `hcrit` would imply $m + b_0 + b_1 + eb + 6 \le 2k$. However, with $c_0 = 0$ and $d = 0$, the total sum equation is $a + b_0 + b_1 + eb + 1 + m = 2k$. Since $a \ge 3$ by `ha`, this contradicts the upper bound, so equality must hold.

    lines 24–27

      have heq : b0+b1+eb+5 = 2*k := by
        by_contra hn
        have h := hcrit.1 (by omega)
        omega
  4. $b_1 \ge 1$ and $m = 0$

    Specializing the second branch of `hcrit` with the equality $b_0 + b_1 + eb + 5 = 2k$ gives $(\text{if } 1 \le b_0 \text{ then } 1 \text{ else } 0) + (\text{if } 1 \le b_1 \text{ then } 1 \text{ else } 0) + m \le 1$. Linear arithmetic on the existing bounds forces $b_1 \ge 1$. Rewriting with `if_pos` simplifies the second indicator to $1$, leaving $(\text{if } 1 \le b_0 \text{ then } 1 \text{ else } 0) + 1 + m \le 1$. Since all terms are non-negative natural numbers, this forces $m = 0$.

    lines 28–31

    uses if_pos

      have hconnected := (hcrit.2 heq).2
      have hb1 : 1 ≤ b1 := by omega
      rw [if_pos hb1] at hconnected
      have hm : m = 0 := by omega
  5. $b_0 = 0$

    Suppose for contradiction that $b_0 \ne 0$, so $1 \le b_0$. Rewriting with `if_pos` replaces the remaining indicator with $1$, producing $1 + 1 + m \le 1$, which is impossible in $\mathbb{N}$. Hence $b_0 = 0$.

    lines 32–36

    uses if_pos

      have hb0 : b0 = 0 := by
        by_contra hn
        have hb0pos : 1 ≤ b0 := by omega
        rw [if_pos hb0pos] at hconnected
        omega
  6. $a = 4$

    Substituting $b_0 = 0$, $c_0 = 0$, $d = 0$, and $m = 0$ into the total sum equation gives $a + b_1 + eb + 1 = 2k$. Comparing this with $b_1 + eb + 5 = 2k$ (from the equality proved earlier with $b_0 = 0$) forces $a + 1 = 5$, hence $a = 4$.

    line 37

      have ha4 : a = 4 := by omega
  7. False (the hypotheses are contradictory)

    The hypothesis `hodd` states that $a + b_0 + c_0 + d$ is odd, so $a + b_0 + c_0 + d = 2t + 1$ for some natural number $t$. But having established $b_0 = 0$, $c_0 = 0$, $d = 0$, and $a = 4$, the sum evaluates to $4$. Since $4 = 2t + 1$ has no solution in $\mathbb{N}$, `omega` derives the final contradiction.

    lines 38–39

      obtain ⟨t, ht⟩ := hodd
      omega
if_pos
If a condition $c$ is true, the conditional expression `if c then t else e` evaluates 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

set_option maxHeartbeats 1000000theorem five_odd_saturated_large_shore_arithmetic_core    (k c m eb a b0 b1 c0 d : ℕ)    (hc : 7 ≤ c) (hkc : c ≤ k) (heb : m ≤ eb)    (ha : 3 ≤ a ∧ a ≤ 4) (hodd : Odd (a+b0+c0+d))    (hb : b0+b1+eb+5 ≤ 2*k)    (htotal : a+b0+b1+eb+c0+1+d+m = 2*k)    (hrooty : a+b0+c0+eb+2 ≤ c)    (hrepB : 1 ≤ b0 → b1+eb+9 ≤ 2*k)    (hrepC : 1 ≤ c0 → b1+eb+4 ≤ c)    (hcutD : 1 ≤ d → d+b1+eb+c ≤ 2*k)    (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)) : False := by  have hd : d = 0 := by    by_contra hn    have h := hcutD (by omega)    omega  have hc0 : c0 = 0 := by    by_contra hn    have h := hrepC (by omega)    omega  have heq : b0+b1+eb+5 = 2*k := by    by_contra hn    have h := hcrit.1 (by omega)    omega  have hconnected := (hcrit.2 heq).2  have hb1 : 1 ≤ b1 := by omega  rw [if_pos hb1] at hconnected  have hm : m = 0 := by omega  have hb0 : b0 = 0 := by    by_contra hn    have hb0pos : 1 ≤ b0 := by omega    rw [if_pos hb0pos] at hconnected    omega  have ha4 : a = 4 := by omega  obtain ⟨t, ht⟩ := hodd  omega
See it in the graphDiscuss this resultChallenge it