op1957_degree_gap_arithmetic
The proposed gap argument supplies the cut matching, residual matching and component-size inequalities.
Statement
theorem op1957_degree_gap_arithmetic
(k r g t s q h j nC nR z p ell : ℕ)
(hr : 2 ≤ r) (hg : g < 2*r) (ht : r+1 ≤ t) (htgap : r+g ≤ t+1)
(hkl : 2*t+r ≤ k) (hku : k ≤ 2*t+r+g)
(hs : s+1 = t+r+h) (hq : t+1+s ≤ q)
(hj : q+j = k) (hjpos : 1 ≤ j)
(hC : nC = 2*k+r+h) (hR : nR+r+h = 2*k)
(hz : 1 ≤ z) (hzj : z ≤ j)
(hp : nC+2 = 2*p+q) (hell : p+ell = k) :
h+j ≤ g ∧ z+1 ≤ 2*r+h ∧ nC < 3*(q+z)+z ∧
2 ≤ q ∧ 2*p ≤ nC ∧ 2*ell+k ≤ nR- Source
- OP-1957; unbounded degree-gap counting, experiment 40104.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
The theorem establishes six arithmetic bounds on graph/code parameters (governing cut matchings, residual matchings, and component sizes) from a system of linear constraints on natural numbers k, r, g, t, s, q, h, j, nC, nR, z, p, and ℓ. Because all hypotheses and target inequalities are purely linear over ℕ, the entire conjunction is solved in one step by Lean's Presburger arithmetic decision procedure `omega`.
All six degree-gap inequalities hold. automation
The goal is a conjunction of six linear inequalities over ℕ, and all hypotheses are linear equalities or inequalities over ℕ: 1. h + j ≤ g: Substituting s + 1 = t + r + h into t + 1 + s ≤ q gives q ≥ 2t + r + h. Since q + j = k ≤ 2t + r + g, we have j = k - q ≤ g - h, which rearranges to h + j ≤ g. 2. z + 1 ≤ 2r + h: From z ≤ j ≤ g - h and g < 2r, we have z + h ≤ g ≤ 2r - 1, which implies z + 1 ≤ 2r - h ≤ 2r + h. 3. nC < 3(q + z) + z: Substituting nC = 2k + r + h = 2(q + j) + r + h, the difference 3(q + z) + z - nC simplifies to q + 4z - 2j - r - h. Since q ≥ 2t + r + h ≥ 2(r + g - 1) + r + h, j ≤ g - h, and z ≥ 1, this difference is strictly positive. 4. 2 ≤ q: Since q ≥ 2t + r + h with t ≥ r + 1 ≥ 3, we have q ≥ 8 ≥ 2. 5. 2p ≤ nC: Rewriting hp gives 2p = nC + 2 - q, which is at most nC because q ≥ 2. 6. 2ℓ + k ≤ nR: Using p + ℓ = k and 2p = nC + 2 - q, we find 2ℓ = q - r - h - 2. Then nR - (2ℓ + k) = (2k - r - h) - (q - r - h - 2 + k) = k - q + 2 = j + 2 ≥ 3. The `omega` tactic solves this system of Presburger constraints directly.
omega
- The entire proof is discharged in a single step by `omega`, Lean 4's decision procedure for Presburger arithmetic (linear integer arithmetic).
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem op1957_degree_gap_arithmetic (k r g t s q h j nC nR z p ell : ℕ) (hr : 2 ≤ r) (hg : g < 2*r) (ht : r+1 ≤ t) (htgap : r+g ≤ t+1) (hkl : 2*t+r ≤ k) (hku : k ≤ 2*t+r+g) (hs : s+1 = t+r+h) (hq : t+1+s ≤ q) (hj : q+j = k) (hjpos : 1 ≤ j) (hC : nC = 2*k+r+h) (hR : nR+r+h = 2*k) (hz : 1 ≤ z) (hzj : z ≤ j) (hp : nC+2 = 2*p+q) (hell : p+ell = k) : h+j ≤ g ∧ z+1 ≤ 2*r+h ∧ nC < 3*(q+z)+z ∧ 2 ≤ q ∧ 2*p ≤ nC ∧ 2*ell+k ≤ nR := by omega