Provedvariational-cost-lawadaptivefirst-principles
Sequential form of the variational cost law: for an adaptive scheme whose proposal after history h is r_h, the expected next-draw cost is ≥ Σ_h P(h)·(Σ_j √(Σ_i λ_{h,i} a_ij))²
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) - x ∈ TVariables
- H, I, J range over Type: the statement must hold for every choice. (
(H I J : 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 H. Lean writes f x; papers write f(x). (
Fintype H) - 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 H, then ℝ. (Between types, A → B is the type of functions from A to B.) (
H → ℝ) - ∀For all
- The statement after the comma holds for every h. (
∀ h, 0 ≤ P h) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - ≤At most
- 0 is less than or equal to P(h). (
0 ≤ P h) - ∑Summation
- Add up r(h, j) for every j. (
∑ j, r h j) - =Equality
- ∑ j, r(h, j) and 1 are the same. (
∑ j, r h j = 1) - <Less than
- 0 is strictly smaller than r(h, j). (
0 < r h j) - aᵇPower
- ∑ j, √(∑ i, lam(h, i) · a(i, j)) raised to the power 2. (
(∑ j, Real.sqrt (∑ i, lam h i * a i j))…) - √Square root
- The non-negative number whose square is ∑ i, lam(h, i) · a(i, j). (
Real.sqrt (∑ i, lam h i * a i j)) - ·Multiplication
- lam(h, i) times a(i, j). (
lam h i * a i j) - a/bDivision
- a(i, j) divided by r(h, j). In Lean, dividing by 0 gives 0. (
a i j / r h j)
theorem vcl-sequential-form {H I J : Type} [Fintype H] [Fintype I] [Fintype J] [Nonempty J] (P : H → ℝ) (lam : H → I → ℝ) (a : I → J → ℝ) (r : H → J → ℝ) (hP : ∀ h, 0 ≤ P h) (hlam : ∀ h i, 0 ≤ lam h i) (ha : ∀ i j, 0 ≤ a i j) (hr : ∀ h j, 0 < r h j) (hrs : ∀ h, ∑ j, r h j = 1) :
∑ h, P h * (∑ j, Real.sqrt (∑ i, lam h i * a i j)) ^ 2 ≤ ∑ h, P h * ∑ i, lam h i * ∑ j, a i j / r h jRepairs disproval loop 1 of the variational cost law (an adaptive sampler can learn the row from early samples). With H the set of histories, P(h) their probabilities, λ_h the posterior over rows given h, and r_h the proposal used after h, the expected cost of the next draw is at least the law's optimum at each history, averaged. So adaptivity buys exactly the information the samples gather, and the law applies step by step. Proof: the Cauchy–Schwarz bound at each history. First-principles reformulation, 2026-10-05.
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
- 37 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.