op869_explicit_simulation_budgets
The per-copy and reservation bounds fit the simulation vertex and post-degree budgets with constant 10.
Statement
theorem op869_explicit_simulation_budgets (K q D n t : ℕ) (hK : 1 ≤ K) (hq : 1 ≤ q) (hD : 1 ≤ D) : let r := (q+t-1)/t let B := K*2^(5*r) let R := K*q*D n*R*B ≤ 10*K^2*q*n*D*2^(10*r) ∧ R*B+B ≤ 10*K^2*q*D*2^(10*r)
- Source
- arXiv:2610.41516, Lemma 2.5
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext
The proof, explained
We establish the two simulation budget inequalities by expanding the definitions R = K · q · D and B = K · 2^(5r). For the first bound, algebraic rearrangement gives n · R · B = K^2 · q · n · D · 2^(5r), which is bounded by 10 · K^2 · q · n · D · 2^(10r) because 1 ≤ 10 and 5r ≤ 10r. For the second bound, since R ≥ 1 we have B ≤ R · B, which implies R · B + B ≤ 2 · (R · B) = 2 · K^2 · q · D · 2^(5r); this is in turn bounded by 10 · K^2 · q · D · 2^(10r) because 2 ≤ 10 and 5r ≤ 10r.
The context defines r = ⌊(q + t - 1) / t⌋, B = K · 2^(5r), and R = K · q · D, and the goal is restated in terms of them.
The initial theorem statement defines r, B, and R via let-bindings. Simplifying and re-binding these quantities allows the goal to be expressed compactly as the conjunction n * R * B ≤ 10 * K^2 * q * n * D * 2^(10 * r) ∧ R * B + B ≤ 10 * K^2 * q * D * 2^(10 * r).
dsimp only let r := (q+t-1)/t let B := K*2^(5*r) let R := K*q*D change n*R*B ≤ 10*K^2*q*n*D*2^(10*r) ∧ R*B+B ≤ 10*K^2*q*D*2^(10*r)
R ≥ 1, 2^(5r) ≤ 2^(10r), and B ≤ R · B.
From K, q, D ≥ 1, linear arithmetic yields K, q, D > 0, so their product R = K · q · D is strictly positive and thus R ≥ 1. Since 2 > 0 and 5r ≤ 10r, Nat.pow_le_pow_right gives 2^(5r) ≤ 2^(10r). Multiplying 1 ≤ R on the right by B using Nat.mul_le_mul_right then gives B ≤ R · B.
uses
Nat.pow_le_pow_right,Nat.mul_le_mul_righthave hKpos : 0 < K := by omega have hqpos : 0 < q := by omega have hDpos : 0 < D := by omega have hR : 1 ≤ R := by have hrpos : 0 < R := by dsimp [R]; positivity omega have hE : 2^(5*r) ≤ 2^(10*r) := Nat.pow_le_pow_right (by omega) (by omega) have hB : B ≤ R*B := by simpa using Nat.mul_le_mul_right B hR
It suffices to prove each of the two budget bounds independently.
The goal is a conjunction of two inequalities, so constructor splits it into two separate subgoals.
constructorn · R · B ≤ 10 · K^2 · q · n · D · 2^(10r).
Substituting the definitions of R and B, ring arithmetic rewrites n · R · B as K^2 · q · n · D · 2^(5r). Congruence on products (gcongr) and linear arithmetic (omega) then bound this by 10 · K^2 · q · n · D · 2^(10r), using K^2 ≤ 10 · K^2 and 2^(5r) ≤ 2^(10r).
· calc n*R*B = K^2*q*n*D*2^(5*r) := by dsimp [R,B]; ring _ ≤ 10*K^2*q*n*D*2^(10*r) := by gcongr <;> omega
R · B + B ≤ 10 · K^2 · q · D · 2^(10r).
Since B ≤ R · B, linear arithmetic gives R · B + B ≤ 2 · (R · B). Substituting R and B, ring arithmetic simplifies 2 · (R · B) to 2 · K^2 · q · D · 2^(5r). Monotonicity of multiplication then bounds this by 10 · K^2 · q · D · 2^(10r), using 2 ≤ 10 and 2^(5r) ≤ 2^(10r).
· calc R*B+B ≤ 2*(R*B) := by omega _ = 2*K^2*q*D*2^(5*r) := by dsimp [R,B]; ring _ ≤ 10*K^2*q*D*2^(10*r) := by gcongr <;> omega
Nat.pow_le_pow_right- exponentiation with a positive base is monotonic in the exponent: if n > 0 and i ≤ j, then n^i ≤ n^j
Nat.mul_le_mul_right- multiplication on the right by a natural number preserves order: if n ≤ m, then n * k ≤ m * k
- Lines 9–13 are formal bookkeeping to name the let-bound expressions locally in the proof context.
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.
/-- Numerical overhead for the online-coloring fold simulation. -/theorem op869_explicit_simulation_budgets (K q D n t : ℕ) (hK : 1 ≤ K) (hq : 1 ≤ q) (hD : 1 ≤ D) : let r := (q+t-1)/t let B := K*2^(5*r) let R := K*q*D n*R*B ≤ 10*K^2*q*n*D*2^(10*r) ∧ R*B+B ≤ 10*K^2*q*D*2^(10*r) := by dsimp only let r := (q+t-1)/t let B := K*2^(5*r) let R := K*q*D change n*R*B ≤ 10*K^2*q*n*D*2^(10*r) ∧ R*B+B ≤ 10*K^2*q*D*2^(10*r) have hKpos : 0 < K := by omega have hqpos : 0 < q := by omega have hDpos : 0 < D := by omega have hR : 1 ≤ R := by have hrpos : 0 < R := by dsimp [R]; positivity omega have hE : 2^(5*r) ≤ 2^(10*r) := Nat.pow_le_pow_right (by omega) (by omega) have hB : B ≤ R*B := by simpa using Nat.mul_le_mul_right B hR constructor · calc n*R*B = K^2*q*n*D*2^(5*r) := by dsimp [R,B]; ring _ ≤ 10*K^2*q*n*D*2^(10*r) := by gcongr <;> omega · calc R*B+B ≤ 2*(R*B) := by omega _ = 2*K^2*q*D*2^(5*r) := by dsimp [R,B]; ring _ ≤ 10*K^2*q*D*2^(10*r) := by gcongr <;> omega