thr_resolution_cp_rounding
Rounding the sum of translated resolution premises in Cutting Planes yields the original threshold: the ceiling of (2d - 1) / 2 equals d.
Statement
theorem thr_resolution_cp_rounding (d : ℤ) :
⌈((2 * (d : ℚ) - 1) / 2)⌉ = d- Source
- arXiv:2611.24548 Lemma 4.3 proof
- Verified
- 20 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
Read back from the Lean
For every integer $d$, the ceiling (as an integer) of the rational number $\frac{2d - 1}{2}$ is equal to $d$.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The integer ceiling ⌈(2d - 1) / 2⌉ = d is characterised by the double inequality d - 1 < (2d - 1) / 2 ≤ d via Int.ceil_eq_iff. Since (2d - 1) / 2 = d - 1/2, both inequalities hold immediately by linear arithmetic.
It suffices to show that d - 1 < (2d - 1) / 2 and (2d - 1) / 2 ≤ d.
By the characterisation of the integer ceiling (Int.ceil_eq_iff), ⌈a⌉ = d if and only if d - 1 < a ≤ d. Applying this to a = (2d - 1) / 2 turns the ceiling equality into a conjunction of two inequalities.
uses
Int.ceil_eq_iffrw [Int.ceil_eq_iff]Both inequalities d - 1 < (2d - 1) / 2 and (2d - 1) / 2 ≤ d hold. automation
Splitting the conjunction into two subgoals yields two linear rational inequalities, both equivalent to -1/2 lying between -1 and 0. Linear arithmetic (linarith) solves both automatically.
constructor <;> linarith
Int.ceil_eq_iff- For an integer z and a real (or rational) number a, ⌈a⌉ = z if and only if z - 1 < a and a ≤ z.
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.
/-- Rounding the sum of translated resolution premises in Cutting Planes yields the original threshold. -/theorem thr_resolution_cp_rounding (d : ℤ) : ⌈((2 * (d : ℚ) - 1) / 2)⌉ = d := by rw [Int.ceil_eq_iff] constructor <;> linarith