Provedattentionfinite-probabilityreview-v7
Adaptive original-coordinate lower bound with exact independent-inclusion attainment
For all , , , , , , , , , , and , if , and (given 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. (
ℕ) - <Less than
- 0 is strictly smaller than B. (
0<B) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - x ∈ TVariables
- lambda, ε range over real numbers: the statement must hold for every choice. (
(lambda ε : ℝ)) - 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) - ·Multiplication
- Type times . (
Type*) - MeasurableSpace
- MeasurableSpace: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
MeasurableSpace) - f(x)Function application
- MeasurableSpace applied to Ω. Lean writes f x; papers write f(x). (
MeasurableSpace Ω) - Measure
- Measure: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Measure) - IsProbabilityMeasure
- IsProbabilityMeasure: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
IsProbabilityMeasure) - ⟹Implies
- If Ω, then Policy(Fin(B), univ). (Between types, A → B is the type of functions from A to B.) (
Ω → Policy (Fin B) Finset.univ) - ∀For all
- The statement after the comma holds for every σ. (
∀ σ,Integrable (fun ω => (run (policy ω…) - Policy
- Policy: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Policy) - Integrable
- Integrable: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Integrable) - ∫Integral
- The integral of answer(run(policy(ω), σ)) over ω: the signed area under it. (
∫ ω,(run (policy ω) σ).answer) - ≤At most
- B · lambda^2/(B · ε^2 + lambda^2) is less than or equal to joint(ν, σ, ω ↦ probes(run(policy(ω), σ))). (
(B : ℝ)*lambda^2/((B : ℝ)*ε^2+lambda^2)…) - ∧And
- Both hold: B · lambda^2/(B · ε^2 + lambda^2) ≤ joint(ν, σ, ω ↦ probes…, and ∀ σ, let(p). (
(B : ℝ)*lambda^2/((B : ℝ)*ε^2+lambda^2)…) - -Subtraction
- answer(run(policy(ω), σ)) minus lambda · total(univ, σ)/B. On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
(run (policy ω) σ).answer- lambda*total…) - 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) - x ↦ f(x)Function (λ-abstraction)
- The function sending ω to answer(run(policy(ω), σ)). Lean writes fun x => …; papers write x ↦ …. (
fun ω => (run (policy ω) σ).answer) - univ
- Finset.univ: 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) - +Addition
- B · ε^2 plus lambda^2. (
(B : ℝ)*ε^2+lambda^2) - e.fanswer
- answer of run(policy(ω), σ): Lean's dot notation e.answer means answer applied to e. (
(run (policy ω) σ).answer) - aᵇPower
- answer(run(policy(ω), σ)) raised to the power 2. (
(run (policy ω) σ).answer^2) - (x : T)As real numbers
- probes(run(policy(ω), σ)) read as an element of real numbers. Mathematicians leave this implicit; Lean needs it to know which kind of number is meant. (
((run (policy ω) σ).probes : ℝ)) - run
- run: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
run) - e.fprobes
- probes of run(policy(ω), σ): Lean's dot notation e.probes means probes applied to e. (
(run (policy ω) σ).probes) - a/bDivision
- lambda · total(univ, σ) divided by B. In Lean, dividing by 0 gives 0. (
lambda*total Finset.univ σ/(B : ℝ)) - total
- total: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
total) - e.fobserved
- observed of run(policy(ω), σ): Lean's dot notation e.observed means observed applied to e. (
(run (policy ω) σ).observed) - joint
- joint: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
joint) - Input
- Input: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Input) - 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 attention-v8-exact-restricted-frontier (B : ℕ) (hB : 0<B) (lambda ε : ℝ)
(hlambda : 0<lambda) (hε : 0<ε) {Ω : Type*} [MeasurableSpace Ω]
(ν : Measure Ω) [IsProbabilityMeasure ν]
(policy : Ω → Policy (Fin B) Finset.univ)
(hY : ∀ σ,Integrable (fun ω => (run (policy ω) σ).answer) ν)
(hYY : ∀ σ,Integrable (fun ω => (run (policy ω) σ).answer^2) ν)
(hYS : ∀ σ,Integrable (fun ω => (run (policy ω) σ).answer*(run (policy ω) σ).observed) ν)
(hSS : ∀ σ,Integrable (fun ω => (run (policy ω) σ).observed^2) ν)
(hN : ∀ σ,Integrable (fun ω => ((run (policy ω) σ).probes : ℝ)) ν)
(hunbiased : ∀ σ,(∫ ω,(run (policy ω) σ).answer ∂ν)=
lambda*total Finset.univ σ/(B : ℝ))
(herror : ∀ σ,(∫ ω,((run (policy ω) σ).answer-
lambda*total Finset.univ σ/(B : ℝ))^2 ∂ν)≤ε^2) :
( (B : ℝ)*lambda^2/((B : ℝ)*ε^2+lambda^2)≤
joint ν (fun σ ω => ((run (policy ω) σ).probes : ℝ)) ∧
∀ σ : Input (Fin B),
let p:=fun _ : Fin B => optimalInclusion B lambda ε
let w:=inclusionWeight p
let y:=inclusionOutput p (equalCoefficient lambda σ)
(∀ ξ,0≤w ξ) ∧ (Finset.sum Finset.univ (fun ξ => w ξ))=1 ∧
mean w y=lambda*total Finset.univ σ/(B : ℝ) ∧
mse w y (lambda*total Finset.univ σ/(B : ℝ))=ε^2 ∧
mean w inclusionReads=(B : ℝ)*lambda^2/((B : ℝ)*ε^2+lambda^2))Exact finite formal target reconstructed from the supplied version-7 review. Proof resides in the pinned additive library. Standard Lean axioms only. Does not certify floating-point implementation, full RAM runtime, weighted adaptive frontier, or unrestricted attention hardness.
How it was proved
- Proved
- 6 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
- 30 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.