Binary universal block code with logarithmic regret
OpenQAlgorithms.Papers.Independent.Intakethird100.P80.universal_code51Fix a finite nonlocality scenario and a normalized setting law . Let be its full family of potential-outcome local trial laws. There exist actual binary prefix block codes on the entire finite trial-word alphabet, a constant , and an integer , such that every and every word satisfy
An impossible word has infinite ideal length. The codes also exist for the smaller block lengths; the bound is asymptotic. Both constants are chosen before the block length and the sample word. This is the source's local-family specialization, not a claim for an arbitrary composite statistical class.
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P80
noncomputable section
namespace QAlgorithms.Papers.Independent.Intakethird100.P80
open scoped BigOperators ENNReal Topology Classical
open MeasureTheory Filter
section ProbabilityCoding
/-- PDF p.27, (51), specialized to the local family of pp.29–31: actual binary initialTrials codes
for the FULL alphabet, uniform in n and in the data. Impossible likelihoods have length infinity.
A threshold n>=2 expresses O(log n); both constants precede all n and sample words. -/
theorem universal_code51 (S : BellExperiment) (s : Sigma S) :
∃ (C : (n : ℕ) → (Fin n → BellTrial S) → List Bool) (K : ℝ) (N : ℕ),
0 < K ∧ 2 ≤ N ∧ (∀ n, IsPrefixCode (C n)) ∧
∀ n, N ≤ n → ∀ z : Fin n → BellTrial S,
ENNReal.ofReal ((C n z).length : ℝ) ≤
(⨅ p : PiLocal S, idealLength (trialJointLaw (localTable p.1) s.1) z) +
ENNReal.ofReal (K * Real.logb 2 n) := by sorry
end ProbabilityCoding
end QAlgorithms.Papers.Independent.Intakethird100.P80
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For every experiment consisting of a positive finite number of parties, positive finite numbers of settings for each party, and positive finite numbers of outcomes at each party and setting, and for every nonnegative distribution of total mass on its joint settings, the following objects exist: a family assigning a finite Boolean word to every length- trial sample, a real constant , and a natural number . Here a trial consists of a joint setting and an outcome tuple permitted at . For every , the map is prefix-free in the precise sense that being a prefix of implies . To state the length bound, let be the finite set of assignments prescribing an outcome at every setting of every party, let be its simplex of nonnegative distributions of total mass , and define
Put when , and otherwise put , embedded in . For every natural number and every length- trial sample , the asserted bound is
with both finite terms interpreted as extended nonnegative real numbers. The prefix condition also applies at , whose sample space has one element, while the length bound applies only for . Settings of probability zero are allowed; if every vanishes, the right-hand side of the bound is .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.