Definitions for The statistical strength of nonlocality proofs
DefinitionQAlgorithms_Papers_Independent_Intakethird100_P80The objects the formalized statements of The statistical strength of nonlocality proofs (arXiv:quant-ph/0307125) are stated in. Each was checked against the paper by a blind read-back and a moderator.
BellExperiment: PDF pp.4,16: nonempty finite parties, settings, and setting-dependent outcomes.SettingsMeasuredOutcomesPotentialTableSigmaPiLocalpotentialAtSetting: PDF pp.5,16: measuring a setting selects coordinates of ONE potential assignment.localTable: PDF pp.5,16: the measured marginal of a full potential-outcome law.localTensorEffect: PDF p.16: coefficient tensor product of the local measurement effects.QuantumGenerated: PDF pp.4–5,16: a fixed finite quantum realization, with normalized shared density matrix and local POVMs. This witnesses quantum generation; it is never optimized in a strength.MarginalConsistency: PDF pp.5,31: every subset marginal is independent of the other parties' settings. Natural coordinate values allow comparison across dependent outcome alphabets.NonlocalityProof: PDF pp.4–5,16,31: quantum table with its probability and no-signalling invariants exposed. Properness is a separate predicate, so local quantum tables remain admissible.Proper: PDF pp.5,16: no single local potential-outcome law reproduces every setting.uniformSettings: PDF p.8: computed uniform setting weights. All setting alphabets are nonempty.Uncorrelated: PDF pp.5,8: products of normalized local setting laws, including point masses.PositiveCoordinates: PDF pp.12,33: relative simplex interior, not ambient interior.kl: PDF p.6: finite KL in bits with explicit support guard. Zero-Q terms, including 0/0, are zero. Individual signed contributions are summed BEFORE taking the nonnegative part.BellTrialtrialJointLaw: PDF pp.5–6: the SAME independently chosen setting law for quantum and local theories.statisticalPayoff: PDF p.12, equation (13): U is defined by JOINT KL; the average identity is a conclusion.lowerValue: PDF p.12, equation (14): infimum over all local theories.uniformStrength: PDF p.8, equation (8).uncorrelatedStrength: PDF p.8, equation (9): supremum over PRODUCT settings followed by infimum over Pi.correlatedStrength: PDF p.8, equation (10): potentially correlated settings.upperValue: PDF pp.13–14: the reverse optimization, kept distinct from the maximin.minimax: PDF pp.13–14: inf-sup, not defined to equal sup-inf.productSettingsSaddle: PDF pp.13–14 and proof p.35 (102)–(107): saddle orientation. The printed display on p.13 is already correct, contrary to the supplied plan notes.minimizers: PDF p.14, equations (25)–(26).Equalizer: PDF p.14: constant statisticalPayoff against EVERY potentially correlated setting law.DominatesQuantum: PDF p.12: Q is supported by the measured marginals at every setting.optimizerScore: PDF p.12, equations (15)–(16): zero-Q contributions are zero, even if their denominator vanishes. The optimizer characterization separately requires DominatesQuantum.NontrivialTable: PDF p.12: nontriviality in Theorem 1(3a).TwoByTwo: PDF pp.12,14,31: two parties, two settings each; outcomes remain arbitrary finite sets.binaryScenario: PDF pp.18,21: homogeneous binary experimental scenarios.BellScenarioMerminScenarioGHZScenariorotatedBellPairLaw: PDF pp.18,21: pair law of the fixed (00+11)/sqrt(2) state at rotation angles A,B.originalBell: PDF p.18, Appendix III-A: Bell's ORIGINAL fixed experiment.optimizedBell: PDF p.20, Table VIII (exact rationals), the optimized Bell experiment.chshTable: PDF pp.6,18,21: exact CHSH probabilities, not the rounded decimal table.chshLocal: PDF p.14, equation (27): the specified eight potential assignments each get mass 1/8.hardyAlpha: PDF p.21: Hardy's exact alpha; radical checked in the PDF.hardyBetahardyVector: PDF p.21, (38)–(39): T vector; F is its real orthogonal complement.hardy: PDF p.21: Born probabilities for alpha|00> - beta|11>, with the stated local bases.mermin: PDF p.23, Table XXII: Mermin's fixed three-setting experiment.ghzConstrained: PDF pp.17,24, (35) and Table XXVIII: 111,122,212,221 in one-based notation.ghzAllowed: PDF p.24, Table XXVIII: parity is odd at 111 and even at 122,212,221.ghzTable: PDF pp.21,24: exact GHZ conditional law.ghzLocalTable: PDF p.24, Table XXIX: exact best-local conditional table; realization is a conclusion.ghzCorrelatedSettings: PDF p.24: corrected from Table XXVIII and (35). The prose prints 0.125 instead of 0.25 and says even, instead of odd, number of setting-1 measurements.trialMeasure: PDF p.25: one-trial law as a finite atomic measure.iidLaw: PDF p.25: infinite IID law on the product sigma algebra. Under NonlocalityProof and s in Sigma, trialMeasure is a probability measure, so infinitePi's zero fallback is not used.sampleLikelihood: PDF pp.25,29: an n-sample likelihood, including the empty product at n=0.simplexVolume: PDF p.29: intrinsic simplex measure in affine dimension |potential assignments|-1. Hausdorff measure for the coordinate norm differs from affine Lebesgue volume only by a fixed positive factor, absorbed into the normalized density. Ambient volume would be zero.AdmissiblePrior: PDF p.29: the source's continuous density, normalized for intrinsic volume, and bounded strictly away from zero. Integrability is a conclusion below, rather than a default integral.bayesMarginal: PDF p.29, equation (64): actual Bayesian marginal over the same local family.posteriorOdds: PDF p.29, (68): posterior odds with fixed 0<h<1 prior probability of QM.initialTrials: First n trials of an infinite sequence.idealLength: PDF pp.26–27: ideal codelength in bits, infinite at impossible words.IsPrefixCode: Actual binary words form a prefix code on the indicated alphabet/support.shannonBefore: Canonical Shannon ordering: decreasing probability, ties broken by a fixed finite index.shannonCumulative: Left end of the Shannon interval for x in the probability-sorted alphabet.shannonSize: PDF p.31: actual integer Shannon ceiling length; used only at p(x)>0.shannonWord: PDF p.31: explicit Shannon words: the first ceil(-log2 p(x)) binary digits of the cumulative probability in decreasing-probability order. Zero-mass words are excluded from its coding alphabet; singleton support has the empty word.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_Information
/-!
Statements from van Dam, Gill and Grunwald, quant-ph/0307125v2.
All new definitions are confined to this paper. Indices are zero based; outcome 1 is T.
Distinct names separate this paper's experimental tables and likelihoods from unrelated
accepted channel/operator definitions. Base-two logs reuse Mathlib Real.logb directly.
The saddle inequalities agree with Definition 4 on PDF p.13 and its proof on p.35.
The plan incorrectly described the displayed minimizer inequality as reversed.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Intakethird100.P80
open scoped BigOperators ENNReal Topology Classical
open MeasureTheory Filter
/-- PDF pp.4,16: nonempty finite parties, settings, and setting-dependent outcomes. -/
structure BellExperiment where
parties : ℕ
parties_pos : 0 < parties
settings : Fin parties → ℕ
settings_pos : ∀ i, 0 < settings i
outcomes : (i : Fin parties) → Fin (settings i) → ℕ
outcomes_pos : ∀ i a, 0 < outcomes i a
abbrev Settings (S : BellExperiment) := (i : Fin S.parties) → Fin (S.settings i)
abbrev MeasuredOutcomes (S : BellExperiment) (s : Settings S) :=
(i : Fin S.parties) → Fin (S.outcomes i (s i))
abbrev Potential (S : BellExperiment) :=
(i : Fin S.parties) → (a : Fin (S.settings i)) → Fin (S.outcomes i a)
abbrev Table (S : BellExperiment) := (s : Settings S) → MeasuredOutcomes S s → ℝ
abbrev Sigma (S : BellExperiment) := stdSimplex ℝ (Settings S)
abbrev PiLocal (S : BellExperiment) := stdSimplex ℝ (Potential S)
/-- PDF pp.5,16: measuring a setting selects coordinates of ONE potential assignment. -/
def potentialAtSetting {S : BellExperiment} (v : Potential S) (s : Settings S) : MeasuredOutcomes S s :=
fun i => v i (s i)
/-- PDF pp.5,16: the measured marginal of a full potential-outcome law. -/
def localTable {S : BellExperiment} (p : Potential S → ℝ) : Table S :=
fun s x => ∑ v, if potentialAtSetting v s = x then p v else 0
/-- PDF p.16: coefficient tensor product of the local measurement effects. -/
def localTensorEffect {S : BellExperiment} (d : Fin S.parties → ℕ)
(M : (i : Fin S.parties) → (a : Fin (S.settings i)) →
Fin (S.outcomes i a) → Matrix (Fin (d i)) (Fin (d i)) ℂ)
(s : Settings S) (x : MeasuredOutcomes S s) :
Matrix ((i : Fin S.parties) → Fin (d i)) ((i : Fin S.parties) → Fin (d i)) ℂ :=
Matrix.of fun u v => ∏ i, M i (s i) (x i) (u i) (v i)
/-- PDF pp.4–5,16: a fixed finite quantum realization, with normalized shared density matrix
and local POVMs. This witnesses quantum generation; it is never optimized in a strength. -/
def QuantumGenerated {S : BellExperiment} (Q : Table S) : Prop :=
∃ (d : Fin S.parties → ℕ), (∀ i, 0 < d i) ∧
∃ (rho : Matrix ((i : Fin S.parties) → Fin (d i))
((i : Fin S.parties) → Fin (d i)) ℂ)
(M : (i : Fin S.parties) → (a : Fin (S.settings i)) →
Fin (S.outcomes i a) → Matrix (Fin (d i)) (Fin (d i)) ℂ),
QAlgorithms.IsDensityMatrix rho ∧ (∀ i a, QAlgorithms.IsPOVM (M i a)) ∧
∀ s x, Q s x = QAlgorithms.effectProb (localTensorEffect d M s x) rho
/-- PDF pp.5,31: every subset marginal is independent of the other parties' settings.
Natural coordinate values allow comparison across dependent outcome alphabets. -/
def MarginalConsistency {S : BellExperiment} (Q : Table S) : Prop :=
∀ (J : Finset (Fin S.parties)) (s t : Settings S),
(∀ i ∈ J, s i = t i) → ∀ v : Potential S,
(∑ x, if ∀ i ∈ J, (x i).val = (v i (s i)).val then Q s x else 0) =
(∑ x, if ∀ i ∈ J, (x i).val = (v i (t i)).val then Q t x else 0)
/-- PDF pp.4–5,16,31: quantum table with its probability and no-signalling invariants exposed.
Properness is a separate predicate, so local quantum tables remain admissible. -/
def NonlocalityProof {S : BellExperiment} (Q : Table S) : Prop :=
(∀ s, Q s ∈ stdSimplex ℝ (MeasuredOutcomes S s)) ∧ MarginalConsistency Q ∧ QuantumGenerated Q
/-- PDF pp.5,16: no single local potential-outcome law reproduces every setting. -/
def Proper {S : BellExperiment} (Q : Table S) : Prop :=
¬ ∃ p : PiLocal S, localTable p.1 = Q
/-- PDF p.8: computed uniform setting weights. All setting alphabets are nonempty. -/
def uniformSettings (S : BellExperiment) : Settings S → ℝ :=
fun _ => (Fintype.card (Settings S) : ℝ)⁻¹
/-- PDF pp.5,8: products of normalized local setting laws, including point masses. -/
def Uncorrelated {S : BellExperiment} (s : Settings S → ℝ) : Prop :=
∃ p : (i : Fin S.parties) → stdSimplex ℝ (Fin (S.settings i)),
∀ a, s a = ∏ i, (p i).1 (a i)
/-- PDF pp.12,33: relative simplex interior, not ambient interior. -/
def PositiveCoordinates {I : Type*} (p : I → ℝ) : Prop := ∀ i, 0 < p i
/-- PDF p.6: finite KL in bits with explicit support guard. Zero-Q terms, including 0/0,
are zero. Individual signed contributions are summed BEFORE taking the nonnegative part. -/
def kl {I : Type*} [Fintype I] (q p : I → ℝ) : ℝ≥0∞ :=
if ∃ x, 0 < q x ∧ p x = 0 then ⊤ else
ENNReal.ofReal (∑ x, if q x = 0 then 0 else q x * Real.logb 2 (q x / p x))
abbrev BellTrial (S : BellExperiment) := (s : Settings S) × MeasuredOutcomes S s
/-- PDF pp.5–6: the SAME independently chosen setting law for quantum and local theories. -/
def trialJointLaw {S : BellExperiment} (Q : Table S) (s : Settings S → ℝ) : BellTrial S → ℝ :=
fun z => s z.1 * Q z.1 z.2
/-- PDF p.12, equation (13): U is defined by JOINT KL; the average identity is a conclusion. -/
def statisticalPayoff {S : BellExperiment} (Q : Table S) (s : Settings S → ℝ)
(p : Potential S → ℝ) : ℝ≥0∞ := kl (trialJointLaw Q s) (trialJointLaw (localTable p) s)
/-- PDF p.12, equation (14): infimum over all local theories. -/
def lowerValue {S : BellExperiment} (Q : Table S) (s : Settings S → ℝ) : ℝ≥0∞ :=
⨅ p : PiLocal S, statisticalPayoff Q s p.1
/-- PDF p.8, equation (8). -/
def uniformStrength {S : BellExperiment} (Q : Table S) : ℝ≥0∞ :=
lowerValue Q (uniformSettings S)
/-- PDF p.8, equation (9): supremum over PRODUCT settings followed by infimum over Pi. -/
def uncorrelatedStrength {S : BellExperiment} (Q : Table S) : ℝ≥0∞ :=
⨆ s : {s : Sigma S // Uncorrelated s.1}, lowerValue Q s.1.1
/-- PDF p.8, equation (10): potentially correlated settings. -/
def correlatedStrength {S : BellExperiment} (Q : Table S) : ℝ≥0∞ :=
⨆ s : Sigma S, lowerValue Q s.1
/-- PDF pp.13–14: the reverse optimization, kept distinct from the maximin. -/
def upperValue {S : BellExperiment} (Q : Table S) (A : Set (Settings S → ℝ))
(p : Potential S → ℝ) : ℝ≥0∞ := ⨆ s : A, statisticalPayoff Q s.1 p
/-- PDF pp.13–14: inf-sup, not defined to equal sup-inf. -/
def minimax {S : BellExperiment} (Q : Table S) (A : Set (Settings S → ℝ)) : ℝ≥0∞ :=
⨅ p : PiLocal S, upperValue Q A p.1
def productSettings (S : BellExperiment) : Set (Settings S → ℝ) :=
{s | s ∈ stdSimplex ℝ (Settings S) ∧ Uncorrelated s}
/-- PDF pp.13–14 and proof p.35 (102)–(107): saddle orientation.
The printed display on p.13 is already correct, contrary to the supplied plan notes. -/
def Saddle {S : BellExperiment} (Q : Table S) (A : Set (Settings S → ℝ))
(s : Settings S → ℝ) (p : Potential S → ℝ) : Prop :=
s ∈ A ∧ p ∈ stdSimplex ℝ (Potential S) ∧
(∀ t ∈ A, statisticalPayoff Q t p ≤ statisticalPayoff Q s p) ∧
(∀ r ∈ stdSimplex ℝ (Potential S), statisticalPayoff Q s p ≤ statisticalPayoff Q s r)
/-- PDF p.14, equations (25)–(26). -/
def minimizers {S : BellExperiment} (Q : Table S) (A : Set (Settings S → ℝ)) :
Set (Potential S → ℝ) :=
{p | p ∈ stdSimplex ℝ (Potential S) ∧ upperValue Q A p = minimax Q A}
/-- PDF p.14: constant statisticalPayoff against EVERY potentially correlated setting law. -/
def Equalizer {S : BellExperiment} (Q : Table S) (p : Potential S → ℝ) : Prop :=
∃ K : ℝ≥0∞, ∀ s : Sigma S, statisticalPayoff Q s.1 p = K
/-- PDF p.12: Q is supported by the measured marginals at every setting. -/
def DominatesQuantum {S : BellExperiment} (Q : Table S) (p : Potential S → ℝ) : Prop :=
∀ s x, 0 < Q s x → 0 < localTable p s x
/-- PDF p.12, equations (15)–(16): zero-Q contributions are zero, even if their denominator
vanishes. The optimizer characterization separately requires DominatesQuantum. -/
def optimizerScore {S : BellExperiment} (Q : Table S) (s : Settings S → ℝ)
(p : Potential S → ℝ) (v : Potential S) : ℝ :=
∑ a, if Q a (potentialAtSetting v a) = 0 then 0 else
s a * Q a (potentialAtSetting v a) / localTable p a (potentialAtSetting v a)
/-- PDF p.12: nontriviality in Theorem 1(3a). -/
def NontrivialTable {S : BellExperiment} (Q : Table S) : Prop :=
∃ a x, 0 < Q a x ∧ Q a x < 1
/-- PDF pp.12,14,31: two parties, two settings each; outcomes remain arbitrary finite sets. -/
def TwoByTwo (S : BellExperiment) : Prop := S.parties = 2 ∧ ∀ i, S.settings i = 2
/-- PDF pp.18,21: homogeneous binary experimental scenarios. -/
abbrev binaryScenario (k m : ℕ) (hk : 0 < k) (hm : 0 < m) : BellExperiment where
parties := k
parties_pos := hk
settings := fun _ => m
settings_pos := fun _ => hm
outcomes := fun _ _ => 2
outcomes_pos := fun _ _ => by decide
abbrev BellScenario := binaryScenario 2 2 (by decide) (by decide)
abbrev MerminScenario := binaryScenario 2 3 (by decide) (by decide)
abbrev GHZScenario := binaryScenario 3 2 (by decide) (by decide)
/-- PDF pp.18,21: pair law of the fixed (00+11)/sqrt(2) state at rotation angles A,B. -/
def rotatedBellPairLaw (A B : ℝ) (x y : Fin 2) : ℝ :=
if x = y then (Real.cos (A - B)) ^ 2 / 2 else (Real.sin (A - B)) ^ 2 / 2
/-- PDF p.18, Appendix III-A: Bell's ORIGINAL fixed experiment. -/
def originalBell : Table BellScenario := fun s x =>
rotatedBellPairLaw (if s 0 = 0 then 0 else Real.pi / 8)
(if s 1 = 0 then Real.pi / 8 else Real.pi / 4) (x 0) (x 1)
/-- PDF p.20, Table VIII (exact rationals), the optimized Bell experiment. -/
def optimizedBell : Table BellScenario := fun s x =>
if s 0 = 0 ∧ s 1 = 0 then (if x 0 = x 1 then 1 / 2 else 0)
else if s 0 = 0 ∧ s 1 = 1 then (if x 0 = x 1 then 1 / 8 else 3 / 8)
else (if x 0 = x 1 then 3 / 8 else 1 / 8)
/-- PDF pp.6,18,21: exact CHSH probabilities, not the rounded decimal table. -/
def chshTable : Table BellScenario := fun s x =>
if (x 0 ≠ x 1) ↔ (s 0 = 1 ∧ s 1 = 1)
then 1 / 4 + Real.sqrt 2 / 8 else 1 / 4 - Real.sqrt 2 / 8
/-- PDF p.14, equation (27): the specified eight potential assignments each get mass 1/8. -/
def chshLocal : Potential BellScenario → ℝ := fun v =>
if (v 0 0, v 0 1, v 1 0, v 1 1) ∈
({(0,0,0,0), (1,1,1,1), (0,0,0,1), (1,1,1,0),
(0,0,1,0), (1,1,0,1), (1,0,0,1), (0,1,1,0)} :
Finset (Fin 2 × Fin 2 × Fin 2 × Fin 2))
then 1 / 8 else 0
/-- PDF p.21: Hardy's exact alpha; radical checked in the PDF. -/
def hardyAlpha : ℝ := Real.sqrt (2 + 2 * Real.sqrt (-13 + 6 * Real.sqrt 5)) / 2
def hardyBeta : ℝ := Real.sqrt (1 - hardyAlpha ^ 2)
/-- PDF p.21, (38)–(39): T vector; F is its real orthogonal complement. -/
def hardyVector (a x j : Fin 2) : ℝ :=
let u := if a = 0 then Real.sqrt (hardyBeta / (hardyAlpha + hardyBeta))
else -Real.sqrt (hardyBeta ^ 3 / (hardyAlpha ^ 3 + hardyBeta ^ 3))
let v := if a = 0 then Real.sqrt (hardyAlpha / (hardyAlpha + hardyBeta))
else Real.sqrt (hardyAlpha ^ 3 / (hardyAlpha ^ 3 + hardyBeta ^ 3))
if x = 1 then (if j = 0 then u else v) else (if j = 0 then -v else u)
/-- PDF p.21: Born probabilities for alpha|00> - beta|11>, with the stated local bases. -/
def hardy : Table BellScenario := fun s x =>
(hardyAlpha * hardyVector (s 0) (x 0) 0 * hardyVector (s 1) (x 1) 0 -
hardyBeta * hardyVector (s 0) (x 0) 1 * hardyVector (s 1) (x 1) 1) ^ 2
/-- PDF p.23, Table XXII: Mermin's fixed three-setting experiment. -/
def mermin : Table MerminScenario := fun s x =>
if s 0 = s 1 then (if x 0 = x 1 then 1 / 2 else 0)
else (if x 0 = x 1 then 1 / 8 else 3 / 8)
/-- PDF pp.17,24, (35) and Table XXVIII: 111,122,212,221 in one-based notation. -/
def ghzConstrained (s : Settings GHZScenario) : Prop :=
(s 0).val + (s 1).val + (s 2).val = 0 ∨
(s 0).val + (s 1).val + (s 2).val = 2
/-- PDF p.24, Table XXVIII: parity is odd at 111 and even at 122,212,221. -/
def ghzAllowed (s : Settings GHZScenario) (x : MeasuredOutcomes GHZScenario s) : Prop :=
((x 0).val + (x 1).val + (x 2).val) % 2 =
if s 0 = 0 ∧ s 1 = 0 ∧ s 2 = 0 then 1 else 0
/-- PDF pp.21,24: exact GHZ conditional law. -/
def ghzTable : Table GHZScenario := fun s x =>
if ghzConstrained s then (if ghzAllowed s x then 1 / 4 else 0) else 1 / 8
/-- PDF p.24, Table XXIX: exact best-local conditional table; realization is a conclusion. -/
def ghzLocalTable : Table GHZScenario := fun s x =>
if ghzConstrained s then (if ghzAllowed s x then 3 / 16 else 1 / 16) else 1 / 8
/-- PDF p.24: corrected from Table XXVIII and (35). The prose prints 0.125 instead of 0.25
and says even, instead of odd, number of setting-1 measurements. -/
def ghzCorrelatedSettings : Settings GHZScenario → ℝ := fun s =>
if ghzConstrained s then 1 / 4 else 0
section ProbabilityCoding
/-- Finite trial alphabet carries the discrete sigma algebra. -/
instance trialMeasurableSpace (S : BellExperiment) : MeasurableSpace (BellTrial S) := ⊤
/-- PDF p.25: one-trial law as a finite atomic measure. -/
def trialMeasure {S : BellExperiment} (Q : Table S) (s : Settings S → ℝ) : Measure (BellTrial S) :=
∑ z, ENNReal.ofReal (trialJointLaw Q s z) • Measure.dirac z
/-- PDF p.25: infinite IID law on the product sigma algebra. Under NonlocalityProof and
s in Sigma, trialMeasure is a probability measure, so infinitePi's zero fallback is not used. -/
def iidLaw {S : BellExperiment} (Q : Table S) (s : Settings S → ℝ) : Measure (ℕ → BellTrial S) :=
Measure.infinitePi (fun _ : ℕ => trialMeasure Q s)
/-- PDF pp.25,29: an n-sample likelihood, including the empty product at n=0. -/
def sampleLikelihood {Z : Type*} (p : Z → ℝ) {n : ℕ} (z : Fin n → Z) : ℝ := ∏ i, p (z i)
/-- PDF p.29: intrinsic simplex measure in affine dimension |potential assignments|-1.
Hausdorff measure for the coordinate norm differs from affine Lebesgue volume only by a
fixed positive factor, absorbed into the normalized density. Ambient volume would be zero. -/
def simplexVolume (S : BellExperiment) : Measure (Potential S → ℝ) :=
(Measure.hausdorffMeasure ((Fintype.card (Potential S) - 1 : ℕ) : ℝ)).restrict
(stdSimplex ℝ (Potential S))
/-- PDF p.29: the source's continuous density, normalized for intrinsic volume, and bounded
strictly away from zero. Integrability is a conclusion below, rather than a default integral. -/
def AdmissiblePrior {S : BellExperiment} (w : (Potential S → ℝ) → ℝ) : Prop :=
ContinuousOn w (stdSimplex ℝ (Potential S)) ∧
(∃ c : ℝ, 0 < c ∧ ∀ p ∈ stdSimplex ℝ (Potential S), c < w p) ∧
(∫ p, w p ∂simplexVolume S) = 1
/-- PDF p.29, equation (64): actual Bayesian marginal over the same local family. -/
def bayesMarginal {S : BellExperiment} (s : Settings S → ℝ)
(w : (Potential S → ℝ) → ℝ) {n : ℕ} (z : Fin n → BellTrial S) : ℝ :=
∫ p, w p * sampleLikelihood (trialJointLaw (localTable p) s) z ∂simplexVolume S
/-- PDF p.29, (68): posterior odds with fixed 0<h<1 prior probability of QM. -/
def posteriorOdds {S : BellExperiment} (Q : Table S) (s : Settings S → ℝ)
(w : (Potential S → ℝ) → ℝ) (h : ℝ) {n : ℕ} (z : Fin n → BellTrial S) : ℝ :=
(h / (1 - h)) * sampleLikelihood (trialJointLaw Q s) z / bayesMarginal s w z
/-- First n trials of an infinite sequence. -/
def initialTrials {Z : Type*} (z : ℕ → Z) (n : ℕ) : Fin n → Z := fun i => z i.val
/-- PDF pp.26–27: ideal codelength in bits, infinite at impossible words. -/
def idealLength {Z : Type*} (p : Z → ℝ) {n : ℕ} (z : Fin n → Z) : ℝ≥0∞ :=
if sampleLikelihood p z = 0 then ⊤ else ENNReal.ofReal (-Real.logb 2 (sampleLikelihood p z))
/-- Actual binary words form a prefix code on the indicated alphabet/support. -/
def IsPrefixCode {Z : Type*} (C : Z → List Bool) : Prop :=
∀ x y, (C x).IsPrefix (C y) → x = y
/-- Canonical Shannon ordering: decreasing probability, ties broken by a fixed finite index. -/
def shannonBefore {Z : Type*} [Fintype Z] (p : Z → ℝ) (x y : Z) : Prop :=
p y < p x ∨ (p x = p y ∧ (Fintype.equivFin Z x).val < (Fintype.equivFin Z y).val)
/-- Left end of the Shannon interval for x in the probability-sorted alphabet. -/
def shannonCumulative {Z : Type*} [Fintype Z] (p : Z → ℝ) (x : Z) : ℝ :=
∑ y, if shannonBefore p y x then p y else 0
/-- PDF p.31: actual integer Shannon ceiling length; used only at p(x)>0. -/
def shannonSize {Z : Type*} (p : Z → ℝ) (x : Z) : ℕ := ⌈-Real.logb 2 (p x)⌉₊
/-- PDF p.31: explicit Shannon words: the first ceil(-log2 p(x)) binary digits of the
cumulative probability in decreasing-probability order. Zero-mass words are excluded from
its coding alphabet; singleton support has the empty word. -/
def shannonWord {Z : Type*} [Fintype Z] (p : Z → ℝ) (x : Z) : List Bool :=
List.ofFn fun j : Fin (shannonSize p x) =>
decide ((⌊(2 : ℝ) ^ (j.val + 1) * shannonCumulative p x⌋₊) % 2 = 1)
end ProbabilityCoding
section DefinitionSanity
example : (0 : Fin BellScenario.parties).val = 0 := rfl
example {S : BellExperiment} (v : Potential S) (s : Settings S) (i : Fin S.parties) :
potentialAtSetting v s i = v i (s i) := rfl
example {I : Type*} [Fintype I] (p : I → ℝ) : kl (fun _ => 0) p = 0 := by
simp [kl]
example : kl (fun _ : Unit => (1 : ℝ)) (fun _ => 0) = ⊤ := by
simp [kl]
example {Z : Type*} (p : Z → ℝ) (z : Fin 0 → Z) : sampleLikelihood p z = 1 := by
simp [sampleLikelihood]
example {Z : Type*} [Fintype Z] (p : Z → ℝ) (x : Z) :
(shannonWord p x).length = shannonSize p x := by
simp [shannonWord]
example : ghzConstrained (fun _ => 0) := by
exact Or.inl rfl
end DefinitionSanity
end QAlgorithms.Papers.Independent.Intakethird100.P80
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intakethird100.P80.AdmissiblePrior
For every Bell experiment with a positive number of parties, positive setting counts , and positive outcome counts , let , let be the probability simplex on , and let be the -dimensional Hausdorff measure on restricted to . For every function , this predicate means that is continuous on , that there exists a real constant such that for every , and that
The lower bound is strict, and the continuity and lower-bound conditions impose no requirements outside the simplex.
QAlgorithms.Papers.Independent.Intakethird100.P80.BellExperiment
A Bell experiment consists of a natural number of parties; a natural number of settings for each party ; and a natural number of outcomes for each party and each setting . The data include proofs of all these positivity conditions. Outcome counts may depend on both the party and its setting.
QAlgorithms.Papers.Independent.Intakethird100.P80.BellScenario
This denotes the Bell experiment with exactly two parties, indexed by , exactly two settings at each party, indexed by , and exactly two outcomes at every setting, indexed by . All required positivity conditions are supplied by the inequality .
QAlgorithms.Papers.Independent.Intakethird100.P80.BellTrial
For a Bell experiment with parties, positive setting counts , and positive outcome counts , this is the type of pairs , where is a joint setting with , and is a joint outcome satisfying for every party. The allowed outcome tuples therefore depend on the chosen setting tuple. This type is finite and nonempty.
QAlgorithms.Papers.Independent.Intakethird100.P80.DominatesQuantum
Let consist of a positive finite number of parties, positive finite setting counts, and positive finite outcome counts at every local setting. Let be the joint settings, the joint outcomes at , and the assignments specifying an outcome for every local setting of every party; write for the outcome selected at . For any real table and any real function , the domination predicate is
No positivity or normalization assumption is imposed on or , and no condition is imposed at entries where . In particular, the predicate holds vacuously if has no positive entries.
QAlgorithms.Papers.Independent.Intakethird100.P80.Equalizer
Let specify a positive finite number of parties, positive finite setting counts, and positive finite outcome counts for each local setting. Write for the joint settings, for the joint outcomes at , and for potential assignments of outcomes to every local setting, with the selected outcome. For any real table and any real function , the equalizer predicate means that there exists such that
Here . With and , the payoff is if some trial has and ; otherwise it is the nonnegative truncation of , with zero terms when . Division by zero is zero, and the total real logarithm is zero at zero and uses absolute values at negative arguments. The constant may be infinite. No positivity or normalization is required of or , and the universal quantifier includes setting distributions with zero coordinates.
QAlgorithms.Papers.Independent.Intakethird100.P80.GHZScenario
This denotes the Bell experiment with exactly three parties, indexed by , exactly two settings at each party, indexed by , and exactly two outcomes at every setting, indexed by . The required positivity conditions are supplied by for the party count and for the setting and outcome counts.
QAlgorithms.Papers.Independent.Intakethird100.P80.IsPrefixCode
For any type and any assignment of a finite Boolean word to each element of , the predicate means that, for every , if is a prefix of , including the possibility that the two words are equal, then . This includes injectivity of . The condition is vacuous when is empty and permits the empty word when has only one element.
QAlgorithms.Papers.Independent.Intakethird100.P80.MarginalConsistency
For any Bell experiment with parties, positive setting counts , and positive outcome counts , and any real table on its setting and outcome tuples, this property requires the following: for every subset , every two setting tuples satisfying for every , and every potential assignment specifying a permitted outcome for every party and setting,
The coordinate equalities compare the underlying integer outcome labels. The subset may be empty, in which case the requirement equates the total sums at any two settings. No nonnegativity or normalization of is assumed by this property.
QAlgorithms.Papers.Independent.Intakethird100.P80.MeasuredOutcomes
For a Bell experiment with parties, positive setting counts , and positive outcome counts , and for any setting tuple with , the measured outcomes at are all functions assigning to every party an outcome . The permitted outcome range for each party uses that party’s chosen setting.
QAlgorithms.Papers.Independent.Intakethird100.P80.MerminScenario
This denotes the Bell experiment with exactly two parties, indexed by , exactly three settings at each party, indexed by , and exactly two outcomes at every setting, indexed by . The required positivity conditions are supplied by for the party and outcome counts and for the setting counts.
QAlgorithms.Papers.Independent.Intakethird100.P80.NonlocalityProof
For a Bell experiment , let be its number of parties, let be the number of settings for party , and let be its number of outcomes at setting . Write for the joint settings, for the outcomes at , and for the assignments of an outcome to every party and setting. For any real table , the predicate holds precisely when all three following conditions hold: each is nonnegative and ; for every subset of parties, every agreeing on , and every , ; and there exist positive integers , a positive semidefinite complex matrix indexed by with trace , and positive semidefinite matrices of size , with for every , such that for every , where . The marginal condition includes the empty subset .
QAlgorithms.Papers.Independent.Intakethird100.P80.NontrivialTable
For a Bell experiment with a positive finite number of parties, positive finite setting counts, and positive finite outcome counts for every local setting, and an arbitrary real table assigning to each joint setting and each compatible joint outcome , the nontrivial-table predicate means
It requires only one entry strictly between zero and one; no positivity, normalization, or other restriction is imposed on the remaining entries.
QAlgorithms.Papers.Independent.Intakethird100.P80.PiLocal
For a Bell experiment with parties, positive setting counts , and positive outcome counts , is the standard real simplex on the finite set of potential assignments , where for every party and setting. Its elements are real-valued functions on these assignments satisfying for every and ; coordinates may be zero.
QAlgorithms.Papers.Independent.Intakethird100.P80.PositiveCoordinates
For any type and any function , this predicate says that for every . There is no finiteness or normalization assumption; when is empty, the condition holds vacuously.
QAlgorithms.Papers.Independent.Intakethird100.P80.Potential
For a Bell experiment with parties, positive setting counts , and positive outcome counts , a potential assignment is a function specifying an outcome for every party and every one of its settings . It specifies outcomes for all settings simultaneously.
QAlgorithms.Papers.Independent.Intakethird100.P80.Proper
For a Bell experiment with parties, positive setting counts , and positive outcome counts , let , , and . For any real table , this predicate says that there is no function satisfying for every , , and for every and . No nonnegativity or normalization assumption on is imposed.
QAlgorithms.Papers.Independent.Intakethird100.P80.QuantumGenerated
For any Bell experiment with parties, positive setting counts , and positive outcome counts , and any real table on its setting and outcome tuples, this property means that there exist natural numbers , a complex matrix indexed by , and complex matrices for every party , setting , and permitted outcome , such that is positive semidefinite with , every is positive semidefinite, and for every . For all setting tuples and permitted outcome tuples , these data must satisfy
QAlgorithms.Papers.Independent.Intakethird100.P80.Saddle
Let specify a positive finite number of parties, positive finite setting counts, and positive finite outcome counts at every local setting. Write for the joint settings, for their joint outcomes, and for the assignments of outcomes to every local setting, with the selected outcome. Given any real table , set , and functions and , the saddle predicate means precisely
For any setting function and potential function , put , , and . The payoff is if some trial satisfies and ; otherwise it is the nonnegative truncation of , with each term defined as zero when . Division by zero is zero, and the total real logarithm is zero at zero and uses absolute values at negative arguments. The inequalities are non-strict inequalities of extended nonnegative reals, so infinite payoffs are allowed. No positivity or normalization is imposed on or on members of ; if is empty, no pair satisfies this predicate.
QAlgorithms.Papers.Independent.Intakethird100.P80.Settings
For a Bell experiment with parties, positive setting counts , and positive outcome counts , its set of settings consists of all functions assigning to every party a setting . Thus a setting is a simultaneous choice of one setting for each party.
QAlgorithms.Papers.Independent.Intakethird100.P80.Sigma
For a Bell experiment with parties, positive setting counts , and positive outcome counts , is the standard real simplex on the finite set of setting tuples: its elements are functions assigning a real number to every tuple with , subject to for every and . Coordinates may be zero.
QAlgorithms.Papers.Independent.Intakethird100.P80.Table
For a Bell experiment with parties, positive setting counts , and positive outcome counts , a table is an arbitrary real-valued function , defined for every setting tuple satisfying and every outcome tuple satisfying . This definition imposes no nonnegativity, normalization, or consistency conditions on those real values.
QAlgorithms.Papers.Independent.Intakethird100.P80.TwoByTwo
For a Bell experiment , which already specifies a positive number of parties, a positive number of settings per party, and a positive number of outcomes at each local setting, the two-by-two predicate means that there are exactly two parties and that each party has exactly two settings:
It places no further restriction on the positive outcome counts.
QAlgorithms.Papers.Independent.Intakethird100.P80.Uncorrelated
For a Bell experiment with parties, positive setting counts , and positive outcome counts at every party and setting, let . For an arbitrary function , this predicate says that there exist functions , one for each party, such that , , and for every . The coordinates of the , and consequently some coordinates of , may be zero.
QAlgorithms.Papers.Independent.Intakethird100.P80.bayesMarginal
For every Bell experiment with a positive number of parties, positive setting counts , and positive outcome counts , let , , , and . Let be the -dimensional Hausdorff measure on restricted to the probability simplex . For every real-valued function on , every function , every natural number , and every sample , write and define . This definition assigns the real integral
No probability, admissibility, or integrability hypotheses are supplied for or ; the integral uses the total real-valued integral convention, which returns for a nonintegrable integrand. For , the product is , so the value is .
QAlgorithms.Papers.Independent.Intakethird100.P80.binaryScenario
For every pair of natural numbers , together with hypotheses and , this defines a Bell experiment with exactly parties indexed by , exactly settings at each party indexed by , and exactly two outcomes, indexed by , at every setting of every party. The supplied inequalities establish positivity of the party and setting counts, and the outcome count is positive because it is ; the cases and cannot satisfy the required hypotheses.
QAlgorithms.Papers.Independent.Intakethird100.P80.chshLocal
For every assignment specifying a binary outcome for each party and each setting , this defines a real-valued function equal to when
and equal to for every other assignment.
QAlgorithms.Papers.Independent.Intakethird100.P80.chshTable
For two parties indexed by , each with settings and outcomes in , this defines a real-valued table for every setting pair and outcome pair by
QAlgorithms.Papers.Independent.Intakethird100.P80.correlatedStrength
Let specify parties, a positive number of settings for each party, and a positive number of outcomes for each local setting. Write for the set of joint settings, for the joint outcomes at setting , and for the potential assignments that specify an outcome for every local setting of every party; write for the joint outcome selected from at . For an arbitrary real table , the correlated strength is
Here , and is if some satisfies and ; otherwise it is
The maximum is regarded as an extended nonnegative real. Division by zero is defined as zero, and the total real logarithm satisfies and for . No positivity or normalization hypothesis is imposed on , and neither extremum is asserted to be attained.
QAlgorithms.Papers.Independent.Intakethird100.P80.ghzAllowed
For three parties indexed by , each with settings and outcomes in , this defines a predicate on every setting triple and outcome triple by
Thus the required outcome parity is odd at the all-zero setting and even at every other setting, including settings whose sum is or .
QAlgorithms.Papers.Independent.Intakethird100.P80.ghzConstrained
For three parties indexed by , each with settings in , this defines a predicate on every setting triple : it holds exactly when the ordinary integer sum equals or .
QAlgorithms.Papers.Independent.Intakethird100.P80.ghzCorrelatedSettings
For three parties indexed by , each with settings in , this defines a real-valued function on every setting triple , equal to when is or , and equal to when that sum is or .
QAlgorithms.Papers.Independent.Intakethird100.P80.ghzLocalTable
For three parties indexed by , each with settings and outcomes in , this defines a real-valued table for every setting triple and outcome triple . Write and ; then
QAlgorithms.Papers.Independent.Intakethird100.P80.ghzTable
For three parties indexed by , each with settings and outcomes in , this defines a real-valued table for every setting triple and outcome triple . Write and ; then
QAlgorithms.Papers.Independent.Intakethird100.P80.hardy
For two parties indexed by , each with settings and outcomes in , this defines a real-valued table for every setting pair and outcome pair as follows: let , , and
For each , set and ; then the table is
QAlgorithms.Papers.Independent.Intakethird100.P80.hardyAlpha
This defines the real number
QAlgorithms.Papers.Independent.Intakethird100.P80.hardyBeta
This defines the real number
QAlgorithms.Papers.Independent.Intakethird100.P80.hardyVector
For every , this defines a real number as follows: put and , and define
The values for both coordinate indices are specified by
QAlgorithms.Papers.Independent.Intakethird100.P80.idealLength
For any type , any real-valued function , any natural number , and any sample , put . The extended nonnegative real number called the ideal length is
Here the finite value is embedded in , and the real logarithm is total: for a nonzero negative argument, . No nonnegativity or normalization assumption is imposed on . When , the empty product is , so the ideal length is .
QAlgorithms.Papers.Independent.Intakethird100.P80.iidLaw
For every Bell experiment with a positive number of parties, positive setting counts , and positive outcome counts , let , , and , with every subset of measurable. For every real-valued table and real-valued setting function , this definition applies the countable infinite-product measure construction to the constant family of measures
producing a measure on sequences . No hypothesis requires , , or to be normalized probability data.
QAlgorithms.Papers.Independent.Intakethird100.P80.initialTrials
For any type , any sequence , and any natural number , is the function on given by . Thus it records the first entries, starting at index ; when , it is the unique function from the empty set to .
QAlgorithms.Papers.Independent.Intakethird100.P80.kl
For any finite type , equipped with a finite enumeration, and arbitrary functions , this definition gives a value in : it is if there exists with and ; otherwise it is , regarded as a finite nonnegative extended real, where when and otherwise. Neither function is assumed nonnegative or normalized. Division by zero is defined to be zero, and the real logarithm used here satisfies and for . Thus a zero denominator triggers infinity only when the corresponding numerator is strictly positive. For empty , the value is zero.
QAlgorithms.Papers.Independent.Intakethird100.P80.localTable
For any Bell experiment with parties, positive setting counts , and positive outcome counts , and any real-valued function on all potential assignments , where , the associated table is defined, for every setting tuple and permitted outcome tuple , by
The sum ranges over all potential assignments whose selected outcomes equal at every party. There is no assumption that is nonnegative or sums to one; an empty sum is zero.
QAlgorithms.Papers.Independent.Intakethird100.P80.localTensorEffect
For any Bell experiment with parties, positive setting counts , and positive outcome counts , choose arbitrary natural numbers and, for every party , setting , and outcome , an arbitrary complex matrix . For any setting tuple and permitted outcome tuple , define a complex matrix indexed by tuples through
No positivity, normalization, or positive-dimension assumptions are imposed. In particular, if any , the matrix’s indexing set is empty.
QAlgorithms.Papers.Independent.Intakethird100.P80.lowerValue
For a Bell experiment with parties, positive setting counts , and positive outcome counts , let , , and . Given an arbitrary real table and arbitrary , this definition is the infimum in , over all with and , of the following quantity: set and ; the quantity is if some has , and otherwise is . Division by zero is zero, , and for . Neither nor is required to be nonnegative or normalized, and no attainment of the infimum is asserted.
QAlgorithms.Papers.Independent.Intakethird100.P80.mermin
For two parties indexed by , each with settings in and outcomes in , this defines a real-valued table for every setting pair and outcome pair by
QAlgorithms.Papers.Independent.Intakethird100.P80.minimax
Let specify a positive finite number of parties, positive finite setting counts, and positive finite outcome counts for every local setting. Write for the joint settings, for the outcomes at , and for the assignments of outcomes to all local settings; let be the outcome selected at . For any real table and any set , define
Here . With and , the payoff is if some has and ; otherwise it equals
Division by zero is zero, and the total real logarithm is zero at zero and equals the logarithm of the absolute value at negative arguments. No normalization or positivity is required of or of the functions in . The set may be empty, giving minimax value zero; attainment of the infimum or supremum is not part of the definition.
QAlgorithms.Papers.Independent.Intakethird100.P80.minimizers
Let consist of a positive finite number of parties, each with positive finite setting counts and positive finite outcome counts at each setting. Let denote the joint settings, their joint outcomes, and the assignments of outcomes to all local settings, with the selected outcome. For any real table and set , the minimizers are exactly the functions satisfying
Here ; for and , is if some trial has and , and otherwise is the nonnegative truncation of , with a zero term whenever . Division by zero is zero, and the total real logarithm is zero at zero and uses absolute values at negative arguments. Neither nor the elements of are required to be probability distributions. The definition does not assert existence or uniqueness of a minimizer; equality at is permitted. If is empty, every probability distribution on belongs to this set.
QAlgorithms.Papers.Independent.Intakethird100.P80.optimizedBell
In the experiment with two parties, two settings per party, and two outcomes per setting, this defines a real table for every setting pair and outcome pair by
Each listed value is assigned to each individual outcome pair satisfying its case.
QAlgorithms.Papers.Independent.Intakethird100.P80.optimizerScore
Let specify a positive finite number of parties, positive finite setting counts, and positive finite outcome counts at each local setting. Write for the joint settings, for their joint outcomes, and for the assignments of outcomes to every local setting, with the outcome selected from . Given any real table , any functions and , and any , the optimizer score is the real number
No probability, normalization, positivity, domination, or optimality assumptions are imposed. The second branch also applies when ; if its denominator is zero, that quotient is defined to be zero.
QAlgorithms.Papers.Independent.Intakethird100.P80.originalBell
In the experiment with two parties, two settings per party, and two outcomes per setting, this defines a real table on every setting pair and outcome pair by setting , , , and , and then putting
Each expression specifies the value for an individual outcome pair.
QAlgorithms.Papers.Independent.Intakethird100.P80.posteriorOdds
For every Bell experiment with a positive number of parties, positive setting counts , and positive outcome counts , let , , , and . Let be the -dimensional Hausdorff measure on restricted to the probability simplex on . For every real-valued table , real-valued function on , function , real number , natural number , and sample , write and set . This definition assigns
There are no normalization, admissibility, integrability, or positivity hypotheses, and no restriction . The integral is the total real-valued integral, returning for a nonintegrable integrand, and real division by is defined to be ; consequently the displayed value is if or if its integral denominator is . When , both sample products are .
QAlgorithms.Papers.Independent.Intakethird100.P80.potentialAtSetting
For any Bell experiment with parties, positive setting counts , and positive outcome counts , any potential assignment specifying for every party and setting, and any setting tuple with , the outcome tuple selected from at is defined to have coordinate at each party . Its th coordinate therefore belongs to .
QAlgorithms.Papers.Independent.Intakethird100.P80.productSettings
For a Bell experiment with parties, positive setting counts , and positive outcome counts for every local setting, let . The set of product settings consists exactly of the functions such that for every , , and there exist functions , one for each party, satisfying , , and
Zero coordinates and deterministic choices of settings are included; strict positivity is not required.
QAlgorithms.Papers.Independent.Intakethird100.P80.rotatedBellPairLaw
For every pair of real numbers and every pair of outcome labels , this defines the real number
The real parameters are unrestricted, and the displayed value applies to each individual outcome pair.
QAlgorithms.Papers.Independent.Intakethird100.P80.sampleLikelihood
For every type , every real-valued function , every natural number , and every indexed sample , this definition assigns
The function need not be nonnegative or normalized, need not be finite, and repeated sample values are permitted. For , the product is , including when is empty.
QAlgorithms.Papers.Independent.Intakethird100.P80.shannonBefore
For any type equipped with a finite enumeration, any function , and any , let be the bijection supplied by that finite enumeration. The predicate means
Thus larger values come first, with ties resolved by the supplied enumeration. No sign or normalization condition is imposed on .
QAlgorithms.Papers.Independent.Intakethird100.P80.shannonCumulative
For any type equipped with a finite enumeration, any function , and any , let be the bijection supplied by that enumeration. The cumulative value is the real number
No nonnegativity or normalization is required, so this sum is not required to lie in .
QAlgorithms.Papers.Independent.Intakethird100.P80.shannonSize
For any type , any function , and any , the natural number is
where is the least nonnegative integer greater than or equal to , and is when . The logarithm is total, with and for . In particular, the size is when or ; is not assumed to be a probability distribution.
QAlgorithms.Papers.Independent.Intakethird100.P80.shannonWord
For any type equipped with a finite enumeration, any function , and any , let be the supplied enumeration and define
Then is the Boolean word of length whose entry at each index is true exactly when
Here is the natural-number floor, equal to for negative , and is the natural-number ceiling, equal to for . The total logarithm satisfies and uses for nonzero . No probability assumptions are imposed on ; when , the word is empty.
QAlgorithms.Papers.Independent.Intakethird100.P80.simplexVolume
For every Bell experiment with a positive number of parties, positive setting counts , and positive outcome counts , let
be the finite, nonempty space of assignments of an outcome to every party’s every setting, and let . This definition assigns the measure on obtained by restricting its -dimensional Hausdorff measure to . The dimension is computed by natural-number subtraction before conversion to a real number; here , so it equals the ordinary integer , including dimension when is a singleton. No normalization of this restricted measure is included.
QAlgorithms.Papers.Independent.Intakethird100.P80.statisticalPayoff
For a Bell experiment with parties, positive setting counts , and positive outcome counts , put , , and . Given arbitrary real functions , , and , define , , and . The payoff is if some trial satisfies and ; otherwise it is
regarded as a value in . Here division by zero is zero, , and for nonzero real . None of is assumed nonnegative or normalized.
QAlgorithms.Papers.Independent.Intakethird100.P80.trialJointLaw
For a Bell experiment with parties, positive setting counts , and positive outcome counts , let and . Given any real table for and any function , this definition assigns the trial the real value . No nonnegativity or normalization condition is required of either or .
QAlgorithms.Papers.Independent.Intakethird100.P80.trialMeasurableSpace
For every Bell experiment , consisting of a positive number of parties, a positive number of settings for each party , and a positive number of outcomes for every party and its setting , let and . A trial is a pair with and . This instance equips the finite trial space with the measurable structure in which every subset is measurable.
QAlgorithms.Papers.Independent.Intakethird100.P80.trialMeasure
For every Bell experiment with a positive number of parties, positive setting counts , and positive outcome counts , write , , and for its trial space, equipped with all subsets measurable. For every real-valued table on and every real-valued function on , this definition assigns the measure
where each coefficient is regarded as an extended nonnegative real number and is the Dirac measure at that trial. There are no nonnegativity or normalization hypotheses on or ; negative products receive weight , and the resulting measure need not have total mass .
QAlgorithms.Papers.Independent.Intakethird100.P80.uncorrelatedStrength
For a Bell experiment with parties, positive setting counts , and positive outcome counts , put , , and . For any real table , this definition is the supremum in , over all nonnegative with that admit a representation by nonnegative functions satisfying , of the infimum over all nonnegative with of the following quantity: set and ; the quantity is if some has , and otherwise is . Division by zero is zero, , and for . Zero setting probabilities are allowed and make all corresponding trial summands zero. No nonnegativity or normalization assumption on , or attainment of either extremum, is included.
QAlgorithms.Papers.Independent.Intakethird100.P80.uniformSettings
For a Bell experiment with parties, positive setting counts , and positive outcome counts at each party and setting, let . This function assigns every joint setting the real value . The positivity assumptions ensure that is nonempty and this denominator is positive.
QAlgorithms.Papers.Independent.Intakethird100.P80.uniformStrength
For a Bell experiment with parties, positive setting counts , and positive outcome counts , let , , , and . For any real table , this definition is the infimum in , over all nonnegative functions with , of the following quantity: set and ; the quantity is if some has , and otherwise is . Division by zero is zero, , and for . No nonnegativity or normalization assumption on , or attainment of the infimum, is included.
QAlgorithms.Papers.Independent.Intakethird100.P80.upperValue
Let consist of a positive finite number of parties, each with a positive finite number of settings and a positive finite number of outcomes at each setting. Let be the joint settings, the joint outcomes at , and the assignments of outcomes to every local setting, with denoting the outcome selected at . Given any real table , any set , and any function , the upper value is
To define the payoff, put , , and . Then if some trial has and ; otherwise
Division by zero is zero; the total real logarithm has value zero at zero and uses the absolute value at negative arguments. There are no probability, positivity, or normalization assumptions on , , or the members of . In particular, may be empty, in which case the upper value is zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.