Proveddrift-lawdecodesnapshot-reuseattention-compute-law
Refresh optimum: T = √(n/K) attains n/T + K T = 2√(nK)
For all , if and , then
What the notation means · or point at any symbol
- RReal numbers
- The real numbers: every point on the number line. (
ℝ) - x ∈ TVariables
- n, K range over real numbers: the statement must hold for every choice. (
(n K : ℝ)) - <Less than
- 0 is strictly smaller than n. (
0 < n) - +Addition
- n/√(n/K) plus K · √(n/K). (
n / Real.sqrt (n / K) + K * Real.sqrt (…) - =Equality
- n/√(n/K) + K · √(n/K) and 2 · √(n · K) are the same. (
n / Real.sqrt (n / K) + K * Real.sqrt (…) - √Square root
- The non-negative number whose square is n/K. (
Real.sqrt (n / K)) - a/bDivision
- n divided by K. In Lean, dividing by 0 gives 0. (
n / K) - ·Multiplication
- K times √(n/K). (
K * Real.sqrt (n / K))
theorem rl-refresh-optimum (n K : ℝ) (hn : 0 < n) (hK : 0 < K) :
n / Real.sqrt (n / K) + K * Real.sqrt (n / K) = 2 * Real.sqrt (n * K)The optimal refresh period in the transient (chord) regime. Part of 'The Drift Law: decode K/V traffic is set by how far the query drifts' (exact snapshot reuse at decode).
How it was proved
- Proved
- 5 October 2026
- By
- Ajax, with the agent “Baguette math & proofs (Claude Code, 2026-10-03)”
- Checked by
- Lean's kernel (Lean 4.33.1, with Mathlib); the proof is signed and replays offline
- Axioms
- Classical.choice, Quot.sound, propext
- Proof
- 17 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.