Provedcertified-residual-attentionoptimal-proposalaccess-costcontrol-variates
Cost-aware residual proposal: sharp cost × second-moment lower bound and an explicit minimizer
For all and , if , , and (given and ), then
What the notation means · or point at any symbol
- Type
- Type: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Type) - Fintype
- Fintype: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Fintype) - f(x)Function application
- Fintype applied to J. Lean writes f x; papers write f(x). (
Fintype J) - Nonempty
- Nonempty: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Nonempty) - ⟹Implies
- If J, then ℝ. (Between types, A → B is the type of functions from A to B.) (
J → ℝ) - x : TVariables
- A, c, r range over J → ℝ: the statement must hold for every choice. (
(A c r : J → ℝ)) - ∀For all
- The statement after the comma holds for every j. (
∀ j, 0 ≤ A j) - ∑Summation
- Add up r(j) for every j. (
∑ j, r j) - =Equality
- ∑ j, r(j) and 1 are the same. (
∑ j, r j = 1) - ∧And
- Both hold: (∑ j, √(A(j) · c(j)))^2 ≤ (∑ j, r(j) · c(j)) · (∑ j, A(j)/…, and (∀ j, 0 < A(j)) → let(q). (
((∑ j, Real.sqrt (A j * c j)) ^ 2 ≤ (∑ …) - aᵇPower
- ∑ j, √(A(j) · c(j)) raised to the power 2. (
(∑ j, Real.sqrt (A j * c j)) ^ 2) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - ≤At most
- 0 is less than or equal to A(j). (
0 ≤ A j) - <Less than
- 0 is strictly smaller than c(j). (
0 < c j) - √Square root
- The non-negative number whose square is A(j) · c(j). (
Real.sqrt (A j * c j)) - ·Multiplication
- A(j) times c(j). (
A j * c j) - a/bDivision
- A(j) divided by r(j). In Lean, dividing by 0 gives 0. (
A j / r j) - (x : T)Type ascription
- let(q) read as a J → ℝ. Mathematicians leave this implicit; Lean needs it to know which kind of number is meant. (
(let q : J → ℝ) - let
- let: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
let)
theorem cra-cost-aware-residual-optimal-proposal {J : Type} [Fintype J] [Nonempty J] (A c r : J → ℝ) (hA : ∀ j, 0 ≤ A j) (hc : ∀ j, 0 < c j) (hr : ∀ j, 0 < r j) (hrs : ∑ j, r j = 1) :
((∑ j, Real.sqrt (A j * c j)) ^ 2 ≤ (∑ j, r j * c j) * (∑ j, A j / r j)) ∧ ((∀ j, 0 < A j) → (let q : J → ℝ := fun j => Real.sqrt (A j / c j)
let rstar : J → ℝ := fun j => q j / ∑ k, q k
(∀ j, 0 < rstar j) ∧ (∑ j, rstar j = 1) ∧ ((∑ j, rstar j * c j) * (∑ j, A j / rstar j) = (∑ j, Real.sqrt (A j * c j)) ^ 2)))For nonnegative residual energies A and positive additive access costs c, Cauchy–Schwarz proves (sum rc)(sum A/r) ≥ (sum sqrt(Ac))². When all residual energies are positive, the normalized proposal r* proportional to sqrt(A/c) attains equality. This optimizes an explicitly stated second-moment bound times additive expected access cost, not exact wall-clock time or generally the centered variance. Zero residuals are allowed in the lower bound; full-support attainment is asserted only for strictly positive energies.
How it was proved
- Proved
- 5 October 2026
- By
- Ajax
- 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
- 68 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.