BanditAlgorithm.kiefer_wolfowitz_equivalence
Proved(Kiefer–Wolfowitz; L&S Theorem 21.1) Let () be compact with . A design is a probability measure supported in , with moment matrix and G-objective
For every design , the following are equivalent:
- (a) is G-optimal ( positive definite and minimizes among designs with positive-definite moment matrix);
- (b) maximizes over all designs (equivalently, maximizes );
- (c) .
Moreover there exists a G-optimal design supported on a finite set of at most points.
import Mathlib.LinearAlgebra.Matrix.PosDef import Mathlib.LinearAlgebra.Span.Basic import Mathlib.Topology.Algebra.Module.FiniteDimension import Definitions.Def_SelfNormalizedProcess open MeasureTheory Matrix
theorem BanditAlgorithm.kiefer_wolfowitz_equivalence
{d : ℕ} (hd : 0 < d) (𝒜 : Set (Fin d → ℝ)) (h𝒜 : IsCompact 𝒜)
(hspan : Submodule.span ℝ 𝒜 = ⊤) :
(∀ πs : Measure (Fin d → ℝ), IsDesignOn d 𝒜 πs →
((IsGOptimalDesign d 𝒜 πs ↔
∀ π : Measure (Fin d → ℝ), IsDesignOn d 𝒜 π →
(designMatrix d π).det ≤ (designMatrix d πs).det) ∧
(IsGOptimalDesign d 𝒜 πs ↔ designGValue d 𝒜 πs = (d : ℝ)))) ∧
∃ πs : Measure (Fin d → ℝ), IsDesignOn d 𝒜 πs ∧ IsGOptimalDesign d 𝒜 πs ∧
∃ s : Finset (Fin d → ℝ), ↑s ⊆ 𝒜 ∧ s.card ≤ d * (d + 1) / 2 ∧
πs ((↑s : Set (Fin d → ℝ))ᶜ) = 0 := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Setup and notation. Fix a dimension and a set . A measure on is a design on iff is a probability measure with . Its design matrix is (entrywise Bochner integrals), its G-value is
and is G-optimal iff is positive definite and for every design on whose design matrix is positive definite. (The G-optimality predicate itself does not require to be a design on ; in this theorem that is imposed by the surrounding quantifiers.)
Assertion (a conjunction of an equivalence part and an existence part):
Part 1. For every design on , both of the following equivalences hold: $$\text{ is G-optimal} \iff \Bigl(\forall, \pi \text{ design on } \mathcal{A}:;; \det V(\pi) ;\le; \det V(\pi^*)\Bigr),
\text{ is G-optimal} \iff g(\pi^*) = d.$$
Part 2. There exists a design on that is G-optimal and finitely supported in : there is a finite set with
Hypotheses.
- (strict positivity).
- is compact.
- spans all of (its linear span is the whole space); together with this forces .
Edge cases.
- In the determinant characterization, the right-hand side quantifies over all designs on , including those with singular design matrices — no positive-definiteness restriction there — whereas the comparison clause inside G-optimality is restricted to competitors with positive-definite design matrices.
- Junk-value conventions: the Mathlib inverse of a singular matrix is the zero matrix, so a design with singular has ; the real supremum of an empty set or of a set unbounded above is . In the second equivalence, is an exact equality of real numbers.
- Design-matrix entries are Bochner integrals ( by convention if the integrand is not integrable).
- The cardinality bound uses natural-number division; since is always even, it equals the exact value .
Confirmed by the mission captain (proposal self-audit).