Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Definitions for Nonlocality free wirings and the distinguishability between Bell boxes

Definition
QAlgorithms_Papers_Independent_Intakethird100_P29

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of Nonlocality free wirings and the distinguishability between Bell boxes (arXiv:1611.06932) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • BellScenario: PDF p.2, Section II: four independent finite, nonempty alphabets.
  • BellScenario.X: PDF p.2, Section II: finite Alice input alphabet.
  • BellScenario.Y: PDF p.2, Section II: finite Bob input alphabet.
  • BellScenario.A: PDF p.2, Section II: finite Alice output alphabet.
  • BellScenario.B: PDF p.2, Section II: finite Bob output alphabet.
  • Behavior: PDF p.2, (1): raw arrays; validity is IsCorrelation, not implicit.
  • IsNS: PDF p.2, (1),(2): normalized conditional laws satisfying both NS identities.
  • BellOperation: Raw extensions are useful for linearity; WPICC is constrained only on NS.
  • IsLOSR: PDF pp.3–4, (7): two local boxes, with independent shared-variable laws. The accepted interface allows arbitrary discrete seeds; no finite-support premise.
  • GlobalWiring: PDF p.4, (10): arbitrary normalized input/output processing kernels. They may be signaling; in particular the output need not belong to NS.
  • GlobalWiring.apply: PDF p.4, (10): one use of the supplied box, with fixed processing rules.
  • IsGW: Membership as an operation on all arrays; used for the direct LOSR inclusion.
  • UncorrelatedWiring: PDF p.15, (G1): four one-party kernels, without a shared hidden variable.
  • UncorrelatedWiring.apply: PDF p.15, (G1): product input and output kernels act on one supplied box.
  • AfterAlice: PDF p.10, Appendix A: after Alice's preparation outcome is communicated, Bob either waits for his final input or measures now and communicates his outcome. The enclosing function of Alice's outcome makes this decision adaptive.
  • AfterBob: PDF p.10, Appendix A: the symmetric continuation after Bob measures first.
  • Preparation: PDF pp.4,10: deterministic preparation tree. All stochastic choices, including later local random choices, are incorporated in the input-independent shared seed. The initial setting is fixed before the final inputs in each first-measurement branch.
  • responseIndicator: Indicator for a deterministic classical response.
  • aliceContribution: PDF pp.10–11, (A1)–(A4): contribution of a first Alice outcome. Joint probabilities avoid division by the probability of an impossible transcript.
  • bobContribution: PDF pp.10–11: symmetric contribution of a first Bob outcome.
  • Preparation.apply: PDF pp.4,10–11: exact action of the operational preparation tree.
  • Preparation.isPrepared: PDF pp.10–11: a branch in which at least one box is measured during preparation. The no-preparation branch of (A5) is separately one fixed LOSR map.
  • IsWPICC: PDF pp.4,10–11: operational WPICC using the proof convention of (A5). The no-preparation branch is one fixed Eq.(7) LOSR map. The other branch averages adaptive trees in which at least one party measures before final inputs. This keeps Eq.(7)'s separate input/output seeds; it does not silently replace its LOSR class by a convex hull of complete no-preparation strategies. Weight, map, seed law and trees precede every supplied behavior. Only NS inputs are constrained. Locality of the prepared action is a theorem conclusion, not part of this definition.
  • AgreeOnNS: Equality on the common physical domain, not on arbitrary raw extensions.
  • HasGWRestriction: PDF p.6, (19): whether any GW has the same action on every NS behavior.
  • HasLOSRRestriction: Whether any LOSR operation agrees on the whole NS domain.
  • classicalRelativeEntropyNats: PDF p.5, (14): extended finite-alphabet KL, in the displayed orientation. Only the total KL is converted to ENNReal; negative individual summands are retained. A positive numerator over zero gives infinity; zero terms give zero.
  • sb: PDF p.5, (16): maximization over one fixed joint input, for all behaviors.
  • weightedEntropy: PDF p.5, (15): same input law for both compared behaviors. ENNReal's zero times infinity is zero, including unused support-mismatch inputs.
  • snl: PDF p.7, (21): all local comparison boxes, on exactly the same alphabets.
  • localDistance: Inner local minimization in (22); extrema are certified in OptimaAttained.
  • uniformInput: PDF p.7, (22a): uniform joint input distribution. The positive sizes in BellScenario exclude division by zero.
  • su: PDF p.7, (22a): uniform-input statistical strength.
  • suc: PDF p.7, (22b): max over product laws, outside the local minimum.
  • correlatedInputStrength: PDF p.7, (22c): max over all joint laws, outside the local minimum.
  • OptimaAttained: Explicit meaning of the source's real-valued min/max notation in (21),(22). Every local minimum and both outer maxima are attained. These are conclusions, not hypotheses restricting the behaviors in any headline theorem.
  • Quantity: Families over every finite Bell scenario; only values on NS are relevant.
  • IsNormalizedQuantity: PDF p.6, Definition 5(i), including finite nonnegative real values on NS.
  • IsLOSRMonotone: PDF p.6, Definition 5: LOSR monotonicity includes vanishing on local boxes.
  • IsWPICCMonotone: PDF p.6, Definition 5: WPICC monotonicity, allowing alphabet changes.
  • IsBellMonotone: PDF p.6, Definition 7: monotonicity for both equivalent choices of free class. The numbered Lemma 6 supplies their equivalence, without convexity.
  • singletonScenario: Singleton scenario used only to check nonempty boundary conventions.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P47
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P47

/-!
# Nonlocality free wirings and the distinguishability between Bell boxes

arXiv:1611.06932v2. Page numbers below are PDF pages. Paper-local interfaces
use the accepted Advance50.P47 conditional laws and arbitrary-discrete LOSR
interface, and Dependency50.P47.Law for finite input distributions.
All four alphabet sizes are independent and strictly positive.

Repair: BellScenario and BellOperation describe classical conditional arrays,
unlike the accepted quantum communication Scenario and complex-matrix Operation.
responseIndicator is a classical response indicator, not a quantum entropy delta.
classicalRelativeEntropyNats is finite classical KL in nats, unlike the accepted
operator entropies and the classicalKL in bits. correlatedInputStrength is (22c),
not the accepted channel success exponent sc. The accepted HasLocalModel and Law
are used directly. ASSESSMENT.json records each local declaration separately.

Extended KL is retained at support mismatches. The optimized quantities are
extended nonnegative reals; `OptimaAttained` and the monotone predicates assert
finiteness on NS, identifying them with the source's nonnegative real values.
No conversion sends infinity to zero. Attainment is a conclusion, never a premise.

WPICC uses Appendix A's proof convention: the no-preparation branch is one
fixed Eq.(7) LOSR map; the prepared branch is a shared-seed average of single-use
adaptive trees followed by local responses. The second preparation measurement
may depend on the first communicated outcome. Equation (8) is a theorem about
these operations: the prepared action is not assumed local in the definition.
Only the NS restriction has meaning. Class separations compare these restrictions.
The no-preparation convention is recorded explicitly in MODERATION-r1.md.

The two ambiguous Appendix C/F quantitative claims are deferred in HARD.md.
Compilation is pending the separate mechanical handoff.
-/

noncomputable section

open scoped BigOperators ENNReal

namespace QAlgorithms.Papers.Independent.Intakethird100.P29

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Advance50.P47
  (Box IsCorrelation IsNoSignaling HasLocalModel TwoLocalBoxes losrTransform
   correlationMixture)
open QAlgorithms.Papers.Independent.Information100.P56 (IsLaw)
open QAlgorithms.Papers.Independent.Dependency50.P47 (Law)

/-- PDF p.2, Section II: four independent finite, nonempty alphabets. -/
structure BellScenario where
  nX : ℕ
  nY : ℕ
  nA : ℕ
  nB : ℕ
  xPositive : 0 < nX
  yPositive : 0 < nY
  aPositive : 0 < nA
  bPositive : 0 < nB

/-- PDF p.2, Section II: finite Alice input alphabet. -/
abbrev BellScenario.X (s : BellScenario) := Fin s.nX

/-- PDF p.2, Section II: finite Bob input alphabet. -/
abbrev BellScenario.Y (s : BellScenario) := Fin s.nY

/-- PDF p.2, Section II: finite Alice output alphabet. -/
abbrev BellScenario.A (s : BellScenario) := Fin s.nA

/-- PDF p.2, Section II: finite Bob output alphabet. -/
abbrev BellScenario.B (s : BellScenario) := Fin s.nB

/-- PDF p.2, (1): raw arrays; validity is `IsCorrelation`, not implicit. -/
abbrev Behavior (s : BellScenario) := Box s.X s.Y s.A s.B

/-- PDF p.2, (1),(2): normalized conditional laws satisfying both NS identities. -/
def IsNS {s : BellScenario} (p : Behavior s) : Prop :=
  IsCorrelation p ∧ IsNoSignaling p

-- PDF p.2, (4): use the accepted HasLocalModel directly.

/-- Raw extensions are useful for linearity; WPICC is constrained only on NS. -/
abbrev BellOperation (s t : BellScenario) := Behavior s → Behavior t

/-- PDF pp.3–4, (7): two local boxes, with independent shared-variable laws.
The accepted interface allows arbitrary discrete seeds; no finite-support premise. -/
def IsLOSR {s t : BellScenario} (w : BellOperation s t) : Prop :=
  ∃ (L1 L2 : Type)
    (k : TwoLocalBoxes s.X s.Y s.A s.B t.X t.Y t.A t.B L1 L2),
    ∀ p, w p = losrTransform k p

/-- PDF p.4, (10): arbitrary normalized input/output processing kernels.
They may be signaling; in particular the output need not belong to NS. -/
structure GlobalWiring (s t : BellScenario) where
  input : t.X → t.Y → s.X × s.Y → ℝ
  output : s.A → s.B → s.X → s.Y → t.X → t.Y → t.A × t.B → ℝ
  inputLaw : ∀ chi psi, IsLaw (input chi psi)
  outputLaw : ∀ a b x y chi psi, IsLaw (output a b x y chi psi)

/-- PDF p.4, (10): one use of the supplied box, with fixed processing rules. -/
def GlobalWiring.apply {s t : BellScenario} (g : GlobalWiring s t) : BellOperation s t :=
  fun p chi psi alpha beta => ∑ a, ∑ b, ∑ x, ∑ y,
    g.output a b x y chi psi (alpha, beta) * p x y a b * g.input chi psi (x, y)

/-- Membership as an operation on all arrays; used for the direct LOSR inclusion. -/
def IsGW {s t : BellScenario} (w : BellOperation s t) : Prop :=
  ∃ g : GlobalWiring s t, ∀ p, w p = g.apply p

/-- PDF p.15, (G1): four one-party kernels, without a shared hidden variable. -/
structure UncorrelatedWiring (s t : BellScenario) where
  inputAlice : t.X → s.X → ℝ
  inputBob : t.Y → s.Y → ℝ
  outputAlice : s.A → s.X → t.X → t.A → ℝ
  outputBob : s.B → s.Y → t.Y → t.B → ℝ
  inputAliceLaw : ∀ chi, IsLaw (inputAlice chi)
  inputBobLaw : ∀ psi, IsLaw (inputBob psi)
  outputAliceLaw : ∀ a x chi, IsLaw (outputAlice a x chi)
  outputBobLaw : ∀ b y psi, IsLaw (outputBob b y psi)

/-- PDF p.15, (G1): product input and output kernels act on one supplied box. -/
def UncorrelatedWiring.apply {s t : BellScenario} (u : UncorrelatedWiring s t) :
    BellOperation s t :=
  fun p chi psi alpha beta => ∑ a, ∑ b, ∑ x, ∑ y,
    (u.outputAlice a x chi alpha * u.outputBob b y psi beta) * p x y a b *
      (u.inputAlice chi x * u.inputBob psi y)

/-- PDF p.10, Appendix A: after Alice's preparation outcome is communicated,
Bob either waits for his final input or measures now and communicates his outcome.
The enclosing function of Alice's outcome makes this decision adaptive. -/
inductive AfterAlice (s t : BellScenario) where
  | wait (inputBob : t.Y → s.Y) (outputAlice : t.X → t.A)
      (outputBob : t.Y → s.B → t.B)
  | measure (y : s.Y) (outputAlice : s.B → t.X → t.A)
      (outputBob : s.B → t.Y → t.B)

/-- PDF p.10, Appendix A: the symmetric continuation after Bob measures first. -/
inductive AfterBob (s t : BellScenario) where
  | wait (inputAlice : t.X → s.X) (outputAlice : t.X → s.A → t.A)
      (outputBob : t.Y → t.B)
  | measure (x : s.X) (outputAlice : s.A → t.X → t.A)
      (outputBob : s.A → t.Y → t.B)

/-- PDF pp.4,10: deterministic preparation tree. All stochastic choices, including
later local random choices, are incorporated in the input-independent shared seed.
The initial setting is fixed before the final inputs in each first-measurement branch. -/
inductive Preparation (s t : BellScenario) where
  | none (inputAlice : t.X → s.X) (inputBob : t.Y → s.Y)
      (outputAlice : t.X → s.A → t.A) (outputBob : t.Y → s.B → t.B)
  | aliceFirst (x : s.X) (continuation : s.A → AfterAlice s t)
  | bobFirst (y : s.Y) (continuation : s.B → AfterBob s t)

/-- Indicator for a deterministic classical response. -/
def responseIndicator {I : Type*} (i j : I) : ℝ := if i = j then 1 else 0

/-- PDF pp.10–11, (A1)–(A4): contribution of a first Alice outcome.
Joint probabilities avoid division by the probability of an impossible transcript. -/
def aliceContribution {s t : BellScenario} (p : Behavior s) (x : s.X) (a : s.A)
    (c : AfterAlice s t) (chi : t.X) (psi : t.Y) (alpha : t.A) (beta : t.B) : ℝ :=
  match c with
  | .wait iy oa ob => ∑ b, p x (iy psi) a b * responseIndicator alpha (oa chi) *
      responseIndicator beta (ob psi b)
  | .measure y oa ob => ∑ b, p x y a b * responseIndicator alpha (oa b chi) *
      responseIndicator beta (ob b psi)

/-- PDF pp.10–11: symmetric contribution of a first Bob outcome. -/
def bobContribution {s t : BellScenario} (p : Behavior s) (y : s.Y) (b : s.B)
    (c : AfterBob s t) (chi : t.X) (psi : t.Y) (alpha : t.A) (beta : t.B) : ℝ :=
  match c with
  | .wait ix oa ob => ∑ a, p (ix chi) y a b * responseIndicator alpha (oa chi a) *
      responseIndicator beta (ob psi)
  | .measure x oa ob => ∑ a, p x y a b * responseIndicator alpha (oa a chi) *
      responseIndicator beta (ob a psi)

/-- PDF pp.4,10–11: exact action of the operational preparation tree. -/
def Preparation.apply {s t : BellScenario} (r : Preparation s t) : BellOperation s t :=
  fun p chi psi alpha beta =>
    match r with
    | .none ix iy oa ob => ∑ a, ∑ b, p (ix chi) (iy psi) a b *
        responseIndicator alpha (oa chi a) * responseIndicator beta (ob psi b)
    | .aliceFirst x next => ∑ a, aliceContribution p x a (next a) chi psi alpha beta
    | .bobFirst y next => ∑ b, bobContribution p y b (next b) chi psi alpha beta

/-- PDF pp.10–11: a branch in which at least one box is measured during
preparation. The no-preparation branch of (A5) is separately one fixed LOSR map. -/
def Preparation.isPrepared {s t : BellScenario} (r : Preparation s t) : Prop :=
  match r with
  | .none _ _ _ _ => False
  | .aliceFirst _ _ => True
  | .bobFirst _ _ => True

/-- PDF pp.4,10–11: operational WPICC using the proof convention of (A5).
The no-preparation branch is one fixed Eq.(7) LOSR map. The other branch
averages adaptive trees in which at least one party measures before final inputs.
This keeps Eq.(7)'s separate input/output seeds; it does not silently replace its
LOSR class by a convex hull of complete no-preparation strategies. Weight, map,
seed law and trees precede every supplied behavior. Only NS inputs are constrained.
Locality of the prepared action is a theorem conclusion, not part of this definition. -/
def IsWPICC {s t : BellScenario} (w : BellOperation s t) : Prop :=
  ∃ (weight : ℝ), 0 ≤ weight ∧ weight ≤ 1 ∧
    ∃ (v : BellOperation s t), IsLOSR v ∧
      ∃ (L : Type) (mu : PMF L) (r : L → Preparation s t),
        (∀ l, (r l).isPrepared) ∧
        ∀ p, IsNS p → ∀ chi psi alpha beta,
          w p chi psi alpha beta =
            weight * (∑' l, (mu l).toReal * (r l).apply p chi psi alpha beta) +
              (1 - weight) * v p chi psi alpha beta

/-- Equality on the common physical domain, not on arbitrary raw extensions. -/
def AgreeOnNS {s t : BellScenario} (w v : BellOperation s t) : Prop :=
  ∀ p, IsNS p → w p = v p

/-- PDF p.6, (19): whether any GW has the same action on every NS behavior. -/
def HasGWRestriction {s t : BellScenario} (w : BellOperation s t) : Prop :=
  ∃ g : GlobalWiring s t, AgreeOnNS w g.apply

/-- Whether any LOSR operation agrees on the whole NS domain. -/
def HasLOSRRestriction {s t : BellScenario} (w : BellOperation s t) : Prop :=
  ∃ v : BellOperation s t, IsLOSR v ∧ AgreeOnNS w v

/-- PDF p.5, (14): extended finite-alphabet KL, in the displayed orientation.
Only the total KL is converted to ENNReal; negative individual summands are
retained. A positive numerator over zero gives infinity; zero terms give zero. -/
def classicalRelativeEntropyNats {I : Type*} [Fintype I] (p q : I → ℝ) : ℝ≥0∞ :=
  if ∃ i, 0 < p i ∧ q i = 0 then ⊤
  else ENNReal.ofReal (∑ i, p i * Real.log (p i / q i))

/-- PDF p.5, (16): maximization over one fixed joint input, for all behaviors. -/
def sb {s : BellScenario} (p q : Behavior s) : ℝ≥0∞ :=
  ⨆ x : s.X, ⨆ y : s.Y,
    classicalRelativeEntropyNats (fun z : s.A × s.B => p x y z.1 z.2)
      (fun z : s.A × s.B => q x y z.1 z.2)

-- PDF pp.5,7: use the accepted finite Law and its prob/nonneg/total fields.

/-- PDF p.5, (15): same input law for both compared behaviors.
ENNReal's zero times infinity is zero, including unused support-mismatch inputs. -/
def weightedEntropy {s : BellScenario} (p q : Behavior s) (d : s.X × s.Y → ℝ) : ℝ≥0∞ :=
  ∑ z : s.X × s.Y, ENNReal.ofReal (d z) *
    classicalRelativeEntropyNats (fun o : s.A × s.B => p z.1 z.2 o.1 o.2)
      (fun o : s.A × s.B => q z.1 z.2 o.1 o.2)

/-- PDF p.7, (21): all local comparison boxes, on exactly the same alphabets. -/
def snl {s : BellScenario} (p : Behavior s) : ℝ≥0∞ :=
  ⨅ q : {q : Behavior s // HasLocalModel q}, sb p q.val

/-- Inner local minimization in (22); extrema are certified in `OptimaAttained`. -/
def localDistance {s : BellScenario} (p : Behavior s) (d : s.X × s.Y → ℝ) : ℝ≥0∞ :=
  ⨅ q : {q : Behavior s // HasLocalModel q}, weightedEntropy p q.val d

/-- PDF p.7, (22a): uniform *joint* input distribution. The positive sizes
in `BellScenario` exclude division by zero. -/
def uniformInput (s : BellScenario) : s.X × s.Y → ℝ :=
  fun _ => 1 / ((s.nX * s.nY : ℕ) : ℝ)

/-- PDF p.7, (22a): uniform-input statistical strength. -/
def su {s : BellScenario} (p : Behavior s) : ℝ≥0∞ := localDistance p (uniformInput s)

/-- PDF p.7, (22b): max over product laws, outside the local minimum. -/
def suc {s : BellScenario} (p : Behavior s) : ℝ≥0∞ :=
  ⨆ dx : Law s.X, ⨆ dy : Law s.Y,
    localDistance p (fun z => dx.prob z.1 * dy.prob z.2)

/-- PDF p.7, (22c): max over all joint laws, outside the local minimum. -/
def correlatedInputStrength {s : BellScenario} (p : Behavior s) : ℝ≥0∞ :=
  ⨆ d : Law (s.X × s.Y), localDistance p d.prob

/-- Explicit meaning of the source's real-valued min/max notation in (21),(22).
Every local minimum and both outer maxima are attained. These are conclusions,
not hypotheses restricting the behaviors in any headline theorem. -/
def OptimaAttained {s : BellScenario} (p : Behavior s) : Prop :=
  snl p ≠ ⊤ ∧ su p ≠ ⊤ ∧ suc p ≠ ⊤ ∧ correlatedInputStrength p ≠ ⊤ ∧
  (∃ q : Behavior s, HasLocalModel q ∧ sb p q = snl p) ∧
  (∀ d : Law (s.X × s.Y),
    ∃ q : Behavior s, HasLocalModel q ∧ weightedEntropy p q d.prob = localDistance p d.prob) ∧
  (∃ q : Behavior s, HasLocalModel q ∧ weightedEntropy p q (uniformInput s) = su p) ∧
  (∃ (dx : Law s.X) (dy : Law s.Y),
    localDistance p (fun z => dx.prob z.1 * dy.prob z.2) = suc p) ∧
  (∃ d : Law (s.X × s.Y), localDistance p d.prob = correlatedInputStrength p)

/-- Families over every finite Bell scenario; only values on NS are relevant. -/
abbrev Quantity := (s : BellScenario) → Behavior s → ℝ≥0∞

/-- PDF p.6, Definition 5(i), including finite nonnegative real values on NS. -/
def IsNormalizedQuantity (f : Quantity) : Prop :=
  (∀ s p, IsNS p → f s p ≠ ⊤) ∧ (∀ s p, HasLocalModel p → f s p = 0)

/-- PDF p.6, Definition 5: LOSR monotonicity includes vanishing on local boxes. -/
def IsLOSRMonotone (f : Quantity) : Prop :=
  IsNormalizedQuantity f ∧
    ∀ (s t : BellScenario) (w : BellOperation s t), IsLOSR w →
      ∀ p, IsNS p → f t (w p) ≤ f s p

/-- PDF p.6, Definition 5: WPICC monotonicity, allowing alphabet changes. -/
def IsWPICCMonotone (f : Quantity) : Prop :=
  IsNormalizedQuantity f ∧
    ∀ (s t : BellScenario) (w : BellOperation s t), IsWPICC w →
      ∀ p, IsNS p → f t (w p) ≤ f s p

/-- PDF p.6, Definition 7: monotonicity for both equivalent choices of free class.
The numbered Lemma 6 supplies their equivalence, without convexity. -/
def IsBellMonotone (f : Quantity) : Prop := IsLOSRMonotone f ∧ IsWPICCMonotone f

/-! Definition sanity checks: no source result is proved here. -/

/-- Singleton scenario used only to check nonempty boundary conventions. -/
def singletonScenario : BellScenario :=
  ⟨1, 1, 1, 1, by decide, by decide, by decide, by decide⟩

example : IsNS (s := singletonScenario) (fun _ _ _ _ => (1 : ℝ)) := by
  change IsCorrelation (fun (_ _ _ _ : Fin 1) => (1 : ℝ)) ∧
    IsNoSignaling (fun (_ _ _ _ : Fin 1) => (1 : ℝ))
  constructor
  · simp [IsCorrelation]
  · simp [IsNoSignaling]

example : uniformInput singletonScenario ((0 : Fin 1), (0 : Fin 1)) = 1 := by
  change (1 : ℝ) / ((1 * 1 : ℕ) : ℝ) = 1
  norm_num

example {s : BellScenario} (p q : Behavior s) : correlationMixture p q 0 = q := by
  funext x y a b
  simp [correlationMixture]

example {s : BellScenario} (p q : Behavior s) : correlationMixture p q 1 = p := by
  funext x y a b
  simp [correlationMixture]

example : classicalRelativeEntropyNats (fun _ : Unit => (1 : ℝ)) (fun _ => 1) = 0 := by
  simp [classicalRelativeEntropyNats]

example : classicalRelativeEntropyNats (fun _ : Unit => (1 : ℝ)) (fun _ => 0) = ⊤ := by
  simp [classicalRelativeEntropyNats]

example : classicalRelativeEntropyNats (fun _ : Unit => (0 : ℝ)) (fun _ => 0) = 0 := by
  simp [classicalRelativeEntropyNats]

example {s t : BellScenario} (p : Behavior s) (x : s.X) (a : s.A)
    (y : s.Y) (oa : s.B → t.X → t.A) (ob : s.B → t.Y → t.B)
    (chi : t.X) (psi : t.Y) (alpha : t.A) (beta : t.B) :
    aliceContribution p x a (.measure y oa ob) chi psi alpha beta =
      ∑ b, p x y a b * responseIndicator alpha (oa b chi) * responseIndicator beta (ob b psi) := by
  rfl

example {s t : BellScenario} (y : s.Y) (next : s.B → AfterBob s t) :
    (Preparation.bobFirst y next).isPrepared := by
  simp [Preparation.isPrepared]

example {s t : BellScenario} (ix : t.X → s.X) (iy : t.Y → s.Y)
    (oa : t.X → s.A → t.A) (ob : t.Y → s.B → t.B) :
    ¬ (Preparation.none ix iy oa ob).isPrepared := by
  simp [Preparation.isPrepared]

end QAlgorithms.Papers.Independent.Intakethird100.P29
Source
Nonlocality free wirings and the distinguishability between Bell boxes, arXiv:1611.06932v2, https://arxiv.org/abs/1611.06932v2
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

QAlgorithms.Papers.Independent.Intakethird100.P29.AfterAlice

For Bell scenarios s,ts,ts,t, whose input and output alphabets Xs,Ys,As,BsX_s,Y_s,A_s,B_sXs​,Ys​,As​,Bs​ and Xt,Yt,At,BtX_t,Y_t,A_t,B_tXt​,Yt​,At​,Bt​ are finite and nonempty, an object of this type has exactly one of two forms: a wait object containing functions iB:Yt→Ysi_B:Y_t\to Y_siB​:Yt​→Ys​, oA:Xt→Ato_A:X_t\to A_toA​:Xt​→At​, and oB:Yt×Bs→Bto_B:Y_t\times B_s\to B_toB​:Yt​×Bs​→Bt​; or a measure object containing an element y∈Ysy\in Y_sy∈Ys​ and functions oA:Bs×Xt→Ato_A:B_s\times X_t\to A_toA​:Bs​×Xt​→At​ and oB:Bs×Yt→Bto_B:B_s\times Y_t\to B_toB​:Bs​×Yt​→Bt​. These are arbitrary functions of the indicated arguments.

QAlgorithms.Papers.Independent.Intakethird100.P29.AfterBob

For Bell scenarios s,ts,ts,t, whose input and output alphabets Xs,Ys,As,BsX_s,Y_s,A_s,B_sXs​,Ys​,As​,Bs​ and Xt,Yt,At,BtX_t,Y_t,A_t,B_tXt​,Yt​,At​,Bt​ are finite and nonempty, an object of this type has exactly one of two forms: a wait object containing functions iA:Xt→Xsi_A:X_t\to X_siA​:Xt​→Xs​, oA:Xt×As→Ato_A:X_t\times A_s\to A_toA​:Xt​×As​→At​, and oB:Yt→Bto_B:Y_t\to B_toB​:Yt​→Bt​; or a measure object containing an element x∈Xsx\in X_sx∈Xs​ and functions oA:As×Xt→Ato_A:A_s\times X_t\to A_toA​:As​×Xt​→At​ and oB:As×Yt→Bto_B:A_s\times Y_t\to B_toB​:As​×Yt​→Bt​. These are arbitrary functions of the indicated arguments.

QAlgorithms.Papers.Independent.Intakethird100.P29.AgreeOnNS

For Bell scenarios s,ts,ts,t with finite nonempty alphabets Xs,Ys,As,BsX_s,Y_s,A_s,B_sXs​,Ys​,As​,Bs​ and Xt,Yt,At,BtX_t,Y_t,A_t,B_tXt​,Yt​,At​,Bt​, let w,vw,vw,v be any two functions taking real-valued arrays on Xs×Ys×As×BsX_s\times Y_s\times A_s\times B_sXs​×Ys​×As​×Bs​ to real-valued arrays on Xt×Yt×At×BtX_t\times Y_t\times A_t\times B_tXt​×Yt​×At​×Bt​. They agree on no-signaling correlations precisely when w[p]=v[p]w[p]=v[p]w[p]=v[p] for every array ppp such that p(x,y,a,b)≥0p(x,y,a,b)\ge0p(x,y,a,b)≥0 for all indices, ∑a,bp(x,y,a,b)=1\sum_{a,b}p(x,y,a,b)=1∑a,b​p(x,y,a,b)=1 for every x,yx,yx,y, and

∑a∈Asp(x,y,a,b)=∑a∈Asp(z,y,a,b)(x,z∈Xs, y∈Ys, b∈Bs),\sum_{a\in A_s}p(x,y,a,b)=\sum_{a\in A_s}p(z,y,a,b) \quad(x,z\in X_s,\ y\in Y_s,\ b\in B_s),a∈As​∑​p(x,y,a,b)=a∈As​∑​p(z,y,a,b)(x,z∈Xs​, y∈Ys​, b∈Bs​), ∑b∈Bsp(x,y,a,b)=∑b∈Bsp(x,z,a,b)(y,z∈Ys, x∈Xs, a∈As).\sum_{b\in B_s}p(x,y,a,b)=\sum_{b\in B_s}p(x,z,a,b) \quad(y,z\in Y_s,\ x\in X_s,\ a\in A_s).b∈Bs​∑​p(x,y,a,b)=b∈Bs​∑​p(x,z,a,b)(y,z∈Ys​, x∈Xs​, a∈As​).

The equality is equality of the entire output arrays, hence holds at every χ∈Xt,ψ∈Yt,α∈At,β∈Bt\chi\in X_t,\psi\in Y_t,\alpha\in A_t,\beta\in B_tχ∈Xt​,ψ∈Yt​,α∈At​,β∈Bt​; the property imposes no equality on other input arrays.

QAlgorithms.Papers.Independent.Intakethird100.P29.Behavior

For any Bell scenario sss, a behavior is an arbitrary real-valued function p:Xs×Ys×As×Bs→Rp:X_s\times Y_s\times A_s\times B_s\to\mathbb Rp:Xs​×Ys​×As​×Bs​→R, written p(x,y,a,b)p(x,y,a,b)p(x,y,a,b), where Xs,Ys,As,BsX_s,Y_s,A_s,B_sXs​,Ys​,As​,Bs​ are the integer index sets of sizes s.nX,s.nY,s.nA,s.nBs.n_X,s.n_Y,s.n_A,s.n_Bs.nX​,s.nY​,s.nA​,s.nB​, respectively. This definition imposes no nonnegativity, normalization, or no-signaling conditions.

QAlgorithms.Papers.Independent.Intakethird100.P29.BellOperation

For any Bell scenarios s,ts,ts,t, a Bell operation is an arbitrary function from the real-valued functions on Xs×Ys×As×BsX_s\times Y_s\times A_s\times B_sXs​×Ys​×As​×Bs​ to the real-valued functions on Xt×Yt×At×BtX_t\times Y_t\times A_t\times B_tXt​×Yt​×At​×Bt​, where each index set consists of the integers starting at zero and has the corresponding positive size specified by its scenario. No linearity or preservation of nonnegativity, normalization, or no-signaling is required.

QAlgorithms.Papers.Independent.Intakethird100.P29.BellScenario.A

For any Bell scenario sss, its set AsA_sAs​ is the finite set {0,…,s.nA−1}\{0,\ldots,s.n_A-1\}{0,…,s.nA​−1}. The positivity requirement on s.nAs.n_As.nA​ makes this set nonempty.

QAlgorithms.Papers.Independent.Intakethird100.P29.BellScenario.B

For any Bell scenario sss, its set BsB_sBs​ is the finite set {0,…,s.nB−1}\{0,\ldots,s.n_B-1\}{0,…,s.nB​−1}. The positivity requirement on s.nBs.n_Bs.nB​ makes this set nonempty.

QAlgorithms.Papers.Independent.Intakethird100.P29.BellScenario.X

For any Bell scenario sss, its set XsX_sXs​ is the finite set {0,…,s.nX−1}\{0,\ldots,s.n_X-1\}{0,…,s.nX​−1}. The positivity requirement on s.nXs.n_Xs.nX​ makes this set nonempty.

QAlgorithms.Papers.Independent.Intakethird100.P29.BellScenario.Y

For any Bell scenario sss, its set YsY_sYs​ is the finite set {0,…,s.nY−1}\{0,\ldots,s.n_Y-1\}{0,…,s.nY​−1}. The positivity requirement on s.nYs.n_Ys.nY​ makes this set nonempty.

QAlgorithms.Papers.Independent.Intakethird100.P29.BellScenario

A Bell scenario consists of four natural numbers nX,nY,nA,nBn_X,n_Y,n_A,n_BnX​,nY​,nA​,nB​ together with the requirements 0<nX0<n_X0<nX​, 0<nY0<n_Y0<nY​, 0<nA0<n_A0<nA​, and 0<nB0<n_B0<nB​. Thus all four numbers are positive; zero is excluded.

QAlgorithms.Papers.Independent.Intakethird100.P29.GlobalWiring.apply

For any Bell scenarios s,ts,ts,t and any global wiring ggg with input distributions Ig(χ,ψ,x,y)I_g(\chi,\psi,x,y)Ig​(χ,ψ,x,y) on Xs×YsX_s\times Y_sXs​×Ys​ and output distributions Og(a,b,x,y,χ,ψ,α,β)O_g(a,b,x,y,\chi,\psi,\alpha,\beta)Og​(a,b,x,y,χ,ψ,α,β) on At×BtA_t\times B_tAt​×Bt​, each nonnegative and of total mass one for every fixed choice of its conditioning arguments, the associated operation sends every arbitrary real-valued behavior ppp to

(gp)(χ,ψ,α,β)=∑a∈As∑b∈Bs∑x∈Xs∑y∈YsOg(a,b,x,y,χ,ψ,α,β) p(x,y,a,b) Ig(χ,ψ,x,y).(gp)(\chi,\psi,\alpha,\beta)= \sum_{a\in A_s}\sum_{b\in B_s}\sum_{x\in X_s}\sum_{y\in Y_s} O_g(a,b,x,y,\chi,\psi,\alpha,\beta)\,p(x,y,a,b)\,I_g(\chi,\psi,x,y).(gp)(χ,ψ,α,β)=a∈As​∑​b∈Bs​∑​x∈Xs​∑​y∈Ys​∑​Og​(a,b,x,y,χ,ψ,α,β)p(x,y,a,b)Ig​(χ,ψ,x,y).

This holds for every χ∈Xt,ψ∈Yt,α∈At,β∈Bt\chi\in X_t,\psi\in Y_t,\alpha\in A_t,\beta\in B_tχ∈Xt​,ψ∈Yt​,α∈At​,β∈Bt​; all scenario index sets are the integer index sets of their specified positive sizes, and no conditions on ppp are required.

QAlgorithms.Papers.Independent.Intakethird100.P29.GlobalWiring

For any Bell scenarios s,ts,ts,t, a global wiring consists of real-valued functions I(χ,ψ,x,y)I(\chi,\psi,x,y)I(χ,ψ,x,y) and O(a,b,x,y,χ,ψ,α,β)O(a,b,x,y,\chi,\psi,\alpha,\beta)O(a,b,x,y,χ,ψ,α,β), with x∈Xs,y∈Ys,a∈As,b∈Bs,χ∈Xt,ψ∈Yt,α∈At,β∈Btx\in X_s,y\in Y_s,a\in A_s,b\in B_s,\chi\in X_t,\psi\in Y_t,\alpha\in A_t,\beta\in B_tx∈Xs​,y∈Ys​,a∈As​,b∈Bs​,χ∈Xt​,ψ∈Yt​,α∈At​,β∈Bt​, where each index set is the integer index set of its scenario’s specified positive size. For every χ,ψ\chi,\psiχ,ψ, all values of I(χ,ψ,⋅,⋅)I(\chi,\psi,\cdot,\cdot)I(χ,ψ,⋅,⋅) are nonnegative and ∑x,yI(χ,ψ,x,y)=1\sum_{x,y}I(\chi,\psi,x,y)=1∑x,y​I(χ,ψ,x,y)=1; for every a,b,x,y,χ,ψa,b,x,y,\chi,\psia,b,x,y,χ,ψ, all values of O(a,b,x,y,χ,ψ,⋅,⋅)O(a,b,x,y,\chi,\psi,\cdot,\cdot)O(a,b,x,y,χ,ψ,⋅,⋅) are nonnegative and ∑α,βO(a,b,x,y,χ,ψ,α,β)=1\sum_{\alpha,\beta}O(a,b,x,y,\chi,\psi,\alpha,\beta)=1∑α,β​O(a,b,x,y,χ,ψ,α,β)=1. No factorization or no-signaling requirement is imposed on these distributions.

QAlgorithms.Papers.Independent.Intakethird100.P29.HasGWRestriction

For Bell scenarios s,ts,ts,t with finite nonempty alphabets Xs,Ys,As,BsX_s,Y_s,A_s,B_sXs​,Ys​,As​,Bs​ and Xt,Yt,At,BtX_t,Y_t,A_t,B_tXt​,Yt​,At​,Bt​, let www be any function taking real-valued arrays on Xs×Ys×As×BsX_s\times Y_s\times A_s\times B_sXs​×Ys​×As​×Bs​ to real-valued arrays on Xt×Yt×At×BtX_t\times Y_t\times A_t\times B_tXt​×Yt​×At​×Bt​. It has the stated restriction precisely when there exist real-valued functions I(χ,ψ,x,y)I(\chi,\psi,x,y)I(χ,ψ,x,y) and O(a,b,x,y,χ,ψ,α,β)O(a,b,x,y,\chi,\psi,\alpha,\beta)O(a,b,x,y,χ,ψ,α,β) such that, for each χ,ψ\chi,\psiχ,ψ, III is nonnegative and sums to 111 over (x,y)∈Xs×Ys(x,y)\in X_s\times Y_s(x,y)∈Xs​×Ys​, and, for each a,b,x,y,χ,ψa,b,x,y,\chi,\psia,b,x,y,χ,ψ, OOO is nonnegative and sums to 111 over (α,β)∈At×Bt(\alpha,\beta)\in A_t\times B_t(α,β)∈At​×Bt​, with

w[p](χ,ψ,α,β)=∑a∈As∑b∈Bs∑x∈Xs∑y∈YsO(a,b,x,y,χ,ψ,α,β) p(x,y,a,b) I(χ,ψ,x,y)w[p](\chi,\psi,\alpha,\beta) =\sum_{a\in A_s}\sum_{b\in B_s}\sum_{x\in X_s}\sum_{y\in Y_s} O(a,b,x,y,\chi,\psi,\alpha,\beta)\,p(x,y,a,b)\,I(\chi,\psi,x,y)w[p](χ,ψ,α,β)=a∈As​∑​b∈Bs​∑​x∈Xs​∑​y∈Ys​∑​O(a,b,x,y,χ,ψ,α,β)p(x,y,a,b)I(χ,ψ,x,y)

for every χ,ψ,α,β\chi,\psi,\alpha,\betaχ,ψ,α,β and every nonnegative array ppp normalized by ∑a,bp(x,y,a,b)=1\sum_{a,b}p(x,y,a,b)=1∑a,b​p(x,y,a,b)=1 for all x,yx,yx,y and satisfying ∑ap(x,y,a,b)=∑ap(z,y,a,b)\sum_a p(x,y,a,b)=\sum_a p(z,y,a,b)∑a​p(x,y,a,b)=∑a​p(z,y,a,b) for all x,z∈Xs,y∈Ys,b∈Bsx,z\in X_s,y\in Y_s,b\in B_sx,z∈Xs​,y∈Ys​,b∈Bs​, and ∑bp(x,y,a,b)=∑bp(x,z,a,b)\sum_b p(x,y,a,b)=\sum_b p(x,z,a,b)∑b​p(x,y,a,b)=∑b​p(x,z,a,b) for all y,z∈Ys,x∈Xs,a∈Asy,z\in Y_s,x\in X_s,a\in A_sy,z∈Ys​,x∈Xs​,a∈As​. This equality is required only for those arrays ppp.

QAlgorithms.Papers.Independent.Intakethird100.P29.HasLOSRRestriction

For Bell scenarios s,ts,ts,t, each consisting of four finite input and output alphabets of strictly positive sizes, and any map www from real tables on sss to real tables on ttt, this property means that there is another such map vvv with the following form. There are arbitrary types L1,L2L_1,L_2L1​,L2​, probability mass functions μ\muμ on L1L_1L1​ and ν\nuν on L2L_2L2​, and real kernels Ain(ℓ,χ,x)A_{\mathrm{in}}(\ell,\chi,x)Ain​(ℓ,χ,x), Bin(ℓ,ψ,y)B_{\mathrm{in}}(\ell,\psi,y)Bin​(ℓ,ψ,y), Aout(k,a,x,χ,α)A_{\mathrm{out}}(k,a,x,\chi,\alpha)Aout​(k,a,x,χ,α), and Bout(k,b,y,ψ,β)B_{\mathrm{out}}(k,b,y,\psi,\beta)Bout​(k,b,y,ψ,β), each nonnegative and summing to 111 over its final argument for every choice of its other arguments, such that, for every real table rrr,

(vr)(χ,ψ,α,β)=∑a,b,x,y(∑k∈L1μ(k)Aout(k,a,x,χ,α)Bout(k,b,y,ψ,β))r(x,y,a,b)(∑ℓ∈L2ν(ℓ)Ain(ℓ,χ,x)Bin(ℓ,ψ,y)).(vr)(\chi,\psi,\alpha,\beta)= \sum_{a,b,x,y} \left(\sum_{k\in L_1}\mu(k)A_{\mathrm{out}}(k,a,x,\chi,\alpha)B_{\mathrm{out}}(k,b,y,\psi,\beta)\right) r(x,y,a,b) \left(\sum_{\ell\in L_2}\nu(\ell)A_{\mathrm{in}}(\ell,\chi,x)B_{\mathrm{in}}(\ell,\psi,y)\right).(vr)(χ,ψ,α,β)=a,b,x,y∑​(k∈L1​∑​μ(k)Aout​(k,a,x,χ,α)Bout​(k,b,y,ψ,β))r(x,y,a,b)(ℓ∈L2​∑​ν(ℓ)Ain​(ℓ,χ,x)Bin​(ℓ,ψ,y)).

Here the potentially infinite sums are the specified sums of real values of the probability masses. Moreover, wr=vrwr=vrwr=vr for every rrr whose entries are nonnegative, whose output entries sum to 111 at every input pair, and which satisfies

∑ar(x,y,a,b)=∑ar(x′,y,a,b),∑br(x,y,a,b)=∑br(x,y′,a,b)\sum_a r(x,y,a,b)=\sum_a r(x',y,a,b),\qquad \sum_b r(x,y,a,b)=\sum_b r(x,y',a,b)a∑​r(x,y,a,b)=a∑​r(x′,y,a,b),b∑​r(x,y,a,b)=b∑​r(x,y′,a,b)

for all indicated inputs and outputs. Agreement is required only on these tables, whereas the displayed formula for vvv is required on every real table.

QAlgorithms.Papers.Independent.Intakethird100.P29.IsBellMonotone

For a function f(s,p)∈[0,∞]f(s,p)\in[0,\infty]f(s,p)∈[0,∞], this predicate is the conjunction of the following two monotonicity requirements, each including finiteness on nonsignaling correlations and value zero on local correlations. Scenarios have four positive integer sizes and finite nonempty input and output index sets; a nonsignaling correlation is a nonnegative array pxyabp_{xy}^{ab}pxyab​ with ∑a,bpxyab=1\sum_{a,b}p_{xy}^{ab}=1∑a,b​pxyab​=1, ∑apxyab\sum_a p_{xy}^{ab}∑a​pxyab​ independent of xxx, and ∑bpxyab\sum_b p_{xy}^{ab}∑b​pxyab​ independent of yyy. A local correlation additionally admits pxyab=∑λμ(λ)Aλ(a∣x)Bλ(b∣y)p_{xy}^{ab}=\sum_\lambda\mu(\lambda)A_\lambda(a\mid x)B_\lambda(b\mid y)pxyab​=∑λ​μ(λ)Aλ​(a∣x)Bλ​(b∣y), with a probability mass function μ\muμ on an arbitrary type and probability vectors Aλ,BλA_\lambda,B_\lambdaAλ​,Bλ​. The first requirement is f(t,w(p))≤f(s,p)f(t,w(p))\le f(s,p)f(t,w(p))≤f(s,p) whenever www, on all real arrays, is obtained by a local input preprocessing mixture and a separate local output postprocessing mixture: the input distribution is ∑ην(η)IηA(x∣χ)IηB(y∣ψ)\sum_\eta\nu(\eta)I^A_\eta(x\mid\chi)I^B_\eta(y\mid\psi)∑η​ν(η)IηA​(x∣χ)IηB​(y∣ψ), the output distribution is ∑λμ(λ)OλA(α∣a,x,χ)OλB(β∣b,y,ψ)\sum_\lambda\mu(\lambda)O^A_\lambda(\alpha\mid a,x,\chi)O^B_\lambda(\beta\mid b,y,\psi)∑λ​μ(λ)OλA​(α∣a,x,χ)OλB​(β∣b,y,ψ), and their product with pxyabp_{xy}^{ab}pxyab​ is summed over a,b,x,ya,b,x,ya,b,x,y; all kernels are probability vectors and both mixing types may be infinite. The second requirement is the same inequality whenever www agrees on all nonsignaling correlations with a probability mixture of deterministic preparations of these forms: both source inputs depend separately on the target inputs and each final output depends on its own target input and source output; or Alice’s source input is fixed first and, depending on her outcome, Bob’s source input either depends on his target input while Alice’s final output ignores Bob’s outcome, or is fixed while both final outputs may depend on Bob’s outcome; or the symmetric construction with Bob first. In each latter construction final outputs depend only on the stated available outcomes and their own target inputs, and probabilities are obtained by summing source entries with the corresponding output indicators. No agreement away from nonsignaling correlations is required for the second class.

QAlgorithms.Papers.Independent.Intakethird100.P29.IsGW

For any Bell scenarios s,ts,ts,t and any operation www between their arbitrary real-valued behaviors, this predicate holds exactly when there exist nonnegative input distributions I(χ,ψ,⋅,⋅)I(\chi,\psi,\cdot,\cdot)I(χ,ψ,⋅,⋅) of total mass one on Xs×YsX_s\times Y_sXs​×Ys​ and nonnegative output distributions O(a,b,x,y,χ,ψ,⋅,⋅)O(a,b,x,y,\chi,\psi,\cdot,\cdot)O(a,b,x,y,χ,ψ,⋅,⋅) of total mass one on At×BtA_t\times B_tAt​×Bt​, for every choice of conditioning arguments, such that for every real-valued behavior ppp and every target index χ,ψ,α,β\chi,\psi,\alpha,\betaχ,ψ,α,β,

(wp)(χ,ψ,α,β)=∑a∈As∑b∈Bs∑x∈Xs∑y∈YsO(a,b,x,y,χ,ψ,α,β) p(x,y,a,b) I(χ,ψ,x,y).(wp)(\chi,\psi,\alpha,\beta)= \sum_{a\in A_s}\sum_{b\in B_s}\sum_{x\in X_s}\sum_{y\in Y_s} O(a,b,x,y,\chi,\psi,\alpha,\beta)\,p(x,y,a,b)\,I(\chi,\psi,x,y).(wp)(χ,ψ,α,β)=a∈As​∑​b∈Bs​∑​x∈Xs​∑​y∈Ys​∑​O(a,b,x,y,χ,ψ,α,β)p(x,y,a,b)I(χ,ψ,x,y).

Here each index set is the integer index set of the corresponding positive size in sss or ttt. The same distributions must give this identity for all ppp, including negative, unnormalized, and signaling functions.

QAlgorithms.Papers.Independent.Intakethird100.P29.IsLOSR

For any Bell scenarios s,ts,ts,t and any operation www between their spaces of arbitrary real-valued behaviors, this predicate holds exactly when there exist two types L1,L2L_1,L_2L1​,L2​, probability mass functions μ1\mu_1μ1​ on L1L_1L1​ and μ2\mu_2μ2​ on L2L_2L2​, and real-valued functions uA(ℓ,χ,x)u_A(\ell,\chi,x)uA​(ℓ,χ,x), uB(ℓ,ψ,y)u_B(\ell,\psi,y)uB​(ℓ,ψ,y), vA(j,a,x,χ,α)v_A(j,a,x,\chi,\alpha)vA​(j,a,x,χ,α), and vB(j,b,y,ψ,β)v_B(j,b,y,\psi,\beta)vB​(j,b,y,ψ,β) with the following properties: for every ℓ∈L2\ell\in L_2ℓ∈L2​ and χ∈Xt\chi\in X_tχ∈Xt​, uA(ℓ,χ,⋅)u_A(\ell,\chi,\cdot)uA​(ℓ,χ,⋅) is a nonnegative distribution of total mass one on XsX_sXs​; for every ℓ,ψ∈Yt\ell,\psi\in Y_tℓ,ψ∈Yt​, uB(ℓ,ψ,⋅)u_B(\ell,\psi,\cdot)uB​(ℓ,ψ,⋅) is such a distribution on YsY_sYs​; for every j∈L1,a∈As,x∈Xs,χ∈Xtj\in L_1,a\in A_s,x\in X_s,\chi\in X_tj∈L1​,a∈As​,x∈Xs​,χ∈Xt​, vA(j,a,x,χ,⋅)v_A(j,a,x,\chi,\cdot)vA​(j,a,x,χ,⋅) is such a distribution on AtA_tAt​; and for every j,b∈Bs,y∈Ys,ψ∈Ytj,b\in B_s,y\in Y_s,\psi\in Y_tj,b∈Bs​,y∈Ys​,ψ∈Yt​, vB(j,b,y,ψ,⋅)v_B(j,b,y,\psi,\cdot)vB​(j,b,y,ψ,⋅) is such a distribution on BtB_tBt​. For every real-valued behavior ppp and every χ∈Xt,ψ∈Yt,α∈At,β∈Bt\chi\in X_t,\psi\in Y_t,\alpha\in A_t,\beta\in B_tχ∈Xt​,ψ∈Yt​,α∈At​,β∈Bt​, the required identity is

(wp)(χ,ψ,α,β)=∑a∈As∑b∈Bs∑x∈Xs∑y∈Ys(∑j∈L1μ1(j)vA(j,a,x,χ,α)vB(j,b,y,ψ,β))p(x,y,a,b)(∑ℓ∈L2μ2(ℓ)uA(ℓ,χ,x)uB(ℓ,ψ,y)).(wp)(\chi,\psi,\alpha,\beta)= \sum_{a\in A_s}\sum_{b\in B_s}\sum_{x\in X_s}\sum_{y\in Y_s} \left(\sum_{j\in L_1}\mu_1(j)v_A(j,a,x,\chi,\alpha)v_B(j,b,y,\psi,\beta)\right) p(x,y,a,b) \left(\sum_{\ell\in L_2}\mu_2(\ell)u_A(\ell,\chi,x)u_B(\ell,\psi,y)\right).(wp)(χ,ψ,α,β)=a∈As​∑​b∈Bs​∑​x∈Xs​∑​y∈Ys​∑​​j∈L1​∑​μ1​(j)vA​(j,a,x,χ,α)vB​(j,b,y,ψ,β)​p(x,y,a,b)(ℓ∈L2​∑​μ2​(ℓ)uA​(ℓ,χ,x)uB​(ℓ,ψ,y)).

Here the scenario index sets are the integer index sets of their specified positive sizes, and L1,L2L_1,L_2L1​,L2​ need not be finite. The identity is required even for ppp that is negative, unnormalized, or signaling.

QAlgorithms.Papers.Independent.Intakethird100.P29.IsLOSRMonotone

For a function f(s,p)∈[0,∞]f(s,p)\in[0,\infty]f(s,p)∈[0,∞] on scenarios and real behavior arrays, this predicate requires finiteness on every nonnegative normalized array whose Alice marginal is independent of Bob’s input and whose Bob marginal is independent of Alice’s input, and value zero on every nonnegative normalized array of the form pxyab=∑λμ(λ)Aλ(a∣x)Bλ(b∣y)p_{xy}^{ab}=\sum_\lambda\mu(\lambda)A_\lambda(a\mid x)B_\lambda(b\mid y)pxyab​=∑λ​μ(λ)Aλ​(a∣x)Bλ​(b∣y), with a probability mass function μ\muμ on an arbitrary type and probability vectors Aλ,BλA_\lambda,B_\lambdaAλ​,Bλ​. It additionally requires f(t,w(p))≤f(s,p)f(t,w(p))\le f(s,p)f(t,w(p))≤f(s,p) for every pair of scenarios s,ts,ts,t, every such nonsignaling correlation ppp on sss, and every operation www with the following representation, valid on all real arrays rrr:

w(r)χψαβ=∑a,b,x,y(∑λμ(λ)OλA(α∣a,x,χ)OλB(β∣b,y,ψ))rxyab(∑ην(η)IηA(x∣χ)IηB(y∣ψ)).w(r)_{\chi\psi}^{\alpha\beta} =\sum_{a,b,x,y} \left(\sum_\lambda\mu(\lambda)O^A_\lambda(\alpha\mid a,x,\chi)O^B_\lambda(\beta\mid b,y,\psi)\right) r_{xy}^{ab} \left(\sum_\eta\nu(\eta)I^A_\eta(x\mid\chi)I^B_\eta(y\mid\psi)\right).w(r)χψαβ​=a,b,x,y∑​(λ∑​μ(λ)OλA​(α∣a,x,χ)OλB​(β∣b,y,ψ))rxyab​(η∑​ν(η)IηA​(x∣χ)IηB​(y∣ψ)).

Here x,y,a,bx,y,a,bx,y,a,b are source indices, χ,ψ,α,β\chi,\psi,\alpha,\betaχ,ψ,α,β are target indices, μ,ν\mu,\nuμ,ν are separate probability mass functions on arbitrary types, and every displayed III or OOO kernel is a nonnegative probability vector in its first argument for every choice of its conditioning arguments. All scenario index sets are finite and nonempty.

QAlgorithms.Papers.Independent.Intakethird100.P29.IsNS

For any Bell scenario sss and any real-valued behavior p(x,y,a,b)p(x,y,a,b)p(x,y,a,b) on its finite, nonempty index sets Xs,Ys,As,BsX_s,Y_s,A_s,B_sXs​,Ys​,As​,Bs​ of sizes s.nX,s.nY,s.nA,s.nBs.n_X,s.n_Y,s.n_A,s.n_Bs.nX​,s.nY​,s.nA​,s.nB​, respectively, the predicate holds exactly when p(x,y,a,b)≥0p(x,y,a,b)\ge0p(x,y,a,b)≥0 for every x,y,a,bx,y,a,bx,y,a,b, ∑a∈As∑b∈Bsp(x,y,a,b)=1\sum_{a\in A_s}\sum_{b\in B_s}p(x,y,a,b)=1∑a∈As​​∑b∈Bs​​p(x,y,a,b)=1 for every x,yx,yx,y, and both marginal equalities hold:

∑a∈Asp(x,y,a,b)=∑a∈Asp(z,y,a,b)for every x,z∈Xs, y∈Ys, b∈Bs,∑b∈Bsp(x,y,a,b)=∑b∈Bsp(x,z,a,b)for every y,z∈Ys, x∈Xs, a∈As.\sum_{a\in A_s}p(x,y,a,b)=\sum_{a\in A_s}p(z,y,a,b) \quad\text{for every }x,z\in X_s,\ y\in Y_s,\ b\in B_s, \qquad \sum_{b\in B_s}p(x,y,a,b)=\sum_{b\in B_s}p(x,z,a,b) \quad\text{for every }y,z\in Y_s,\ x\in X_s,\ a\in A_s.a∈As​∑​p(x,y,a,b)=a∈As​∑​p(z,y,a,b)for every x,z∈Xs​, y∈Ys​, b∈Bs​,b∈Bs​∑​p(x,y,a,b)=b∈Bs​∑​p(x,z,a,b)for every y,z∈Ys​, x∈Xs​, a∈As​.

QAlgorithms.Papers.Independent.Intakethird100.P29.IsNormalizedQuantity

For a function fff assigning a value in [0,∞][0,\infty][0,∞] to every scenario sss and every real array pxyabp_{xy}^{ab}pxyab​ on that scenario, this predicate requires two properties. Each scenario has positive integer numbers of Alice inputs, Bob inputs, Alice outputs, and Bob outputs, so all four index sets are finite and nonempty. First, f(s,p)<∞f(s,p)<\inftyf(s,p)<∞ whenever ppp is nonnegative, ∑a,bpxyab=1\sum_{a,b}p_{xy}^{ab}=1∑a,b​pxyab​=1 for every x,yx,yx,y, and its marginals satisfy ∑apxyab=∑apx′yab\sum_a p_{xy}^{ab}=\sum_a p_{x'y}^{ab}∑a​pxyab​=∑a​px′yab​ and ∑bpxyab=∑bpxy′ab\sum_b p_{xy}^{ab}=\sum_b p_{xy'}^{ab}∑b​pxyab​=∑b​pxy′ab​ for all applicable indices. Second, f(s,p)=0f(s,p)=0f(s,p)=0 whenever ppp is a nonnegative normalized correlation admitting a representation

pxyab=∑λμ(λ)Aλ(a∣x)Bλ(b∣y),p_{xy}^{ab}=\sum_{\lambda}\mu(\lambda)A_\lambda(a\mid x)B_\lambda(b\mid y),pxyab​=λ∑​μ(λ)Aλ​(a∣x)Bλ​(b∣y),

where μ\muμ is a probability mass function on an arbitrary, potentially infinite type, and each Aλ(⋅∣x)A_\lambda(\cdot\mid x)Aλ​(⋅∣x) and Bλ(⋅∣y)B_\lambda(\cdot\mid y)Bλ​(⋅∣y) is a nonnegative real probability vector. The series uses the real values of the probability masses. No condition is imposed here on other arrays.

QAlgorithms.Papers.Independent.Intakethird100.P29.IsWPICC

For any Bell scenarios s,ts,ts,t with positive finite input and output cardinalities, and any function www from real arrays p:s.X×s.Y×s.A×s.B→Rp:s.X\times s.Y\times s.A\times s.B\to\mathbb Rp:s.X×s.Y×s.A×s.B→R to real arrays on t.X×t.Y×t.A×t.Bt.X\times t.Y\times t.A\times t.Bt.X×t.Y×t.A×t.B, this predicate asserts the existence of a real λ∈[0,1]\lambda\in[0,1]λ∈[0,1], an operation vvv, a type LLL, a probability mass function μ\muμ on LLL, and preparations rlr_lrl​ for every l∈Ll\in Ll∈L, such that every rlr_lrl​ is an Alice first or Bob first preparation, and, for every nonnegative array ppp satisfying ∑a,bp(x,y,a,b)=1\sum_{a,b}p(x,y,a,b)=1∑a,b​p(x,y,a,b)=1, with ∑ap(x,y,a,b)\sum_a p(x,y,a,b)∑a​p(x,y,a,b) independent of xxx and ∑bp(x,y,a,b)\sum_b p(x,y,a,b)∑b​p(x,y,a,b) independent of yyy, and every χ∈t.X,ψ∈t.Y,α∈t.A,β∈t.B\chi\in t.X,\psi\in t.Y,\alpha\in t.A,\beta\in t.Bχ∈t.X,ψ∈t.Y,α∈t.A,β∈t.B, one has

(wp)(χ,ψ,α,β)=λ∑l∈Lμ(l) Rl(p;χ,ψ,α,β)+(1−λ)(vp)(χ,ψ,α,β).(wp)(\chi,\psi,\alpha,\beta) =\lambda\sum_{l\in L}\mu(l)\,R_l(p;\chi,\psi,\alpha,\beta) +(1-\lambda)(vp)(\chi,\psi,\alpha,\beta).(wp)(χ,ψ,α,β)=λl∈L∑​μ(l)Rl​(p;χ,ψ,α,β)+(1−λ)(vp)(χ,ψ,α,β).

Here the sum over LLL is the possibly infinite sum of real terms, with each mass interpreted as a real number. Writing 1[u=v]\mathbf1[u=v]1[u=v] for the equality indicator, an Alice first preparation has a fixed x0∈s.Xx_0\in s.Xx0​∈s.X and contributes

Rl(p;χ,ψ,α,β)=∑a,bp(x0,Ya(ψ),a,b) 1[α=Aa(b,χ)] 1[β=Ba(b,ψ)].R_l(p;\chi,\psi,\alpha,\beta) =\sum_{a,b}p(x_0,Y_a(\psi),a,b)\, \mathbf1[\alpha=A_a(b,\chi)]\, \mathbf1[\beta=B_a(b,\psi)].Rl​(p;χ,ψ,α,β)=a,b∑​p(x0​,Ya​(ψ),a,b)1[α=Aa​(b,χ)]1[β=Ba​(b,ψ)].

For each aaa, its continuation independently chooses either the waiting form, in which Ya:t.Y→s.YY_a:t.Y\to s.YYa​:t.Y→s.Y is arbitrary, Aa(b,χ)A_a(b,\chi)Aa​(b,χ) depends only on χ\chiχ, and Ba(b,ψ)B_a(b,\psi)Ba​(b,ψ) is arbitrary, or the measuring form, in which YaY_aYa​ is constant and both output maps are arbitrary functions of the displayed arguments. A Bob first preparation instead has a fixed y0∈s.Yy_0\in s.Yy0​∈s.Y and contributes

Rl(p;χ,ψ,α,β)=∑a,bp(Xb(χ),y0,a,b) 1[α=Ab(a,χ)] 1[β=Bb(a,ψ)].R_l(p;\chi,\psi,\alpha,\beta) =\sum_{a,b}p(X_b(\chi),y_0,a,b)\, \mathbf1[\alpha=A_b(a,\chi)]\, \mathbf1[\beta=B_b(a,\psi)].Rl​(p;χ,ψ,α,β)=a,b∑​p(Xb​(χ),y0​,a,b)1[α=Ab​(a,χ)]1[β=Bb​(a,ψ)].

For each bbb, its waiting form permits arbitrary Xb:t.X→s.XX_b:t.X\to s.XXb​:t.X→s.X and AbA_bAb​, while Bb(a,ψ)B_b(a,\psi)Bb​(a,ψ) depends only on ψ\psiψ; its measuring form makes XbX_bXb​ constant and permits arbitrary displayed output maps. The required condition on vvv means that there exist types L1,L2L_1,L_2L1​,L2​, probability mass functions ν1,ν2\nu_1,\nu_2ν1​,ν2​, input response laws iA(h,χ,x)i_A(h,\chi,x)iA​(h,χ,x), iB(h,ψ,y)i_B(h,\psi,y)iB​(h,ψ,y), and output response laws oA(k,a,x,χ,α)o_A(k,a,x,\chi,\alpha)oA​(k,a,x,χ,α), oB(k,b,y,ψ,β)o_B(k,b,y,\psi,\beta)oB​(k,b,y,ψ,β), each nonnegative and summing to 111 over its final argument for every choice of its other arguments, such that for every real array ppp,

(vp)(χ,ψ,α,β)=∑a,b,x,y(∑k∈L1ν1(k)oA(k,a,x,χ,α)oB(k,b,y,ψ,β))p(x,y,a,b)(∑h∈L2ν2(h)iA(h,χ,x)iB(h,ψ,y)).(vp)(\chi,\psi,\alpha,\beta) =\sum_{a,b,x,y} \left(\sum_{k\in L_1}\nu_1(k)o_A(k,a,x,\chi,\alpha)o_B(k,b,y,\psi,\beta)\right) p(x,y,a,b) \left(\sum_{h\in L_2}\nu_2(h)i_A(h,\chi,x)i_B(h,\psi,y)\right).(vp)(χ,ψ,α,β)=a,b,x,y∑​(k∈L1​∑​ν1​(k)oA​(k,a,x,χ,α)oB​(k,b,y,ψ,β))p(x,y,a,b)(h∈L2​∑​ν2​(h)iA​(h,χ,x)iB​(h,ψ,y)).

The representation of www is required only on the normalized nonsignaling arrays specified above. Both endpoints λ=0,1\lambda=0,1λ=0,1 are allowed, but all existential witnesses and the requirement that every rlr_lrl​ be prepared remain required, including for indices of zero μ\muμ-mass.

QAlgorithms.Papers.Independent.Intakethird100.P29.IsWPICCMonotone

For a function f(s,p)∈[0,∞]f(s,p)\in[0,\infty]f(s,p)∈[0,∞] on scenarios and real behavior arrays, this predicate requires finiteness on every nonnegative normalized correlation with each party’s marginal independent of the other party’s input, and value zero on every nonnegative normalized correlation pxyab=∑λμ(λ)Aλ(a∣x)Bλ(b∣y)p_{xy}^{ab}=\sum_\lambda\mu(\lambda)A_\lambda(a\mid x)B_\lambda(b\mid y)pxyab​=∑λ​μ(λ)Aλ​(a∣x)Bλ​(b∣y), where μ\muμ is a probability mass function on an arbitrary type and Aλ,BλA_\lambda,B_\lambdaAλ​,Bλ​ are probability vectors. It also requires f(t,w(p))≤f(s,p)f(t,w(p))\le f(s,p)f(t,w(p))≤f(s,p) for every pair of scenarios, every nonsignaling correlation ppp on the source, and every operation www that, on every nonsignaling source correlation, agrees with a probability mixture of the following deterministic transformations. One may choose inputs x=iA(χ)x=i_A(\chi)x=iA​(χ), y=iB(ψ)y=i_B(\psi)y=iB​(ψ) and output α=oA(χ,a)\alpha=o_A(\chi,a)α=oA​(χ,a), β=oB(ψ,b)\beta=o_B(\psi,b)β=oB​(ψ,b); alternatively, one may fix Alice’s input xxx and, separately for each resulting aaa, either choose Bob’s input as a function of ψ\psiψ, Alice’s output as a function of χ\chiχ, and Bob’s output as a function of ψ,b\psi,bψ,b, or fix Bob’s input and make both final outputs functions of bbb and their respective target inputs. Symmetrically, one may fix Bob’s input yyy and, separately for each resulting bbb, either choose Alice’s input as a function of χ\chiχ, Alice’s output as a function of χ,a\chi,aχ,a, and Bob’s output as a function of ψ\psiψ, or fix Alice’s input and make both outputs functions of aaa and their respective target inputs. A deterministic transformation sums pxyabp_{xy}^{ab}pxyab​ over source outcomes with indicators enforcing these output functions; the mixture uses a probability mass function on an arbitrary type. The operation is unrestricted on arrays that are not nonsignaling correlations. All scenario index sets are finite and nonempty.

QAlgorithms.Papers.Independent.Intakethird100.P29.OptimaAttained

For a Bell scenario sss, with finite nonempty input alphabets X,YX,YX,Y and output alphabets A,BA,BA,B of strictly positive sizes, and any real table ppp, define L\mathcal LL to be the nonnegative output-normalized tables qqq expressible as q(x,y,a,b)=∑ℓ∈Lμ(ℓ)u(ℓ,x,a)v(ℓ,y,b)q(x,y,a,b)=\sum_{\ell\in L}\mu(\ell)u(\ell,x,a)v(\ell,y,b)q(x,y,a,b)=∑ℓ∈L​μ(ℓ)u(ℓ,x,a)v(ℓ,y,b), for some arbitrary type LLL, probability mass function μ\muμ, and nonnegative response functions normalized over their respective outputs for every hidden value and input. Put Dx,y(p,q)=+∞D_{x,y}(p,q)=+\inftyDx,y​(p,q)=+∞ if some output satisfies p(x,y,a,b)>0=q(x,y,a,b)p(x,y,a,b)>0=q(x,y,a,b)p(x,y,a,b)>0=q(x,y,a,b), and otherwise put Dx,y(p,q)=max⁡{0,∑a,bp(x,y,a,b)log⁡(p(x,y,a,b)/q(x,y,a,b))}D_{x,y}(p,q)=\max\{0,\sum_{a,b}p(x,y,a,b)\log(p(x,y,a,b)/q(x,y,a,b))\}Dx,y​(p,q)=max{0,∑a,b​p(x,y,a,b)log(p(x,y,a,b)/q(x,y,a,b))}; total division by zero and log⁡0\log 0log0 are 000, and logarithms of negative nonzero arguments use absolute values. For any real input weights ddd, write

B(q)=sup⁡x,yDx,y(p,q),Ed(q)=∑x,ymax⁡{d(x,y),0}Dx,y(p,q),L(d)=inf⁡q∈LEd(q),B(q)=\sup_{x,y}D_{x,y}(p,q),\qquad E_d(q)=\sum_{x,y}\max\{d(x,y),0\}D_{x,y}(p,q),\qquad L(d)=\inf_{q\in\mathcal L}E_d(q),B(q)=x,ysup​Dx,y​(p,q),Ed​(q)=x,y∑​max{d(x,y),0}Dx,y​(p,q),L(d)=q∈Linf​Ed​(q),

using extended nonnegative arithmetic, including 0⋅(+∞)=00\cdot(+\infty)=00⋅(+∞)=0, and let u(x,y)=1/(∣X∣∣Y∣)u(x,y)=1/(|X||Y|)u(x,y)=1/(∣X∣∣Y∣). A law means a nonnegative real function summing to 111. This property asserts that all four numbers

S=inf⁡q∈LB(q),U=L(u),C=sup⁡dX,dY lawsL(dXdY),J=sup⁡d a joint lawL(d)S=\inf_{q\in\mathcal L}B(q),\qquad U=L(u),\qquad C=\sup_{d_X,d_Y\text{ laws}}L(d_Xd_Y),\qquad J=\sup_{d\text{ a joint law}}L(d)S=q∈Linf​B(q),U=L(u),C=dX​,dY​ lawssup​L(dX​dY​),J=d a joint lawsup​L(d)

are different from +∞+\infty+∞, where (dXdY)(x,y)=dX(x)dY(y)(d_Xd_Y)(x,y)=d_X(x)d_Y(y)(dX​dY​)(x,y)=dX​(x)dY​(y); that some q∈Lq\in\mathcal Lq∈L satisfies B(q)=SB(q)=SB(q)=S; that for every joint input law ddd, some q∈Lq\in\mathcal Lq∈L satisfies Ed(q)=L(d)E_d(q)=L(d)Ed​(q)=L(d); that some q∈Lq\in\mathcal Lq∈L satisfies Eu(q)=UE_u(q)=UEu​(q)=U; that some pair of input laws dX,dYd_X,d_YdX​,dY​ satisfies L(dXdY)=CL(d_Xd_Y)=CL(dX​dY​)=C; and that some joint input law ddd satisfies L(d)=JL(d)=JL(d)=J. These witnesses may differ, no uniqueness is required, and ppp itself is not assumed to be a correlation or no-signaling table.

QAlgorithms.Papers.Independent.Intakethird100.P29.Preparation.apply

For Bell scenarios s,ts,ts,t with finite nonempty alphabets Xs,Ys,As,BsX_s,Y_s,A_s,B_sXs​,Ys​,As​,Bs​ and Xt,Yt,At,BtX_t,Y_t,A_t,B_tXt​,Yt​,At​,Bt​, a preparation rrr defines a transformation of every real-valued array p:Xs×Ys×As×Bs→Rp:X_s\times Y_s\times A_s\times B_s\to\mathbb Rp:Xs​×Ys​×As​×Bs​→R. At (χ,ψ,α,β)∈Xt×Yt×At×Bt(\chi,\psi,\alpha,\beta)\in X_t\times Y_t\times A_t\times B_t(χ,ψ,α,β)∈Xt​×Yt​×At​×Bt​, a none preparation with functions iA,iB,oA,oBi_A,i_B,o_A,o_BiA​,iB​,oA​,oB​ has value

∑a∈As∑b∈Bsp(iA(χ),iB(ψ),a,b) 1α=oA(χ,a)1β=oB(ψ,b).\sum_{a\in A_s}\sum_{b\in B_s} p(i_A(\chi),i_B(\psi),a,b)\, \mathbf1_{\alpha=o_A(\chi,a)}\mathbf1_{\beta=o_B(\psi,b)}.a∈As​∑​b∈Bs​∑​p(iA​(χ),iB​(ψ),a,b)1α=oA​(χ,a)​1β=oB​(ψ,b)​.

For an aliceFirst preparation with fixed x∈Xsx\in X_sx∈Xs​ and continuation chosen separately for each a∈Asa\in A_sa∈As​, the value is ∑a∈AsCa\sum_{a\in A_s}C_a∑a∈As​​Ca​: a wait continuation with functions iB:Yt→Ys, oA:Xt→At, oB:Yt×Bs→Bti_B:Y_t\to Y_s,\ o_A:X_t\to A_t,\ o_B:Y_t\times B_s\to B_tiB​:Yt​→Ys​, oA​:Xt​→At​, oB​:Yt​×Bs​→Bt​ gives Ca=∑bp(x,iB(ψ),a,b)1α=oA(χ)1β=oB(ψ,b)C_a=\sum_b p(x,i_B(\psi),a,b)\mathbf1_{\alpha=o_A(\chi)}\mathbf1_{\beta=o_B(\psi,b)}Ca​=∑b​p(x,iB​(ψ),a,b)1α=oA​(χ)​1β=oB​(ψ,b)​, whereas a measure continuation with y∈Ys, oA:Bs×Xt→At, oB:Bs×Yt→Bty\in Y_s,\ o_A:B_s\times X_t\to A_t,\ o_B:B_s\times Y_t\to B_ty∈Ys​, oA​:Bs​×Xt​→At​, oB​:Bs​×Yt​→Bt​ gives Ca=∑bp(x,y,a,b)1α=oA(b,χ)1β=oB(b,ψ)C_a=\sum_b p(x,y,a,b)\mathbf1_{\alpha=o_A(b,\chi)}\mathbf1_{\beta=o_B(b,\psi)}Ca​=∑b​p(x,y,a,b)1α=oA​(b,χ)​1β=oB​(b,ψ)​. For a bobFirst preparation with fixed y∈Ysy\in Y_sy∈Ys​ and continuation chosen separately for each b∈Bsb\in B_sb∈Bs​, the value is ∑b∈BsDb\sum_{b\in B_s}D_b∑b∈Bs​​Db​: a wait continuation with iA:Xt→Xs, oA:Xt×As→At, oB:Yt→Bti_A:X_t\to X_s,\ o_A:X_t\times A_s\to A_t,\ o_B:Y_t\to B_tiA​:Xt​→Xs​, oA​:Xt​×As​→At​, oB​:Yt​→Bt​ gives Db=∑ap(iA(χ),y,a,b)1α=oA(χ,a)1β=oB(ψ)D_b=\sum_a p(i_A(\chi),y,a,b)\mathbf1_{\alpha=o_A(\chi,a)}\mathbf1_{\beta=o_B(\psi)}Db​=∑a​p(iA​(χ),y,a,b)1α=oA​(χ,a)​1β=oB​(ψ)​, whereas a measure continuation with x∈Xs, oA:As×Xt→At, oB:As×Yt→Btx\in X_s,\ o_A:A_s\times X_t\to A_t,\ o_B:A_s\times Y_t\to B_tx∈Xs​, oA​:As​×Xt​→At​, oB​:As​×Yt​→Bt​ gives Db=∑ap(x,y,a,b)1α=oA(a,χ)1β=oB(a,ψ)D_b=\sum_a p(x,y,a,b)\mathbf1_{\alpha=o_A(a,\chi)}\mathbf1_{\beta=o_B(a,\psi)}Db​=∑a​p(x,y,a,b)1α=oA​(a,χ)​1β=oB​(a,ψ)​. All continuation data may depend on the outcome indexing that continuation; all indicators take values 111 or 000 according to their displayed equalities. No normalization or no-signaling assumption on ppp is required.

QAlgorithms.Papers.Independent.Intakethird100.P29.Preparation.isPrepared

For any two Bell scenarios s,ts,ts,t, each having positive finite numbers of Alice inputs, Bob inputs, Alice outputs, and Bob outputs, and any preparation rrr from sss to ttt, this predicate is false exactly when rrr has the “none” constructor and true when it has either the “Alice first” or “Bob first” constructor. The “none” constructor contains deterministic input maps t.X→s.Xt.X\to s.Xt.X→s.X, t.Y→s.Yt.Y\to s.Yt.Y→s.Y and deterministic output maps t.X×s.A→t.At.X\times s.A\to t.At.X×s.A→t.A, t.Y×s.B→t.Bt.Y\times s.B\to t.Bt.Y×s.B→t.B. An “Alice first” preparation contains a fixed input x∈s.Xx\in s.Xx∈s.X and, for each outcome a∈s.Aa\in s.Aa∈s.A, a continuation of one of two forms: a waiting continuation with maps t.Y→s.Yt.Y\to s.Yt.Y→s.Y, t.X→t.At.X\to t.At.X→t.A, and t.Y×s.B→t.Bt.Y\times s.B\to t.Bt.Y×s.B→t.B; or a measuring continuation with a fixed y∈s.Yy\in s.Yy∈s.Y and maps s.B×t.X→t.As.B\times t.X\to t.As.B×t.X→t.A, s.B×t.Y→t.Bs.B\times t.Y\to t.Bs.B×t.Y→t.B. A “Bob first” preparation contains a fixed input y∈s.Yy\in s.Yy∈s.Y and, for each outcome b∈s.Bb\in s.Bb∈s.B, either a waiting continuation with maps t.X→s.Xt.X\to s.Xt.X→s.X, t.X×s.A→t.At.X\times s.A\to t.At.X×s.A→t.A, and t.Y→t.Bt.Y\to t.Bt.Y→t.B, or a measuring continuation with a fixed x∈s.Xx\in s.Xx∈s.X and maps s.A×t.X→t.As.A\times t.X\to t.As.A×t.X→t.A, s.A×t.Y→t.Bs.A\times t.Y\to t.Bs.A×t.Y→t.B. The predicate imposes no further condition on any of these inputs, maps, or continuations.

QAlgorithms.Papers.Independent.Intakethird100.P29.Preparation

For Bell scenarios s,ts,ts,t with finite nonempty alphabets Xs,Ys,As,BsX_s,Y_s,A_s,B_sXs​,Ys​,As​,Bs​ and Xt,Yt,At,BtX_t,Y_t,A_t,B_tXt​,Yt​,At​,Bt​, a preparation is one of three forms. A none preparation contains functions iA:Xt→Xsi_A:X_t\to X_siA​:Xt​→Xs​, iB:Yt→Ysi_B:Y_t\to Y_siB​:Yt​→Ys​, oA:Xt×As→Ato_A:X_t\times A_s\to A_toA​:Xt​×As​→At​, and oB:Yt×Bs→Bto_B:Y_t\times B_s\to B_toB​:Yt​×Bs​→Bt​. An aliceFirst preparation contains x∈Xsx\in X_sx∈Xs​ and, for every a∈Asa\in A_sa∈As​, a choice between wait data iB:Yt→Ys, oA:Xt→At, oB:Yt×Bs→Bti_B:Y_t\to Y_s,\ o_A:X_t\to A_t,\ o_B:Y_t\times B_s\to B_tiB​:Yt​→Ys​, oA​:Xt​→At​, oB​:Yt​×Bs​→Bt​, and measure data y∈Ys, oA:Bs×Xt→At, oB:Bs×Yt→Bty\in Y_s,\ o_A:B_s\times X_t\to A_t,\ o_B:B_s\times Y_t\to B_ty∈Ys​, oA​:Bs​×Xt​→At​, oB​:Bs​×Yt​→Bt​. A bobFirst preparation contains y∈Ysy\in Y_sy∈Ys​ and, for every b∈Bsb\in B_sb∈Bs​, a choice between wait data iA:Xt→Xs, oA:Xt×As→At, oB:Yt→Bti_A:X_t\to X_s,\ o_A:X_t\times A_s\to A_t,\ o_B:Y_t\to B_tiA​:Xt​→Xs​, oA​:Xt​×As​→At​, oB​:Yt​→Bt​, and measure data x∈Xs, oA:As×Xt→At, oB:As×Yt→Btx\in X_s,\ o_A:A_s\times X_t\to A_t,\ o_B:A_s\times Y_t\to B_tx∈Xs​, oA​:As​×Xt​→At​, oB​:As​×Yt​→Bt​. All these functions and continuation choices are arbitrary.

QAlgorithms.Papers.Independent.Intakethird100.P29.Quantity

This abbreviates the type of functions that assign an extended nonnegative real number in [0,+∞][0,+\infty][0,+∞] to every pair consisting of a Bell scenario sss and an arbitrary real table p:Xs×Ys×As×Bs→Rp:X_s\times Y_s\times A_s\times B_s\to\mathbb Rp:Xs​×Ys​×As​×Bs​→R. A scenario specifies four strictly positive natural alphabet sizes, with each alphabet the corresponding finite index set. Such a function is defined on all these tables, without any positivity, normalization, or no-signaling requirement on them, and its values may be +∞+\infty+∞.

QAlgorithms.Papers.Independent.Intakethird100.P29.UncorrelatedWiring.apply

For Bell scenarios s,ts,ts,t with finite nonempty input and output alphabets Xs,Ys,As,BsX_s,Y_s,A_s,B_sXs​,Ys​,As​,Bs​ and Xt,Yt,At,BtX_t,Y_t,A_t,B_tXt​,Yt​,At​,Bt​, let uuu consist of conditional probability distributions IA(χ,x)I_A(\chi,x)IA​(χ,x), IB(ψ,y)I_B(\psi,y)IB​(ψ,y), OA(a,x,χ,α)O_A(a,x,\chi,\alpha)OA​(a,x,χ,α), and OB(b,y,ψ,β)O_B(b,y,\psi,\beta)OB​(b,y,ψ,β), normalized over x,y,α,βx,y,\alpha,\betax,y,α,β, respectively, for each fixed choice of their other arguments. Its application is the function taking any real-valued array p:Xs×Ys×As×Bs→Rp:X_s\times Y_s\times A_s\times B_s\to\mathbb Rp:Xs​×Ys​×As​×Bs​→R to the array defined, for every χ∈Xt,ψ∈Yt,α∈At,β∈Bt\chi\in X_t,\psi\in Y_t,\alpha\in A_t,\beta\in B_tχ∈Xt​,ψ∈Yt​,α∈At​,β∈Bt​, by

(u[p])(χ,ψ,α,β)=∑a∈As∑b∈Bs∑x∈Xs∑y∈YsOA(a,x,χ,α) OB(b,y,ψ,β) p(x,y,a,b) IA(χ,x) IB(ψ,y).(u[p])(\chi,\psi,\alpha,\beta) =\sum_{a\in A_s}\sum_{b\in B_s}\sum_{x\in X_s}\sum_{y\in Y_s} O_A(a,x,\chi,\alpha)\,O_B(b,y,\psi,\beta)\, p(x,y,a,b)\,I_A(\chi,x)\,I_B(\psi,y).(u[p])(χ,ψ,α,β)=a∈As​∑​b∈Bs​∑​x∈Xs​∑​y∈Ys​∑​OA​(a,x,χ,α)OB​(b,y,ψ,β)p(x,y,a,b)IA​(χ,x)IB​(ψ,y).

There is no hypothesis here that ppp is nonnegative, normalized, or no-signaling.

QAlgorithms.Papers.Independent.Intakethird100.P29.UncorrelatedWiring

For Bell scenarios s,ts,ts,t, let Xs,Ys,As,BsX_s,Y_s,A_s,B_sXs​,Ys​,As​,Bs​ and Xt,Yt,At,BtX_t,Y_t,A_t,B_tXt​,Yt​,At​,Bt​ denote their respective input and output alphabets, each a finite set of indices of a specified positive natural size. An uncorrelated wiring from sss to ttt consists of four real-valued functions

IA:Xt×Xs→R,IB:Yt×Ys→R,OA:As×Xs×Xt×At→R,OB:Bs×Ys×Yt×Bt→R.I_A:X_t\times X_s\to\mathbb R,\quad I_B:Y_t\times Y_s\to\mathbb R,\quad O_A:A_s\times X_s\times X_t\times A_t\to\mathbb R,\quad O_B:B_s\times Y_s\times Y_t\times B_t\to\mathbb R.IA​:Xt​×Xs​→R,IB​:Yt​×Ys​→R,OA​:As​×Xs​×Xt​×At​→R,OB​:Bs​×Ys​×Yt​×Bt​→R.

For every χ∈Xt\chi\in X_tχ∈Xt​, the numbers IA(χ,x)I_A(\chi,x)IA​(χ,x), indexed by x∈Xsx\in X_sx∈Xs​, are nonnegative and sum to 111; for every ψ∈Yt\psi\in Y_tψ∈Yt​, the numbers IB(ψ,y)I_B(\psi,y)IB​(ψ,y), indexed by y∈Ysy\in Y_sy∈Ys​, are nonnegative and sum to 111. For every a∈As,x∈Xs,χ∈Xta\in A_s,x\in X_s,\chi\in X_ta∈As​,x∈Xs​,χ∈Xt​, the numbers OA(a,x,χ,α)O_A(a,x,\chi,\alpha)OA​(a,x,χ,α), indexed by α∈At\alpha\in A_tα∈At​, are nonnegative and sum to 111; for every b∈Bs,y∈Ys,ψ∈Ytb\in B_s,y\in Y_s,\psi\in Y_tb∈Bs​,y∈Ys​,ψ∈Yt​, the numbers OB(b,y,ψ,β)O_B(b,y,\psi,\beta)OB​(b,y,ψ,β), indexed by β∈Bt\beta\in B_tβ∈Bt​, are nonnegative and sum to 111.

QAlgorithms.Papers.Independent.Intakethird100.P29.aliceContribution

For Bell scenarios s,ts,ts,t with finite nonempty alphabets Xs,Ys,As,BsX_s,Y_s,A_s,B_sXs​,Ys​,As​,Bs​ and Xt,Yt,At,BtX_t,Y_t,A_t,B_tXt​,Yt​,At​,Bt​, take any real-valued array p:Xs×Ys×As×Bs→Rp:X_s\times Y_s\times A_s\times B_s\to\mathbb Rp:Xs​×Ys​×As​×Bs​→R, elements x∈Xs,a∈As,χ∈Xt,ψ∈Yt,α∈At,β∈Btx\in X_s,a\in A_s,\chi\in X_t,\psi\in Y_t,\alpha\in A_t,\beta\in B_tx∈Xs​,a∈As​,χ∈Xt​,ψ∈Yt​,α∈At​,β∈Bt​, and continuation data ccc of either of the following forms. If ccc contains wait functions iB:Yt→Ys, oA:Xt→At, oB:Yt×Bs→Bti_B:Y_t\to Y_s,\ o_A:X_t\to A_t,\ o_B:Y_t\times B_s\to B_tiB​:Yt​→Ys​, oA​:Xt​→At​, oB​:Yt​×Bs​→Bt​, its Alice contribution is

∑b∈Bsp(x,iB(ψ),a,b) 1α=oA(χ)1β=oB(ψ,b).\sum_{b\in B_s}p(x,i_B(\psi),a,b)\, \mathbf1_{\alpha=o_A(\chi)}\mathbf1_{\beta=o_B(\psi,b)}.b∈Bs​∑​p(x,iB​(ψ),a,b)1α=oA​(χ)​1β=oB​(ψ,b)​.

If ccc contains measure data y∈Ys, oA:Bs×Xt→At, oB:Bs×Yt→Bty\in Y_s,\ o_A:B_s\times X_t\to A_t,\ o_B:B_s\times Y_t\to B_ty∈Ys​, oA​:Bs​×Xt​→At​, oB​:Bs​×Yt​→Bt​, the contribution is

∑b∈Bsp(x,y,a,b) 1α=oA(b,χ)1β=oB(b,ψ).\sum_{b\in B_s}p(x,y,a,b)\, \mathbf1_{\alpha=o_A(b,\chi)}\mathbf1_{\beta=o_B(b,\psi)}.b∈Bs​∑​p(x,y,a,b)1α=oA​(b,χ)​1β=oB​(b,ψ)​.

Here every indicator is 111 when its displayed equality holds and 000 otherwise. No probability or no-signaling hypothesis is imposed on ppp.

QAlgorithms.Papers.Independent.Intakethird100.P29.bobContribution

For Bell scenarios s,ts,ts,t with finite nonempty alphabets Xs,Ys,As,BsX_s,Y_s,A_s,B_sXs​,Ys​,As​,Bs​ and Xt,Yt,At,BtX_t,Y_t,A_t,B_tXt​,Yt​,At​,Bt​, take any real-valued array p:Xs×Ys×As×Bs→Rp:X_s\times Y_s\times A_s\times B_s\to\mathbb Rp:Xs​×Ys​×As​×Bs​→R, elements y∈Ys,b∈Bs,χ∈Xt,ψ∈Yt,α∈At,β∈Bty\in Y_s,b\in B_s,\chi\in X_t,\psi\in Y_t,\alpha\in A_t,\beta\in B_ty∈Ys​,b∈Bs​,χ∈Xt​,ψ∈Yt​,α∈At​,β∈Bt​, and continuation data ccc of either of the following forms. If ccc contains wait functions iA:Xt→Xs, oA:Xt×As→At, oB:Yt→Bti_A:X_t\to X_s,\ o_A:X_t\times A_s\to A_t,\ o_B:Y_t\to B_tiA​:Xt​→Xs​, oA​:Xt​×As​→At​, oB​:Yt​→Bt​, its Bob contribution is

∑a∈Asp(iA(χ),y,a,b) 1α=oA(χ,a)1β=oB(ψ).\sum_{a\in A_s}p(i_A(\chi),y,a,b)\, \mathbf1_{\alpha=o_A(\chi,a)}\mathbf1_{\beta=o_B(\psi)}.a∈As​∑​p(iA​(χ),y,a,b)1α=oA​(χ,a)​1β=oB​(ψ)​.

If ccc contains measure data x∈Xs, oA:As×Xt→At, oB:As×Yt→Btx\in X_s,\ o_A:A_s\times X_t\to A_t,\ o_B:A_s\times Y_t\to B_tx∈Xs​, oA​:As​×Xt​→At​, oB​:As​×Yt​→Bt​, the contribution is

∑a∈Asp(x,y,a,b) 1α=oA(a,χ)1β=oB(a,ψ).\sum_{a\in A_s}p(x,y,a,b)\, \mathbf1_{\alpha=o_A(a,\chi)}\mathbf1_{\beta=o_B(a,\psi)}.a∈As​∑​p(x,y,a,b)1α=oA​(a,χ)​1β=oB​(a,ψ)​.

Here every indicator is 111 when its displayed equality holds and 000 otherwise. No probability or no-signaling hypothesis is imposed on ppp.

QAlgorithms.Papers.Independent.Intakethird100.P29.classicalRelativeEntropyNats

For any finite type III, equipped with its finite enumeration, and arbitrary real functions p,q:I→Rp,q:I\to\mathbb Rp,q:I→R, this definition gives the extended nonnegative real value

{+∞,if some i∈I satisfies pi>0 and qi=0,max⁡ ⁣{0,∑i∈Ipilog⁡ ⁣(piqi)},otherwise.\begin{cases} +\infty,&\text{if some }i\in I\text{ satisfies }p_i>0\text{ and }q_i=0,\\[2mm] \displaystyle\max\!\left\{0,\sum_{i\in I}p_i\log\!\left(\frac{p_i}{q_i}\right)\right\},&\text{otherwise}. \end{cases}⎩⎨⎧​+∞,max{0,i∈I∑​pi​log(qi​pi​​)},​if some i∈I satisfies pi​>0 and qi​=0,otherwise.​

Neither function is assumed nonnegative or normalized. Division and logarithms are total: division by zero is 000, log⁡0=0\log 0=0log0=0, and for a negative nonzero argument the real logarithm is the logarithm of its absolute value. Thus a zero denominator forces infinity precisely when the corresponding numerator is strictly positive; otherwise the finite branch uses these total operations. If III is empty, the value is 000.

QAlgorithms.Papers.Independent.Intakethird100.P29.correlatedInputStrength

For a Bell scenario sss, with finite nonempty input alphabets X,YX,YX,Y and output alphabets A,BA,BA,B of strictly positive sizes, and any real table ppp, this definition gives

sup⁡d:X×Y→R, d≥0∑x,yd(x,y)=1 inf⁡q∈L∑x,yd(x,y) Dx,y(p,q)in [0,+∞].\sup_{\substack{d:X\times Y\to\mathbb R,\ d\ge0\\ \sum_{x,y}d(x,y)=1}} \ \inf_{q\in\mathcal L} \sum_{x,y}d(x,y)\,D_{x,y}(p,q) \quad\text{in }[0,+\infty].d:X×Y→R, d≥0∑x,y​d(x,y)=1​sup​ q∈Linf​x,y∑​d(x,y)Dx,y​(p,q)in [0,+∞].

Here L\mathcal LL consists of nonnegative tables normalized over outputs at every input pair that have a representation q(x,y,a,b)=∑ℓ∈Lμ(ℓ)u(ℓ,x,a)v(ℓ,y,b)q(x,y,a,b)=\sum_{\ell\in L}\mu(\ell)u(\ell,x,a)v(\ell,y,b)q(x,y,a,b)=∑ℓ∈L​μ(ℓ)u(ℓ,x,a)v(ℓ,y,b), where LLL is arbitrary, μ\muμ is a probability mass function, and the response functions are nonnegative and normalized over their respective outputs for every hidden value and input. The value Dx,y(p,q)D_{x,y}(p,q)Dx,y​(p,q) is +∞+\infty+∞ if some a,ba,ba,b satisfy p(x,y,a,b)>0=q(x,y,a,b)p(x,y,a,b)>0=q(x,y,a,b)p(x,y,a,b)>0=q(x,y,a,b), and otherwise equals max⁡{0,∑a,bp(x,y,a,b)log⁡(p(x,y,a,b)/q(x,y,a,b))}\max\{0,\sum_{a,b}p(x,y,a,b)\log(p(x,y,a,b)/q(x,y,a,b))\}max{0,∑a,b​p(x,y,a,b)log(p(x,y,a,b)/q(x,y,a,b))}. No positivity, normalization, or no-signaling assumption is imposed on ppp. The joint law ddd may have zeros, with 0⋅(+∞)=00\cdot(+\infty)=00⋅(+∞)=0; division by zero and log⁡0\log 0log0 equal 000, and logarithms of negative nonzero arguments use their absolute values. No optimizer is asserted.

QAlgorithms.Papers.Independent.Intakethird100.P29.localDistance

For a Bell scenario sss, with finite nonempty input alphabets X,YX,YX,Y and output alphabets A,BA,BA,B of strictly positive sizes, any real table ppp, and any real input weight function d:X×Y→Rd:X\times Y\to\mathbb Rd:X×Y→R, this definition gives

inf⁡q∈L ∑x,ymax⁡{d(x,y),0} Dx,y(p,q)in [0,+∞].\inf_{q\in\mathcal L}\ \sum_{x,y}\max\{d(x,y),0\}\,D_{x,y}(p,q)\quad\text{in }[0,+\infty].q∈Linf​ x,y∑​max{d(x,y),0}Dx,y​(p,q)in [0,+∞].

The set L\mathcal LL consists of nonnegative tables normalized over a,ba,ba,b at every x,yx,yx,y that admit a representation q(x,y,a,b)=∑ℓ∈Lμ(ℓ)u(ℓ,x,a)v(ℓ,y,b)q(x,y,a,b)=\sum_{\ell\in L}\mu(\ell)u(\ell,x,a)v(\ell,y,b)q(x,y,a,b)=∑ℓ∈L​μ(ℓ)u(ℓ,x,a)v(ℓ,y,b), where LLL is an arbitrary type, μ\muμ is a probability mass function, and each response function is nonnegative and sums to 111 over its output for every hidden value and input. Here Dx,y(p,q)=+∞D_{x,y}(p,q)=+\inftyDx,y​(p,q)=+∞ if some a,ba,ba,b satisfy p(x,y,a,b)>0=q(x,y,a,b)p(x,y,a,b)>0=q(x,y,a,b)p(x,y,a,b)>0=q(x,y,a,b), and otherwise

Dx,y(p,q)=max⁡ ⁣{0,∑a,bp(x,y,a,b)log⁡ ⁣p(x,y,a,b)q(x,y,a,b)}.D_{x,y}(p,q)=\max\!\left\{0,\sum_{a,b}p(x,y,a,b)\log\!\frac{p(x,y,a,b)}{q(x,y,a,b)}\right\}.Dx,y​(p,q)=max⎩⎨⎧​0,a,b∑​p(x,y,a,b)logq(x,y,a,b)p(x,y,a,b)​⎭⎬⎫​.

No distribution or no-signaling assumption is imposed on ppp, and ddd need not be nonnegative or normalized. Negative weights become zero, 0⋅(+∞)=00\cdot(+\infty)=00⋅(+∞)=0, division by zero and log⁡0\log 0log0 are 000, and logarithms of negative nonzero arguments use their absolute values. No minimizer is asserted.

QAlgorithms.Papers.Independent.Intakethird100.P29.responseIndicator

For any type III and any i,j∈Ii,j\in Ii,j∈I, the response indicator is the real number

1i=j={1,i=j,0,i≠j.\mathbf 1_{i=j}= \begin{cases} 1,&i=j,\\ 0,&i\ne j. \end{cases}1i=j​={1,0,​i=j,i=j.​

No finiteness or nonemptiness assumption on III is required; supplying i,ji,ji,j already supplies elements of III.

QAlgorithms.Papers.Independent.Intakethird100.P29.sb

For a Bell scenario sss, with finite nonempty input alphabets X,YX,YX,Y and output alphabets A,BA,BA,B of its specified strictly positive sizes, and arbitrary real tables p,q:X×Y×A×B→Rp,q:X\times Y\times A\times B\to\mathbb Rp,q:X×Y×A×B→R, this definition gives

sup⁡x∈Xsup⁡y∈Y{+∞,∃(a,b)∈A×B: p(x,y,a,b)>0, q(x,y,a,b)=0,max⁡ ⁣{0,∑a,bp(x,y,a,b)log⁡ ⁣p(x,y,a,b)q(x,y,a,b)},otherwise.\sup_{x\in X}\sup_{y\in Y} \begin{cases} +\infty,&\exists(a,b)\in A\times B:\ p(x,y,a,b)>0,\ q(x,y,a,b)=0,\\[1mm] \displaystyle\max\!\left\{0,\sum_{a,b}p(x,y,a,b) \log\!\frac{p(x,y,a,b)}{q(x,y,a,b)}\right\},&\text{otherwise}. \end{cases}x∈Xsup​y∈Ysup​⎩⎨⎧​+∞,max⎩⎨⎧​0,a,b∑​p(x,y,a,b)logq(x,y,a,b)p(x,y,a,b)​⎭⎬⎫​,​∃(a,b)∈A×B: p(x,y,a,b)>0, q(x,y,a,b)=0,otherwise.​

The supremum is taken in [0,+∞][0,+\infty][0,+∞]; because the input alphabets are finite and nonempty, it is a maximum. No nonnegativity, normalization, or no-signaling condition is imposed on either table. The finite branch uses total real division and logarithms, with division by zero and log⁡0\log 0log0 equal to 000, and the logarithm of a negative nonzero number equal to the logarithm of its absolute value.

QAlgorithms.Papers.Independent.Intakethird100.P29.singletonScenario

This declaration specifies the scenario with exactly one Alice input, one Bob input, one Alice output, and one Bob output. Each index set is the singleton {0}\{0\}{0}, and all four required positivity conditions hold.

QAlgorithms.Papers.Independent.Intakethird100.P29.snl

For a Bell scenario sss, with finite nonempty input alphabets X,YX,YX,Y and output alphabets A,BA,BA,B of strictly positive sizes, and any real table ppp, this definition gives

inf⁡q∈L sup⁡x,yDx,y(p,q)in [0,+∞].\inf_{q\in\mathcal L}\ \sup_{x,y}D_{x,y}(p,q)\quad\text{in }[0,+\infty].q∈Linf​ x,ysup​Dx,y​(p,q)in [0,+∞].

Here L\mathcal LL consists of nonnegative tables qqq with ∑a,bq(x,y,a,b)=1\sum_{a,b}q(x,y,a,b)=1∑a,b​q(x,y,a,b)=1 for every x,yx,yx,y, for which there exist an arbitrary type LLL, a probability mass function μ\muμ on LLL, and response functions u(ℓ,x,a)u(\ell,x,a)u(ℓ,x,a), v(ℓ,y,b)v(\ell,y,b)v(ℓ,y,b), nonnegative and summing to 111 over aaa and bbb, respectively, for every ℓ,x,y\ell,x,yℓ,x,y, such that

q(x,y,a,b)=∑ℓ∈Lμ(ℓ)u(ℓ,x,a)v(ℓ,y,b).q(x,y,a,b)=\sum_{\ell\in L}\mu(\ell)u(\ell,x,a)v(\ell,y,b).q(x,y,a,b)=ℓ∈L∑​μ(ℓ)u(ℓ,x,a)v(ℓ,y,b).

The value Dx,y(p,q)D_{x,y}(p,q)Dx,y​(p,q) is +∞+\infty+∞ if some a,ba,ba,b have p(x,y,a,b)>0=q(x,y,a,b)p(x,y,a,b)>0=q(x,y,a,b)p(x,y,a,b)>0=q(x,y,a,b), and otherwise is max⁡{0,∑a,bp(x,y,a,b)log⁡(p(x,y,a,b)/q(x,y,a,b))}\max\{0,\sum_{a,b}p(x,y,a,b)\log(p(x,y,a,b)/q(x,y,a,b))\}max{0,∑a,b​p(x,y,a,b)log(p(x,y,a,b)/q(x,y,a,b))}. The table ppp is unrestricted. Real division by zero and log⁡0\log 0log0 equal 000, and logarithms of negative nonzero arguments use their absolute values. The definition is an infimum and does not assert attainment.

QAlgorithms.Papers.Independent.Intakethird100.P29.su

For a Bell scenario sss, with finite nonempty input alphabets X,YX,YX,Y of sizes nX,nYn_X,n_YnX​,nY​ and finite nonempty output alphabets A,BA,BA,B, and any real table ppp, this definition gives

inf⁡q∈L ∑x,y1nXnY Dx,y(p,q)in [0,+∞].\inf_{q\in\mathcal L}\ \sum_{x,y}\frac{1}{n_Xn_Y}\,D_{x,y}(p,q)\quad\text{in }[0,+\infty].q∈Linf​ x,y∑​nX​nY​1​Dx,y​(p,q)in [0,+∞].

Here L\mathcal LL consists of nonnegative tables normalized over outputs at every input pair and expressible as q(x,y,a,b)=∑ℓ∈Lμ(ℓ)u(ℓ,x,a)v(ℓ,y,b)q(x,y,a,b)=\sum_{\ell\in L}\mu(\ell)u(\ell,x,a)v(\ell,y,b)q(x,y,a,b)=∑ℓ∈L​μ(ℓ)u(ℓ,x,a)v(ℓ,y,b), with an arbitrary hidden type LLL, a probability mass function μ\muμ, and nonnegative response functions normalized over their respective outputs for every hidden value and input. The value Dx,y(p,q)D_{x,y}(p,q)Dx,y​(p,q) is +∞+\infty+∞ if some a,ba,ba,b satisfy p(x,y,a,b)>0=q(x,y,a,b)p(x,y,a,b)>0=q(x,y,a,b)p(x,y,a,b)>0=q(x,y,a,b), and otherwise equals max⁡{0,∑a,bp(x,y,a,b)log⁡(p(x,y,a,b)/q(x,y,a,b))}\max\{0,\sum_{a,b}p(x,y,a,b)\log(p(x,y,a,b)/q(x,y,a,b))\}max{0,∑a,b​p(x,y,a,b)log(p(x,y,a,b)/q(x,y,a,b))}. The table ppp has no normalization, positivity, or no-signaling requirement. Division by zero and log⁡0\log 0log0 are 000, logarithms of negative nonzero arguments use their absolute values, and no attainment of the infimum is asserted.

QAlgorithms.Papers.Independent.Intakethird100.P29.suc

For a Bell scenario sss, with finite nonempty input alphabets X,YX,YX,Y and output alphabets A,BA,BA,B of strictly positive sizes, and any real table ppp, this definition gives

sup⁡dX:X→R, dX≥0∑xdX(x)=1 sup⁡dY:Y→R, dY≥0∑ydY(y)=1 inf⁡q∈L∑x,ydX(x)dY(y) Dx,y(p,q)in [0,+∞].\sup_{\substack{d_X:X\to\mathbb R,\ d_X\ge0\\ \sum_xd_X(x)=1}} \ \sup_{\substack{d_Y:Y\to\mathbb R,\ d_Y\ge0\\ \sum_yd_Y(y)=1}} \ \inf_{q\in\mathcal L} \sum_{x,y}d_X(x)d_Y(y)\,D_{x,y}(p,q) \quad\text{in }[0,+\infty].dX​:X→R, dX​≥0∑x​dX​(x)=1​sup​ dY​:Y→R, dY​≥0∑y​dY​(y)=1​sup​ q∈Linf​x,y∑​dX​(x)dY​(y)Dx,y​(p,q)in [0,+∞].

Here L\mathcal LL consists of nonnegative output-normalized tables admitting q(x,y,a,b)=∑ℓ∈Lμ(ℓ)u(ℓ,x,a)v(ℓ,y,b)q(x,y,a,b)=\sum_{\ell\in L}\mu(\ell)u(\ell,x,a)v(\ell,y,b)q(x,y,a,b)=∑ℓ∈L​μ(ℓ)u(ℓ,x,a)v(ℓ,y,b), with arbitrary hidden type LLL, probability mass function μ\muμ, and nonnegative output-normalized response functions for every hidden value and input. The value Dx,y(p,q)D_{x,y}(p,q)Dx,y​(p,q) is +∞+\infty+∞ when some output has p(x,y,a,b)>0=q(x,y,a,b)p(x,y,a,b)>0=q(x,y,a,b)p(x,y,a,b)>0=q(x,y,a,b), and otherwise equals max⁡{0,∑a,bp(x,y,a,b)log⁡(p(x,y,a,b)/q(x,y,a,b))}\max\{0,\sum_{a,b}p(x,y,a,b)\log(p(x,y,a,b)/q(x,y,a,b))\}max{0,∑a,b​p(x,y,a,b)log(p(x,y,a,b)/q(x,y,a,b))}. The table ppp is unrestricted, input laws may have zero probabilities, and 0⋅(+∞)=00\cdot(+\infty)=00⋅(+∞)=0. Total real division and logarithms give division by zero and log⁡0\log 0log0 the value 000, and use absolute values for negative nonzero logarithm arguments. No supremum or infimum is asserted to be attained.

QAlgorithms.Papers.Independent.Intakethird100.P29.uniformInput

For any Bell scenario sss, whose input sizes nX,nYn_X,n_YnX​,nY​ and output sizes nA,nBn_A,n_BnA​,nB​ are natural numbers with all four strictly positive, this definition is the real function on input pairs x∈{0,…,nX−1}x\in\{0,\ldots,n_X-1\}x∈{0,…,nX​−1}, y∈{0,…,nY−1}y\in\{0,\ldots,n_Y-1\}y∈{0,…,nY​−1} given by

(x,y)⟼1nXnY.(x,y)\longmapsto\frac{1}{n_Xn_Y}.(x,y)⟼nX​nY​1​.

It is constant on all input pairs, and its denominator is positive by the scenario assumptions.

QAlgorithms.Papers.Independent.Intakethird100.P29.weightedEntropy

For a Bell scenario sss, with finite nonempty input alphabets X,YX,YX,Y and output alphabets A,BA,BA,B of strictly positive sizes, arbitrary real tables p,qp,qp,q, and any real function d:X×Y→Rd:X\times Y\to\mathbb Rd:X×Y→R, this definition gives

∑x,ymax⁡{d(x,y),0} Dx,y(p,q)in [0,+∞],\sum_{x,y}\max\{d(x,y),0\}\,D_{x,y}(p,q)\quad\text{in }[0,+\infty],x,y∑​max{d(x,y),0}Dx,y​(p,q)in [0,+∞],

where Dx,y(p,q)=+∞D_{x,y}(p,q)=+\inftyDx,y​(p,q)=+∞ if some output pair satisfies p(x,y,a,b)>0p(x,y,a,b)>0p(x,y,a,b)>0 and q(x,y,a,b)=0q(x,y,a,b)=0q(x,y,a,b)=0, and otherwise

Dx,y(p,q)=max⁡ ⁣{0,∑a,bp(x,y,a,b)log⁡ ⁣p(x,y,a,b)q(x,y,a,b)}.D_{x,y}(p,q)= \max\!\left\{0,\sum_{a,b}p(x,y,a,b)\log\!\frac{p(x,y,a,b)}{q(x,y,a,b)}\right\}.Dx,y​(p,q)=max⎩⎨⎧​0,a,b∑​p(x,y,a,b)logq(x,y,a,b)p(x,y,a,b)​⎭⎬⎫​.

There are no distribution or no-signaling assumptions on p,q,dp,q,dp,q,d. Negative weights become zero, and extended nonnegative multiplication satisfies 0⋅(+∞)=00\cdot(+\infty)=00⋅(+∞)=0. In the finite branch, division by zero and log⁡0\log 0log0 are 000, and the real logarithm at a negative nonzero argument is the logarithm of its absolute value.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me