Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Definitions for Limitations on device independent key secure against non signaling adversary via the squashed non-locality

Definition
QAlgorithms_Papers_Independent_Intakethird100_P22

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

prove2quantum

The 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.
Definition code
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
Source
Limitations on device independent key secure against non signaling adversary via the squashed non-locality, arXiv:1903.12154v7, https://arxiv.org/abs/1903.12154v7
Read-back

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

QAlgorithms.Papers.Independent.Intakethird100.P22.CDArray

For arbitrary types C,E,ZC,E,ZC,E,Z, this abbreviates the type of all functions p:Z×C×E→Rp:Z\times C\times E\to\mathbb Rp:Z×C×E→R, written p(z,c,e)p(z,c,e)p(z,c,e). No finiteness, nonemptiness, nonnegativity, or normalization is required.

QAlgorithms.Papers.Independent.Intakethird100.P22.CDObservation.apply

For finite types C,E,ZC,E,ZC,E,Z, an observation ggg with a positive output size mmm, nonnegative input weights u(c,z)u(c,z)u(c,z) summing to 111 over zzz for every ccc, and nonnegative output weights v(c,z,e,j)v(c,z,e,j)v(c,z,e,j) summing to 111 over jjj for every c,z,ec,z,ec,z,e, an arbitrary array p:Z×C×E→Rp:Z\times C\times E\to\mathbb Rp:Z×C×E→R, and an output index 0≤j<m0\le j<m0≤j<m, this defines

g[p](j)=∑c∈C∑z∈Z∑e∈Eu(c,z) p(z,c,e) v(c,z,e,j).g[p](j)=\sum_{c\in C}\sum_{z\in Z}\sum_{e\in E} u(c,z)\,p(z,c,e)\,v(c,z,e,j).g[p](j)=c∈C∑​z∈Z∑​e∈E∑​u(c,z)p(z,c,e)v(c,z,e,j).

The array ppp 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 C,EC,EC,E and a finite type ZZZ, an observation consists of a natural number m>0m>0m>0, an input function u:C×Z→Ru:C\times Z\to\mathbb Ru:C×Z→R, and an output function v:C×Z×E×{0,…,m−1}→Rv:C\times Z\times E\times\{0,\ldots,m-1\}\to\mathbb Rv:C×Z×E×{0,…,m−1}→R, satisfying

u(c,z)≥0,∑z∈Zu(c,z)=1for every c,u(c,z)\ge0,\qquad \sum_{z\in Z}u(c,z)=1 \quad\text{for every }c,u(c,z)≥0,z∈Z∑​u(c,z)=1for every c,

and

v(c,z,e,j)≥0,∑j=0m−1v(c,z,e,j)=1for every c,z,e.v(c,z,e,j)\ge0,\qquad \sum_{j=0}^{m-1}v(c,z,e,j)=1 \quad\text{for every }c,z,e.v(c,z,e,j)≥0,j=0∑m−1​v(c,z,e,j)=1for every c,z,e.

No finiteness or nonemptiness of C,EC,EC,E, or nonemptiness of ZZZ, is assumed. If CCC is nonempty and ZZZ is empty, no such observation exists.

QAlgorithms.Papers.Independent.Intakethird100.P22.CompleteExtension

For input types X,YX,YX,Y, finite output types A,BA,BA,B, and a real array p(x,y,a,b)p(x,y,a,b)p(x,y,a,b), a complete extension consists of positive natural numbers u,vu,vu,v and, for each z∈{0,…,u−1}z\in\{0,\ldots,u-1\}z∈{0,…,u−1}, weights wziw_{zi}wzi​ and arrays pzip_{zi}pzi​, indexed by i∈{0,…,v−1}i\in\{0,\ldots,v-1\}i∈{0,…,v−1}. The array ppp and every pzip_{zi}pzi​ must be nonnegative, sum to 111 over a,ba,ba,b for each x,yx,yx,y, and be nonsignaling: summing over aaa gives a result independent of xxx, and summing over bbb gives a result independent of yyy. Each weight family is nonnegative and sums to 111, and p=∑iwzipzip=\sum_i w_{zi}p_{zi}p=∑i​wzi​pzi​ pointwise. Every member with positive weight must be an extreme point of the set of such valid arrays: if it is a mixture λq+(1−λ)r\lambda q+(1-\lambda)rλq+(1−λ)r of valid arrays with 0<λ<10<\lambda<10<λ<1, then both qqq and rrr equal it. Furthermore, no finite decomposition of ppp into valid arrays may have positive-weight support strictly contained in {pzi:wzi>0}\{p_{zi}:w_{zi}>0\}{pzi​:wzi​>0}. Finally, for every natural number nnn and every decomposition ddd of ppp into nnn valid arrays satisfying these same minimality conditions, there is exactly one z<uz<uz<u such that, for every array rrr, the total weight assigned to rrr by the zzz-th decomposition equals the total weight assigned to rrr by ddd. Repeated members and zero weights are allowed; uniqueness concerns the input index matching all aggregate weights. The quantifier includes n=0n=0n=0, although its required weight sum cannot equal 111.

QAlgorithms.Papers.Independent.Intakethird100.P22.CompleteExtension.measured

Given a real array ppp and a complete extension ccc, whose positive input and output counts are uuu and vvv, write its zzz-th decomposition as p=∑i<vwzipzip=\sum_{i<v}w_{zi}p_{zi}p=∑i<v​wzi​pzi​. Here ppp 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 zzz. For any function d:{0,…,u−1}→Rd:\{0,\ldots,u-1\}\to\mathbb Rd:{0,…,u−1}→R and inputs x∈X,y∈Yx\in X,y\in Yx∈X,y∈Y, the measured function on A×B×({0,…,u−1}×{0,…,v−1})A\times B\times(\{0,\ldots,u-1\}\times\{0,\ldots,v-1\})A×B×({0,…,u−1}×{0,…,v−1}) is defined by

P(a,b,z,i)=d(z) wzi pzi(x,y,a,b).P(a,b,z,i)=d(z)\,w_{zi}\,p_{zi}(x,y,a,b).P(a,b,z,i)=d(z)wzi​pzi​(x,y,a,b).

There is no assumption here that ddd is nonnegative or sums to 111, so this definition does not itself require PPP to be a probability law.

QAlgorithms.Papers.Independent.Intakethird100.P22.DeviceEnsemble.IsMinimal

For input types X,YX,YX,Y, finite output types A,BA,BA,B, a function ppp, a natural number nnn, and an ensemble d=((wi,pi))i<nd=((w_i,p_i))_{i<n}d=((wi​,pi​))i<n​ of ppp, minimality means that every member with positive weight is a vertex and that, for every natural number mmm and every ensemble d′d'd′ of ppp with mmm entries, the support of d′d'd′ is not a proper subset of the support of ddd. An ensemble has nonnegative weights summing to one, nonnegative normalized members with both no-signaling marginal identities, and pointwise weighted sum ppp; its support consists exactly of members having positive weight. A vertex is such a valid member whose expression as tq+(1−t)rtq+(1-t)rtq+(1−t)r, for valid q,rq,rq,r and 0<t<10<t<10<t<1, forces q=rq=rq=r to equal that member. The comparison includes every competing ensemble, without requiring its members to be vertices. Zero-weight members of ddd need not be vertices, repeated members are allowed, and the case m=0m=0m=0 supplies no competitor because no zero-entry ensemble exists.

QAlgorithms.Papers.Independent.Intakethird100.P22.DeviceEnsemble.massAt

For input types X,YX,YX,Y, finite output types A,BA,BA,B, a function ppp, a natural number nnn, an ensemble d=((wi,pi))i<nd=((w_i,p_i))_{i<n}d=((wi​,pi​))i<n​ of ppp, and any function v:X×Y×A×B→Rv:X\times Y\times A\times B\to\mathbb Rv:X×Y×A×B→R, the mass at vvv is

∑i=0n−1{wi,pi=v,0,pi≠v.\sum_{i=0}^{n-1} \begin{cases} w_i,&p_i=v,\\ 0,&p_i\ne v. \end{cases}i=0∑n−1​{wi​,0,​pi​=v,pi​=v.​

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 ppp pointwise. Equality pi=vp_i=vpi​=v means equality of the entire functions. All repeated occurrences of vvv contribute their weights; absent members and zero-weight occurrences contribute zero. The ensemble hypotheses exclude n=0n=0n=0.

QAlgorithms.Papers.Independent.Intakethird100.P22.DeviceEnsemble

For input types X,YX,YX,Y, finite output types A,BA,BA,B, any function p:X×Y×A×B→Rp:X\times Y\times A\times B\to\mathbb Rp:X×Y×A×B→R, and any natural number nnn, an ensemble of ppp with nnn entries consists of real weights wiw_iwi​ and functions pi:X×Y×A×B→Rp_i:X\times Y\times A\times B\to\mathbb Rpi​:X×Y×A×B→R, indexed by 0≤i<n0\le i<n0≤i<n, such that wi≥0w_i\ge0wi​≥0, ∑iwi=1\sum_iw_i=1∑i​wi​=1, every pip_ipi​ has nonnegative entries and sums to one over A×BA\times BA×B at each input pair, both of its output marginals are independent of the other party’s input, and

p(x,y,a,b)=∑i=0n−1wipi(x,y,a,b)p(x,y,a,b)=\sum_{i=0}^{n-1}w_i p_i(x,y,a,b)p(x,y,a,b)=i=0∑n−1​wi​pi​(x,y,a,b)

for every x,y,a,bx,y,a,bx,y,a,b. Entries with zero weight must still satisfy all those validity conditions, and repeated members are allowed. Although n=0n=0n=0 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 X,YX,YX,Y, finite output types A,BA,BA,B, a function ppp, a natural number nnn, and an ensemble d=((wi,pi))i<nd=((w_i,p_i))_{i<n}d=((wi​,pi​))i<n​ of ppp, its support is the set

{v:X×Y×A×B→R∣∃i<n, wi>0 and pi=v}.\{v:X\times Y\times A\times B\to\mathbb R\mid \exists i<n,\ w_i>0\ \text{and}\ p_i=v\}.{v:X×Y×A×B→R∣∃i<n, wi​>0 and pi​=v}.

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 ppp 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 n=0n=0n=0.

QAlgorithms.Papers.Independent.Intakethird100.P22.EveChannel.apply

Let A,BA,BA,B be arbitrary types, let EEE be a finite type, and let kkk consist of a positive integer mmm and a real kernel k(e,j)k(e,j)k(e,j) satisfying k(e,j)≥0k(e,j)\ge0k(e,j)≥0 and ∑j=0m−1k(e,j)=1\sum_{j=0}^{m-1}k(e,j)=1∑j=0m−1​k(e,j)=1 for every e∈Ee\in Ee∈E. For every real function p:A×B×E→Rp:A\times B\times E\to\mathbb Rp:A×B×E→R, applying kkk produces the real function on A×B×{0,…,m−1}A\times B\times\{0,\ldots,m-1\}A×B×{0,…,m−1} given by

(kp)(a,b,j)=∑e∈Ep(a,b,e) k(e,j).(kp)(a,b,j)=\sum_{e\in E}p(a,b,e)\,k(e,j).(kp)(a,b,j)=e∈E∑​p(a,b,e)k(e,j).

No probability assumptions are imposed on ppp, and A,BA,BA,B need not be finite or nonempty. If EEE is empty, the resulting function is identically zero.

QAlgorithms.Papers.Independent.Intakethird100.P22.EveChannel

For an arbitrary type EEE, an Eve channel consists of a natural number m>0m>0m>0 and a real kernel k:E×{0,…,m−1}→Rk:E\times\{0,\ldots,m-1\}\to\mathbb Rk:E×{0,…,m−1}→R such that, for every e∈Ee\in Ee∈E,

k(e,j)≥0for every j,∑j=0m−1k(e,j)=1.k(e,j)\ge0\quad\text{for every }j,\qquad \sum_{j=0}^{m-1}k(e,j)=1.k(e,j)≥0for every j,j=0∑m−1​k(e,j)=1.

There is no finiteness or nonemptiness assumption on EEE. When EEE is empty, the kernel conditions are vacuous, while m>0m>0m>0 remains required.

QAlgorithms.Papers.Independent.Intakethird100.P22.GeneralLocalMap.apply

For types X,Y,A,B,Xo,Yo,Ao,Bo,L,MX,Y,A,B,X_o,Y_o,A_o,B_o,L,MX,Y,A,B,Xo​,Yo​,Ao​,Bo​,L,M, with X,Y,A,B,Ao,Bo,L,MX,Y,A,B,A_o,B_o,L,MX,Y,A,B,Ao​,Bo​,L,M finite, let ggg contain probability laws μ\muμ on LLL, ν\nuν on MMM, input probability laws α(l,xo,⋅)\alpha(l,x_o,\cdot)α(l,xo​,⋅) on XXX and β(l,yo,⋅)\beta(l,y_o,\cdot)β(l,yo​,⋅) on YYY, and output probability laws γ(m,a,x,⋅)\gamma(m,a,x,\cdot)γ(m,a,x,⋅) on AoA_oAo​ and δ(m,b,y,⋅)\delta(m,b,y,\cdot)δ(m,b,y,⋅) on BoB_oBo​, each normalized and nonnegative for every conditioning index. Given any real-valued box p(x,y,a,b)p(x,y,a,b)p(x,y,a,b), this definition produces the box

(gp)(xo,yo,ao,bo)=∑l,m,x,y,a,bμ(l)ν(m)α(l,xo,x)β(l,yo,y)p(x,y,a,b)γ(m,a,x,ao)δ(m,b,y,bo).(gp)(x_o,y_o,a_o,b_o)= \sum_{l,m,x,y,a,b} \mu(l)\nu(m)\alpha(l,x_o,x)\beta(l,y_o,y) p(x,y,a,b)\gamma(m,a,x,a_o)\delta(m,b,y,b_o).(gp)(xo​,yo​,ao​,bo​)=l,m,x,y,a,b∑​μ(l)ν(m)α(l,xo​,x)β(l,yo​,y)p(x,y,a,b)γ(m,a,x,ao​)δ(m,b,y,bo​).

The two latent weights occur as the product μ(l)ν(m)\mu(l)\nu(m)μ(l)ν(m). No validity, normalization, or no-signaling hypothesis on ppp is required; Xo,YoX_o,Y_oXo​,Yo​ need not be finite, and any empty summation index set gives a zero sum.

QAlgorithms.Papers.Independent.Intakethird100.P22.GeneralLocalMap

For types X,Y,A,B,Xo,Yo,Ao,Bo,L,MX,Y,A,B,X_o,Y_o,A_o,B_o,L,MX,Y,A,B,Xo​,Yo​,Ao​,Bo​,L,M, with X,Y,Ao,Bo,L,MX,Y,A_o,B_o,L,MX,Y,Ao​,Bo​,L,M finite, this structure consists of two real probability laws μ:L→R\mu:L\to\mathbb Rμ:L→R and ν:M→R\nu:M\to\mathbb Rν:M→R; input kernels α:L×Xo×X→R\alpha:L\times X_o\times X\to\mathbb Rα:L×Xo​×X→R and β:L×Yo×Y→R\beta:L\times Y_o\times Y\to\mathbb Rβ:L×Yo​×Y→R; and output kernels γ:M×A×X×Ao→R\gamma:M\times A\times X\times A_o\to\mathbb Rγ:M×A×X×Ao​→R and δ:M×B×Y×Bo→R\delta:M\times B\times Y\times B_o\to\mathbb Rδ:M×B×Y×Bo​→R. Every probability law here means pointwise nonnegative values summing to 111. Thus α(l,xo,⋅)\alpha(l,x_o,\cdot)α(l,xo​,⋅) and β(l,yo,⋅)\beta(l,y_o,\cdot)β(l,yo​,⋅) must be probability laws for every l,xo,yol,x_o,y_ol,xo​,yo​, while γ(m,a,x,⋅)\gamma(m,a,x,\cdot)γ(m,a,x,⋅) and δ(m,b,y,⋅)\delta(m,b,y,\cdot)δ(m,b,y,⋅) must be probability laws for every m,a,b,x,ym,a,b,x,ym,a,b,x,y, including indices assigned zero weight by μ\muμ or ν\nuν. No finiteness assumption on A,B,Xo,YoA,B,X_o,Y_oA,B,Xo​,Yo​, 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 C,EC,EC,E, an arbitrary type ZZZ, and a real array p:Z×C×E→Rp:Z\times C\times E\to\mathbb Rp:Z×C×E→R, this predicate means that p(z,c,e)≥0p(z,c,e)\ge0p(z,c,e)≥0 for every z,c,ez,c,ez,c,e, that

∑c∈C∑e∈Ep(z,c,e)=1for every z∈Z,\sum_{c\in C}\sum_{e\in E}p(z,c,e)=1 \quad\text{for every }z\in Z,c∈C∑​e∈E∑​p(z,c,e)=1for every z∈Z,

and that

∑e∈Ep(z,c,e)=∑e∈Ep(z′,c,e)for every z,z′∈Z, c∈C.\sum_{e\in E}p(z,c,e)=\sum_{e\in E}p(z',c,e) \quad\text{for every }z,z'\in Z,\ c\in C.e∈E∑​p(z,c,e)=e∈E∑​p(z′,c,e)for every z,z′∈Z, c∈C.

Thus the CCC-marginal is independent of zzz. The type ZZZ may be empty, in which case all requirements are vacuous; if ZZZ is nonempty and either CCC or EEE is empty, the normalization requirement cannot hold.

QAlgorithms.Papers.Independent.Intakethird100.P22.IsVertex

For input types X,YX,YX,Y, finite output types A,BA,BA,B, and a real function ppp on X×Y×A×BX\times Y\times A\times BX×Y×A×B, being a vertex means first that ppp is nonnegative, normalized over A×BA\times BA×B at every input pair, and has each output marginal independent of the other party’s input; second, for every two functions q,rq,rq,r satisfying those same conditions and every real ttt with 0<t<10<t<10<t<1,

p(x,y,a,b)=tq(x,y,a,b)+(1−t)r(x,y,a,b)for all x,y,a,bp(x,y,a,b)=tq(x,y,a,b)+(1-t)r(x,y,a,b) \quad\text{for all }x,y,a,bp(x,y,a,b)=tq(x,y,a,b)+(1−t)r(x,y,a,b)for all x,y,a,b

implies q=pq=pq=p and r=pr=pr=p. The implication concerns only strictly interior mixing coefficients; t=0t=0t=0 and t=1t=1t=1 impose no additional condition.

QAlgorithms.Papers.Independent.Intakethird100.P22.KeyOutput

For finite types K,T,EK,T,EK,T,E and an arbitrary type ZZZ, a key output consists of a real number rabort∈[0,1]r_{\mathrm{abort}}\in[0,1]rabort​∈[0,1] and two real arrays Pz(a,b,t,e)P_z(a,b,t,e)Pz​(a,b,t,e) and Qz(a,b,t,e)Q_z(a,b,t,e)Qz​(a,b,t,e), called the pass and abort arrays, where z∈Zz\in Zz∈Z, a,b∈Ka,b\in Ka,b∈K, t∈Tt\in Tt∈T, and e∈Ee\in Ee∈E. Each array R∈{P,Q}R\in\{P,Q\}R∈{P,Q} satisfies

Rz(a,b,t,e)≥0,∑a,b,t,eRz(a,b,t,e)=1,∑eRz(a,b,t,e)=∑eRz′(a,b,t,e)R_z(a,b,t,e)\ge0,\qquad \sum_{a,b,t,e}R_z(a,b,t,e)=1,\qquad \sum_eR_z(a,b,t,e)=\sum_eR_{z'}(a,b,t,e)Rz​(a,b,t,e)≥0,a,b,t,e∑​Rz​(a,b,t,e)=1,e∑​Rz​(a,b,t,e)=e∑​Rz′​(a,b,t,e)

for every z,z′∈Zz,z'\in Zz,z′∈Z and a,b,ta,b,ta,b,t. There is no further relation required between the pass and abort arrays. The endpoint abort probabilities 000 and 111 are allowed. The types are not assumed nonempty: if ZZZ is empty, all array conditions are vacuous; if ZZZ is nonempty, normalization rules out an empty K,TK,TK,T, or EEE.

QAlgorithms.Papers.Independent.Intakethird100.P22.UnaryExtension

For finite input alphabets X,YX,YX,Y, finite output alphabets A,BA,BA,B, any real array p(x,y,a,b)p(x,y,a,b)p(x,y,a,b), and any natural number nnn, a unary extension is an array d(x,y,a,b,e)∈Rd(x,y,a,b,e)\in\mathbb Rd(x,y,a,b,e)∈R, indexed by e∈{0,…,n−1}e\in\{0,\ldots,n-1\}e∈{0,…,n−1}, satisfying all of

d(x,y,a,b,e)≥0,∑ed(x,y,a,b,e)=p(x,y,a,b),∑a,bd(x,y,a,b,e)=∑a,bd(x′,y′,a,b,e),∑ad(x,y,a,b,e)=∑ad(x′,y,a,b,e),∑bd(x,y,a,b,e)=∑bd(x,y′,a,b,e),\begin{aligned} &d(x,y,a,b,e)\ge0,\\ &\sum_e d(x,y,a,b,e)=p(x,y,a,b),\\ &\sum_{a,b}d(x,y,a,b,e)=\sum_{a,b}d(x',y',a,b,e),\\ &\sum_a d(x,y,a,b,e)=\sum_a d(x',y,a,b,e),\\ &\sum_b d(x,y,a,b,e)=\sum_b d(x,y',a,b,e), \end{aligned}​d(x,y,a,b,e)≥0,e∑​d(x,y,a,b,e)=p(x,y,a,b),a,b∑​d(x,y,a,b,e)=a,b∑​d(x′,y′,a,b,e),a∑​d(x,y,a,b,e)=a∑​d(x′,y,a,b,e),b∑​d(x,y,a,b,e)=b∑​d(x,y′,a,b,e),​

for every choice of the displayed indices. Thus the eee-marginal is independent of both inputs, the (b,e)(b,e)(b,e)-marginal is independent of xxx, and the (a,e)(a,e)(a,e)-marginal is independent of yyy. No normalization or validity assumption on ppp is imposed by this structure. The case n=0n=0n=0 is included: its marginal condition requires ppp to be identically zero, while the conditions quantified over eee are vacuous.

QAlgorithms.Papers.Independent.Intakethird100.P22.ValidDevice

For input types X,YX,YX,Y, finite output types A,BA,BA,B, and a function p:X×Y×A×B→Rp:X\times Y\times A\times B\to\mathbb Rp:X×Y×A×B→R, validity means that all entries are nonnegative, that ∑a∑bp(x,y,a,b)=1\sum_a\sum_b p(x,y,a,b)=1∑a​∑b​p(x,y,a,b)=1 for every x,yx,yx,y, and that

∑ap(x,y,a,b)=∑ap(z,y,a,b),∑bp(x,y,a,b)=∑bp(x,z,a,b)\sum_a p(x,y,a,b)=\sum_a p(z,y,a,b),\qquad \sum_b p(x,y,a,b)=\sum_b p(x,z,a,b)a∑​p(x,y,a,b)=a∑​p(z,y,a,b),b∑​p(x,y,a,b)=b∑​p(x,z,a,b)

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 KKK, arbitrary types T,E,ZT,E,ZT,E,Z, and an arbitrary real array p:Z×(K×K×T)×E→Rp:Z\times(K\times K\times T)\times E\to\mathbb Rp:Z×(K×K×T)×E→R, this defines the array on Z×(K×T)×EZ\times(K\times T)\times EZ×(K×T)×E given by

pA(z,(a,t),e)=∑b∈Kp(z,(a,b,t),e).p_A(z,(a,t),e)=\sum_{b\in K}p(z,(a,b,t),e).pA​(z,(a,t),e)=b∈K∑​p(z,(a,b,t),e).

No positivity or normalization is assumed. The type KKK may be empty, in which case the resulting array has no arguments (a,t)(a,t)(a,t).

QAlgorithms.Papers.Independent.Intakethird100.P22.aliceSupport

For finite alphabets X,A,BX,A,BX,A,B, an input alphabet YYY, any real array p(x,y,a,b)p(x,y,a,b)p(x,y,a,b), and a specified y∈Yy\in Yy∈Y, the defined natural number is

aliceSupport⁡(p,y)=max⁡x∈X∣{a∈A:∑b∈Bp(x,y,a,b)>0}∣.\operatorname{aliceSupport}(p,y) =\max_{x\in X}\left|\left\{a\in A:\sum_{b\in B}p(x,y,a,b)>0\right\}\right|.aliceSupport(p,y)=x∈Xmax​​{a∈A:b∈B∑​p(x,y,a,b)>0}​.

The comparison is strictly positive, so zero and negative marginal values are excluded. No nonnegativity, normalization, or no-signaling condition on ppp is assumed. The finite supremum is 000 when XXX is empty; empty output sums are also 000.

QAlgorithms.Papers.Independent.Intakethird100.P22.ampAtInput

For finite input and output alphabets X,Y,A,BX,Y,A,BX,Y,A,B, any real array p(x,y,a,b)p(x,y,a,b)p(x,y,a,b), and specified inputs x∈X,y∈Yx\in X,y\in Yx∈X,y∈Y, the defined real number is the infimum over all positive integers nnn and decompositions p=∑i<nwivip=\sum_{i<n}w_iv_ip=∑i<n​wi​vi​, where wi≥0w_i\ge0wi​≥0, ∑iwi=1\sum_iw_i=1∑i​wi​=1, and each viv_ivi​ is nonnegative, normalized at each input, and has both no-signaling marginals, of

inf⁡m>0K(i,j)≥0, ∑j<mK(i,j)=1[H(rAJ)+H(rBJ)−H(rJ)−H(r)],r(a,b,j)=∑i<nwi vi(x,y,a,b) K(i,j).\inf_{\substack{m>0\\K(i,j)\ge0,\ \sum_{j<m}K(i,j)=1}} \left[H(r_{AJ})+H(r_{BJ})-H(r_J)-H(r)\right], \qquad r(a,b,j)=\sum_{i<n}w_i\,v_i(x,y,a,b)\,K(i,j).m>0K(i,j)≥0, ∑j<m​K(i,j)=1​inf​[H(rAJ​)+H(rBJ​)−H(rJ​)−H(r)],r(a,b,j)=i<n∑​wi​vi​(x,y,a,b)K(i,j).

Thus the inner infimum permits every finite positive output size mmm and every stochastic map from the ensemble index iii to j<mj<mj<m. Marginals are obtained by summing omitted coordinates, and H(s)=−∑usulog⁡2suH(s)=-\sum_us_u\log_2s_uH(s)=−∑u​su​log2​su​. Ensemble weights may vanish; components need not be distinct or extreme. There is no validity hypothesis on ppp, and an empty outer set of candidate values has real infimum 000.

QAlgorithms.Papers.Independent.Intakethird100.P22.bobSupport

For finite alphabets Y,A,BY,A,BY,A,B, an input alphabet XXX, any real array p(x,y,a,b)p(x,y,a,b)p(x,y,a,b), and a specified x∈Xx\in Xx∈X, the defined natural number is

bobSupport⁡(p,x)=max⁡y∈Y∣{b∈B:∑a∈Ap(x,y,a,b)>0}∣.\operatorname{bobSupport}(p,x) =\max_{y\in Y}\left|\left\{b\in B:\sum_{a\in A}p(x,y,a,b)>0\right\}\right|.bobSupport(p,x)=y∈Ymax​​{b∈B:a∈A∑​p(x,y,a,b)>0}​.

The comparison is strictly positive, so zero and negative marginal values are excluded. No nonnegativity, normalization, or no-signaling condition on ppp is assumed. The finite supremum is 000 when YYY is empty; empty output sums are also 000.

QAlgorithms.Papers.Independent.Intakethird100.P22.cdDistance

For finite types C,E,ZC,E,ZC,E,Z and arbitrary real arrays p,q:Z×C×E→Rp,q:Z\times C\times E\to\mathbb Rp,q:Z×C×E→R, this defines

d(p,q)=sup⁡m,u,v12∑j=0m−1∣∑c,z,eu(c,z)p(z,c,e)v(c,z,e,j)−∑c,z,eu(c,z)q(z,c,e)v(c,z,e,j)∣,d(p,q)= \sup_{m,u,v}\frac12\sum_{j=0}^{m-1} \left| \sum_{c,z,e}u(c,z)p(z,c,e)v(c,z,e,j) - \sum_{c,z,e}u(c,z)q(z,c,e)v(c,z,e,j) \right|,d(p,q)=m,u,vsup​21​j=0∑m−1​​c,z,e∑​u(c,z)p(z,c,e)v(c,z,e,j)−c,z,e∑​u(c,z)q(z,c,e)v(c,z,e,j)​,

where mmm ranges over positive natural numbers, u(c,z)≥0u(c,z)\ge0u(c,z)≥0 with ∑zu(c,z)=1\sum_z u(c,z)=1∑z​u(c,z)=1 for every ccc, and v(c,z,e,j)≥0v(c,z,e,j)\ge0v(c,z,e,j)≥0 with ∑jv(c,z,e,j)=1\sum_jv(c,z,e,j)=1∑j​v(c,z,e,j)=1 for every c,z,ec,z,ec,z,e. Neither array is required to be nonnegative or normalized. Empty index types are allowed; in particular, if CCC is nonempty and ZZZ 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 K,T,E,ZK,T,E,ZK,T,E,Z be finite types and let rrr consist of α∈[0,1]\alpha\in[0,1]α∈[0,1] and pass and abort arrays P,QP,QP,Q, each nonnegative and normalized over a,b,t,ea,b,t,ea,b,t,e for every zzz, with ∑eRz(a,b,t,e)\sum_eR_z(a,b,t,e)∑e​Rz​(a,b,t,e) independent of zzz. Set

PzA(a,t,e)=∑bPz(a,b,t,e),Iz(a,b,t,e)={∣K∣−1∑u,v∈KPz(u,v,t,e),a=b,0,a≠b,IzA(a,t,e)=∑bIz(a,b,t,e).P^A_z(a,t,e)=\sum_bP_z(a,b,t,e),\qquad I_z(a,b,t,e)= \begin{cases} |K|^{-1}\displaystyle\sum_{u,v\in K}P_z(u,v,t,e),&a=b,\\ 0,&a\ne b, \end{cases} \qquad I^A_z(a,t,e)=\sum_bI_z(a,b,t,e).PzA​(a,t,e)=b∑​Pz​(a,b,t,e),Iz​(a,b,t,e)=⎩⎨⎧​∣K∣−1u,v∈K∑​Pz​(u,v,t,e),0,​a=b,a=b,​IzA​(a,t,e)=b∑​Iz​(a,b,t,e).

For arrays R,SR,SR,S indexed by z∈Z,c∈C,e∈Ez\in Z,c\in C,e\in Ez∈Z,c∈C,e∈E, define

d(R,S)=sup⁡m≥1, u,v12∑j=0m−1∣∑c,z,eu(c,z)(Rz(c,e)−Sz(c,e))v(c,z,e,j)∣,d(R,S)= \sup_{\substack{m\ge1,\ u,v}} \frac12\sum_{j=0}^{m-1} \left|\sum_{c,z,e}u(c,z)\bigl(R_z(c,e)-S_z(c,e)\bigr)v(c,z,e,j)\right|,d(R,S)=m≥1, u,v​sup​21​j=0∑m−1​​c,z,e∑​u(c,z)(Rz​(c,e)−Sz​(c,e))v(c,z,e,j)​,

where u(c,z)≥0u(c,z)\ge0u(c,z)≥0, ∑zu(c,z)=1\sum_z u(c,z)=1∑z​u(c,z)=1 for every ccc, and v(c,z,e,j)≥0v(c,z,e,j)\ge0v(c,z,e,j)≥0, ∑jv(c,z,e,j)=1\sum_jv(c,z,e,j)=1∑j​v(c,z,e,j)=1 for every c,z,ec,z,ec,z,e. The secrecy error is Sec⁡(r)=(1−α)d(PA,IA)\operatorname{Sec}(r)=(1-\alpha)d(P^A,I^A)Sec(r)=(1−α)d(PA,IA), using C=K×TC=K\times TC=K×T. 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 p:{0,1}4→Rp:\{0,1\}^{4}\to\mathbb Rp:{0,1}4→R, with 000 and 111 denoting false and true, respectively, this defines

chshLoss⁡(p)=14∑x,y,a,b∈{0,1}{0,a⊕b=xy,p(x,y,a,b),a⊕b≠xy,\operatorname{chshLoss}(p)=\frac14\sum_{x,y,a,b\in\{0,1\}} \begin{cases} 0,&a\oplus b=xy,\\ p(x,y,a,b),&a\oplus b\ne xy, \end{cases}chshLoss(p)=41​x,y,a,b∈{0,1}∑​{0,p(x,y,a,b),​a⊕b=xy,a⊕b=xy,​

where ⊕\oplus⊕ is Boolean exclusive OR and xyxyxy is Boolean AND. No nonnegativity, normalization, or no-signaling assumption is imposed on ppp; the definition applies to every real-valued function of these four Boolean arguments.

QAlgorithms.Papers.Independent.Intakethird100.P22.correctnessError

Let K,T,EK,T,EK,T,E be finite types, let ZZZ be any type, and let rrr consist of an abort probability α∈[0,1]\alpha\in[0,1]α∈[0,1] and pass and abort arrays P,QP,QP,Q. Both arrays are nonnegative, sum to 111 over a,b∈K,t∈T,e∈Ea,b\in K,t\in T,e\in Ea,b∈K,t∈T,e∈E for each z∈Zz\in Zz∈Z, and have ∑eRz(a,b,t,e)\sum_eR_z(a,b,t,e)∑e​Rz​(a,b,t,e) independent of zzz. For any supplied z∈Zz\in Zz∈Z, the correctness error is the real number

Cor⁡(r,z)=(1−α)∑a,b∈Ka≠b∑t∈T∑e∈EPz(a,b,t,e).\operatorname{Cor}(r,z) =(1-\alpha)\sum_{\substack{a,b\in K\\a\ne b}}\sum_{t\in T}\sum_{e\in E}P_z(a,b,t,e).Cor(r,z)=(1−α)a,b∈Ka=b​∑​t∈T∑​e∈E∑​Pz​(a,b,t,e).

Thus it uses only the pass array and the abort probability. In particular, it is zero when α=1\alpha=1α=1. Although no nonemptiness assumptions are explicitly imposed on K,T,EK,T,EK,T,E, the existence of rrr and the supplied zzz forces these types to be nonempty.

QAlgorithms.Papers.Independent.Intakethird100.P22.deterministicBox

For any four Boolean parameters α,β,γ,σ\alpha,\beta,\gamma,\sigmaα,β,γ,σ, the defined real array on Boolean inputs x,yx,yx,y and Boolean outputs a,ba,ba,b is

p(x,y,a,b)={1,a=(α∧x)⊕β and b=(γ∧y)⊕σ,0,otherwise,p(x,y,a,b)= \begin{cases} 1,&a=(\alpha\land x)\oplus\beta \ \text{and}\ b=(\gamma\land y)\oplus\sigma,\\ 0,&\text{otherwise}, \end{cases}p(x,y,a,b)={1,0,​a=(α∧x)⊕β and b=(γ∧y)⊕σ,otherwise,​

where ∧\land∧ is Boolean conjunction and ⊕\oplus⊕ 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 A,B,EA,B,EA,B,E and any real function p:A×B×E→Rp:A\times B\times E\to\mathbb Rp:A×B×E→R, define H(q)=−∑iqilog⁡2qiH(q)=-\sum_iq_i\log_2q_iH(q)=−∑i​qi​log2​qi​ for a real function on a finite index type. The declared quantity is

CMI⁡(p)=H ⁣((a,e)↦∑bp(a,b,e))+H ⁣((b,e)↦∑ap(a,b,e))−H ⁣(e↦∑a,bp(a,b,e))−H(p).\begin{aligned} \operatorname{CMI}(p) ={}&H\!\left((a,e)\mapsto\sum_b p(a,b,e)\right) +H\!\left((b,e)\mapsto\sum_a p(a,b,e)\right)\\ &-H\!\left(e\mapsto\sum_{a,b}p(a,b,e)\right)-H(p). \end{aligned}CMI(p)=​H((a,e)↦b∑​p(a,b,e))+H((b,e)↦a∑​p(a,b,e))−H​e↦a,b∑​p(a,b,e)​−H(p).​

No nonnegativity or normalization assumption is imposed on ppp, 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 X,YX,YX,Y, finite output alphabets A,BA,BA,B, and any real array p(x,y,a,b)p(x,y,a,b)p(x,y,a,b), the defined real number is

max⁡x∈X, y∈Y inf⁡n>0, wi≥0, ∑iwi=1vi valid, ∑iwivi=p∑i=0n−1wi[H((vixy)A)+H((vixy)B)−H(vixy)],vixy(a,b)=vi(x,y,a,b).\max_{x\in X,\ y\in Y}\ \inf_{\substack{n>0,\ w_i\ge0,\ \sum_iw_i=1\\ v_i\text{ valid},\ \sum_iw_iv_i=p}} \sum_{i=0}^{n-1}w_i \left[H((v_i^{xy})_A)+H((v_i^{xy})_B)-H(v_i^{xy})\right], \qquad v_i^{xy}(a,b)=v_i(x,y,a,b).x∈X, y∈Ymax​ n>0, wi​≥0, ∑i​wi​=1vi​ valid, ∑i​wi​vi​=p​inf​i=0∑n−1​wi​[H((vixy​)A​)+H((vixy​)B​)−H(vixy​)],vixy​(a,b)=vi​(x,y,a,b).

A valid box viv_ivi​ has nonnegative entries, satisfies ∑a,bvi(x,y,a,b)=1\sum_{a,b}v_i(x,y,a,b)=1∑a,b​vi​(x,y,a,b)=1 at every input, has ∑avi(x,y,a,b)\sum_a v_i(x,y,a,b)∑a​vi​(x,y,a,b) independent of xxx, and has ∑bvi(x,y,a,b)\sum_b v_i(x,y,a,b)∑b​vi​(x,y,a,b) independent of yyy. The reconstruction equality is pointwise at every input and output. Here H(r)=−∑jrjlog⁡2rjH(r)=-\sum_jr_j\log_2r_jH(r)=−∑j​rj​log2​rj​; weights may vanish, and the component boxes need not be vertices or distinct. No validity hypothesis is imposed on ppp; if no such finite decomposition exists, the real infimum in the definition is 000.

QAlgorithms.Papers.Independent.Intakethird100.P22.extensionForm

For finite nonempty input alphabets X,YX,YX,Y, finite output alphabets A,BA,BA,B, and any real array p(x,y,a,b)p(x,y,a,b)p(x,y,a,b), the defined real number is

max⁡x∈X, y∈Y inf⁡n∈N, n>0d as below[H((dxy)AE)+H((dxy)BE)−H((dxy)E)−H(dxy)],dxy(a,b,e)=d(x,y,a,b,e).\max_{x\in X,\ y\in Y}\ \inf_{\substack{n\in\mathbb N,\ n>0\\d\text{ as below}}} \left[H((d^{xy})_{AE})+H((d^{xy})_{BE})-H((d^{xy})_E)-H(d^{xy})\right], \qquad d^{xy}(a,b,e)=d(x,y,a,b,e).x∈X, y∈Ymax​ n∈N, n>0d as below​inf​[H((dxy)AE​)+H((dxy)BE​)−H((dxy)E​)−H(dxy)],dxy(a,b,e)=d(x,y,a,b,e).

Here e<ne<ne<n; ddd is nonnegative; ∑ed(x,y,a,b,e)=p(x,y,a,b)\sum_e d(x,y,a,b,e)=p(x,y,a,b)∑e​d(x,y,a,b,e)=p(x,y,a,b); its (b,e)(b,e)(b,e)-marginal is independent of xxx, its (a,e)(a,e)(a,e)-marginal is independent of yyy, and its eee-marginal is independent of both inputs. Subscripts denote summation over omitted coordinates, and H(r)=−∑irilog⁡2riH(r)=-\sum_i r_i\log_2r_iH(r)=−∑i​ri​log2​ri​. No normalization or no-signaling hypothesis on ppp is required. Only positive extension sizes are considered; if there is no such extension, the real infimum used here is 000. 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 III and function f:I→Rf:I\to\mathbb Rf:I→R, this defines

finiteMax⁡(f)=sup⁡{f(i):i∈I},\operatorname{finiteMax}(f)=\sup\{f(i):i\in I\},finiteMax(f)=sup{f(i):i∈I},

the largest value attained by fff.

QAlgorithms.Papers.Independent.Intakethird100.P22.hrwBox

For arbitrary real parameters δ,η\delta,\etaδ,η, this definition assigns to Boolean inputs x,yx,yx,y and Boolean outputs a,ba,ba,b the real value

pδ,η(x,y,a,b)={(1−δ)/2,x=y=false and a=b,δ/2,x=y=false and a≠b,3/8−η/2,(x,y)≠(false,false) and a⊕b=x∧y,1/8+η/2,(x,y)≠(false,false) and a⊕b≠x∧y.p_{\delta,\eta}(x,y,a,b)= \begin{cases} (1-\delta)/2,&x=y=\mathrm{false}\ \text{and }a=b,\\ \delta/2,&x=y=\mathrm{false}\ \text{and }a\ne b,\\ 3/8-\eta/2,&(x,y)\ne(\mathrm{false},\mathrm{false}) \ \text{and }a\mathbin{\oplus}b=x\mathbin{\land}y,\\ 1/8+\eta/2,&(x,y)\ne(\mathrm{false},\mathrm{false}) \ \text{and }a\mathbin{\oplus}b\ne x\mathbin{\land}y. \end{cases}pδ,η​(x,y,a,b)=⎩⎨⎧​(1−δ)/2,δ/2,3/8−η/2,1/8+η/2,​x=y=false and a=b,x=y=false and a=b,(x,y)=(false,false) and a⊕b=x∧y,(x,y)=(false,false) and a⊕b=x∧y.​

Here ⊕\oplus⊕ is exclusive-or and ∧\land∧ is Boolean conjunction. No restrictions on δ,η\delta,\etaδ,η, or assertion of nonnegativity, normalization, or no signaling, accompany the definition.

QAlgorithms.Papers.Independent.Intakethird100.P22.idealCDKey

For a finite type KKK, arbitrary types T,E,ZT,E,ZT,E,Z, and an arbitrary real array p:Z×(K×K×T)×E→Rp:Z\times(K\times K\times T)\times E\to\mathbb Rp:Z×(K×K×T)×E→R, this defines an array on the same types by

pideal(z,(a,b,t),e)={∑a′∈K∑b′∈Kp(z,(a′,b′,t),e)∣K∣,a=b,0,a≠b.p_{\mathrm{ideal}}(z,(a,b,t),e)= \begin{cases} \displaystyle\frac{\sum_{a'\in K}\sum_{b'\in K}p(z,(a',b',t),e)}{|K|}, & a=b,\\[6pt] 0,&a\ne b. \end{cases}pideal​(z,(a,b,t),e)=⎩⎨⎧​∣K∣∑a′∈K​∑b′∈K​p(z,(a′,b′,t),e)​,0,​a=b,a=b.​

No positivity or normalization of ppp is assumed. The type KKK may be empty, in which case the resulting array has no arguments (a,b,t)(a,b,t)(a,b,t); real division by zero is defined as zero.

QAlgorithms.Papers.Independent.Intakethird100.P22.intermediateKey

For a finite type KKK, arbitrary types T,E,ZT,E,ZT,E,Z, and an arbitrary real array p:Z×(K×K×T)×E→Rp:Z\times(K\times K\times T)\times E\to\mathbb Rp:Z×(K×K×T)×E→R, this defines

pint(z,(a,b,t),e)={∑b′∈Kp(z,(a,b′,t),e),a=b,0,a≠b.p_{\mathrm{int}}(z,(a,b,t),e)= \begin{cases} \displaystyle\sum_{b'\in K}p(z,(a,b',t),e),&a=b,\\[4pt] 0,&a\ne b. \end{cases}pint​(z,(a,b,t),e)=⎩⎨⎧​b′∈K∑​p(z,(a,b′,t),e),0,​a=b,a=b.​

No positivity or normalization is required, and KKK may be empty, in which case the resulting array has no arguments (a,b,t)(a,b,t)(a,b,t).

QAlgorithms.Papers.Independent.Intakethird100.P22.intrinsicInformation

For finite types A,B,EA,B,EA,B,E and any function p:A×B×E→Rp:A\times B\times E\to\mathbb Rp:A×B×E→R, define its intrinsic information as follows. For every positive integer kkk, consider every kernel K:E×{0,…,k−1}→RK:E\times\{0,\ldots,k-1\}\to\mathbb RK:E×{0,…,k−1}→R satisfying K(e,j)≥0K(e,j)\ge0K(e,j)≥0 and ∑jK(e,j)=1\sum_jK(e,j)=1∑j​K(e,j)=1 for each eee, and put qK(a,b,j)=∑ep(a,b,e)K(e,j)q_K(a,b,j)=\sum_e p(a,b,e)K(e,j)qK​(a,b,j)=∑e​p(a,b,e)K(e,j). The intrinsic information is

inf⁡k>0, K[H((qK)AJ)+H((qK)BJ)−H((qK)J)−H(qK)],\inf_{k>0,\ K}\bigl[H((q_K)_{AJ})+H((q_K)_{BJ})-H((q_K)_J)-H(q_K)\bigr],k>0, Kinf​[H((qK​)AJ​)+H((qK​)BJ​)−H((qK​)J​)−H(qK​)],

where the subscripts denote marginals obtained by summation and H(q)=−∑uq(u)log⁡2q(u)H(q)=-\sum_u q(u)\log_2 q(u)H(q)=−∑u​q(u)log2​q(u). 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 ppp, and the finite types may be empty. The infimum is taken in R\mathbb RR, 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 ppp on finite input and output sets and specified inputs x∈X,y∈Yx\in X,y\in Yx∈X,y∈Y, this definition is

F(p)log⁡2 ⁣(min⁡{max⁡x′∈X#{a∈A:∑bp(x′,y,a,b)>0},max⁡y′∈Y#{b∈B:∑ap(x,y′,a,b)>0}}).F(p)\log_2\!\left( \min\left\{ \max_{x'\in X}\#\left\{a\in A:\sum_bp(x',y,a,b)>0\right\}, \max_{y'\in Y}\#\left\{b\in B:\sum_ap(x,y',a,b)>0\right\} \right\}\right).F(p)log2​(min{x′∈Xmax​#{a∈A:b∑​p(x′,y,a,b)>0},y′∈Ymax​#{b∈B:a∑​p(x,y′,a,b)>0}}).

Here F(p)F(p)F(p) is the real infimum of t∈[0,1]t\in[0,1]t∈[0,1] such that p=tv+(1−t)lp=tv+(1-t)lp=tv+(1−t)l, with vvv a nonlocal extreme valid box and lll a local box. Valid means nonnegative normalized output laws and no signaling in either direction; extreme means that a convex decomposition with coefficient in (0,1)(0,1)(0,1) into valid boxes forces both components to equal the box. Local means that the box has nonnegative normalized output laws and admits a representation ∑λμ(λ)αλ(a∣x)βλ(b∣y)\sum_\lambda\mu(\lambda)\alpha_\lambda(a\mid x)\beta_\lambda(b\mid y)∑λ​μ(λ)αλ​(a∣x)βλ​(b∣y), with a probability mass function μ\muμ on an arbitrary latent type and normalized nonnegative response laws for every latent value and input. Both witness boxes remain required at t=0,1t=0,1t=0,1, and F(p)=0F(p)=0F(p)=0 if its defining set is empty. The support counts use strictly positive marginal sums, with no validity assumption on ppp. The logarithm is the total real base-222 logarithm, so a zero minimum gives logarithm 000.

QAlgorithms.Papers.Independent.Intakethird100.P22.nonlocalityFraction

For a real-valued box p(x,y,a,b)p(x,y,a,b)p(x,y,a,b), this definition is the real infimum of all t∈[0,1]t\in[0,1]t∈[0,1] for which there exist boxes v,lv,lv,l satisfying p=tv+(1−t)lp=tv+(1-t)lp=tv+(1−t)l, where vvv is a valid extreme box without a local model and lll 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 v=sq+(1−s)rv=sq+(1-s)rv=sq+(1−s)r for valid boxes q,rq,rq,r and 0<s<10<s<10<s<1, both qqq and rrr equal vvv. A box qqq has a local model precisely when it has nonnegative normalized output laws and there exist a type Λ\LambdaΛ, a probability mass function μ\muμ on Λ\LambdaΛ, and nonnegative normalized response laws αλ(a∣x)\alpha_\lambda(a\mid x)αλ​(a∣x), βλ(b∣y)\beta_\lambda(b\mid y)βλ​(b∣y), for every λ,x,y\lambda,x,yλ,x,y, such that

q(x,y,a,b)=∑λ∈Λμ(λ)αλ(a∣x)βλ(b∣y).q(x,y,a,b)=\sum_{\lambda\in\Lambda} \mu(\lambda)\alpha_\lambda(a\mid x)\beta_\lambda(b\mid y).q(x,y,a,b)=λ∈Λ∑​μ(λ)αλ​(a∣x)βλ​(b∣y).

The series is the total infinite sum used in the definition. The endpoints t=0,1t=0,1t=0,1 are allowed, but both witness boxes and the nonlocal extreme-box condition are still required there. No validity or representability assumption on ppp is imposed; if there are no admissible ttt, the real infimum is 000.

QAlgorithms.Papers.Independent.Intakethird100.P22.prVariant

For any Boolean parameters r,s,tr,s,tr,s,t, the defined real array on Boolean inputs x,yx,yx,y and Boolean outputs a,ba,ba,b is

p(x,y,a,b)={12,a⊕b=(x∧y)⊕(r∧x)⊕(s∧y)⊕t,0,otherwise,p(x,y,a,b)= \begin{cases} \frac12,&a\oplus b=(x\land y)\oplus(r\land x)\oplus(s\land y)\oplus t,\\ 0,&\text{otherwise}, \end{cases}p(x,y,a,b)={21​,0,​a⊕b=(x∧y)⊕(r∧x)⊕(s∧y)⊕t,otherwise,​

where ∧\land∧ is Boolean conjunction and ⊕\oplus⊕ is exclusive-or. The definition includes every Boolean choice of parameters, inputs and outputs.

QAlgorithms.Papers.Independent.Intakethird100.P22.securityError

Let K,T,E,ZK,T,E,ZK,T,E,Z be finite types and let rrr consist of an abort probability α∈[0,1]\alpha\in[0,1]α∈[0,1] and pass and abort arrays P,QP,QP,Q, each nonnegative and normalized over a,b∈K,t∈T,e∈Ea,b\in K,t\in T,e\in Ea,b∈K,t∈T,e∈E for every zzz, with its marginal ∑eRz(a,b,t,e)\sum_eR_z(a,b,t,e)∑e​Rz​(a,b,t,e) independent of zzz. Define the ideal pass array by

Iz(a,b,t,e)={∣K∣−1∑u,v∈KPz(u,v,t,e),a=b,0,a≠b.I_z(a,b,t,e)= \begin{cases} |K|^{-1}\displaystyle\sum_{u,v\in K}P_z(u,v,t,e),&a=b,\\ 0,&a\ne b. \end{cases}Iz​(a,b,t,e)=⎩⎨⎧​∣K∣−1u,v∈K∑​Pz​(u,v,t,e),0,​a=b,a=b.​

For arrays R,SR,SR,S on Z×C×EZ\times C\times EZ×C×E, let

d(R,S)=sup⁡m≥1, u,v12∑j=0m−1∣∑c,z,eu(c,z)(Rz(c,e)−Sz(c,e))v(c,z,e,j)∣,d(R,S)= \sup_{\substack{m\ge1,\ u,v}} \frac12\sum_{j=0}^{m-1} \left|\sum_{c,z,e}u(c,z)\bigl(R_z(c,e)-S_z(c,e)\bigr)v(c,z,e,j)\right|,d(R,S)=m≥1, u,v​sup​21​j=0∑m−1​​c,z,e∑​u(c,z)(Rz​(c,e)−Sz​(c,e))v(c,z,e,j)​,

where u(c,⋅)u(c,\cdot)u(c,⋅) is a nonnegative real function summing to 111 on ZZZ for each ccc, and v(c,z,e,⋅)v(c,z,e,\cdot)v(c,z,e,⋅) is a nonnegative real function summing to 111 on {0,…,m−1}\{0,\ldots,m-1\}{0,…,m−1} for each c,z,ec,z,ec,z,e. The security error is Err⁡(r)=(1−α)d(P,I)\operatorname{Err}(r)=(1-\alpha)d(P,I)Err(r)=(1−α)d(P,I), with C=K×K×TC=K\times K\times TC=K×K×T. 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 X,YX,YX,Y, finite output sets A,BA,BA,B, and a box p:X×Y×A×B→Rp:X\times Y\times A\times B\to\mathbb Rp:X×Y×A×B→R that is valid, this definition constructs an ensemble indexed by the singleton set {0}\{0\}{0}: its sole weight is 111, and its sole member is ppp. Validity means that p(x,y,a,b)≥0p(x,y,a,b)\ge0p(x,y,a,b)≥0, that ∑a∑bp(x,y,a,b)=1\sum_a\sum_bp(x,y,a,b)=1∑a​∑b​p(x,y,a,b)=1 for every x,yx,yx,y, that ∑ap(x,y,a,b)\sum_ap(x,y,a,b)∑a​p(x,y,a,b) is independent of xxx, and that ∑bp(x,y,a,b)\sum_bp(x,y,a,b)∑b​p(x,y,a,b) is independent of yyy. Thus the weight is a probability law, the member is valid, and the weighted reconstruction is ppp 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 X,YX,YX,Y, finite output types A,BA,BA,B, a box ppp, and a complete extension ccc with positive counts u,vu,vu,v, write its decompositions as p=∑i<vwzipzip=\sum_{i<v}w_{zi}p_{zi}p=∑i<v​wzi​pzi​: 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 z<uz<uz<u. For any real-valued functional mmm on real arrays indexed by A×B×({0,…,u−1}×{0,…,v−1})A\times B\times(\{0,\ldots,u-1\}\times\{0,\ldots,v-1\})A×B×({0,…,u−1}×{0,…,v−1}), the defined value is

sup⁡(x,y)∈X×Yinf⁡{m((a,b,z,i)↦d(z)wzipzi(x,y,a,b)):d(z)≥0 for all z, ∑z<ud(z)=1}.\sup_{(x,y)\in X\times Y} \inf\left\{ m\bigl((a,b,z,i)\mapsto d(z)w_{zi}p_{zi}(x,y,a,b)\bigr): d(z)\ge0\ \text{for all }z,\ \sum_{z<u}d(z)=1 \right\}.(x,y)∈X×Ysup​inf{m((a,b,z,i)↦d(z)wzi​pzi​(x,y,a,b)):d(z)≥0 for all z, z<u∑​d(z)=1}.

No continuity, boundedness or other condition is imposed on mmm, 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 000, rather than an extended-real value of −∞-\infty−∞.

QAlgorithms.Papers.Independent.Intakethird100.P22.squashedCMI

For finite nonempty input alphabets X,YX,YX,Y and output alphabets A,BA,BA,B, let p:X×Y×A×B→Rp:X\times Y\times A\times B\to\mathbb Rp:X×Y×A×B→R, and let ccc be a complete extension of ppp. Such an extension consists of positive integers m,ℓm,\ellm,ℓ, probability weights wzew_{ze}wze​ for each z<mz<mz<m, and boxes vev_eve​ with nonnegative entries, unit total mass at each input, and both no-signaling marginal conditions, such that ∑ewzeve=p\sum_e w_{ze}v_e=p∑e​wze​ve​=p. For each zzz, 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 ppp. Every decomposition with these properties has exactly one index zzz giving the same total weight to every box. For a probability vector d=(dz)z<md=(d_z)_{z<m}d=(dz​)z<m​, put rdxy(a,b,e)=∑zdzwzeve(x,y,a,b)r_d^{xy}(a,b,e)=\sum_z d_z w_{ze}v_e(x,y,a,b)rdxy​(a,b,e)=∑z​dz​wze​ve​(x,y,a,b). Then the defined real number is

squashedCMI⁡(c)=max⁡x∈X, y∈Y inf⁡dz≥0∑zdz=1[H((rdxy)AE)+H((rdxy)BE)−H((rdxy)E)−H(rdxy)],\operatorname{squashedCMI}(c) =\max_{x\in X,\ y\in Y}\ \inf_{\substack{d_z\ge0\\\sum_zd_z=1}} \left[H((r_d^{xy})_{AE})+H((r_d^{xy})_{BE})-H((r_d^{xy})_E)-H(r_d^{xy})\right],squashedCMI(c)=x∈X, y∈Ymax​ dz​≥0∑z​dz​=1​inf​[H((rdxy​)AE​)+H((rdxy​)BE​)−H((rdxy​)E​)−H(rdxy​)],

where subscripts mean summing out the omitted coordinates and H(r)=−∑irilog⁡2riH(r)=-\sum_i r_i\log_2 r_iH(r)=−∑i​ri​log2​ri​, with zero terms contributing zero. Zero weights are allowed in both www and ddd.

QAlgorithms.Papers.Independent.Intakethird100.P22.squashedLowerHull

For a real-valued box p(x,y,a,b)p(x,y,a,b)p(x,y,a,b) on finite nonempty sets X,Y,A,BX,Y,A,BX,Y,A,B, this definition gives the real infimum

inf⁡n≥1, p=∑i<nwipici a complete extension of pi∑i<nwimin⁡{SMI(ci),SCMI(ci)}.\inf_{\substack{n\ge1,\ p=\sum_{i<n}w_ip_i\\ c_i\text{ a complete extension of }p_i}} \sum_{i<n}w_i\min\{S_{\mathrm{MI}}(c_i),S_{\mathrm{CMI}}(c_i)\}.n≥1, p=∑i<n​wi​pi​ci​ a complete extension of pi​​inf​i<n∑​wi​min{SMI​(ci​),SCMI​(ci​)}.

The decomposition uses nonnegative weights summing to 111 and valid member boxes: each member has normalized nonnegative output laws and marginals independent of the other party’s input. A complete extension cic_ici​ consists of positive finite input and label counts, and a minimal ensemble of pip_ipi​ 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 pip_ipi​ has support properly contained in that positive-weight support; an extreme box admits no convex decomposition with coefficient in (0,1)(0,1)(0,1) except into itself. If a complete extension ccc has ensembles (wze,qze)(w_{ze},q_{ze})(wze​,qze​), define

rx,y,d(a,b,e)=∑zdzwzeqze(x,y,a,b),r^{x,y,d}(a,b,e)=\sum_zd_zw_{ze}q_{ze}(x,y,a,b),rx,y,d(a,b,e)=z∑​dz​wze​qze​(x,y,a,b),

where dz≥0d_z\ge0dz​≥0 and ∑zdz=1\sum_zd_z=1∑z​dz​=1. Then SMI(c)=max⁡x,yinf⁡dIrABx,y,d(A:B)S_{\mathrm{MI}}(c)=\max_{x,y}\inf_d I_{r^{x,y,d}_{AB}}(A:B)SMI​(c)=maxx,y​infd​IrABx,y,d​​(A:B) and SCMI(c)=max⁡x,yinf⁡dIrx,y,d(A:B∣E)S_{\mathrm{CMI}}(c)=\max_{x,y}\inf_d I_{r^{x,y,d}}(A:B\mid E)SCMI​(c)=maxx,y​infd​Irx,y,d​(A:B∣E), using H(q)=−∑uq(u)log⁡2q(u)H(q)=-\sum_uq(u)\log_2q(u)H(q)=−∑u​q(u)log2​q(u), I(A:B)=H(A)+H(B)−H(AB)I(A:B)=H(A)+H(B)-H(AB)I(A:B)=H(A)+H(B)−H(AB), and I(A:B∣E)=H(AE)+H(BE)−H(E)−H(ABE)I(A:B\mid E)=H(AE)+H(BE)-H(E)-H(ABE)I(A:B∣E)=H(AE)+H(BE)−H(E)−H(ABE). Complete extensions are required even for zero-weight members of the outer ensemble. No validity assumption on ppp, or existence of an admissible decomposition, is part of this definition; an empty defining set has real infimum 000.

QAlgorithms.Papers.Independent.Intakethird100.P22.squashedMI

For finite types X,Y,A,BX,Y,A,BX,Y,A,B, with X×YX\times YX×Y nonempty, a function ppp, and a complete extension ccc of ppp, squashed mutual information is

max⁡(x,y)∈X×Yinf⁡dz≥0∑z<udz=1[H(sA)+H(sB)−H(s)],s(a,b)=∑e<v∑z<udzwz,epz,e(x,y,a,b),\max_{(x,y)\in X\times Y} \inf_{\substack{d_z\ge0\\\sum_{z<u}d_z=1}} \bigl[H(s_A)+H(s_B)-H(s)\bigr], \qquad s(a,b)=\sum_{e<v}\sum_{z<u}d_z w_{z,e}p_{z,e}(x,y,a,b),(x,y)∈X×Ymax​dz​≥0∑z<u​dz​=1​inf​[H(sA​)+H(sB​)−H(s)],s(a,b)=e<v∑​z<u∑​dz​wz,e​pz,e​(x,y,a,b),

where sA(a)=∑bs(a,b)s_A(a)=\sum_bs(a,b)sA​(a)=∑b​s(a,b), sB(b)=∑as(a,b)s_B(b)=\sum_as(a,b)sB​(b)=∑a​s(a,b), and H(s)=−∑isilog⁡2siH(s)=-\sum_i s_i\log_2s_iH(s)=−∑i​si​log2​si​, with the total real logarithm taking value zero at zero. The complete extension supplies positive integers u,vu,vu,v, probability weight rows reconstructing ppp, and valid member functions that are independent of the row at each fixed position eee; 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 ppp 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 ddd is asserted.

QAlgorithms.Papers.Independent.Intakethird100.P22.squashedNonlocality

For finite types X,Y,A,BX,Y,A,BX,Y,A,B, with X×YX\times YX×Y nonempty, a function ppp, and a complete extension ccc of ppp, squashed nonlocality is

max⁡(x,y)∈X×Yinf⁡dz≥0∑zdz=1[inf⁡k>0, K(e,j)≥0∑j<kK(e,j)=1(H(rAJ)+H(rBJ)−H(rJ)−H(r))],\max_{(x,y)\in X\times Y} \inf_{\substack{d_z\ge0\\\sum_zd_z=1}} \left[ \inf_{\substack{k>0,\ K(e,j)\ge0\\\sum_{j<k}K(e,j)=1}} \bigl(H(r_{AJ})+H(r_{BJ})-H(r_J)-H(r)\bigr) \right],(x,y)∈X×Ymax​dz​≥0∑z​dz​=1​inf​​k>0, K(e,j)≥0∑j<k​K(e,j)=1​inf​(H(rAJ​)+H(rBJ​)−H(rJ​)−H(r))​,

where q(a,b,e)=∑z<udzwz,epz,e(x,y,a,b)q(a,b,e)=\sum_{z<u}d_z w_{z,e}p_{z,e}(x,y,a,b)q(a,b,e)=∑z<u​dz​wz,e​pz,e​(x,y,a,b), r(a,b,j)=∑e<vq(a,b,e)K(e,j)r(a,b,j)=\sum_{e<v}q(a,b,e)K(e,j)r(a,b,j)=∑e<v​q(a,b,e)K(e,j), and subscripts denote marginals. Here H(s)=−∑isilog⁡2siH(s)=-\sum_i s_i\log_2s_iH(s)=−∑i​si​log2​si​, with the total real logarithm taking value zero at zero. The complete extension has u,v>0u,v>0u,v>0, valid nonnegative normalized members satisfying both no-signaling marginal identities, probability weight rows reconstructing ppp, and row-independent member labels at each position eee. Each row has only vertices in its positive-weight support and admits no ensemble of ppp 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 C,E,ZC,E,ZC,E,Z, any real number rrr, and any two real arrays pabort,ppass:Z×C×E→Rp_{\mathrm{abort}},p_{\mathrm{pass}}:Z\times C\times E\to\mathbb Rpabort​,ppass​:Z×C×E→R, this defines

pcombined(z,c,e)=r pabort(z,c,e)+(1−r) ppass(z,c,e).p_{\mathrm{combined}}(z,c,e) =r\,p_{\mathrm{abort}}(z,c,e)+(1-r)\,p_{\mathrm{pass}}(z,c,e).pcombined​(z,c,e)=rpabort​(z,c,e)+(1−r)ppass​(z,c,e).

There is no restriction 0≤r≤10\le r\le10≤r≤1, and neither array is required to be nonnegative, normalized, or to satisfy a marginal condition.

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