proofs
Provedconversion-theoremrandomized-conversionheadline-theoremattention-compute-law

Boosted Randomized Conversion, end-to-end: k robust-centred runs of a base ε-oracle (each right w.p. ≥ 3/4 per node) induce a proposal with E[Σπ²/r] ≤ (1+6ε)^L + L2^L(7/8)^k((1+6ε)/3ε)^L

For all L,k∈N\htmlData{mx=1}{L, k \in \htmlData{mx=0}{\mathbb{N}}}, Ω0∈Type⁡\htmlData{mx=1}{\Omega_{0} \in \htmlData{mx=0}{\operatorname{Type}}}, w0:Ω0→R\htmlData{mx=3}{w_{0} : \htmlData{mx=0}{\Omega_{0}} \mathrel{\htmlData{mx=2}{\to}} \htmlData{mx=1}{\mathbb{R}}}, π:(Fin⁡ L→Bool⁡)→R\htmlData{mx=7}{\pi : (\htmlData{mx=2}{\htmlData{mx=0}{\operatorname{Fin}}\,\htmlData{mx=1}{L}} \mathrel{\htmlData{mx=4}{\to}} \htmlData{mx=3}{\operatorname{Bool}}) \mathrel{\htmlData{mx=6}{\to}} \htmlData{mx=5}{\mathbb{R}}}, ε∈R\htmlData{mx=1}{\varepsilon \in \htmlData{mx=0}{\mathbb{R}}}, m:N→(Fin⁡ L→Bool⁡)→R\htmlData{mx=9}{m : \htmlData{mx=0}{\mathbb{N}} \mathrel{\htmlData{mx=8}{\to}} (\htmlData{mx=3}{\htmlData{mx=1}{\operatorname{Fin}}\,\htmlData{mx=2}{L}} \mathrel{\htmlData{mx=5}{\to}} \htmlData{mx=4}{\operatorname{Bool}}) \mathrel{\htmlData{mx=7}{\to}} \htmlData{mx=6}{\mathbb{R}}}, p0:Ω0→N→(Fin⁡ L→Bool⁡)→R\htmlData{mx=11}{p_{0} : \htmlData{mx=0}{\Omega_{0}} \mathrel{\htmlData{mx=10}{\to}} \htmlData{mx=1}{\mathbb{N}} \mathrel{\htmlData{mx=9}{\to}} (\htmlData{mx=4}{\htmlData{mx=2}{\operatorname{Fin}}\,\htmlData{mx=3}{L}} \mathrel{\htmlData{mx=6}{\to}} \htmlData{mx=5}{\operatorname{Bool}}) \mathrel{\htmlData{mx=8}{\to}} \htmlData{mx=7}{\mathbb{R}}}, phat:(Fin⁡ k→Ω0)→N→(Fin⁡ L→Bool⁡)→R\htmlData{mx=15}{\mathit{phat} : (\htmlData{mx=2}{\htmlData{mx=0}{\operatorname{Fin}}\,\htmlData{mx=1}{k}} \mathrel{\htmlData{mx=4}{\to}} \htmlData{mx=3}{\Omega_{0}}) \mathrel{\htmlData{mx=14}{\to}} \htmlData{mx=5}{\mathbb{N}} \mathrel{\htmlData{mx=13}{\to}} (\htmlData{mx=8}{\htmlData{mx=6}{\operatorname{Fin}}\,\htmlData{mx=7}{L}} \mathrel{\htmlData{mx=10}{\to}} \htmlData{mx=9}{\operatorname{Bool}}) \mathrel{\htmlData{mx=12}{\to}} \htmlData{mx=11}{\mathbb{R}}}, pt,Q:(Fin⁡ k→Ω0)→N→(Fin⁡ L→Bool⁡)→R\htmlData{mx=15}{\mathit{pt}, Q : (\htmlData{mx=2}{\htmlData{mx=0}{\operatorname{Fin}}\,\htmlData{mx=1}{k}} \mathrel{\htmlData{mx=4}{\to}} \htmlData{mx=3}{\Omega_{0}}) \mathrel{\htmlData{mx=14}{\to}} \htmlData{mx=5}{\mathbb{N}} \mathrel{\htmlData{mx=13}{\to}} (\htmlData{mx=8}{\htmlData{mx=6}{\operatorname{Fin}}\,\htmlData{mx=7}{L}} \mathrel{\htmlData{mx=10}{\to}} \htmlData{mx=9}{\operatorname{Bool}}) \mathrel{\htmlData{mx=12}{\to}} \htmlData{mx=11}{\mathbb{R}}} and hQ∈∀f,ℓ,b, Q(f,ℓ,b)={:(ℓ)<Lif hthen⁡({pt(f,ℓ,b)if b(⟨ℓ,h⟩)1−pt(f,ℓ,b)otherwise)otherwise else 1\htmlData{mx=33}{\mathit{hQ} \in \htmlData{mx=32}{\htmlData{mx=31}{\forall f, \ell, b,\ \htmlData{mx=4}{\htmlData{mx=0}{Q}(\htmlData{mx=1}{f}, \htmlData{mx=2}{\ell}, \htmlData{mx=3}{b})} \mathrel{\htmlData{mx=30}{=}} \htmlData{mx=29}{\begin{cases} \htmlData{mx=6}{\mathtt{:}(\htmlData{mx=5}{\ell})} \mathrel{\htmlData{mx=8}{<}} \htmlData{mx=7}{L} & \text{if } \htmlData{mx=9}{h} \\ \htmlData{mx=28}{\htmlData{mx=10}{\operatorname{then}}\left(\htmlData{mx=27}{\begin{cases} \htmlData{mx=15}{\htmlData{mx=11}{\mathit{pt}}(\htmlData{mx=12}{f}, \htmlData{mx=13}{\ell}, \htmlData{mx=14}{b})} & \text{if } \htmlData{mx=20}{\htmlData{mx=16}{b}(\htmlData{mx=19}{\left\langle \htmlData{mx=17}{\ell}, \htmlData{mx=18}{h} \right\rangle})} \\ \htmlData{mx=26}{1 - \htmlData{mx=25}{\htmlData{mx=21}{\mathit{pt}}(\htmlData{mx=22}{f}, \htmlData{mx=23}{\ell}, \htmlData{mx=24}{b})}} & \text{otherwise} \end{cases}}\right)} & \text{otherwise} \end{cases}}}\,\mathtt{else\ 1}}}, if ∀ω, 0≤w0(ω)\htmlData{mx=4}{\forall \omega,\ 0 \mathrel{\htmlData{mx=3}{\leq}} \htmlData{mx=2}{\htmlData{mx=0}{w_{0}}(\htmlData{mx=1}{\omega})}}, ∑ωw0(ω)=1\htmlData{mx=3}{\sum_{\omega} \htmlData{mx=2}{\htmlData{mx=0}{w_{0}}(\htmlData{mx=1}{\omega})}} \mathrel{\htmlData{mx=4}{=}} 1, ∀b, 0≤π(b)\htmlData{mx=4}{\forall b,\ 0 \mathrel{\htmlData{mx=3}{\leq}} \htmlData{mx=2}{\htmlData{mx=0}{\pi}(\htmlData{mx=1}{b})}}, ∑bπ(b)=1\htmlData{mx=3}{\sum_{b} \htmlData{mx=2}{\htmlData{mx=0}{\pi}(\htmlData{mx=1}{b})}} \mathrel{\htmlData{mx=4}{=}} 1, 0<ε0 \mathrel{\htmlData{mx=1}{<}} \htmlData{mx=0}{\varepsilon}, ∀ℓ,b, m(ℓ,b)=∑b′:Fin⁡ L→Bool⁡({π(b′)if (∀i:Fin⁡ L, i<ℓ  ⟹  b′(i)=b(i))0otherwise)\htmlData{mx=31}{\forall \ell, b,\ \htmlData{mx=3}{\htmlData{mx=0}{m}(\htmlData{mx=1}{\ell}, \htmlData{mx=2}{b})} \mathrel{\htmlData{mx=30}{=}} \htmlData{mx=29}{\sum_{b' : \htmlData{mx=6}{\htmlData{mx=4}{\operatorname{Fin}}\,\htmlData{mx=5}{L}} \mathrel{\htmlData{mx=8}{\to}} \htmlData{mx=7}{\operatorname{Bool}}} \left(\htmlData{mx=28}{\begin{cases} \htmlData{mx=11}{\htmlData{mx=9}{\pi}(\htmlData{mx=10}{b'})} & \text{if } (\htmlData{mx=27}{\forall i : \htmlData{mx=26}{\htmlData{mx=24}{\operatorname{Fin}}\,\htmlData{mx=25}{L}},\ \htmlData{mx=13}{\htmlData{mx=12}{i}} \mathrel{\htmlData{mx=15}{<}} \htmlData{mx=14}{\ell} \mathrel{\htmlData{mx=23}{\implies}} \htmlData{mx=18}{\htmlData{mx=16}{b'}(\htmlData{mx=17}{i})} \mathrel{\htmlData{mx=22}{=}} \htmlData{mx=21}{\htmlData{mx=19}{b}(\htmlData{mx=20}{i})}}) \\ 0 & \text{otherwise} \end{cases}}\right)}}, ∀ℓ, h:ℓ<L, b:Fin⁡ L→Bool⁡, ∑ω∈filter⁡(ω↦0<m(ℓ,b)∧ε<∣p0(ω,ℓ,b)−m(ℓ+1,update⁡(b,⟨ℓ,h⟩,true⁡))m(ℓ,b)∣)w0(ω)≤14\htmlData{mx=48}{\forall \ell,\ h : \htmlData{mx=40}{\ell} \mathrel{\htmlData{mx=42}{<}} \htmlData{mx=41}{L},\ b : \htmlData{mx=45}{\htmlData{mx=43}{\operatorname{Fin}}\,\htmlData{mx=44}{L}} \mathrel{\htmlData{mx=47}{\to}} \htmlData{mx=46}{\operatorname{Bool}},\ \htmlData{mx=37}{\sum_{\omega \in \htmlData{mx=33}{\htmlData{mx=0}{\operatorname{filter}}\left(\htmlData{mx=32}{\omega \mapsto 0 \mathrel{\htmlData{mx=5}{<}} \htmlData{mx=4}{\htmlData{mx=1}{m}(\htmlData{mx=2}{\ell}, \htmlData{mx=3}{b})} \mathbin{\htmlData{mx=31}{\land}} \htmlData{mx=6}{\varepsilon} \mathrel{\htmlData{mx=30}{<}} \htmlData{mx=29}{\left\lvert \htmlData{mx=28}{\htmlData{mx=11}{\htmlData{mx=7}{p_{0}}(\htmlData{mx=8}{\omega}, \htmlData{mx=9}{\ell}, \htmlData{mx=10}{b})} - \htmlData{mx=27}{\frac{\htmlData{mx=22}{\htmlData{mx=12}{m}(\htmlData{mx=14}{\htmlData{mx=13}{\ell} + 1}, \htmlData{mx=21}{\htmlData{mx=15}{\operatorname{update}}(\htmlData{mx=16}{b}, \htmlData{mx=19}{\left\langle \htmlData{mx=17}{\ell}, \htmlData{mx=18}{h} \right\rangle}, \htmlData{mx=20}{\operatorname{true}})})}}{\htmlData{mx=26}{\htmlData{mx=23}{m}(\htmlData{mx=24}{\ell}, \htmlData{mx=25}{b})}}}} \right\rvert}}\right)}} \htmlData{mx=36}{\htmlData{mx=34}{w_{0}}(\htmlData{mx=35}{\omega})}} \mathrel{\htmlData{mx=39}{\leq}} \htmlData{mx=38}{\frac{1}{4}}}, ∀f,ℓ, b,b′:Fin⁡ L→Bool⁡, (∀i:Fin⁡ L, i<ℓ  ⟹  b(i)=b′(i))  ⟹  phat(f,ℓ,b)=phat(f,ℓ,b′)\htmlData{mx=33}{\forall f, \ell,\ b, b' : \htmlData{mx=30}{\htmlData{mx=28}{\operatorname{Fin}}\,\htmlData{mx=29}{L}} \mathrel{\htmlData{mx=32}{\to}} \htmlData{mx=31}{\operatorname{Bool}},\ (\htmlData{mx=15}{\forall i : \htmlData{mx=14}{\htmlData{mx=12}{\operatorname{Fin}}\,\htmlData{mx=13}{L}},\ \htmlData{mx=1}{\htmlData{mx=0}{i}} \mathrel{\htmlData{mx=3}{<}} \htmlData{mx=2}{\ell} \mathrel{\htmlData{mx=11}{\implies}} \htmlData{mx=6}{\htmlData{mx=4}{b}(\htmlData{mx=5}{i})} \mathrel{\htmlData{mx=10}{=}} \htmlData{mx=9}{\htmlData{mx=7}{b'}(\htmlData{mx=8}{i})}}) \mathrel{\htmlData{mx=27}{\implies}} \htmlData{mx=20}{\htmlData{mx=16}{\mathit{phat}}(\htmlData{mx=17}{f}, \htmlData{mx=18}{\ell}, \htmlData{mx=19}{b})} \mathrel{\htmlData{mx=26}{=}} \htmlData{mx=25}{\htmlData{mx=21}{\mathit{phat}}(\htmlData{mx=22}{f}, \htmlData{mx=23}{\ell}, \htmlData{mx=24}{b'})}}, ∀f,ℓ,b, (∃t, k≤2⋅∣filter⁡(j↦∣p0(f(j),ℓ,b)−p0(f(t),ℓ,b)∣≤2ε)∣)  ⟹  ∃t, k≤2⋅∣filter⁡(j↦∣p0(f(j),ℓ,b)−p0(f(t),ℓ,b)∣≤2ε)∣∧phat(f,ℓ,b)=p0(f(t),ℓ,b)\htmlData{mx=113}{\forall f, \ell, b,\ (\htmlData{mx=48}{\exists t,\ \htmlData{mx=0}{k} \mathrel{\htmlData{mx=47}{\leq}} \htmlData{mx=46}{2 \cdot \htmlData{mx=45}{\lvert \htmlData{mx=44}{\htmlData{mx=23}{\operatorname{filter}}(\htmlData{mx=43}{j \mapsto \htmlData{mx=39}{\left\lvert \htmlData{mx=38}{\htmlData{mx=30}{\htmlData{mx=24}{p_{0}}(\htmlData{mx=27}{\htmlData{mx=25}{f}(\htmlData{mx=26}{j})}, \htmlData{mx=28}{\ell}, \htmlData{mx=29}{b})} - \htmlData{mx=37}{\htmlData{mx=31}{p_{0}}(\htmlData{mx=34}{\htmlData{mx=32}{f}(\htmlData{mx=33}{t})}, \htmlData{mx=35}{\ell}, \htmlData{mx=36}{b})}} \right\rvert} \mathrel{\htmlData{mx=42}{\leq}} \htmlData{mx=41}{2\htmlData{mx=40}{\varepsilon}}})} \rvert}}}) \mathrel{\htmlData{mx=112}{\implies}} \htmlData{mx=111}{\exists t,\ \htmlData{mx=49}{k} \mathrel{\htmlData{mx=96}{\leq}} \htmlData{mx=95}{2 \cdot \htmlData{mx=94}{\lvert \htmlData{mx=93}{\htmlData{mx=72}{\operatorname{filter}}(\htmlData{mx=92}{j \mapsto \htmlData{mx=88}{\left\lvert \htmlData{mx=87}{\htmlData{mx=79}{\htmlData{mx=73}{p_{0}}(\htmlData{mx=76}{\htmlData{mx=74}{f}(\htmlData{mx=75}{j})}, \htmlData{mx=77}{\ell}, \htmlData{mx=78}{b})} - \htmlData{mx=86}{\htmlData{mx=80}{p_{0}}(\htmlData{mx=83}{\htmlData{mx=81}{f}(\htmlData{mx=82}{t})}, \htmlData{mx=84}{\ell}, \htmlData{mx=85}{b})}} \right\rvert} \mathrel{\htmlData{mx=91}{\leq}} \htmlData{mx=90}{2\htmlData{mx=89}{\varepsilon}}})} \rvert}} \mathbin{\htmlData{mx=110}{\land}} \htmlData{mx=101}{\htmlData{mx=97}{\mathit{phat}}(\htmlData{mx=98}{f}, \htmlData{mx=99}{\ell}, \htmlData{mx=100}{b})} \mathrel{\htmlData{mx=109}{=}} \htmlData{mx=108}{\htmlData{mx=102}{p_{0}}(\htmlData{mx=105}{\htmlData{mx=103}{f}(\htmlData{mx=104}{t})}, \htmlData{mx=106}{\ell}, \htmlData{mx=107}{b})}}} and ∀f,ℓ,b, pt(f,ℓ,b)=max⁡(0,min⁡(1,phat(f,ℓ,b)))+3ε1+2(3ε)\htmlData{mx=21}{\forall f, \ell, b,\ \htmlData{mx=4}{\htmlData{mx=0}{\mathit{pt}}(\htmlData{mx=1}{f}, \htmlData{mx=2}{\ell}, \htmlData{mx=3}{b})} \mathrel{\htmlData{mx=20}{=}} \htmlData{mx=19}{\frac{\htmlData{mx=14}{\htmlData{mx=11}{\max(0, \htmlData{mx=10}{\min(1, \htmlData{mx=9}{\htmlData{mx=5}{\mathit{phat}}(\htmlData{mx=6}{f}, \htmlData{mx=7}{\ell}, \htmlData{mx=8}{b})})})} + \htmlData{mx=13}{3\htmlData{mx=12}{\varepsilon}}}}{\htmlData{mx=18}{1 + \htmlData{mx=17}{2(\htmlData{mx=16}{3\htmlData{mx=15}{\varepsilon}})}}}}} (given Fintype⁡ Ω0\htmlData{mx=2}{\htmlData{mx=0}{\operatorname{Fintype}}\,\htmlData{mx=1}{\Omega_{0}}}), then

∑f:Fin⁡ k→Ω0(∏iw0(f(i)))⋅∑b:Fin⁡ L→Bool⁡π(b)2∏ℓ=0L−1Q(f,ℓ,b)≤(1+2(3ε))L+L⋅2L⋅78k⋅(1+2(3ε)3ε)L\begin{aligned} & \htmlData{mx=31}{\sum_{f : \htmlData{mx=3}{\htmlData{mx=1}{\operatorname{Fin}}\,\htmlData{mx=2}{k}} \mathrel{\htmlData{mx=5}{\to}} \htmlData{mx=4}{\Omega_{0}}} \htmlData{mx=30}{\left(\htmlData{mx=11}{\prod_{i} \htmlData{mx=10}{\htmlData{mx=6}{w_{0}}(\htmlData{mx=9}{\htmlData{mx=7}{f}(\htmlData{mx=8}{i})})}}\right) \cdot \htmlData{mx=29}{\sum_{b : \htmlData{mx=14}{\htmlData{mx=12}{\operatorname{Fin}}\,\htmlData{mx=13}{L}} \mathrel{\htmlData{mx=16}{\to}} \htmlData{mx=15}{\operatorname{Bool}}} \htmlData{mx=28}{\frac{\htmlData{mx=20}{\htmlData{mx=19}{\htmlData{mx=17}{\pi}(\htmlData{mx=18}{b})}^{2}}}{\htmlData{mx=27}{\prod_{\ell=0}^{\htmlData{mx=21}{L} - 1} \htmlData{mx=26}{\htmlData{mx=22}{Q}(\htmlData{mx=23}{f}, \htmlData{mx=24}{\ell}, \htmlData{mx=25}{b})}}}}}}} \\ & \quad \htmlData{mx=0}{\leq} \htmlData{mx=58}{\htmlData{mx=37}{(\htmlData{mx=35}{1 + \htmlData{mx=34}{2(\htmlData{mx=33}{3\htmlData{mx=32}{\varepsilon}})}})^{\htmlData{mx=36}{L}}} + \htmlData{mx=57}{\htmlData{mx=47}{\htmlData{mx=42}{\htmlData{mx=39}{\htmlData{mx=38}{L}} \cdot \htmlData{mx=41}{2^{\htmlData{mx=40}{L}}}} \cdot \htmlData{mx=46}{\htmlData{mx=44}{\htmlData{mx=43}{\frac{7}{8}}}^{\htmlData{mx=45}{k}}}} \cdot \htmlData{mx=56}{\left(\htmlData{mx=54}{\frac{\htmlData{mx=51}{1 + \htmlData{mx=50}{2(\htmlData{mx=49}{3\htmlData{mx=48}{\varepsilon}})}}}{\htmlData{mx=53}{3\htmlData{mx=52}{\varepsilon}}}}\right)^{\htmlData{mx=55}{L}}}}} \end{aligned}
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
L, k range over natural numbers: the statement must hold for every choice. ((L k : ℕ))
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 Ω₀. Lean writes f x; papers write f(x). (Fintype Ω₀)
⟹Implies
If Ω₀, then ℝ. (Between types, A → B is the type of functions from A to B.) (Ω₀ → ℝ)
∀For all
The statement after the comma holds for every ω. (∀ ω, 0 ≤ w₀ ω)
∑Summation
Add up w₀(ω) for every ω. (∑ ω, w₀ ω)
=Equality
∑ ω, w₀(ω) and 1 are the same. (∑ ω, w₀ ω = 1)
<Less than
0 is strictly smaller than ε. (0 < ε)
x : TVariables
pt, Q range over (Fin k → Ω₀) → ℕ → (Fin L → Bool) → ℝ: the statement must hold for every choice. ((pt Q : (Fin k → Ω₀) → ℕ → (Fin L → Boo…)
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)
RReal numbers
The real numbers: every point on the number line. (ℝ)
≤At most
0 is less than or equal to w₀(ω). (0 ≤ w₀ ω)
Bool
Bool: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (Bool)
πPi
The ratio of a circle's circumference to its diameter, ≈ 3.14159. (π)
∃There exists
At least one t makes the statement after the comma true. (∃ t, k ≤ 2 * (Finset.univ.filter (fun j…)
∏Product
Multiply together w₀(f(i)) for every i. (∏ i, w₀ (f i))
maxMaximum
The larger of 0 and min(1, phat(f, ℓ, b)). (max 0 (min 1 (phat f ℓ b)))
|s|Cardinality
The number of elements of filter(j ↦ |p0(f(j), ℓ, b) − p0(f(t), ℓ, b)| ≤ 2 · ε). ((Finset.univ.filter (fun j => |p0 (f j)…)
minMinimum
The smaller of 1 and phat(f, ℓ, b). (min 1 (phat f ℓ b))
then
then: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (then)
{ a if c; b otherwiseCases (if … then … else)
π(b') when ∀ i, i < ℓ → b'(i) = b(i), and 0 otherwise. (if (∀ i : Fin L, (i : ℕ) < ℓ → b' i = b…)
filter
Finset.univ.filter: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (Finset.univ.filter)
(x : T)As natural numbers
i read as an element of natural numbers. Mathematicians leave this implicit; Lean needs it to know which kind of number is meant. ((i : ℕ))
aᵇPower
π(b) raised to the power 2. (π b ^ 2)
x ↦ f(x)Function (λ-abstraction)
The function sending ω to 0 < m(ℓ, b) ∧ ε < |p0(ω, ℓ, b) − m(ℓ + 1, update(b, ⟨ℓ, h⟩…. Lean writes fun x => …; papers write x ↦ …. (fun ω => 0 < m ℓ b ∧ ε < |p0 ω ℓ b - m …)
∧And
Both hold: 0 < m(ℓ, b), and ε < |p0(ω, ℓ, b) − m(ℓ + 1, update(b, ⟨ℓ, h⟩, true))/m(ℓ, …. (0 < m ℓ b ∧ ε < |p0 ω ℓ b - m (ℓ + 1) (…)
·Multiplication
2 times ε. (2 * ε)
|x|Absolute value
The size of p0(ω, ℓ, b) − m(ℓ + 1, update(b, ⟨ℓ, h⟩, true))/m(ℓ, b) without its sign. (|p0 ω ℓ b - m (ℓ + 1) (Function.update …)
-Subtraction
p0(ω, ℓ, b) minus m(ℓ + 1, update(b, ⟨ℓ, h⟩, true))/m(ℓ, b). On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (p0 ω ℓ b - m (ℓ + 1) (Function.update b…)
a/bDivision
m(ℓ + 1, update(b, ⟨ℓ, h⟩, true)) divided by m(ℓ, b). In Lean, dividing by 0 gives 0. (m (ℓ + 1) (Function.update b ⟨ℓ, h⟩ tru…)
+Addition
ℓ plus 1. (ℓ + 1)
update
Function.update: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (Function.update)
(x : T)As real numbers
L read as an element of real numbers. Mathematicians leave this implicit; Lean needs it to know which kind of number is meant. ((L : ℝ))
⟨a, b⟩Anonymous constructor
Builds a structure (a pair, a subtype element, …) from ℓ, h. (⟨ℓ, h⟩)
true
true: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (true)

The Attention Compute Law's crux for randomized algorithms, fully composed in one statement. A batched base algorithm answers every node of the key tree in one run; at each node it is ε-accurate except with probability 1/4. Run it k times independently (product weights on Fin k → Ω₀) and let the node estimate be any robust centre of the k answers (one with at least half the answers within 2ε of it), chosen from the answers only (prefix-dependent). Then the smoothed descent proposal satisfies E[Σ_b π_b²/r(b)] ≤ (1+6ε)^L + L·2^L·(7/8)^k·((1+6ε)/(3ε))^L. Proof inside: each node's failure event is contained in 'at least half the runs were bad' (robust-centre lemma), whose product mass is ≤ (7/8)^k (majority-vote amplification); then the end-to-end Randomized Conversion Theorem applies with ε' = 3ε, q = (7/8)^k. The 3/4 base guarantee follows for any unbiased variance-σ² algorithm by averaging 4σ²/ε² runs (rc-average-chebyshev).

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
465 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.

More proved statements