Definitions for Limitations on device independent key secure against non signaling adversary via the squashed non-locality
DefinitionQAlgorithms_Papers_Independent_Intakethird100_P22The objects the formalized statements of Limitations on device independent key secure against non signaling adversary via the squashed non-locality (arXiv:1903.12154) are stated in. Each was checked against the paper by a blind read-back and a moderator.
finiteMax: PDF pp.21,24: a maximum on a finite nonempty alphabet. Every use has a nonempty finite range, so the real supremum has neither empty nor unbounded input.CDArray: PDF p.23: classical-device arrays, with only Eve's input non-unary.IsCD: PDF pp.23–24: normalized conditional laws and a classical marginal independent of Eve's input. All alphabets in the statements are finite and nonempty.CDObservation: PDF pp.23–29: the causal normal form of a G-observation on a c-d state. After seeing the whole classical tuple c, a dice chooses z; after receiving e, a stochastic map produces an arbitrary finite observation. The input z can be retained in that observation. This is the source's c-d class, not all positive maps.CDObservation.apply: PDF p.23, (30): action of the causal observation, including the dice.cdDistance: PDF p.23, (30): half l1 distance after all source G-observations on c-d arrays. For normalized arrays the score set is nonempty (constant observation) and lies in [0,1]. Weighted pass arrays have the corresponding finite mass bound.idealCDKey: PDF p.30, (82): uniform correlated key times the ACTUAL transcript/Eve marginal.intermediateKey: PDF p.30, (85): copy Alice into Bob, preserving (Alice,transcript,Eve|Z).aliceMarginal: PDF p.31, (87): Alice and Eve's marginal, including all public messages.withAbort: PDF p.30, (81): abort and pass branches; the abort array is common to all states.KeyOutput: PDF pp.30–31: data available at protocol termination. At pass probability zero, the normalized pass law is an arbitrary representative; all errors multiply it by zero. No conditioning by a zero-probability event is performed.correctnessError: PDF p.31, (88): the weighted probability of unequal keys. Any reference input z gives the same number, by the classical marginal no-signaling constraint.cdSecrecyError: PDF p.30, (86): weighted secrecy distance for Alice and Eve with the transcript.securityError: PDF p.31, (89): weighted real/ideal NS security distance.deviceCMI: PDF p.20, (23): entropy identity for CMI; this includes the probability weights missing in the printed (22), and never divides by a zero marginal.EveChannel: PDF p.20, (24): a channel of arbitrary positive finite output cardinality.EveChannel.apply: PDF p.20, (24): actual stochastic output processing, not a free new law.intrinsicInformation: PDF p.20, (24): intrinsic information. For a probability law, constant channels make the score set nonempty and every CMI is between zero and log2 min(|A|,|B|).ValidDevice: PDF p.21, (26),(27): validity and both no-signaling equalities.DeviceEnsemble: PDF pp.21,45, (217): an ensemble reconstructs the same device at EVERY input.IsVertex: PDF p.21: purity means an extreme point of this fixed non-signaling polytope.DeviceEnsemble.support: PDF p.21, Definition 4: support of the positive-weight pure members, ignoring zero padding and label permutations.DeviceEnsemble.IsMinimal: PDF p.21, Definition 4: a pure-members ensemble is minimal when no ensemble on a proper subset of its positive support represents p.DeviceEnsemble.massAt: PDF p.21, (28): weight assigned to an actual vertex, invariant under labels.CompleteExtension: PDF p.21, Definition 5: exactly the minimal ensembles, modulo zero padding and repeated member labels. The conditioned device may depend on BOTH Eve input and output, as the source superscript (e,z) explicitly states. No ACCESS, GENERATION or optimization assertion is assumed.CompleteExtension.measured: PDF p.22, XI.B items 2–3 and p.44 (215): a general measurement retains its dice result together with the CE output. The source explicitly allows postprocessing conditioned on that result. Summing the retained result recovers (7); erasing it before the channel would remove allowed Eve strategies.squashSecrecy: PDF p.6, (6): maximum over honest settings, then infimum over all Eve dice. The infimum convention records the source's unproved attainment claim. Eve retains the dice result as required by XI.B item 3.squashedNonlocality: PDF p.7, Definition 3: squashed nonlocality from CE and classical intrinsic information. Neither a roof formula nor a key bound is used to define it.squashedMI: PDF pp.6–7: squashed MI, computed from the marginal of the measured CE.squashedCMI: PDF pp.6–7 and p.22: squashed classical CMI with general Eve measurements and the retained dice result. Thus mixing pure-member ensembles does not silently erase their preparation record.UnaryExtension: PDF pp.44–45, (216): an arbitrary unary-input extension is fully tripartite non-signaling. In particular, conditioning on Eve's output preserves the honest no-signaling equalities; an extension of only one measured law is insufficient.extensionForm: PDF p.44, (216): infimum over all positive finite Eve output alphabets.ensembleForm: PDF p.45, (218): the convex roof is taken at each fixed input BEFORE maximum.ampAtInput: PDF pp.3,45, (2),(3): AMP optimizes intrinsic information of whole-device ensembles, not just decompositions of the evaluated joint distribution.aliceSupport: PDF p.52: maximum support of Alice's no-signaling marginal. The reference Bob input can be any y, and is not an additional physical choice.bobSupport: PDF p.52: maximum support of Bob's no-signaling marginal.singleDeviceEnsemble: PDF p.45, (217): a one-member decomposition witnesses nonemptiness of the ensemble score sets on every valid device.squashedLowerHull: PDF pp.54–55, (317): lower convex hull of both entire bound functions. Each term is evaluated at an actual device in a finite decomposition of p, with its complete extension. Selecting the smaller bound at each term is exactly allowing either graph in the convex hull. Complete-extension labels are auxiliary representation data; both CE invariance and convexity remain theorem content. The one-member decomposition gives nonemptiness and nonnegative information scores give boundedness below, with no numerical interpolation.nonlocalityFraction: PDF pp.52–53, (296),(297): the printed single-nonlocal-vertex fraction. This real infimum is used below ONLY in the binary HRW sector with an explicit feasible decomposition; no value on an empty decomposition set is asserted.nonlocalityCost: PDF p.52, Definition 16, (294): cost with the source's maximum SUPPORT sizes. Only the feasible binary HRW sector is used; the universal residual convention of Proposition 9 is explicitly deferred.GeneralLocalMap: PDF p.48, (241),(242): the source's two INDEPENDENT shared randomizers, with local input preprocessing and local output kernels depending on the original local input and output. This class is exactly the displayed map, not arbitrary communicating operations. Public local randomizers are not optimized as Eve data.GeneralLocalMap.apply: PDF p.48, (243)–(245): computed device transformation by the named source map.hrwBox: PDF p.56, (319): exact HRW binary device. The second source parameter is called eta, distinguishing it from the CHSH error epsilon.chshLoss: PDF p.56, (320): independent uniform CHSH inputs; true is the bit 1.deterministicBox: PDF p.56, (321): all sixteen deterministic binary local devices.prVariant: PDF p.56, (322): the eight binary PR-type devices, true denoting one.
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P47
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P27
import Definitions.Def_QAlgorithms_Papers_Independent_Renew46_P37
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P25
/-!
Statements from arXiv:1903.12154v7. All page references are PDF pages.
The imported paper modules are pinned accepted library modules. Their scalar
probability, correlation, locality and entropy definitions are reused exactly;
their operator-valued extension objects are not used. New objects are paper-local.
Infima replace the source's unjustified attained minima, as recorded in STATUS.md.
Eve retains the input-dice result as permitted on PDF p.22, item 3.
The general-measurement marginal (7) is recovered by summing that record.
Compilation is pending the separate batch handoff.
-/
noncomputable section
open scoped BigOperators
namespace QAlgorithms.Papers.Independent.Intakethird100.P22
attribute [local instance] Classical.propDecidable Classical.decEq
open QAlgorithms.Papers.Independent.Advance50.P47
(Box IsCorrelation IsNoSignaling HasLocalModel correlationMixture prBox)
open QAlgorithms.Papers.Independent.Information100.P56 (IsLaw)
open QAlgorithms.Papers.Independent.Information100.P27 (shannon)
open QAlgorithms.Papers.Independent.Gap48.P25 (classicalMI)
/-- PDF pp.21,24: a maximum on a finite nonempty alphabet. Every use has a
nonempty finite range, so the real supremum has neither empty nor unbounded input. -/
def finiteMax {I : Type} [Fintype I] [Nonempty I] (f : I → ℝ) : ℝ :=
sSup (Set.range f)
/-- PDF p.23: classical-device arrays, with only Eve's input non-unary. -/
abbrev CDArray (C E Z : Type) := Z → C → E → ℝ
/-- PDF pp.23–24: normalized conditional laws and a classical marginal independent
of Eve's input. All alphabets in the statements are finite and nonempty. -/
def IsCD {C E Z : Type} [Fintype C] [Fintype E] (p : CDArray C E Z) : Prop :=
(∀ z c e, 0 ≤ p z c e) ∧
(∀ z, ∑ c, ∑ e, p z c e = 1) ∧
(∀ z zOther c, ∑ e, p z c e = ∑ e, p zOther c e)
/-- PDF pp.23–29: the causal normal form of a G-observation on a c-d state.
After seeing the whole classical tuple c, a dice chooses z; after receiving e,
a stochastic map produces an arbitrary finite observation. The input z can be
retained in that observation. This is the source's c-d class, not all positive maps. -/
structure CDObservation (C E Z : Type) [Fintype Z] where
size : ℕ
positive : 0 < size
input : C → Z → ℝ
input_law : ∀ c, IsLaw (input c)
output : C → Z → E → Fin size → ℝ
output_law : ∀ c z e, IsLaw (output c z e)
/-- PDF p.23, (30): action of the causal observation, including the dice. -/
def CDObservation.apply {C E Z : Type} [Fintype C] [Fintype E] [Fintype Z]
(g : CDObservation C E Z) (p : CDArray C E Z) (j : Fin g.size) : ℝ :=
∑ c, ∑ z, ∑ e, g.input c z * p z c e * g.output c z e j
/-- PDF p.23, (30): half l1 distance after all source G-observations on c-d arrays.
For normalized arrays the score set is nonempty (constant observation) and lies
in [0,1]. Weighted pass arrays have the corresponding finite mass bound. -/
def cdDistance {C E Z : Type} [Fintype C] [Fintype E] [Fintype Z]
(p q : CDArray C E Z) : ℝ :=
sSup {v | ∃ g : CDObservation C E Z,
v = (1 / 2 : ℝ) * ∑ j, |g.apply p j - g.apply q j|}
/-- PDF p.30, (82): uniform correlated key times the ACTUAL transcript/Eve marginal. -/
def idealCDKey {K T E Z : Type} [Fintype K]
(p : CDArray (K × K × T) E Z) : CDArray (K × K × T) E Z :=
fun z c e => if c.1 = c.2.1 then
(∑ a, ∑ b, p z (a,b,c.2.2) e) / (Fintype.card K : ℝ) else 0
/-- PDF p.30, (85): copy Alice into Bob, preserving (Alice,transcript,Eve|Z). -/
def intermediateKey {K T E Z : Type} [Fintype K]
(p : CDArray (K × K × T) E Z) : CDArray (K × K × T) E Z :=
fun z c e => if c.1 = c.2.1 then ∑ b, p z (c.1,b,c.2.2) e else 0
/-- PDF p.31, (87): Alice and Eve's marginal, including all public messages. -/
def aliceMarginal {K T E Z : Type} [Fintype K]
(p : CDArray (K × K × T) E Z) : CDArray (K × T) E Z :=
fun z c e => ∑ b, p z (c.1,b,c.2) e
/-- PDF p.30, (81): abort and pass branches; the abort array is common to all states. -/
def withAbort {C E Z : Type} (r : ℝ) (abort pass : CDArray C E Z) : CDArray C E Z :=
fun z c e => r * abort z c e + (1-r) * pass z c e
/-- PDF pp.30–31: data available at protocol termination. At pass probability zero,
the normalized pass law is an arbitrary representative; all errors multiply it
by zero. No conditioning by a zero-probability event is performed. -/
structure KeyOutput (K T E Z : Type) [Fintype K] [Fintype T] [Fintype E] where
abortProbability : ℝ
abort_nonneg : 0 ≤ abortProbability
abort_le_one : abortProbability ≤ 1
pass : CDArray (K × K × T) E Z
pass_valid : IsCD pass
abort : CDArray (K × K × T) E Z
abort_valid : IsCD abort
/-- PDF p.31, (88): the weighted probability of unequal keys. Any reference input
z gives the same number, by the classical marginal no-signaling constraint. -/
def correctnessError {K T E Z : Type} [Fintype K] [Fintype T] [Fintype E]
(r : KeyOutput K T E Z) (z : Z) : ℝ :=
(1-r.abortProbability) * ∑ a, ∑ b, ∑ t, ∑ e,
if a = b then 0 else r.pass z (a,b,t) e
/-- PDF p.30, (86): weighted secrecy distance for Alice and Eve with the transcript. -/
def cdSecrecyError {K T E Z : Type} [Fintype K] [Fintype T] [Fintype E] [Fintype Z]
(r : KeyOutput K T E Z) : ℝ :=
(1-r.abortProbability) * cdDistance (aliceMarginal r.pass) (aliceMarginal (idealCDKey r.pass))
/-- PDF p.31, (89): weighted real/ideal NS security distance. -/
def securityError {K T E Z : Type} [Fintype K] [Fintype T] [Fintype E] [Fintype Z]
(r : KeyOutput K T E Z) : ℝ :=
(1-r.abortProbability) * cdDistance r.pass (idealCDKey r.pass)
/-- PDF p.20, (23): entropy identity for CMI; this includes the probability
weights missing in the printed (22), and never divides by a zero marginal. -/
def deviceCMI {A B E : Type} [Fintype A] [Fintype B] [Fintype E]
(p : A × B × E → ℝ) : ℝ :=
shannon (fun ae : A × E => ∑ b, p (ae.1,b,ae.2)) +
shannon (fun be : B × E => ∑ a, p (a,be.1,be.2)) -
shannon (fun e => ∑ a, ∑ b, p (a,b,e)) - shannon p
/-- PDF p.20, (24): a channel of arbitrary positive finite output cardinality. -/
structure EveChannel (E : Type) where
size : ℕ
positive : 0 < size
kernel : E → Fin size → ℝ
law : ∀ e, IsLaw (kernel e)
/-- PDF p.20, (24): actual stochastic output processing, not a free new law. -/
def EveChannel.apply {A B E : Type} [Fintype E]
(k : EveChannel E) (p : A × B × E → ℝ) : A × B × Fin k.size → ℝ :=
fun c => ∑ e, p (c.1,c.2.1,e) * k.kernel e c.2.2
/-- PDF p.20, (24): intrinsic information. For a probability law, constant channels
make the score set nonempty and every CMI is between zero and log2 min(|A|,|B|). -/
def intrinsicInformation {A B E : Type} [Fintype A] [Fintype B] [Fintype E]
(p : A × B × E → ℝ) : ℝ :=
sInf {v | ∃ k : EveChannel E, v = deviceCMI (k.apply p)}
section Devices
variable {X Y A B : Type} [Fintype X] [Fintype Y] [Fintype A] [Fintype B]
[Nonempty X] [Nonempty Y] [Nonempty A] [Nonempty B]
/-- PDF p.21, (26),(27): validity and both no-signaling equalities. -/
def ValidDevice (p : Box X Y A B) : Prop := IsCorrelation p ∧ IsNoSignaling p
/-- PDF pp.21,45, (217): an ensemble reconstructs the same device at EVERY input. -/
structure DeviceEnsemble (p : Box X Y A B) (n : ℕ) where
weight : Fin n → ℝ
law : IsLaw weight
member : Fin n → Box X Y A B
valid : ∀ i, ValidDevice (member i)
reconstruct : ∀ x y a b, ∑ i, weight i * member i x y a b = p x y a b
/-- PDF p.21: purity means an extreme point of this fixed non-signaling polytope. -/
def IsVertex (p : Box X Y A B) : Prop :=
ValidDevice p ∧ ∀ q r : Box X Y A B, ValidDevice q → ValidDevice r →
∀ t : ℝ, 0 < t → t < 1 → p = correlationMixture q r t → q = p ∧ r = p
/-- PDF p.21, Definition 4: support of the positive-weight pure members, ignoring
zero padding and label permutations. -/
def DeviceEnsemble.support {p : Box X Y A B} {n : ℕ} (d : DeviceEnsemble p n) : Set (Box X Y A B) :=
{v | ∃ i, 0 < d.weight i ∧ d.member i = v}
/-- PDF p.21, Definition 4: a pure-members ensemble is minimal when no ensemble
on a proper subset of its positive support represents p. -/
def DeviceEnsemble.IsMinimal {p : Box X Y A B} {n : ℕ} (d : DeviceEnsemble p n) : Prop :=
(∀ i, 0 < d.weight i → IsVertex (d.member i)) ∧
∀ m : ℕ, ∀ dOther : DeviceEnsemble p m, ¬ dOther.support ⊂ d.support
/-- PDF p.21, (28): weight assigned to an actual vertex, invariant under labels. -/
def DeviceEnsemble.massAt {p : Box X Y A B} {n : ℕ} (d : DeviceEnsemble p n)
(v : Box X Y A B) : ℝ := ∑ i, if d.member i = v then d.weight i else 0
/-- PDF p.21, Definition 5: exactly the minimal ensembles, modulo zero
padding and repeated member labels. The conditioned device may depend on BOTH
Eve input and output, as the source superscript (e,z) explicitly states.
No ACCESS, GENERATION or optimization assertion is assumed. -/
structure CompleteExtension (p : Box X Y A B) where
valid : ValidDevice p
inputs : ℕ
inputs_positive : 0 < inputs
outputs : ℕ
outputs_positive : 0 < outputs
ensemble : Fin inputs → DeviceEnsemble p outputs
minimal : ∀ z, (ensemble z).IsMinimal
complete : ∀ n : ℕ, ∀ d : DeviceEnsemble p n, d.IsMinimal →
∃! z : Fin inputs, ∀ v, (ensemble z).massAt v = d.massAt v
/-- PDF p.22, XI.B items 2–3 and p.44 (215): a general measurement
retains its dice result together with the CE output. The source explicitly allows
postprocessing conditioned on that result. Summing the retained result recovers
(7); erasing it before the channel would remove allowed Eve strategies. -/
def CompleteExtension.measured {p : Box X Y A B} (c : CompleteExtension p)
(dice : Fin c.inputs → ℝ) (x : X) (y : Y) :
A × B × (Fin c.inputs × Fin c.outputs) → ℝ :=
fun abe => dice abe.2.2.1 * (c.ensemble abe.2.2.1).weight abe.2.2.2 *
(c.ensemble abe.2.2.1).member abe.2.2.2 x y abe.1 abe.2.1
/-- PDF p.6, (6): maximum over honest settings, then infimum over all Eve dice.
The infimum convention records the source's unproved attainment claim.
Eve retains the dice result as required by XI.B item 3. -/
def squashSecrecy {p : Box X Y A B} (c : CompleteExtension p)
(m : (A × B × (Fin c.inputs × Fin c.outputs) → ℝ) → ℝ) : ℝ :=
finiteMax (fun xy : X × Y => sInf {v | ∃ dice : Fin c.inputs → ℝ,
IsLaw dice ∧ v = m (c.measured dice xy.1 xy.2)})
/-- PDF p.7, Definition 3: squashed nonlocality from CE and classical intrinsic
information. Neither a roof formula nor a key bound is used to define it. -/
def squashedNonlocality {p : Box X Y A B} (c : CompleteExtension p) : ℝ :=
squashSecrecy c intrinsicInformation
/-- PDF pp.6–7: squashed MI, computed from the marginal of the measured CE. -/
def squashedMI {p : Box X Y A B} (c : CompleteExtension p) : ℝ :=
squashSecrecy c (fun d => classicalMI (fun ab => ∑ e, d (ab.1,ab.2,e)))
/-- PDF pp.6–7 and p.22: squashed classical CMI with general Eve
measurements and the retained dice result. Thus mixing pure-member ensembles
does not silently erase their preparation record. -/
def squashedCMI {p : Box X Y A B} (c : CompleteExtension p) : ℝ :=
squashSecrecy c deviceCMI
/-- PDF pp.44–45, (216): an arbitrary unary-input extension is fully tripartite
non-signaling. In particular, conditioning on Eve's output preserves the honest
no-signaling equalities; an extension of only one measured law is insufficient. -/
structure UnaryExtension (p : Box X Y A B) (n : ℕ) where
probability : X → Y → A → B → Fin n → ℝ
nonneg : ∀ x y a b e, 0 ≤ probability x y a b e
marginal : ∀ x y a b, ∑ e, probability x y a b e = p x y a b
eveNS : ∀ x y xOther yOther e,
∑ a, ∑ b, probability x y a b e = ∑ a, ∑ b, probability xOther yOther a b e
aliceNS : ∀ x xOther y b e, ∑ a, probability x y a b e = ∑ a, probability xOther y a b e
bobNS : ∀ y yOther x a e, ∑ b, probability x y a b e = ∑ b, probability x yOther a b e
/-- PDF p.44, (216): infimum over all positive finite Eve output alphabets. -/
def extensionForm (p : Box X Y A B) : ℝ :=
finiteMax (fun xy : X × Y => sInf {v | ∃ n : ℕ, 0 < n ∧
∃ d : UnaryExtension p n,
v = deviceCMI (fun abe => d.probability xy.1 xy.2 abe.1 abe.2.1 abe.2.2)})
/-- PDF p.45, (218): the convex roof is taken at each fixed input BEFORE maximum. -/
def ensembleForm (p : Box X Y A B) : ℝ :=
finiteMax (fun xy : X × Y => sInf {v | ∃ n : ℕ, 0 < n ∧ ∃ d : DeviceEnsemble p n,
v = ∑ i, d.weight i * classicalMI (fun ab => d.member i xy.1 xy.2 ab.1 ab.2)})
/-- PDF pp.3,45, (2),(3): AMP optimizes intrinsic information of whole-device
ensembles, not just decompositions of the evaluated joint distribution. -/
def ampAtInput (p : Box X Y A B) (x : X) (y : Y) : ℝ :=
sInf {v | ∃ n : ℕ, 0 < n ∧ ∃ d : DeviceEnsemble p n,
v = intrinsicInformation (fun abe => d.weight abe.2.2 *
d.member abe.2.2 x y abe.1 abe.2.1)}
/-- PDF p.52: maximum support of Alice's no-signaling marginal. The reference
Bob input can be any y, and is not an additional physical choice. -/
def aliceSupport (p : Box X Y A B) (y : Y) : ℕ :=
Finset.univ.sup (fun x : X => (Finset.univ.filter (fun a => 0 < ∑ b, p x y a b)).card)
/-- PDF p.52: maximum support of Bob's no-signaling marginal. -/
def bobSupport (p : Box X Y A B) (x : X) : ℕ :=
Finset.univ.sup (fun y : Y => (Finset.univ.filter (fun b => 0 < ∑ a, p x y a b)).card)
/-- PDF p.45, (217): a one-member decomposition witnesses nonemptiness of the
ensemble score sets on every valid device. -/
def singleDeviceEnsemble (p : Box X Y A B) (hp : ValidDevice p) : DeviceEnsemble p 1 where
weight := fun _ => 1
law := by simp [IsLaw]
member := fun _ => p
valid := fun _ => hp
reconstruct := by intro x y a b; simp
/-- PDF pp.54–55, (317): lower convex hull of both entire bound functions.
Each term is evaluated at an actual device in a finite decomposition of p,
with its complete extension. Selecting the smaller bound at each term is
exactly allowing either graph in the convex hull. Complete-extension labels are
auxiliary representation data; both CE invariance and convexity remain theorem
content. The one-member decomposition gives nonemptiness and nonnegative
information scores give boundedness below, with no numerical interpolation. -/
def squashedLowerHull (p : Box X Y A B) : ℝ :=
sInf {v | ∃ n : ℕ, 0 < n ∧ ∃ d : DeviceEnsemble p n,
∃ cs : (i : Fin n) → CompleteExtension (d.member i),
v = ∑ i, d.weight i * min (squashedMI (cs i)) (squashedCMI (cs i))}
/-- PDF pp.52–53, (296),(297): the printed single-nonlocal-vertex fraction.
This real infimum is used below ONLY in the binary HRW sector with an explicit
feasible decomposition; no value on an empty decomposition set is asserted. -/
def nonlocalityFraction (p : Box X Y A B) : ℝ :=
sInf {t | 0 ≤ t ∧ t ≤ 1 ∧ ∃ v l : Box X Y A B,
IsVertex v ∧ ¬ HasLocalModel v ∧ HasLocalModel l ∧ p = correlationMixture v l t}
/-- PDF p.52, Definition 16, (294): cost with the source's maximum SUPPORT sizes.
Only the feasible binary HRW sector is used; the universal residual convention
of Proposition 9 is explicitly deferred. -/
def nonlocalityCost (p : Box X Y A B) (x : X) (y : Y) : ℝ :=
nonlocalityFraction p * Real.logb 2 (min (aliceSupport p y) (bobSupport p x) : ℕ)
end Devices
/-- PDF p.48, (241),(242): the source's two INDEPENDENT shared randomizers,
with local input preprocessing and local output kernels depending on the original
local input and output. This class is exactly the displayed map, not arbitrary
communicating operations. Public local randomizers are not optimized as Eve data. -/
structure GeneralLocalMap (X Y A B Xo Yo Ao Bo L M : Type)
[Fintype X] [Fintype Y] [Fintype Ao] [Fintype Bo] [Fintype L] [Fintype M] where
mu : L → ℝ
nu : M → ℝ
mu_law : IsLaw mu
nu_law : IsLaw nu
aliceInput : L → Xo → X → ℝ
bobInput : L → Yo → Y → ℝ
aliceInput_law : ∀ l x, IsLaw (aliceInput l x)
bobInput_law : ∀ l y, IsLaw (bobInput l y)
aliceOutput : M → A → X → Ao → ℝ
bobOutput : M → B → Y → Bo → ℝ
aliceOutput_law : ∀ m a x, IsLaw (aliceOutput m a x)
bobOutput_law : ∀ m b y, IsLaw (bobOutput m b y)
/-- PDF p.48, (243)–(245): computed device transformation by the named source map. -/
def GeneralLocalMap.apply {X Y A B Xo Yo Ao Bo L M : Type}
[Fintype X] [Fintype Y] [Fintype A] [Fintype B]
[Fintype Ao] [Fintype Bo] [Fintype L] [Fintype M]
(g : GeneralLocalMap X Y A B Xo Yo Ao Bo L M) (p : Box X Y A B) : Box Xo Yo Ao Bo :=
fun xo yo ao bo => ∑ l, ∑ m, ∑ x, ∑ y, ∑ a, ∑ b,
g.mu l * g.nu m * g.aliceInput l xo x * g.bobInput l yo y *
p x y a b * g.aliceOutput m a x ao * g.bobOutput m b y bo
/-- PDF p.56, (319): exact HRW binary device. The second source parameter is
called eta, distinguishing it from the CHSH error epsilon. -/
def hrwBox (delta eta : ℝ) : Box Bool Bool Bool Bool :=
fun x y a b => if x = false ∧ y = false then
(if a = b then (1-delta)/2 else delta/2)
else if Bool.xor a b = (x && y) then 3/8 - eta/2 else 1/8 + eta/2
/-- PDF p.56, (320): independent uniform CHSH inputs; true is the bit 1. -/
def chshLoss (p : Box Bool Bool Bool Bool) : ℝ :=
(1/4 : ℝ) * ∑ x, ∑ y, ∑ a, ∑ b,
if Bool.xor a b = (x && y) then 0 else p x y a b
/-- PDF p.56, (321): all sixteen deterministic binary local devices. -/
def deterministicBox (alpha beta gamma sigma : Bool) : Box Bool Bool Bool Bool :=
fun x y a b => if a = Bool.xor (alpha && x) beta ∧
b = Bool.xor (gamma && y) sigma then 1 else 0
/-- PDF p.56, (322): the eight binary PR-type devices, true denoting one. -/
def prVariant (r s t : Bool) : Box Bool Bool Bool Bool :=
fun x y a b => if Bool.xor a b =
Bool.xor (Bool.xor (Bool.xor (x && y) (r && x)) (s && y)) t then 1/2 else 0
section Sanity
/-! Sanity examples pin local definitions; none is a source theorem proof. -/
example : IsCD (fun (_ _ _ : Unit) => (1 : ℝ)) := by simp [IsCD]
example {C E Z : Type} (a p : CDArray C E Z) : withAbort 1 a p = a := by
funext z c e
simp [withAbort]
example {C E Z : Type} (a p : CDArray C E Z) : withAbort 0 a p = p := by
funext z c e
simp [withAbort]
example : idealCDKey (fun (_ : Unit) (_ : Unit × Unit × Unit) (_ : Unit) => (1 : ℝ))
() ((),(),()) () = 1 := by simp [idealCDKey]
example : intermediateKey (fun (_ : Unit) (_ : Unit × Unit × Unit) (_ : Unit) => (1 : ℝ))
() ((),(),()) () = 1 := by simp [intermediateKey]
example : shannon (fun _ : Unit => (1 : ℝ)) = 0 := by
simp [shannon]
example : deviceCMI (fun _ : Unit × Unit × Unit => (1 : ℝ)) = 0 := by
simp [deviceCMI, shannon]
example : hrwBox (1/5) (-(1/20)) false false false false = 2/5 := by
norm_num [hrwBox]
example : hrwBox (1/5) (-(1/20)) false true false true = 1/10 := by
norm_num [hrwBox]
example : deterministicBox false false false false false false false false = 1 := by
norm_num [deterministicBox]
example : prVariant false false false false false false false = (1/2 : ℝ) := by
norm_num [prVariant]
end Sanity
end QAlgorithms.Papers.Independent.Intakethird100.P22
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intakethird100.P22.CDArray
For arbitrary types , this abbreviates the type of all functions , written . No finiteness, nonemptiness, nonnegativity, or normalization is required.
QAlgorithms.Papers.Independent.Intakethird100.P22.CDObservation.apply
For finite types , an observation with a positive output size , nonnegative input weights summing to over for every , and nonnegative output weights summing to over for every , an arbitrary array , and an output index , this defines
The array need not satisfy any positivity, normalization, or marginal condition. If any summation index type is empty, the sum is zero.
QAlgorithms.Papers.Independent.Intakethird100.P22.CDObservation
For arbitrary types and a finite type , an observation consists of a natural number , an input function , and an output function , satisfying
and
No finiteness or nonemptiness of , or nonemptiness of , is assumed. If is nonempty and is empty, no such observation exists.
QAlgorithms.Papers.Independent.Intakethird100.P22.CompleteExtension
For input types , finite output types , and a real array , a complete extension consists of positive natural numbers and, for each , weights and arrays , indexed by . The array and every must be nonnegative, sum to over for each , and be nonsignaling: summing over gives a result independent of , and summing over gives a result independent of . Each weight family is nonnegative and sums to , and pointwise. Every member with positive weight must be an extreme point of the set of such valid arrays: if it is a mixture of valid arrays with , then both and equal it. Furthermore, no finite decomposition of into valid arrays may have positive-weight support strictly contained in . Finally, for every natural number and every decomposition of into valid arrays satisfying these same minimality conditions, there is exactly one such that, for every array , the total weight assigned to by the -th decomposition equals the total weight assigned to by . Repeated members and zero weights are allowed; uniqueness concerns the input index matching all aggregate weights. The quantifier includes , although its required weight sum cannot equal .
QAlgorithms.Papers.Independent.Intakethird100.P22.CompleteExtension.measured
Given a real array and a complete extension , whose positive input and output counts are and , write its -th decomposition as . Here and the members are normalized, nonnegative nonsignaling arrays, each weight family is a probability law, each positive-weight member is an extreme valid array, no decomposition has strictly smaller positive support, and every finite minimal decomposition is matched in aggregate member weights by exactly one input . For any function and inputs , the measured function on is defined by
There is no assumption here that is nonnegative or sums to , so this definition does not itself require to be a probability law.
QAlgorithms.Papers.Independent.Intakethird100.P22.DeviceEnsemble.IsMinimal
For input types , finite output types , a function , a natural number , and an ensemble of , minimality means that every member with positive weight is a vertex and that, for every natural number and every ensemble of with entries, the support of is not a proper subset of the support of . An ensemble has nonnegative weights summing to one, nonnegative normalized members with both no-signaling marginal identities, and pointwise weighted sum ; its support consists exactly of members having positive weight. A vertex is such a valid member whose expression as , for valid and , forces to equal that member. The comparison includes every competing ensemble, without requiring its members to be vertices. Zero-weight members of need not be vertices, repeated members are allowed, and the case supplies no competitor because no zero-entry ensemble exists.
QAlgorithms.Papers.Independent.Intakethird100.P22.DeviceEnsemble.massAt
For input types , finite output types , a function , a natural number , an ensemble of , and any function , the mass at is
An ensemble here has nonnegative weights summing to one, each member is nonnegative and normalized with both no-signaling marginal identities, and its weighted sum is pointwise. Equality means equality of the entire functions. All repeated occurrences of contribute their weights; absent members and zero-weight occurrences contribute zero. The ensemble hypotheses exclude .
QAlgorithms.Papers.Independent.Intakethird100.P22.DeviceEnsemble
For input types , finite output types , any function , and any natural number , an ensemble of with entries consists of real weights and functions , indexed by , such that , , every has nonnegative entries and sums to one over at each input pair, both of its output marginals are independent of the other party’s input, and
for every . Entries with zero weight must still satisfy all those validity conditions, and repeated members are allowed. Although is admitted as a parameter, no such ensemble exists then, because its empty weight sum would have to equal one.
QAlgorithms.Papers.Independent.Intakethird100.P22.DeviceEnsemble.support
For input types , finite output types , a function , a natural number , and an ensemble of , its support is the set
Here being an ensemble means that the weights are nonnegative and sum to one, each member is nonnegative, normalized, and has both no-signaling marginal identities, and their weighted sum is pointwise. Zero-weight entries do not contribute to the support, and repeated positive-weight members contribute only one element because the support is a set. An ensemble cannot have .
QAlgorithms.Papers.Independent.Intakethird100.P22.EveChannel.apply
Let be arbitrary types, let be a finite type, and let consist of a positive integer and a real kernel satisfying and for every . For every real function , applying produces the real function on given by
No probability assumptions are imposed on , and need not be finite or nonempty. If is empty, the resulting function is identically zero.
QAlgorithms.Papers.Independent.Intakethird100.P22.EveChannel
For an arbitrary type , an Eve channel consists of a natural number and a real kernel such that, for every ,
There is no finiteness or nonemptiness assumption on . When is empty, the kernel conditions are vacuous, while remains required.
QAlgorithms.Papers.Independent.Intakethird100.P22.GeneralLocalMap.apply
For types , with finite, let contain probability laws on , on , input probability laws on and on , and output probability laws on and on , each normalized and nonnegative for every conditioning index. Given any real-valued box , this definition produces the box
The two latent weights occur as the product . No validity, normalization, or no-signaling hypothesis on is required; need not be finite, and any empty summation index set gives a zero sum.
QAlgorithms.Papers.Independent.Intakethird100.P22.GeneralLocalMap
For types , with finite, this structure consists of two real probability laws and ; input kernels and ; and output kernels and . Every probability law here means pointwise nonnegative values summing to . Thus and must be probability laws for every , while and must be probability laws for every , including indices assigned zero weight by or . No finiteness assumption on , or nonemptiness assumption on any type, is explicitly required by this structure declaration; the normalization requirements themselves exclude empty target types whenever the corresponding law is required.
QAlgorithms.Papers.Independent.Intakethird100.P22.IsCD
For finite types , an arbitrary type , and a real array , this predicate means that for every , that
and that
Thus the -marginal is independent of . The type may be empty, in which case all requirements are vacuous; if is nonempty and either or is empty, the normalization requirement cannot hold.
QAlgorithms.Papers.Independent.Intakethird100.P22.IsVertex
For input types , finite output types , and a real function on , being a vertex means first that is nonnegative, normalized over at every input pair, and has each output marginal independent of the other party’s input; second, for every two functions satisfying those same conditions and every real with ,
implies and . The implication concerns only strictly interior mixing coefficients; and impose no additional condition.
QAlgorithms.Papers.Independent.Intakethird100.P22.KeyOutput
For finite types and an arbitrary type , a key output consists of a real number and two real arrays and , called the pass and abort arrays, where , , , and . Each array satisfies
for every and . There is no further relation required between the pass and abort arrays. The endpoint abort probabilities and are allowed. The types are not assumed nonempty: if is empty, all array conditions are vacuous; if is nonempty, normalization rules out an empty , or .
QAlgorithms.Papers.Independent.Intakethird100.P22.UnaryExtension
For finite input alphabets , finite output alphabets , any real array , and any natural number , a unary extension is an array , indexed by , satisfying all of
for every choice of the displayed indices. Thus the -marginal is independent of both inputs, the -marginal is independent of , and the -marginal is independent of . No normalization or validity assumption on is imposed by this structure. The case is included: its marginal condition requires to be identically zero, while the conditions quantified over are vacuous.
QAlgorithms.Papers.Independent.Intakethird100.P22.ValidDevice
For input types , finite output types , and a function , validity means that all entries are nonnegative, that for every , and that
for every appropriately typed choice of variables. Thus Bob’s marginal is independent of Alice’s input, and Alice’s marginal is independent of Bob’s input. Conditions quantified over absent inputs are vacuous; if both input types are inhabited and either output type is empty, normalization cannot hold.
QAlgorithms.Papers.Independent.Intakethird100.P22.aliceMarginal
For a finite type , arbitrary types , and an arbitrary real array , this defines the array on given by
No positivity or normalization is assumed. The type may be empty, in which case the resulting array has no arguments .
QAlgorithms.Papers.Independent.Intakethird100.P22.aliceSupport
For finite alphabets , an input alphabet , any real array , and a specified , the defined natural number is
The comparison is strictly positive, so zero and negative marginal values are excluded. No nonnegativity, normalization, or no-signaling condition on is assumed. The finite supremum is when is empty; empty output sums are also .
QAlgorithms.Papers.Independent.Intakethird100.P22.ampAtInput
For finite input and output alphabets , any real array , and specified inputs , the defined real number is the infimum over all positive integers and decompositions , where , , and each is nonnegative, normalized at each input, and has both no-signaling marginals, of
Thus the inner infimum permits every finite positive output size and every stochastic map from the ensemble index to . Marginals are obtained by summing omitted coordinates, and . Ensemble weights may vanish; components need not be distinct or extreme. There is no validity hypothesis on , and an empty outer set of candidate values has real infimum .
QAlgorithms.Papers.Independent.Intakethird100.P22.bobSupport
For finite alphabets , an input alphabet , any real array , and a specified , the defined natural number is
The comparison is strictly positive, so zero and negative marginal values are excluded. No nonnegativity, normalization, or no-signaling condition on is assumed. The finite supremum is when is empty; empty output sums are also .
QAlgorithms.Papers.Independent.Intakethird100.P22.cdDistance
For finite types and arbitrary real arrays , this defines
where ranges over positive natural numbers, with for every , and with for every . Neither array is required to be nonnegative or normalized. Empty index types are allowed; in particular, if is nonempty and is empty, there are no admissible observations, and the real supremum of the empty set used here is zero.
QAlgorithms.Papers.Independent.Intakethird100.P22.cdSecrecyError
Let be finite types and let consist of and pass and abort arrays , each nonnegative and normalized over for every , with independent of . Set
For arrays indexed by , define
where , for every , and , for every . The secrecy error is , using . No nonemptiness assumptions are imposed; division by zero in the displayed ideal array is interpreted as zero, and if the observation family defining the real supremum is empty, that supremum is zero.
QAlgorithms.Papers.Independent.Intakethird100.P22.chshLoss
For any function , with and denoting false and true, respectively, this defines
where is Boolean exclusive OR and is Boolean AND. No nonnegativity, normalization, or no-signaling assumption is imposed on ; the definition applies to every real-valued function of these four Boolean arguments.
QAlgorithms.Papers.Independent.Intakethird100.P22.correctnessError
Let be finite types, let be any type, and let consist of an abort probability and pass and abort arrays . Both arrays are nonnegative, sum to over for each , and have independent of . For any supplied , the correctness error is the real number
Thus it uses only the pass array and the abort probability. In particular, it is zero when . Although no nonemptiness assumptions are explicitly imposed on , the existence of and the supplied forces these types to be nonempty.
QAlgorithms.Papers.Independent.Intakethird100.P22.deterministicBox
For any four Boolean parameters , the defined real array on Boolean inputs and Boolean outputs is
where is Boolean conjunction and is exclusive-or. All choices of the parameters and arguments, including false values, are included.
QAlgorithms.Papers.Independent.Intakethird100.P22.deviceCMI
For arbitrary finite types and any real function , define for a real function on a finite index type. The declared quantity is
No nonnegativity or normalization assumption is imposed on , and the types may be empty. The logarithm is the total real base-two logarithm used in the definition, including its value at zero, so the expression is defined even for such inputs.
QAlgorithms.Papers.Independent.Intakethird100.P22.ensembleForm
For finite nonempty input alphabets , finite output alphabets , and any real array , the defined real number is
A valid box has nonnegative entries, satisfies at every input, has independent of , and has independent of . The reconstruction equality is pointwise at every input and output. Here ; weights may vanish, and the component boxes need not be vertices or distinct. No validity hypothesis is imposed on ; if no such finite decomposition exists, the real infimum in the definition is .
QAlgorithms.Papers.Independent.Intakethird100.P22.extensionForm
For finite nonempty input alphabets , finite output alphabets , and any real array , the defined real number is
Here ; is nonnegative; ; its -marginal is independent of , its -marginal is independent of , and its -marginal is independent of both inputs. Subscripts denote summation over omitted coordinates, and . No normalization or no-signaling hypothesis on is required. Only positive extension sizes are considered; if there is no such extension, the real infimum used here is . The real logarithm and infimum are total operations, so the definition also applies when its arrays are not probability distributions.
QAlgorithms.Papers.Independent.Intakethird100.P22.finiteMax
For any finite, nonempty type and function , this defines
the largest value attained by .
QAlgorithms.Papers.Independent.Intakethird100.P22.hrwBox
For arbitrary real parameters , this definition assigns to Boolean inputs and Boolean outputs the real value
Here is exclusive-or and is Boolean conjunction. No restrictions on , or assertion of nonnegativity, normalization, or no signaling, accompany the definition.
QAlgorithms.Papers.Independent.Intakethird100.P22.idealCDKey
For a finite type , arbitrary types , and an arbitrary real array , this defines an array on the same types by
No positivity or normalization of is assumed. The type may be empty, in which case the resulting array has no arguments ; real division by zero is defined as zero.
QAlgorithms.Papers.Independent.Intakethird100.P22.intermediateKey
For a finite type , arbitrary types , and an arbitrary real array , this defines
No positivity or normalization is required, and may be empty, in which case the resulting array has no arguments .
QAlgorithms.Papers.Independent.Intakethird100.P22.intrinsicInformation
For finite types and any function , define its intrinsic information as follows. For every positive integer , consider every kernel satisfying and for each , and put . The intrinsic information is
where the subscripts denote marginals obtained by summation and . Here the real logarithm is totalized: its value at zero is zero, and at a negative argument it is the logarithm of the absolute value. No nonnegativity or normalization assumption is imposed on , and the finite types may be empty. The infimum is taken in , whose totalized infimum is zero for an empty set or a set unbounded below.
QAlgorithms.Papers.Independent.Intakethird100.P22.nonlocalityCost
For a real-valued box on finite input and output sets and specified inputs , this definition is
Here is the real infimum of such that , with a nonlocal extreme valid box and a local box. Valid means nonnegative normalized output laws and no signaling in either direction; extreme means that a convex decomposition with coefficient in into valid boxes forces both components to equal the box. Local means that the box has nonnegative normalized output laws and admits a representation , with a probability mass function on an arbitrary latent type and normalized nonnegative response laws for every latent value and input. Both witness boxes remain required at , and if its defining set is empty. The support counts use strictly positive marginal sums, with no validity assumption on . The logarithm is the total real base- logarithm, so a zero minimum gives logarithm .
QAlgorithms.Papers.Independent.Intakethird100.P22.nonlocalityFraction
For a real-valued box , this definition is the real infimum of all for which there exist boxes satisfying , where is a valid extreme box without a local model and has a local model. A valid box has nonnegative normalized output laws, with each party’s marginal independent of the other party’s input; extremality means that whenever for valid boxes and , both and equal . A box has a local model precisely when it has nonnegative normalized output laws and there exist a type , a probability mass function on , and nonnegative normalized response laws , , for every , such that
The series is the total infinite sum used in the definition. The endpoints are allowed, but both witness boxes and the nonlocal extreme-box condition are still required there. No validity or representability assumption on is imposed; if there are no admissible , the real infimum is .
QAlgorithms.Papers.Independent.Intakethird100.P22.prVariant
For any Boolean parameters , the defined real array on Boolean inputs and Boolean outputs is
where is Boolean conjunction and is exclusive-or. The definition includes every Boolean choice of parameters, inputs and outputs.
QAlgorithms.Papers.Independent.Intakethird100.P22.securityError
Let be finite types and let consist of an abort probability and pass and abort arrays , each nonnegative and normalized over for every , with its marginal independent of . Define the ideal pass array by
For arrays on , let
where is a nonnegative real function summing to on for each , and is a nonnegative real function summing to on for each . The security error is , with . Empty types are allowed; division by zero is zero, and an empty observation family has real supremum zero.
QAlgorithms.Papers.Independent.Intakethird100.P22.singleDeviceEnsemble
Given input sets , finite output sets , and a box that is valid, this definition constructs an ensemble indexed by the singleton set : its sole weight is , and its sole member is . Validity means that , that for every , that is independent of , and that is independent of . Thus the weight is a probability law, the member is valid, and the weighted reconstruction is at every input and output tuple; the definition supplies no minimality or extremality condition.
QAlgorithms.Papers.Independent.Intakethird100.P22.squashSecrecy
For finite nonempty input types , finite output types , a box , and a complete extension with positive counts , write its decompositions as : the arrays are normalized, nonnegative and nonsignaling, the weights are probability laws, the positive-weight members are extreme valid arrays, their supports admit no strictly smaller decomposition support, and every finite minimal decomposition is matched in aggregate weights by exactly one input . For any real-valued functional on real arrays indexed by , the defined value is
No continuity, boundedness or other condition is imposed on , and no attainment of either optimization is asserted. Both operations use real infima and suprema; in particular, an inner set unbounded below has the totalized real infimum , rather than an extended-real value of .
QAlgorithms.Papers.Independent.Intakethird100.P22.squashedCMI
For finite nonempty input alphabets and output alphabets , let , and let be a complete extension of . Such an extension consists of positive integers , probability weights for each , and boxes with nonnegative entries, unit total mass at each input, and both no-signaling marginal conditions, such that . For each , the boxes with positive weight are vertices—boxes admitting no nontrivial convex decomposition into distinct valid boxes—and their support has no proper subset that supports another finite valid decomposition of . Every decomposition with these properties has exactly one index giving the same total weight to every box. For a probability vector , put . Then the defined real number is
where subscripts mean summing out the omitted coordinates and , with zero terms contributing zero. Zero weights are allowed in both and .
QAlgorithms.Papers.Independent.Intakethird100.P22.squashedLowerHull
For a real-valued box on finite nonempty sets , this definition gives the real infimum
The decomposition uses nonnegative weights summing to and valid member boxes: each member has normalized nonnegative output laws and marginals independent of the other party’s input. A complete extension consists of positive finite input and label counts, and a minimal ensemble of at each extension input, with fixed member labels across those inputs. Its indexed ensembles enumerate all minimal ensembles uniquely by their total mass at every box. Here minimal means that the positive-weight members are extreme valid boxes and that no ensemble of has support properly contained in that positive-weight support; an extreme box admits no convex decomposition with coefficient in except into itself. If a complete extension has ensembles , define
where and . Then and , using , , and . Complete extensions are required even for zero-weight members of the outer ensemble. No validity assumption on , or existence of an admissible decomposition, is part of this definition; an empty defining set has real infimum .
QAlgorithms.Papers.Independent.Intakethird100.P22.squashedMI
For finite types , with nonempty, a function , and a complete extension of , squashed mutual information is
where , , and , with the total real logarithm taking value zero at zero. The complete extension supplies positive integers , probability weight rows reconstructing , and valid member functions that are independent of the row at each fixed position ; validity means nonnegativity, normalization at every input pair, and both no-signaling marginal identities. Every row’s positive-weight members are vertices and no ensemble of has properly smaller positive-weight support, while every ensemble satisfying these two requirements matches all aggregated member masses of exactly one row. An ensemble is any finite probability-weighted decomposition into valid functions, and a vertex has only constant decompositions into valid functions with mixing coefficient strictly between zero and one. The infimum is a real infimum, totalized to zero for an empty or unbounded-below value set, and no minimizing choice of is asserted.
QAlgorithms.Papers.Independent.Intakethird100.P22.squashedNonlocality
For finite types , with nonempty, a function , and a complete extension of , squashed nonlocality is
where , , and subscripts denote marginals. Here , with the total real logarithm taking value zero at zero. The complete extension has , valid nonnegative normalized members satisfying both no-signaling marginal identities, probability weight rows reconstructing , and row-independent member labels at each position . Each row has only vertices in its positive-weight support and admits no ensemble of with properly smaller support; every ensemble with these properties matches the aggregated member masses of exactly one row. An ensemble is a finite probability-weighted decomposition into valid functions, and a vertex has only constant strictly interior convex decompositions into valid functions. Both displayed infima are real infima, using zero if the relevant value set is empty or unbounded below; their attainment is not part of the definition.
QAlgorithms.Papers.Independent.Intakethird100.P22.withAbort
For arbitrary types , any real number , and any two real arrays , this defines
There is no restriction , and neither array is required to be nonnegative, normalized, or to satisfy a marginal condition.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.