Lemma 13 —
ProvedEmpiricalBernstein.SVP.lemma_13Let and be random vectors with values in such that all the and are independent and identically distributed with law . Let . Then
where has independent coordinates uniform on and is the swapped vector.
This is the symmetrization step of the double-sample method: swapping and does not change the joint law, so the expectation can be bounded by a worst case over fixed double samples, where only the random signs remain.
Formalization Note The paper calls the function ; it is G here because F is the hypothesis class elsewhere in the mission. has law on (Fin n → 𝒳) × (Fin n → 𝒳); is the uniform average over the vectors σ : Fin n → Bool. Added hypothesis: is measurable, making precise the paper's convention that measurability questions are ignored. The supremum is a real supremum of values in , hence bounded.
import Mathlib import Definitions.Def_EmpiricalBernstein_SVP_swap open MeasureTheory
namespace EmpiricalBernstein.SVP
/-- Lemma 13 (arXiv:0907.3740v1, p. 5): `X, X′` independent i.i.d. samples of size `n` from `μ`;
`𝔼_σ` is the uniform average over the `2^n` sign vectors `σ`; `G` is the paper's `F`. -/
theorem lemma_13 {𝒳 : Type*} [MeasurableSpace 𝒳] (μ : Measure 𝒳) [IsProbabilityMeasure μ]
{n : ℕ} (G : (Fin n → 𝒳) × (Fin n → 𝒳) → ℝ) (hGm : Measurable G)
(hG : ∀ p, G p ∈ Set.Icc (0 : ℝ) 1) :
∫ p, G p ∂((Measure.pi fun _ : Fin n => μ).prod (Measure.pi fun _ : Fin n => μ))
≤ ⨆ p : (Fin n → 𝒳) × (Fin n → 𝒳),
((2 : ℝ) ^ n)⁻¹ * ∑ σ : Fin n → Bool,
G (swap σ p.1 p.2, swap (fun i => !σ i) p.1 p.2) := by sorry
end EmpiricalBernstein.SVP
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.