AFTD Auto-Formalizing Theoretical Domains

boundary_barrier_numeric_contradictions

theoremverified

The displayed cardinality and degree-defect constraints yield the four separator, lower-bound, degree-budget, and factor-critical matching-budget inequalities used in the saturated-block boundary reduction.

Statement

theorem boundary_barrier_numeric_contradictions
    (k a b c s u t l v : ℕ)
    (ha : 3 ≤ a) (hc : c ≤ k) (hab : a+b=2*k)
    (hs : s ≤ u) (hdef : u+t+3 ≤ c) (hsize : l+v+s+t+2=2*k) :
    (0 < v → 2*k-c+s+2+t < 2*k) ∧
    (v=0 → 2*k-c+1 ≤ l) ∧
    (v=0 → 0<t → c-3 < l+1) ∧
    (v=0 → t=0 → b < l+s)
Source
OP-1957; arithmetic from the all-k saturated-block barrier route, experiment 36985.
Verified
22 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 1

The proof, explained

The theorem establishes four numerical inequalities on partition sizes and defect parameters used in a saturated-block boundary reduction. Each inequality is a consequence of the block-size identity $l + v + s + t + 2 = 2k$, the defect bound $s + t + 3 \le u + t + 3 \le c$, the degree constraint $a + b = 2k$ with $a \ge 3$, and $c \le k$. Because the problem consists entirely of linear relations over the natural numbers, the decision procedure `omega` closes the goal in a single step.

  1. All four conditional inequalities hold under the given parameter bounds. automation

    Each of the four conjuncts is a linear integer arithmetic consequence of the hypotheses: 1. Since $s \le u$ and $u + t + 3 \le c$, we have $s + t + 2 < c$, so $2k - c + s + 2 + t < 2k$ (regardless of $v$). 2. When $v = 0$, the partition equation yields $l = 2k - s - t - 2$. Since $c \ge s + t + 3$, we have $l - (2k - c + 1) = c - s - t - 3 \ge 0$, so $2k - c + 1 \le l$. 3. When $v = 0$ and $t > 0$, $l = 2k - s - t - 2$. Since $c \le k$, we have $2k \ge 2c \ge c + s + t + 3$, giving $l \ge c + 1 > c - 3$, hence $c - 3 < l + 1$. 4. When $v = 0$ and $t = 0$, the partition equation gives $l + s = 2k - 2$. Since $a + b = 2k$ and $a \ge 3$, we have $b \le 2k - 3 < 2k - 2 = l + s$. Because every hypothesis and goal is a quantifier-free linear relation over $\mathbb{N}$, Lean's Presburger arithmetic decision procedure `omega` verifies all four cases simultaneously.

    line 9

      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 boundary_barrier_numeric_contradictions    (k a b c s u t l v : ℕ)    (ha : 3 ≤ a) (hc : c ≤ k) (hab : a+b=2*k)    (hs : s ≤ u) (hdef : u+t+3 ≤ c) (hsize : l+v+s+t+2=2*k) :    (0 < v → 2*k-c+s+2+t < 2*k) ∧    (v=0 → 2*k-c+1 ≤ l) ∧    (v=0 → 0<t → c-3 < l+1) ∧    (v=0 → t=0 → b < l+s) := by  omega
See it in the graphDiscuss this resultChallenge it