op309_bridge_gap_double_count_arithmetic
Charging good blocks injectively to covered connectors gives the total uncovered-vertex upper bound.
Statement
theorem op309_bridge_gap_double_count_arithmetic
(k h good blockU hubU total : ℕ) (hh : h + 2 = k)
(hblock : blockU ≤ k + good) (hcovered : hubU + good ≤ h)
(htotal : total = blockU + hubU) : total + 2 ≤ 2 * k- Source
- OP-309 bridge-tree gap counting argument.
- Verified
- 26 Nov 2026
- Axioms
Quot.soundpropext
The proof, explained
The bound is derived by summing the upper bounds for the block and hub components: adding blockU ≤ k + good and hubU + good ≤ h cancels the auxiliary count good, showing total ≤ k + h. Adding 2 to both sides and using the relation h + 2 = k then gives total + 2 ≤ 2 * k. This linear arithmetic over ℕ is discharged automatically by omega.
total + 2 ≤ 2 * k automation
Summing the inequalities blockU ≤ k + good and hubU + good ≤ h gives total + good ≤ k + h + good, so total ≤ k + h. Adding 2 to both sides and replacing h + 2 with k yields total + 2 ≤ 2 * k. This system of linear integer relations is solved automatically by omega.
(htotal : total = blockU + hubU) : total + 2 ≤ 2 * k := by 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
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 op309_bridge_gap_double_count_arithmetic (k h good blockU hubU total : ℕ) (hh : h + 2 = k) (hblock : blockU ≤ k + good) (hcovered : hubU + good ≤ h) (htotal : total = blockU + hubU) : total + 2 ≤ 2 * k := by omega