Proveddrift-lawdecodetilt-certificateexactness
Box certificate with residual drift: tilt deviation ≤ Σ|a_i| w_i/2 + ‖δ‖‖k‖ when the drift is Σ a_i u_i + δ
For all , , and , if and , then
What the notation means · or point at any symbol
- NNatural numbers
- The natural numbers 0, 1, 2, …. In Lean they start at 0. (
ℕ) - x ∈ TVariables
- r, d range over natural numbers: the statement must hold for every choice. (
(r d : ℕ)) - Fin
- Fin: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Fin) - f(x)Function application
- Fin applied to r. Lean writes f x; papers write f(x). (
Fin r) - ⟹Implies
- If Fin(r), then ℝ. (Between types, A → B is the type of functions from A to B.) (
Fin r → ℝ) - x : TVariables
- a, x, m, w range over Fin r → ℝ: the statement must hold for every choice. (
(a x m w : Fin r → ℝ)) - ∀For all
- The statement after the comma holds for every i. (
∀ i, |x i - m i| ≤ w i / 2) - √Square root
- The non-negative number whose square is ∑ j, δ(j)^2. (
Real.sqrt (∑ j, δ j ^ 2)) - ·Multiplication
- √(∑ j, δ(j)^2) times √(∑ j, k(j)^2). (
Real.sqrt (∑ j, δ j ^ 2) * Real.sqrt (∑…) - +Addition
- ∑ i, a(i) · x(i) plus ∑ j, δ(j) · k(j). (
∑ i, a i * x i + ∑ j, δ j * k j) - |x|Absolute value
- The size of x(i) − m(i) without its sign. (
|x i - m i|) - ≤At most
- |x(i) − m(i)| is less than or equal to w(i)/2. (
|x i - m i| ≤ w i / 2) - -Subtraction
- x(i) minus m(i). On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
x i - m i) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - ∑Summation
- Add up δ(j)^2 for every j. (
∑ j, δ j ^ 2) - aᵇPower
- δ(j) raised to the power 2. (
δ j ^ 2) - a/bDivision
- w(i) divided by 2. In Lean, dividing by 0 gives 0. (
w i / 2)
theorem rl-box-plus-residual {r d : ℕ} (a x m w : Fin r → ℝ) (δ k : Fin d → ℝ) (ρ : ℝ) (hx : ∀ i, |x i - m i| ≤ w i / 2) (hres : Real.sqrt (∑ j, δ j ^ 2) * Real.sqrt (∑ j, k j ^ 2) ≤ ρ) :
|(∑ i, a i * x i + ∑ j, δ j * k j) - ∑ i, a i * m i| ≤ ∑ i, |a i| * w i / 2 + ρDrift inside the basis span pays only box widths; only the residual δ outside the span pays a norm product. Clause 1 of the Drift Law needs drift that is mostly in a small span, the Query-Span condition, which makes it measurable (D5: fraction of per-head drift energy in a rank-r basis). Part of 'The Drift Law' (tighter tilt certificate, answering the norm-product weakness exposed by arXiv 2609.06327).
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
- 26 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.