Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Definitions for The Sender-Excited Secret Key Agreement Model: Capacity, Reliability and Secrecy Exponents

Definition
QAlgorithms_Papers_Independent_Intakethird100_P76

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

prove2quantum

The objects the formalized statements of The Sender-Excited Secret Key Agreement Model: Capacity, Reliability and Secrecy Exponents (arXiv:1107.4148) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • observationEntropyBits: PDF pp.3--4: entropy of a finite observation. The fiber formula avoids counting duplicate values; zero masses contribute zero (0 log 0 = 0).
  • condEntropy: PDF p.3: conditional Shannon entropy in bits.
  • observationMutualInfoBits: PDF p.3: mutual information under the actual joint law.
  • condInfo: PDF p.4: conditional mutual information in bits.
  • renyiBits: PDF p.16, (84): Renyi entropy of order 1+alpha, used for alpha>0.
  • DMBC: PDF p.3, Section II-A: normalized discrete memoryless broadcast channel.
  • excitationJointMass: PDF p.4, (10): the (S,X,Y,Z) law is fixed by p(s) and the channel.
  • obsS: PDF p.3: sounding-symbol observation.
  • obsX: PDF p.3: Alice's channel observation.
  • obsY: PDF p.3: Bob's channel observation.
  • obsZ: PDF p.3: Eve's channel observation.
  • AdmissibleCost: PDF p.3: admissible positive cost, including implicit feasibility.
  • CostFeasibleInput: PDF p.4: feasible single-letter input law.
  • SenderExcitedCode: PDF pp.2--4: forward code with stochastic excitation and public fixed maps. Finite positive sizes include singleton message, public-message and key alphabets.
  • BlockSample: PDF p.3: sample before applying the public and key functions.
  • blockMass: PDF p.3: uniform M, stochastic encoder, then the product DMBC law.
  • keyA: PDF p.3: Alice's key is computed from M and X^n only.
  • eveView: PDF p.3: Eve observes Z^n and the public message.
  • keyDisagreementProbability: PDF p.3, (2): error probability of the actual code.
  • publicKeyLeakage: PDF p.3, (3): realized-public-code leakage, without annealed mixing.
  • generatedKeyEntropy: PDF p.3, (4): actual key entropy; exact uniformity is not assumed.
  • CodeCost: PDF p.3, (1): almost-sure cost on encoder support. None is the no-cost regime.
  • BoundedRanges: PDF pp.3--4: exact ceiling convention for message, public and key alphabets. The key alphabet has the claimed rate R, as clarified on p.4 and in (58), rather than an unrelated existential rate. EntropyRate supplies near uniformity.
  • EntropyRate: PDF p.3, (4): liminf entropy-rate bound in epsilon form.
  • WeakAchievable: PDF pp.3--4, Definition 1: ONE sequence meets all three conditions.
  • senderExcitedCapacity: PDF p.3, Definition 2: extended supremum avoids real-supremum defaults. The theorem identifies it with a finite, attained single-letter value.
  • logRate: PDF p.4, (6)--(7): normalized negative log, with +infinity at zero.
  • TripleAchievable: PDF p.4, Definition 3: the SAME sequence supplies entropy and BOTH exponents.
  • region: PDF p.4, Definition 4: closure of operationally achievable triples.
  • StrongAchievable: PDF p.4, Definition 5: strictly positive reliability AND secrecy exponents.
  • StrongAchievableAt: PDF pp.3--4 and pp.8--9: strong achievability at specified public and excitation rates. One code sequence has exactly the three prescribed ceiling alphabet sizes and supplies the entropy condition and both positive exponents. Keeping RP and RM here is necessary for the rate-limited conclusions.
  • strongCapacity: PDF p.8: supremal strongly achievable rate.
  • SenderExcitedDegraded: PDF p.4, Definition 6: stochastic degradation preserves BOTH (S,X,Y) and (S,X,Z). The alternative coupling is p(x,y|s)d(z|y).
  • advantage: PDF p.5, (12): information difference for Alice's pair (X,S).
  • upperObjective: PDF p.5, (11): conditional-information upper-bound objective.
  • channelRate: PDF p.5, (16): channel portion, not forced nonnegative.
  • residualSourceRate: PDF p.5, (17): source portion, not forced nonnegative.
  • Aux: PDF p.4, (10): normalized auxiliary kernels.
  • auxMass: PDF p.4, (10): constructed joint law, with the fixed DMBC marginal.
  • auxObjective: PDF p.4, (8): auxiliary conditional-information difference.
  • auxValues: PDF p.4: feasible values over all finite auxiliary alphabets.
  • InteractiveCode: PDF p.5: finite sequential discussion after excitation. All talk and key maps are fixed and public. Each message depends on the sender's observation, private seed and PRECEDING transcript only. A common finite alphabet and fixed schedule cover arbitrary finite discussions by padding with dummy messages. The base code supplies excitation and sizes; its forward maps are unused.
  • InteractiveSample: PDF p.5: independent uniform Bob seed and the original excitation sample.
  • transcript: PDF p.5: the full public transcript, constructed in temporal order.
  • interactiveMass: PDF p.5: interactive sample law; Bob's private seed is independent.
  • interactiveKeyA: PDF p.5: interactive Alice key.
  • interactiveError: PDF p.5: key disagreement after the whole discussion.
  • interactiveLeakage: PDF p.5: Eve sees Z^n and EVERY public message.
  • interactiveEntropy: PDF p.5: the same entropy criterion for an interactive key.
  • InteractiveAchievable: PDF p.5: weak achievability with multi-way public discussion. The key and excitation ranges remain exponentially bounded; the finite discussion itself is unrestricted, as in the stated multi-way upper bound.
  • interactiveCapacity: PDF p.5: multi-way capacity uses its own operational protocol class.
  • xyMass: PDF p.6: conditional X,Y mass given S.
  • yMass: PDF p.6: conditional Y mass given S.
  • xzMass: PDF p.6, (22): conditional X,Z mass given S.
  • reliabilityOne: C18: printed (18), p.6, has an inner sum over (s,x) despite fixing s in the outer sum. Changed to sum only over x, exactly as (66), p.13, because this is the conditional-source moment given (y,s). Null rows have zero weight.
  • reliabilityTwo: PDF pp.6,7,13, (19),(30),(67), corrected C19: sum first over output (X,Y), then input S inside the power. The printed reversed order conflicts with the expressly described channel S->(X,Y) and derivative in (30).
  • reliabilityThree: PDF p.6, (20): hybrid joint-decoding event.
  • reliabilityExponent: PDF p.6, (21): maximize separately, then take the minimum of three.
  • secrecyTrial: PDF p.6, (22): omit null Z fibers explicitly.
  • secrecyExponent: PDF p.6, (23): supremum over 0<alpha≤1.
  • innerRegion: PDF p.6, (24): inner region for one common p(s) and auxiliary rate pair.
  • optimizedReliability: PDF pp.9--10, (41): optimized reliability value.
  • inputOptimizedSecrecyExponent: PDF p.10, (42): independently optimized secrecy value.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Frontier30_P12

/-!
Statements from Chou--Tan--Draper, arXiv:1107.4148v4. Information is in bits.
All new definitions are paper-local, with complete bodies. Blocks have length n+1.
C18 and C19 are source corrections independently audited in moderation round 1.
Round 2 links the rate-limited code conclusions to their specified rates.
These repairs require fresh blind readbacks and a subsequent no-edit round.
Deferred nodes have no theorem. Compilation is pending batch handoff.
-/

namespace QAlgorithms.Papers.Independent.Intakethird100.P76

noncomputable section

open scoped BigOperators
open Filter Set

attribute [local instance] Classical.propDecidable

-- Exact pinned primitives, inspected at their definitions before reuse.
open QAlgorithms.Papers.Independent.Information100.P56 (IsLaw)
open QAlgorithms.Papers.Independent.Frontier30.P12 (IsStochastic)

/-- PDF pp.3--4: entropy of a finite observation. The fiber formula avoids
counting duplicate values; zero masses contribute zero (0 log 0 = 0). -/
def observationEntropyBits {O A : Type*} [Fintype O] (p : O → ℝ) (a : O → A) : ℝ := by
  classical
  exact -∑ o, p o * Real.logb 2 (∑ t, if a t = a o then p t else 0)

/-- PDF p.3: conditional Shannon entropy in bits. -/
def condEntropy {O A B : Type*} [Fintype O] (p : O → ℝ)
    (a : O → A) (b : O → B) : ℝ :=
  observationEntropyBits p (fun o => (a o, b o)) - observationEntropyBits p b

/-- PDF p.3: mutual information under the actual joint law. -/
def observationMutualInfoBits {O A B : Type*} [Fintype O] (p : O → ℝ)
    (a : O → A) (b : O → B) : ℝ :=
  observationEntropyBits p a + observationEntropyBits p b - observationEntropyBits p (fun o => (a o, b o))

/-- PDF p.4: conditional mutual information in bits. -/
def condInfo {O A B C : Type*} [Fintype O] (p : O → ℝ)
    (a : O → A) (b : O → B) (c : O → C) : ℝ :=
  condEntropy p a c - condEntropy p a (fun o => (b o, c o))

/-- PDF p.16, (84): Renyi entropy of order 1+alpha, used for alpha>0. -/
def renyiBits {A : Type*} [Fintype A] (p : A → ℝ) (alpha : ℝ) : ℝ :=
  -(Real.logb 2 (∑ a, (p a) ^ (1 + alpha))) / alpha

/-- A one-point observation has zero entropy. -/
example : observationEntropyBits (fun _ : Unit => (1 : ℝ)) id = 0 := by
  simp [observationEntropyBits]

/-- A point mass has zero Renyi entropy. -/
example (alpha : ℝ) : renyiBits (fun _ : Unit => (1 : ℝ)) alpha = 0 := by
  simp [renyiBits]

variable {S X Y Z : Type} [Fintype S] [Fintype X] [Fintype Y] [Fintype Z]
  [Nonempty S] [Nonempty X] [Nonempty Y] [Nonempty Z]

variable {n u w : ℕ}

/-- PDF p.3, Section II-A: normalized discrete memoryless broadcast channel. -/
structure DMBC (S X Y Z : Type) [Fintype X] [Fintype Y] [Fintype Z] where
  s_nonempty : Nonempty S
  x_nonempty : Nonempty X
  y_nonempty : Nonempty Y
  z_nonempty : Nonempty Z
  w : S → (X × Y × Z) → ℝ
  stochastic : IsStochastic w

/-- PDF p.4, (10): the (S,X,Y,Z) law is fixed by p(s) and the channel. -/
def excitationJointMass (W : DMBC S X Y Z) (p : S → ℝ) : (S × X × Y × Z) → ℝ :=
  fun o => p o.1 * W.w o.1 o.2

/-- PDF p.3: sounding-symbol observation. -/
def obsS (o : S × X × Y × Z) : S := o.1

/-- PDF p.3: Alice's channel observation. -/
def obsX (o : S × X × Y × Z) : X := o.2.1

/-- PDF p.3: Bob's channel observation. -/
def obsY (o : S × X × Y × Z) : Y := o.2.2.1

/-- PDF p.3: Eve's channel observation. -/
def obsZ (o : S × X × Y × Z) : Z := o.2.2.2

/-- PDF p.3: admissible positive cost, including implicit feasibility. -/
def AdmissibleCost (cost : S → ℝ) (Gamma : ℝ) : Prop :=
  0 < Gamma ∧ (∃ L : ℝ, ∀ s, 0 ≤ cost s ∧ cost s ≤ L) ∧
    ∃ p : S → ℝ, IsLaw p ∧ ∑ s, p s * cost s ≤ Gamma

/-- PDF p.4: feasible single-letter input law. -/
def CostFeasibleInput (cost : S → ℝ) (Gamma : ℝ) (p : S → ℝ) : Prop :=
  IsLaw p ∧ ∑ s, p s * cost s ≤ Gamma

/-- PDF pp.2--4: forward code with stochastic excitation and public fixed maps.
Finite positive sizes include singleton message, public-message and key alphabets. -/
structure SenderExcitedCode (S X Y : Type) [Fintype S] (n : ℕ) where
  messages : ℕ
  publicSize : ℕ
  keys : ℕ
  messages_pos : 0 < messages
  public_pos : 0 < publicSize
  keys_pos : 0 < keys
  encoder : Fin messages → (Fin n → S) → ℝ
  encoder_law : IsStochastic encoder
  publicMap : Fin messages → (Fin n → X) → Fin publicSize
  aliceKey : Fin messages → (Fin n → X) → Fin keys
  bobKey : (Fin n → Y) → Fin publicSize → Fin keys

/-- PDF p.3: sample before applying the public and key functions. -/
abbrev BlockSample (C : SenderExcitedCode S X Y n) :=
  Fin C.messages × (Fin n → S) × (Fin n → X) × (Fin n → Y) × (Fin n → Z)

/-- PDF p.3: uniform M, stochastic encoder, then the product DMBC law. -/
def blockMass (W : DMBC S X Y Z) (C : SenderExcitedCode S X Y n) :
    BlockSample (Z := Z) C → ℝ :=
  fun o => (C.messages : ℝ)⁻¹ * C.encoder o.1 o.2.1 *
    ∏ i, W.w (o.2.1 i) (o.2.2.1 i, o.2.2.2.1 i, o.2.2.2.2 i)

/-- PDF p.3: Alice's key is computed from M and X^n only. -/
def keyA (C : SenderExcitedCode S X Y n) (o : BlockSample (Z := Z) C) :=
  C.aliceKey o.1 o.2.2.1

/-- PDF p.3: Eve observes Z^n and the public message. -/
def eveView (C : SenderExcitedCode S X Y n) (o : BlockSample (Z := Z) C) :=
  (o.2.2.2.2, C.publicMap o.1 o.2.2.1)

/-- PDF p.3, (2): error probability of the actual code. -/
def keyDisagreementProbability (W : DMBC S X Y Z) (C : SenderExcitedCode S X Y n) : ℝ := by
  classical
  exact ∑ o, if keyA C o ≠ C.bobKey o.2.2.2.1 (C.publicMap o.1 o.2.2.1)
    then blockMass W C o else 0

/-- PDF p.3, (3): realized-public-code leakage, without annealed mixing. -/
def publicKeyLeakage (W : DMBC S X Y Z) (C : SenderExcitedCode S X Y n) : ℝ :=
  observationMutualInfoBits (blockMass W C) (keyA C) (eveView C)

/-- PDF p.3, (4): actual key entropy; exact uniformity is not assumed. -/
def generatedKeyEntropy (W : DMBC S X Y Z) (C : SenderExcitedCode S X Y n) : ℝ :=
  observationEntropyBits (blockMass W C) (keyA C)

/-- PDF p.3, (1): almost-sure cost on encoder support. None is the no-cost regime. -/
def CodeCost (cost : S → ℝ) (Gamma : Option ℝ) (C : SenderExcitedCode S X Y n) : Prop :=
  match Gamma with
  | none => True
  | some g => ∀ m s, 0 < C.encoder m s → (∑ i, cost (s i)) ≤ (n : ℝ) * g

/-- PDF pp.3--4: exact ceiling convention for message, public and key alphabets.
The key alphabet has the claimed rate R, as clarified on p.4 and in (58),
rather than an unrelated existential rate. EntropyRate supplies near uniformity. -/
def BoundedRanges (C : (n : ℕ) → SenderExcitedCode S X Y (n + 1)) (R : ℝ) : Prop :=
  ∃ rM rP : ℝ, 0 ≤ rM ∧ 0 ≤ rP ∧ ∀ n,
    (C n).messages = 2 ^ ⌈(n + 1 : ℝ) * rM⌉₊ ∧
    (C n).publicSize = 2 ^ ⌈(n + 1 : ℝ) * rP⌉₊ ∧
    (C n).keys = 2 ^ ⌈(n + 1 : ℝ) * R⌉₊

/-- PDF p.3, (4): liminf entropy-rate bound in epsilon form. -/
def EntropyRate (W : DMBC S X Y Z) (C : (n : ℕ) → SenderExcitedCode S X Y (n + 1))
    (R : ℝ) : Prop :=
  ∀ eps : ℝ, 0 < eps → ∀ᶠ n in atTop,
    R - eps ≤ generatedKeyEntropy W (C n) / (n + 1 : ℕ)

/-- PDF pp.3--4, Definition 1: ONE sequence meets all three conditions. -/
def WeakAchievable (W : DMBC S X Y Z) (cost : S → ℝ) (Gamma : Option ℝ)
    (R : ℝ) : Prop :=
  0 ≤ R ∧ ∃ C : (n : ℕ) → SenderExcitedCode S X Y (n + 1),
    BoundedRanges C R ∧ (∀ n, CodeCost cost Gamma (C n)) ∧ EntropyRate W C R ∧
    Tendsto (fun n => keyDisagreementProbability W (C n)) atTop (nhds 0) ∧
    Tendsto (fun n => publicKeyLeakage W (C n) / (n + 1 : ℕ)) atTop (nhds 0)

/-- PDF p.3, Definition 2: extended supremum avoids real-supremum defaults.
The theorem identifies it with a finite, attained single-letter value. -/
def senderExcitedCapacity (W : DMBC S X Y Z) (cost : S → ℝ) (Gamma : Option ℝ) : EReal :=
  sSup {v | ∃ R : ℝ, WeakAchievable W cost Gamma R ∧ v = (R : EReal)}

/-- PDF p.4, (6)--(7): normalized negative log, with +infinity at zero. -/
def logRate (n : ℕ) (t : ℝ) : EReal :=
  if t = 0 then ⊤ else ((-Real.logb 2 t / (n + 1 : ℕ) : ℝ) : EReal)

/-- Zero error or leakage has infinite decay exponent. -/
example (n : ℕ) : logRate n 0 = ⊤ := by
  simp [logRate]

/-- PDF p.4, Definition 3: the SAME sequence supplies entropy and BOTH exponents. -/
def TripleAchievable (W : DMBC S X Y Z) (v : ℝ × ℝ × ℝ) : Prop :=
  0 ≤ v.1 ∧ 0 ≤ v.2.1 ∧ 0 ≤ v.2.2 ∧
    ∃ C : (n : ℕ) → SenderExcitedCode S X Y (n + 1), BoundedRanges C v.1 ∧
      EntropyRate W C v.1 ∧
      (v.2.1 : EReal) ≤ Filter.liminf (fun n => logRate n (keyDisagreementProbability W (C n))) atTop ∧
      (v.2.2 : EReal) ≤ Filter.liminf (fun n => logRate n (publicKeyLeakage W (C n))) atTop

/-- PDF p.4, Definition 4: closure of operationally achievable triples. -/
def region (W : DMBC S X Y Z) : Set (ℝ × ℝ × ℝ) :=
  closure {v | TripleAchievable W v}

/-- PDF p.4, Definition 5: strictly positive reliability AND secrecy exponents. -/
def StrongAchievable (W : DMBC S X Y Z) (R : ℝ) : Prop :=
  ∃ E F : ℝ, 0 < E ∧ 0 < F ∧ TripleAchievable W (R, E, F)

/-- PDF pp.3--4 and pp.8--9: strong achievability at specified public and
excitation rates. One code sequence has exactly the three prescribed ceiling
alphabet sizes and supplies the entropy condition and both positive exponents.
Keeping RP and RM here is necessary for the rate-limited conclusions. -/
def StrongAchievableAt (W : DMBC S X Y Z) (RK RP RM : ℝ) : Prop :=
  ∃ E F : ℝ, 0 < E ∧ 0 < F ∧ 0 ≤ RK ∧ 0 ≤ RP ∧ 0 ≤ RM ∧
    ∃ C : (n : ℕ) → SenderExcitedCode S X Y (n + 1),
      (∀ n, (C n).messages = 2 ^ ⌈(n + 1 : ℝ) * RM⌉₊ ∧
        (C n).publicSize = 2 ^ ⌈(n + 1 : ℝ) * RP⌉₊ ∧
        (C n).keys = 2 ^ ⌈(n + 1 : ℝ) * RK⌉₊) ∧
      EntropyRate W C RK ∧
      (E : EReal) ≤ Filter.liminf (fun n => logRate n (keyDisagreementProbability W (C n))) atTop ∧
      (F : EReal) ≤ Filter.liminf (fun n => logRate n (publicKeyLeakage W (C n))) atTop

/-- Forgetting the prescribed discussion and excitation rates preserves strong
achievability, using exactly the same code sequence and exponents. -/
example (W : DMBC S X Y Z) (RK RP RM : ℝ)
    (h : StrongAchievableAt W RK RP RM) : StrongAchievable W RK := by
  rcases h with ⟨E, F, hE, hF, hK, hP, hM, C, hsizes, hEntropy, he, hl⟩
  exact ⟨E, F, hE, hF, hK, le_of_lt hE, le_of_lt hF, C,
    ⟨RM, RP, hM, hP, hsizes⟩, hEntropy, he, hl⟩

/-- PDF p.8: supremal strongly achievable rate. -/
def strongCapacity (W : DMBC S X Y Z) : EReal :=
  sSup {v | ∃ R : ℝ, StrongAchievable W R ∧ v = (R : EReal)}

/-- PDF p.4, Definition 6: stochastic degradation preserves BOTH (S,X,Y)
and (S,X,Z). The alternative coupling is p(x,y|s)d(z|y). -/
def SenderExcitedDegraded (W : DMBC S X Y Z) : Prop :=
  ∃ d : Y → Z → ℝ, IsStochastic d ∧ ∀ s x z,
    (∑ y, W.w s (x, y, z)) = ∑ y, (∑ t, W.w s (x, y, t)) * d y z

/-- PDF p.5, (12): information difference for Alice's pair (X,S). -/
def advantage (W : DMBC S X Y Z) (p : S → ℝ) : ℝ :=
  observationMutualInfoBits (excitationJointMass W p) (fun o => (obsX o, obsS o)) obsY -
    observationMutualInfoBits (excitationJointMass W p) (fun o => (obsX o, obsS o)) obsZ

/-- PDF p.5, (11): conditional-information upper-bound objective. -/
def upperObjective (W : DMBC S X Y Z) (p : S → ℝ) : ℝ :=
  condInfo (excitationJointMass W p) (fun o => (obsX o, obsS o)) obsY obsZ

/-- PDF p.5, (16): channel portion, not forced nonnegative. -/
def channelRate (W : DMBC S X Y Z) (p : S → ℝ) : ℝ :=
  observationMutualInfoBits (excitationJointMass W p) obsS obsY - observationMutualInfoBits (excitationJointMass W p) obsS obsZ

/-- PDF p.5, (17): source portion, not forced nonnegative. -/
def residualSourceRate (W : DMBC S X Y Z) (p : S → ℝ) : ℝ :=
  condInfo (excitationJointMass W p) obsX obsY obsS - condInfo (excitationJointMass W p) obsX obsZ obsS

/-- PDF p.4, (10): normalized auxiliary kernels. -/
structure Aux (S X : Type) (u w : ℕ) [Fintype S] [Fintype X] where
  input : S → ℝ
  input_law : IsLaw input
  uKernel : (X × S) → Fin u → ℝ
  u_law : IsStochastic uKernel
  wKernel : Fin u → Fin w → ℝ
  w_law : IsStochastic wKernel

/-- PDF p.4, (10): constructed joint law, with the fixed DMBC marginal. -/
def auxMass (W : DMBC S X Y Z) (A : Aux S X u w) :
    (Fin w × Fin u × S × X × Y × Z) → ℝ :=
  fun o => A.wKernel o.2.1 o.1 * A.uKernel (o.2.2.2.1, o.2.2.1) o.2.1 *
    excitationJointMass W A.input o.2.2

/-- PDF p.4, (8): auxiliary conditional-information difference. -/
def auxObjective (W : DMBC S X Y Z) (A : Aux S X u w) : ℝ :=
  condInfo (auxMass W A) (fun o => o.2.1) (fun o => o.2.2.2.2.1) (fun o => o.1) -
    condInfo (auxMass W A) (fun o => o.2.1) (fun o => o.2.2.2.2.2) (fun o => o.1)

/-- PDF p.4: feasible values over all finite auxiliary alphabets. -/
def auxValues (W : DMBC S X Y Z) (cost : S → ℝ) (Gamma : ℝ) : Set ℝ :=
  {v | ∃ u w : ℕ, 0 < u ∧ 0 < w ∧ ∃ A : Aux S X u w,
    CostFeasibleInput cost Gamma A.input ∧ v = auxObjective W A}

/-- PDF p.5: finite sequential discussion after excitation. All talk and key
maps are fixed and public. Each message depends on the sender's observation,
private seed and PRECEDING transcript only. A common finite alphabet and fixed
schedule cover arbitrary finite discussions by padding with dummy messages.
The base code supplies excitation and sizes; its forward maps are unused. -/
structure InteractiveCode (S X Y : Type) [Fintype S] (n : ℕ) where
  base : SenderExcitedCode S X Y n
  bobSeeds : ℕ
  bobSeeds_pos : 0 < bobSeeds
  rounds : ℕ
  symbols : ℕ
  symbols_pos : 0 < symbols
  sender : ℕ → Bool
  aliceTalk : Fin base.messages → (Fin n → X) → List (Fin symbols) → Fin symbols
  bobTalk : Fin bobSeeds → (Fin n → Y) → List (Fin symbols) → Fin symbols
  finalAlice : Fin base.messages → (Fin n → X) → List (Fin symbols) → Fin base.keys
  finalBob : Fin bobSeeds → (Fin n → Y) → List (Fin symbols) → Fin base.keys

/-- PDF p.5: independent uniform Bob seed and the original excitation sample. -/
abbrev InteractiveSample (C : InteractiveCode S X Y n) :=
  BlockSample (Z := Z) C.base × Fin C.bobSeeds

/-- PDF p.5: the full public transcript, constructed in temporal order. -/
def transcript (C : InteractiveCode S X Y n) (o : InteractiveSample (Z := Z) C) :=
  (List.range C.rounds).foldl (fun t i => t ++
    [if C.sender i then C.aliceTalk o.1.1 o.1.2.2.1 t
      else C.bobTalk o.2 o.1.2.2.2.1 t]) []

/-- PDF p.5: interactive sample law; Bob's private seed is independent. -/
def interactiveMass (W : DMBC S X Y Z) (C : InteractiveCode S X Y n) :
    InteractiveSample (Z := Z) C → ℝ :=
  fun o => blockMass W C.base o.1 / C.bobSeeds

/-- PDF p.5: interactive Alice key. -/
def interactiveKeyA (C : InteractiveCode S X Y n) (o : InteractiveSample (Z := Z) C) :=
  C.finalAlice o.1.1 o.1.2.2.1 (transcript C o)

/-- PDF p.5: key disagreement after the whole discussion. -/
def interactiveError (W : DMBC S X Y Z) (C : InteractiveCode S X Y n) : ℝ := by
  classical
  exact ∑ o, if interactiveKeyA C o ≠
    C.finalBob o.2 o.1.2.2.2.1 (transcript C o) then interactiveMass W C o else 0

/-- PDF p.5: Eve sees Z^n and EVERY public message. -/
def interactiveLeakage (W : DMBC S X Y Z) (C : InteractiveCode S X Y n) : ℝ :=
  observationMutualInfoBits (interactiveMass W C) (interactiveKeyA C)
    (fun o => (o.1.2.2.2.2, transcript C o))

/-- PDF p.5: the same entropy criterion for an interactive key. -/
def interactiveEntropy (W : DMBC S X Y Z) (C : InteractiveCode S X Y n) : ℝ :=
  observationEntropyBits (interactiveMass W C) (interactiveKeyA C)

/-- PDF p.5: weak achievability with multi-way public discussion. The key and
excitation ranges remain exponentially bounded; the finite discussion itself
is unrestricted, as in the stated multi-way upper bound. -/
def InteractiveAchievable (W : DMBC S X Y Z) (cost : S → ℝ) (Gamma R : ℝ) : Prop :=
  0 ≤ R ∧ ∃ C : (n : ℕ) → InteractiveCode S X Y (n + 1),
    BoundedRanges (fun n => (C n).base) R ∧
    (∀ n, CodeCost cost (some Gamma) (C n).base) ∧
    (∀ eps : ℝ, 0 < eps → ∀ᶠ n in atTop,
      R - eps ≤ interactiveEntropy W (C n) / (n + 1 : ℕ)) ∧
    Tendsto (fun n => interactiveError W (C n)) atTop (nhds 0) ∧
    Tendsto (fun n => interactiveLeakage W (C n) / (n + 1 : ℕ)) atTop (nhds 0)

/-- PDF p.5: multi-way capacity uses its own operational protocol class. -/
def interactiveCapacity (W : DMBC S X Y Z) (cost : S → ℝ) (Gamma : ℝ) : EReal :=
  sSup {v | ∃ R : ℝ, InteractiveAchievable W cost Gamma R ∧ v = (R : EReal)}

/-- A discussion with zero rounds has an empty public transcript. -/
example (C : InteractiveCode S X Y n) (h : C.rounds = 0)
    (o : InteractiveSample (Z := Z) C) : transcript C o = [] := by
  simp [transcript, h]

/-- PDF p.6: conditional X,Y mass given S. -/
def xyMass (W : DMBC S X Y Z) (s : S) (x : X) (y : Y) : ℝ :=
  ∑ z, W.w s (x, y, z)

/-- PDF p.6: conditional Y mass given S. -/
def yMass (W : DMBC S X Y Z) (s : S) (y : Y) : ℝ :=
  ∑ x, xyMass W s x y

/-- PDF p.6, (22): conditional X,Z mass given S. -/
def xzMass (W : DMBC S X Y Z) (s : S) (x : X) (z : Z) : ℝ :=
  ∑ y, W.w s (x, y, z)

/-- C18: printed (18), p.6, has an inner sum over (s,x) despite fixing s
in the outer sum. Changed to sum only over x, exactly as (66), p.13, because
this is the conditional-source moment given (y,s). Null rows have zero weight. -/
def reliabilityOne (W : DMBC S X Y Z) (p : S → ℝ) (rho RP : ℝ) : ℝ :=
  rho * RP - Real.logb 2 (∑ s, ∑ y, p s * yMass W s y *
    (∑ x, (xyMass W s x y / yMass W s y) ^ (1 / (1 + rho))) ^ (1 + rho))

/-- PDF pp.6,7,13, (19),(30),(67), corrected C19: sum first over output
(X,Y), then input S inside the power. The printed reversed order conflicts
with the expressly described channel S->(X,Y) and derivative in (30). -/
def reliabilityTwo (W : DMBC S X Y Z) (p : S → ℝ) (rho RP RM : ℝ) : ℝ :=
  rho * (RP - RM) - Real.logb 2 (∑ x, ∑ y,
    (∑ s, p s * (xyMass W s x y) ^ (1 / (1 + rho))) ^ (1 + rho))

/-- PDF p.6, (20): hybrid joint-decoding event. -/
def reliabilityThree (W : DMBC S X Y Z) (p : S → ℝ) (rho RP RM : ℝ) : ℝ :=
  rho * (RP - RM) - Real.logb 2 (∑ y,
    (∑ s, ∑ x, p s * (xyMass W s x y) ^ (1 / (1 + rho))) ^ (1 + rho))

/-- PDF p.6, (21): maximize separately, then take the minimum of three. -/
def reliabilityExponent (W : DMBC S X Y Z) (p : S → ℝ) (RP RM : ℝ) : EReal :=
  min (⨆ rho ∈ Icc (0 : ℝ) 1, (reliabilityOne W p rho RP : EReal))
    (min (⨆ rho ∈ Icc (0 : ℝ) 1, (reliabilityTwo W p rho RP RM : EReal))
      (⨆ rho ∈ Icc (0 : ℝ) 1, (reliabilityThree W p rho RP RM : EReal)))

/-- PDF p.6, (22): omit null Z fibers explicitly. -/
def secrecyTrial (W : DMBC S X Y Z) (p : S → ℝ) (alpha RK RP RM : ℝ) : ℝ :=
  -alpha * (RK + RP - RM) - Real.logb 2
    (∑ z, let pz := ∑ s, ∑ x, p s * xzMass W s x z
          if pz = 0 then 0 else
            ∑ s, ∑ x, p s * xzMass W s x z * (xzMass W s x z / pz) ^ alpha)

/-- PDF p.6, (23): supremum over 0<alpha≤1. -/
def secrecyExponent (W : DMBC S X Y Z) (p : S → ℝ) (RK RP RM : ℝ) : EReal :=
  ⨆ alpha ∈ Ioc (0 : ℝ) 1, (secrecyTrial W p alpha RK RP RM : EReal)

/-- PDF p.6, (24): inner region for one common p(s) and auxiliary rate pair. -/
def innerRegion (W : DMBC S X Y Z) (p : S → ℝ) (RP RM : ℝ) : Set (ℝ × ℝ × ℝ) :=
  {v | 0 ≤ v.1 ∧ 0 ≤ v.2.1 ∧ 0 ≤ v.2.2 ∧
    (v.2.1 : EReal) ≤ reliabilityExponent W p RP RM ∧
    (v.2.2 : EReal) ≤ secrecyExponent W p v.1 RP RM}

/-- PDF pp.9--10, (41): optimized reliability value. -/
def optimizedReliability (W : DMBC S X Y Z) (RP RM : ℝ) : EReal :=
  ⨆ (p : S → ℝ) (_ : IsLaw p), reliabilityExponent W p RP RM

/-- PDF p.10, (42): independently optimized secrecy value. -/
def inputOptimizedSecrecyExponent (W : DMBC S X Y Z) (RK RP RM : ℝ) : EReal :=
  ⨆ (p : S → ℝ) (_ : IsLaw p), secrecyExponent W p RK RP RM

end

end QAlgorithms.Papers.Independent.Intakethird100.P76
Source
The Sender-Excited Secret Key Agreement Model: Capacity, Reliability and Secrecy Exponents, arXiv:1107.4148v4, https://arxiv.org/abs/1107.4148v4
Read-back

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

QAlgorithms.Papers.Independent.Intakethird100.P76.AdmissibleCost

For a finite type SSS, a function cost:S→R\mathrm{cost}:S\to\mathbb Rcost:S→R, and a real number Γ\GammaΓ, this predicate means that Γ>0\Gamma>0Γ>0, there exists a real LLL such that 0≤cost(s)≤L0\le\mathrm{cost}(s)\le L0≤cost(s)≤L for every s∈Ss\in Ss∈S, and there exists a function p:S→Rp:S\to\mathbb Rp:S→R satisfying

p(s)≥0for all s,∑sp(s)=1,∑sp(s) cost(s)≤Γ.p(s)\ge0\quad\text{for all }s,\qquad \sum_s p(s)=1,\qquad \sum_s p(s)\,\mathrm{cost}(s)\le\Gamma.p(s)≥0for all s,s∑​p(s)=1,s∑​p(s)cost(s)≤Γ.

The expected-cost bound is non-strict, while positivity of Γ\GammaΓ is strict. If SSS is empty, the normalization equation cannot hold, so the predicate is false.

QAlgorithms.Papers.Independent.Intakethird100.P76.Aux

For finite types S,XS,XS,X and natural numbers u,wu,wu,w, an auxiliary datum consists of a function p:S→Rp:S\to\mathbb Rp:S→R satisfying p(s)≥0p(s)\ge0p(s)≥0 and ∑sp(s)=1\sum_s p(s)=1∑s​p(s)=1, a function q:(X×S)→{0,…,u−1}→Rq:(X\times S)\to\{0,\ldots,u-1\}\to\mathbb Rq:(X×S)→{0,…,u−1}→R satisfying q(a∣x,s)≥0q(a\mid x,s)\ge0q(a∣x,s)≥0 and ∑a<uq(a∣x,s)=1\sum_{a<u}q(a\mid x,s)=1∑a<u​q(a∣x,s)=1 for every (x,s)(x,s)(x,s), and a function r:{0,…,u−1}→{0,…,w−1}→Rr:\{0,\ldots,u-1\}\to\{0,\ldots,w-1\}\to\mathbb Rr:{0,…,u−1}→{0,…,w−1}→R satisfying r(b∣a)≥0r(b\mid a)\ge0r(b∣a)≥0 and ∑b<wr(b∣a)=1\sum_{b<w}r(b\mid a)=1∑b<w​r(b∣a)=1 for every a<ua<ua<u. Zero probabilities are permitted. Positivity of u,wu,wu,w is not separately required: the law for ppp forces SSS to be nonempty, but if XXX is empty the conditions on qqq are vacuous, so u=0u=0u=0 is possible; when u=0u=0u=0, the conditions on rrr are also vacuous and w=0w=0w=0 is possible.

QAlgorithms.Papers.Independent.Intakethird100.P76.BlockSample

For types S,X,Y,ZS,X,Y,ZS,X,Y,Z, with SSS finite, a natural number nnn, and a code CCC of length nnn whose positive message count is MMM, this abbreviation denotes the Cartesian product

{0,…,M−1}×Sn×Xn×Yn×Zn.\{0,\ldots,M-1\}\times S^n\times X^n\times Y^n\times Z^n.{0,…,M−1}×Sn×Xn×Yn×Zn.

Thus an element is a tuple (m,s,x,y,z)(m,s,x,y,z)(m,s,x,y,z) containing a message and four length-nnn words. Membership imposes no condition involving the encoder or any channel probabilities, so tuples with zero probability are included. When n=0n=0n=0, all four word spaces are singletons, leaving only the message coordinate.

QAlgorithms.Papers.Independent.Intakethird100.P76.BoundedRanges

Let SSS be a finite type, let X,YX,YX,Y be types, let R∈RR\in\mathbb RR∈R, and let CnC_nCn​, for every natural number nnn, be a sender-excited code of block length n+1n+1n+1. Such a code has positive integer message, public-message, and key alphabet sizes Mn,Pn,KnM_n,P_n,K_nMn​,Pn​,Kn​; a probability distribution on Sn+1S^{n+1}Sn+1 for each message; deterministic public-message and Alice-key maps depending on the message and the Xn+1X^{n+1}Xn+1 observation; and a deterministic Bob-key map depending on the Yn+1Y^{n+1}Yn+1 observation and public message. The predicate asserts that there exist fixed real numbers rM,rP≥0r_M,r_P\geq0rM​,rP​≥0 such that, for every n≥0n\geq0n≥0,

Mn=2⌈(n+1)rM⌉N,Pn=2⌈(n+1)rP⌉N,Kn=2⌈(n+1)R⌉N.M_n=2^{\lceil(n+1)r_M\rceil_{\mathbb N}},\qquad P_n=2^{\lceil(n+1)r_P\rceil_{\mathbb N}},\qquad K_n=2^{\lceil(n+1)R\rceil_{\mathbb N}}.Mn​=2⌈(n+1)rM​⌉N​,Pn​=2⌈(n+1)rP​⌉N​,Kn​=2⌈(n+1)R⌉N​.

Here ⌈t⌉N\lceil t\rceil_{\mathbb N}⌈t⌉N​ is the least natural number at least ttt, and is 000 when t≤0t\leq0t≤0. These are exact equalities for every positive block length, including length 111. There is no hypothesis that R≥0R\geq0R≥0; if R≤0R\leq0R≤0, every KnK_nKn​ equals 111. Either auxiliary rate may also be 000, making the corresponding alphabet size 111.

QAlgorithms.Papers.Independent.Intakethird100.P76.CodeCost

For types S,X,YS,X,YS,X,Y, with SSS finite, a natural number nnn, a function cost:S→R\mathrm{cost}:S\to\mathbb Rcost:S→R, an optional real bound Γ\GammaΓ, and a length-nnn code CCC with encoder eee, this predicate is always true when no bound is supplied. When Γ\GammaΓ supplies a real number ggg, it means

∀m, ∀s∈Sn,e(m,s)>0 ⟹ ∑i=0n−1cost(si)≤ng.\forall m,\ \forall s\in S^n,\qquad e(m,s)>0\ \Longrightarrow\ \sum_{i=0}^{n-1}\mathrm{cost}(s_i)\le ng.∀m, ∀s∈Sn,e(m,s)>0 ⟹ i=0∑n−1​cost(si​)≤ng.

Neither ggg nor the costs are required to be nonnegative. Words of zero encoder probability impose no condition. For n=0n=0n=0, the required inequality is 0≤00\le00≤0.

QAlgorithms.Papers.Independent.Intakethird100.P76.CostFeasibleInput

For a finite type SSS, functions cost,p:S→R\mathrm{cost},p:S\to\mathbb Rcost,p:S→R, and a real number Γ\GammaΓ, this predicate means that p(s)≥0p(s)\ge0p(s)≥0 for every s∈Ss\in Ss∈S, ∑s∈Sp(s)=1\sum_{s\in S}p(s)=1∑s∈S​p(s)=1, and

∑s∈Sp(s) cost(s)≤Γ.\sum_{s\in S}p(s)\,\mathrm{cost}(s)\le\Gamma.s∈S∑​p(s)cost(s)≤Γ.

There is no requirement that the costs or Γ\GammaΓ be nonnegative. If SSS is empty, the normalization condition cannot hold.

QAlgorithms.Papers.Independent.Intakethird100.P76.DMBC

For types S,X,Y,ZS,X,Y,ZS,X,Y,Z, with specified finite enumerations of X,Y,ZX,Y,ZX,Y,Z, this structure consists of evidence that each of S,X,Y,ZS,X,Y,ZS,X,Y,Z is nonempty, together with a function w:S→X×Y×Z→Rw:S\to X\times Y\times Z\to\mathbb Rw:S→X×Y×Z→R satisfying

w(s,(x,y,z))≥0for every s,x,y,z,∑(x,y,z)∈X×Y×Zw(s,(x,y,z))=1for every s∈S.w(s,(x,y,z))\ge0 \quad\text{for every }s,x,y,z, \qquad \sum_{(x,y,z)\in X\times Y\times Z}w(s,(x,y,z))=1 \quad\text{for every }s\in S.w(s,(x,y,z))≥0for every s,x,y,z,(x,y,z)∈X×Y×Z∑​w(s,(x,y,z))=1for every s∈S.

No finiteness assumption is imposed on SSS. If any of the four types is empty, no such structure can exist.

QAlgorithms.Papers.Independent.Intakethird100.P76.EntropyRate

For finite types S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel WWW with nonempty alphabets and conditional probability laws wsw_sws​, a family CnC_nCn​ of codes of length n+1n+1n+1, and a real number RRR, let Mn>0M_n>0Mn​>0, ene_nen​, and ana_nan​ be each code’s message count, normalized encoder probabilities, and Alice key map. On tuples o=(m,s,x,y,z)o=(m,s,x,y,z)o=(m,s,x,y,z) of length n+1n+1n+1, put

Pn(o)=1Mnen(m,s)∏i=0nwsi(xi,yi,zi),Hn=−∑oPn(o)log⁡2 ⁣(∑t: an(tm,tx)=an(m,x)Pn(t)),P_n(o)=\frac1{M_n}e_n(m,s)\prod_{i=0}^{n}w_{s_i}(x_i,y_i,z_i),\qquad H_n=-\sum_oP_n(o)\log_2\!\left( \sum_{t:\,a_n(t_m,t_x)=a_n(m,x)}P_n(t)\right),Pn​(o)=Mn​1​en​(m,s)i=0∏n​wsi​​(xi​,yi​,zi​),Hn​=−o∑​Pn​(o)log2​​t:an​(tm​,tx​)=an​(m,x)∑​Pn​(t)​,

where tm,txt_m,t_xtm​,tx​ denote the message and XXX-word of ttt, and the total real logarithm has value 000 at 000. The predicate means that for every real ε>0\varepsilon>0ε>0, there is a natural number NNN such that every n≥Nn\ge Nn≥N satisfies R−ε≤Hn/(n+1)R-\varepsilon\le H_n/(n+1)R−ε≤Hn​/(n+1). It imposes no nonnegativity assumption on RRR, and requires this eventual lower bound rather than convergence to RRR.

QAlgorithms.Papers.Independent.Intakethird100.P76.InteractiveAchievable

Let S,X,Y,ZS,X,Y,ZS,X,Y,Z be finite nonempty alphabets, let Ws(x,y,z)≥0W_s(x,y,z)\geq0Ws​(x,y,z)≥0 sum to 111 for every sss, let cost⁡:S→R\operatorname{cost}:S\to\mathbb Rcost:S→R, and let Γ,R∈R\Gamma,R\in\mathbb RΓ,R∈R. The predicate asserts R≥0R\geq0R≥0 and the existence of an interactive code CnC_nCn​ of every length N=n+1N=n+1N=n+1, n≥0n\geq0n≥0. Its underlying sender-excited code has positive alphabet sizes Mn,Pn,KnM_n,P_n,K_nMn​,Pn​,Kn​, a conditional probability distribution en(m,sN)e_n(m,s^N)en​(m,sN), and deterministic public-message and key maps of the sender-excited-code type. There exist fixed rM,rP≥0r_M,r_P\geq0rM​,rP​≥0 such that, for every nnn, Mn=2⌈NrM⌉NM_n=2^{\lceil Nr_M\rceil_{\mathbb N}}Mn​=2⌈NrM​⌉N​, Pn=2⌈NrP⌉NP_n=2^{\lceil Nr_P\rceil_{\mathbb N}}Pn​=2⌈NrP​⌉N​, and Kn=2⌈NR⌉NK_n=2^{\lceil NR\rceil_{\mathbb N}}Kn​=2⌈NR⌉N​; moreover, en(m,sN)>0e_n(m,s^N)>0en​(m,sN)>0 implies ∑icost⁡(si)≤NΓ\sum_i\operatorname{cost}(s_i)\leq N\Gamma∑i​cost(si​)≤NΓ. The interactive code additionally has a positive integer BnB_nBn​ of Bob seeds, a natural number TnT_nTn​ of rounds, a positive finite discussion alphabet, a specified Alice-or-Bob sender for each round, deterministic discussion maps depending on the sender’s local data and preceding transcript, and deterministic final-key maps αn(m,xN,τ)\alpha_n(m,x^N,\tau)αn​(m,xN,τ) and βn(b,yN,τ)\beta_n(b,y^N,\tau)βn​(b,yN,τ) taking values in the underlying KnK_nKn​-element key alphabet. For o=(m,sN,xN,yN,zN,b)o=(m,s^N,x^N,y^N,z^N,b)o=(m,sN,xN,yN,zN,b), give the sample mass

qn(o)=1MnBn en(m,sN)∏iWsi(xi,yi,zi).q_n(o)=\frac{1}{M_nB_n}\,e_n(m,s^N)\prod_iW_{s_i}(x_i,y_i,z_i).qn​(o)=Mn​Bn​1​en​(m,sN)i∏​Wsi​​(xi​,yi​,zi​).

Starting with the empty transcript, append at each of the TnT_nTn​ rounds the prescribed sender’s discussion symbol, thereby obtaining τn(o)\tau_n(o)τn​(o); put An(o)=αn(m,xN,τn(o))A_n(o)=\alpha_n(m,x^N,\tau_n(o))An​(o)=αn​(m,xN,τn​(o)) and Vn(o)=(zN,τn(o))V_n(o)=(z^N,\tau_n(o))Vn​(o)=(zN,τn​(o)). Define Hq(T)=−∑oq(o)log⁡2(∑o′:T(o′)=T(o)q(o′))H_q(T)=-\sum_o q(o)\log_2(\sum_{o':T(o')=T(o)}q(o'))Hq​(T)=−∑o​q(o)log2​(∑o′:T(o′)=T(o)​q(o′)) and Iq(T;U)=Hq(T)+Hq(U)−Hq(T,U)I_q(T;U)=H_q(T)+H_q(U)-H_q(T,U)Iq​(T;U)=Hq​(T)+Hq​(U)−Hq​(T,U), using the total real logarithm, for which log⁡20=0\log_2 0=0log2​0=0. For every ε>0\varepsilon>0ε>0, eventually R−ε≤Hqn(An)/NR-\varepsilon\leq H_{q_n}(A_n)/NR−ε≤Hqn​​(An​)/N, and

∑oqn(o)1{An(o)≠βn(b,yN,τn(o))}⟶0,Iqn(An;Vn)N⟶0.\sum_o q_n(o)\mathbf1_{\{A_n(o)\ne\beta_n(b,y^N,\tau_n(o))\}}\longrightarrow0,\qquad \frac{I_{q_n}(A_n;V_n)}{N}\longrightarrow0.o∑​qn​(o)1{An​(o)=βn​(b,yN,τn​(o))}​⟶0,NIqn​​(An​;Vn​)​⟶0.

Zero discussion rounds are allowed. No growth bound on the number of rounds, Bob seeds, or discussion symbols is included, and neither nonnegativity of the cost function nor positivity of Γ\GammaΓ is assumed.

QAlgorithms.Papers.Independent.Intakethird100.P76.InteractiveCode

For a finite type SSS, arbitrary types X,YX,YX,Y, and any natural block length nnn, an interactive code consists of a base code, a positive natural number BBB of Bob seeds, a natural number rrr of rounds, a positive natural number ddd of transcript symbols, a function sender⁡:N→{false,true}\operatorname{sender}:\mathbb N\to\{\mathrm{false},\mathrm{true}\}sender:N→{false,true}, and four functions

AliceTalk⁡:{0,…,M−1}×Xn×List⁡({0,…,d−1})→{0,…,d−1},BobTalk⁡:{0,…,B−1}×Yn×List⁡({0,…,d−1})→{0,…,d−1},FinalAlice⁡:{0,…,M−1}×Xn×List⁡({0,…,d−1})→{0,…,K−1},FinalBob⁡:{0,…,B−1}×Yn×List⁡({0,…,d−1})→{0,…,K−1}.\begin{aligned} \operatorname{AliceTalk}&:\{0,\ldots,M-1\}\times X^n\times\operatorname{List}(\{0,\ldots,d-1\})\to\{0,\ldots,d-1\},\\ \operatorname{BobTalk}&:\{0,\ldots,B-1\}\times Y^n\times\operatorname{List}(\{0,\ldots,d-1\})\to\{0,\ldots,d-1\},\\ \operatorname{FinalAlice}&:\{0,\ldots,M-1\}\times X^n\times\operatorname{List}(\{0,\ldots,d-1\})\to\{0,\ldots,K-1\},\\ \operatorname{FinalBob}&:\{0,\ldots,B-1\}\times Y^n\times\operatorname{List}(\{0,\ldots,d-1\})\to\{0,\ldots,K-1\}. \end{aligned}AliceTalkBobTalkFinalAliceFinalBob​:{0,…,M−1}×Xn×List({0,…,d−1})→{0,…,d−1},:{0,…,B−1}×Yn×List({0,…,d−1})→{0,…,d−1},:{0,…,M−1}×Xn×List({0,…,d−1})→{0,…,K−1},:{0,…,B−1}×Yn×List({0,…,d−1})→{0,…,K−1}.​

The base code supplies positive natural message, public-message, and key counts M,P,KM,P,KM,P,K, a nonnegative normalized encoder e(sn∣m)e(s^n\mid m)e(sn∣m), a public map {0,…,M−1}×Xn→{0,…,P−1}\{0,\ldots,M-1\}\times X^n\to\{0,\ldots,P-1\}{0,…,M−1}×Xn→{0,…,P−1}, an Alice key map {0,…,M−1}×Xn→{0,…,K−1}\{0,\ldots,M-1\}\times X^n\to\{0,\ldots,K-1\}{0,…,M−1}×Xn→{0,…,K−1}, and a Bob key map Yn×{0,…,P−1}→{0,…,K−1}Y^n\times\{0,\ldots,P-1\}\to\{0,\ldots,K-1\}Yn×{0,…,P−1}→{0,…,K−1}. No further relationship between the base maps and the four interactive functions is required. The functions are defined on every finite transcript list, the sender function is defined at every natural index, and r=0r=0r=0 and n=0n=0n=0 are allowed.

QAlgorithms.Papers.Independent.Intakethird100.P76.InteractiveSample

For a finite type SSS, arbitrary types X,Y,ZX,Y,ZX,Y,Z, a natural block length nnn, and an interactive code CCC, let M>0M>0M>0 be its base message count and B>0B>0B>0 its Bob-seed count. The declaration abbreviates the sample type as

{0,…,M−1}×Sn×Xn×Yn×Zn×{0,…,B−1},\{0,\ldots,M-1\}\times S^n\times X^n\times Y^n\times Z^n\times\{0,\ldots,B-1\},{0,…,M−1}×Sn×Xn×Yn×Zn×{0,…,B−1},

with an element represented by ((m,sn,xn,yn,zn),b)((m,s^n,x^n,y^n,z^n),b)((m,sn,xn,yn,zn),b). This is the base sample—one message and four length-nnn words—paired with a Bob seed; it imposes no probability law or encoder-support restriction on its elements. For n=0n=0n=0, each word space contains its unique empty word, including when its alphabet is empty.

QAlgorithms.Papers.Independent.Intakethird100.P76.SenderExcitedCode

For types S,X,YS,X,YS,X,Y, with SSS finite, and a natural number nnn, a code consists of positive natural numbers M,L,KM,L,KM,L,K, respectively specifying the numbers of messages, public labels, and keys; an encoder e:{0,…,M−1}×Sn→Re:\{0,\ldots,M-1\}\times S^n\to\mathbb Re:{0,…,M−1}×Sn→R satisfying e(m,s)≥0e(m,s)\ge0e(m,s)≥0 and ∑s∈Sne(m,s)=1\sum_{s\in S^n}e(m,s)=1∑s∈Sn​e(m,s)=1 for every message mmm; and deterministic functions

f:{0,…,M−1}×Xn→{0,…,L−1},a:{0,…,M−1}×Xn→{0,…,K−1},b:Yn×{0,…,L−1}→{0,…,K−1}.f:\{0,\ldots,M-1\}\times X^n\to\{0,\ldots,L-1\},\qquad a:\{0,\ldots,M-1\}\times X^n\to\{0,\ldots,K-1\},\qquad b:Y^n\times\{0,\ldots,L-1\}\to\{0,\ldots,K-1\}.f:{0,…,M−1}×Xn→{0,…,L−1},a:{0,…,M−1}×Xn→{0,…,K−1},b:Yn×{0,…,L−1}→{0,…,K−1}.

These are the public map, Alice’s key map, and Bob’s key map. No correctness, secrecy, or cost condition is imposed. The length n=0n=0n=0 is allowed, and each zero-length word space is a singleton. No finiteness or nonemptiness assumption on XXX or YYY is required here; if SSS is empty and n>0n>0n>0, the encoder normalization is impossible.

QAlgorithms.Papers.Independent.Intakethird100.P76.SenderExcitedDegraded

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z and conditional probabilities Ws(x,y,z)≥0W_s(x,y,z)\ge0Ws​(x,y,z)≥0 summing to 111 over x,y,zx,y,zx,y,z for each sss, this predicate means that there exists a function d:Y×Z→Rd:Y\times Z\to\mathbb Rd:Y×Z→R such that d(y,z)≥0d(y,z)\ge0d(y,z)≥0 and ∑zd(y,z)=1\sum_z d(y,z)=1∑z​d(y,z)=1 for every yyy, and, for every s∈Ss\in Ss∈S, x∈Xx\in Xx∈X, and z∈Zz\in Zz∈Z,

∑y∈YWs(x,y,z)=∑y∈Y(∑t∈ZWs(x,y,t))d(y,z).\sum_{y\in Y}W_s(x,y,z) = \sum_{y\in Y}\left(\sum_{t\in Z}W_s(x,y,t)\right)d(y,z).y∈Y∑​Ws​(x,y,z)=y∈Y∑​(t∈Z∑​Ws​(x,y,t))d(y,z).

The same ddd is used for all s,xs,xs,x. The required equality concerns these marginals; it does not require Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z) itself to factor as (∑tWs(x,y,t))d(y,z)\bigl(\sum_tW_s(x,y,t)\bigr)d(y,z)(∑t​Ws​(x,y,t))d(y,z).

QAlgorithms.Papers.Independent.Intakethird100.P76.StrongAchievable

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel WWW whose nonnegative conditional masses Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z) sum to 111, and a real rate RRR, this predicate means that there exist strictly positive real numbers E,FE,FE,F such that R≥0R\ge0R≥0 and a code sequence satisfies the following conditions. For each n≥0n\ge0n≥0, the code has length L=n+1L=n+1L=n+1, positive finite message, public-message, and key sizes Mn,Pn,KnM_n,P_n,K_nMn​,Pn​,Kn​, a stochastic encoder en(m,sL)e_n(m,s^L)en​(m,sL), and deterministic public, Alice-key, and Bob-key maps an(m,xL)a_n(m,x^L)an​(m,xL), kn(m,xL)k_n(m,x^L)kn​(m,xL), and bn(yL,a)b_n(y^L,a)bn​(yL,a). Its sample mass is

μn(m,sL,xL,yL,zL)=Mn−1en(m,sL)∏iWsi(xi,yi,zi).\mu_n(m,s^L,x^L,y^L,z^L) =M_n^{-1}e_n(m,s^L)\prod_iW_{s_i}(x_i,y_i,z_i).μn​(m,sL,xL,yL,zL)=Mn−1​en​(m,sL)i∏​Wsi​​(xi​,yi​,zi​).

For fixed rM,rP,rK≥0r_M,r_P,r_K\ge0rM​,rP​,rK​≥0, the sizes satisfy Mn=2⌈LrM⌉M_n=2^{\lceil Lr_M\rceil}Mn​=2⌈LrM​⌉, Pn=2⌈LrP⌉P_n=2^{\lceil Lr_P\rceil}Pn​=2⌈LrP​⌉, and Kn≤2LrKK_n\le2^{Lr_K}Kn​≤2LrK​. Let An=kn(m,xL)A_n=k_n(m,x^L)An​=kn​(m,xL), Vn=(zL,an(m,xL))V_n=(z^L,a_n(m,x^L))Vn​=(zL,an​(m,xL)), dn=Pr⁡[An≠bn(yL,an(m,xL))]d_n=\Pr[A_n\ne b_n(y^L,a_n(m,x^L))]dn​=Pr[An​=bn​(yL,an​(m,xL))], and ℓn=Iμn(An;Vn)\ell_n=I_{\mu_n}(A_n;V_n)ℓn​=Iμn​​(An​;Vn​), where

Hμ(A)=−∑oμ(o)log⁡2 ⁣(∑o′: A(o′)=A(o)μ(o′)),Iμ(A;B)=Hμ(A)+Hμ(B)−Hμ(A,B).H_\mu(A)=-\sum_o\mu(o)\log_2\!\left(\sum_{o':\,A(o')=A(o)}\mu(o')\right), \qquad I_\mu(A;B)=H_\mu(A)+H_\mu(B)-H_\mu(A,B).Hμ​(A)=−o∑​μ(o)log2​​o′:A(o′)=A(o)∑​μ(o′)​,Iμ​(A;B)=Hμ​(A)+Hμ​(B)−Hμ​(A,B).

For every ε>0\varepsilon>0ε>0, eventually Hμn(An)/L≥R−εH_{\mu_n}(A_n)/L\ge R-\varepsilonHμn​​(An​)/L≥R−ε, and E≤lim inf⁡ngn(dn)E\le\liminf_n g_n(d_n)E≤liminfn​gn​(dn​), F≤lim inf⁡ngn(ℓn)F\le\liminf_n g_n(\ell_n)F≤liminfn​gn​(ℓn​), with gn(0)=+∞g_n(0)=+\inftygn​(0)=+∞ and gn(t)=−log⁡2(t)/(n+1)g_n(t)=-\log_2(t)/(n+1)gn​(t)=−log2​(t)/(n+1) for t≠0t\ne0t=0. No cost constraint is part of this predicate.

QAlgorithms.Papers.Independent.Intakethird100.P76.StrongAchievableAt

Let S,X,Y,ZS,X,Y,ZS,X,Y,Z be finite nonempty alphabets, and let WWW assign to each s∈Ss\in Ss∈S a probability distribution Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z) on X×Y×ZX\times Y\times ZX×Y×Z. For real numbers RK,RP,RMR_K,R_P,R_MRK​,RP​,RM​, this property means that all three rates are nonnegative and there exist real numbers E,F>0E,F>0E,F>0 and a code CnC_nCn​ of length N=n+1N=n+1N=n+1 for every natural number nnn, including n=0n=0n=0, with exactly

Mn=2⌈NRM⌉+,Ln=2⌈NRP⌉+,Kn=2⌈NRK⌉+M_n=2^{\lceil NR_M\rceil_+},\qquad L_n=2^{\lceil NR_P\rceil_+},\qquad K_n=2^{\lceil NR_K\rceil_+}Mn​=2⌈NRM​⌉+​,Ln​=2⌈NRP​⌉+​,Kn​=2⌈NRK​⌉+​

messages, public symbols, and key symbols, respectively, where ⌈⋅⌉+\lceil\cdot\rceil_+⌈⋅⌉+​ is the natural-number ceiling. Each code consists of a probability distribution en,me_{n,m}en,m​ on SNS^NSN for every message mmm, a public map Tn:{0,…,Mn−1}×XN→{0,…,Ln−1}T_n:\{0,\ldots,M_n-1\}\times X^N\to\{0,\ldots,L_n-1\}Tn​:{0,…,Mn​−1}×XN→{0,…,Ln​−1}, an Alice key map An:{0,…,Mn−1}×XN→{0,…,Kn−1}A_n:\{0,\ldots,M_n-1\}\times X^N\to\{0,\ldots,K_n-1\}An​:{0,…,Mn​−1}×XN→{0,…,Kn​−1}, and a Bob key map Bn:YN×{0,…,Ln−1}→{0,…,Kn−1}B_n:Y^N\times\{0,\ldots,L_n-1\}\to\{0,\ldots,K_n-1\}Bn​:YN×{0,…,Ln​−1}→{0,…,Kn​−1}. All probabilities below use the finite sample law

Pn(m,sN,xN,yN,zN)=en,m(sN)Mn∏i=0N−1Wsi(xi,yi,zi).P_n(m,s^N,x^N,y^N,z^N) =\frac{e_{n,m}(s^N)}{M_n}\prod_{i=0}^{N-1}W_{s_i}(x_i,y_i,z_i).Pn​(m,sN,xN,yN,zN)=Mn​en,m​(sN)​i=0∏N−1​Wsi​​(xi​,yi​,zi​).

Write an=Pn{An(m,xN)≠Bn(yN,Tn(m,xN))}a_n=P_n\{A_n(m,x^N)\ne B_n(y^N,T_n(m,x^N))\}an​=Pn​{An​(m,xN)=Bn​(yN,Tn​(m,xN))} and bn=IPn(An(m,xN);(zN,Tn(m,xN)))b_n=I_{P_n}(A_n(m,x^N);(z^N,T_n(m,x^N)))bn​=IPn​​(An​(m,xN);(zN,Tn​(m,xN))), where H(U)=−∑uP(U=u)log⁡2P(U=u)H(U)=-\sum_u P(U=u)\log_2P(U=u)H(U)=−∑u​P(U=u)log2​P(U=u), H(U∣V)=H(U,V)−H(V)H(U\mid V)=H(U,V)-H(V)H(U∣V)=H(U,V)−H(V), and I(U;V)=H(U)+H(V)−H(U,V)I(U;V)=H(U)+H(V)-H(U,V)I(U;V)=H(U)+H(V)−H(U,V), with zero-probability summands equal to zero. For every real ε>0\varepsilon>0ε>0, eventually in nnn,

RK−ε≤HPn(An(m,xN))n+1.R_K-\varepsilon\le \frac{H_{P_n}(A_n(m,x^N))}{n+1}.RK​−ε≤n+1HPn​​(An​(m,xN))​.

Furthermore, defining the extended-real quantity

ℓn(t)={+∞,t=0,−log⁡2tn+1,t≠0,\ell_n(t)= \begin{cases} +\infty,&t=0,\\ -\dfrac{\log_2t}{n+1},&t\ne0, \end{cases}ℓn​(t)=⎩⎨⎧​+∞,−n+1log2​t​,​t=0,t=0,​

one has

E≤lim inf⁡n→∞ℓn(an),F≤lim inf⁡n→∞ℓn(bn).E\le\liminf_{n\to\infty}\ell_n(a_n), \qquad F\le\liminf_{n\to\infty}\ell_n(b_n).E≤n→∞liminf​ℓn​(an​),F≤n→∞liminf​ℓn​(bn​).

Thus zero disagreement or zero leakage contributes +∞+\infty+∞ to its corresponding logarithmic rate; a zero prescribed rate gives a corresponding alphabet of size one. The definition imposes no input-cost condition.

QAlgorithms.Papers.Independent.Intakethird100.P76.TripleAchievable

Let S,X,Y,ZS,X,Y,ZS,X,Y,Z be finite nonempty alphabets, let Ws(x,y,z)≥0W_s(x,y,z)\geq0Ws​(x,y,z)≥0 sum to 111 for every sss, and write the given real triple as v=(R,E,F)v=(R,E,F)v=(R,E,F). The predicate asserts R,E,F≥0R,E,F\geq0R,E,F≥0 and the existence of codes CnC_nCn​ of every length N=n+1N=n+1N=n+1, n≥0n\geq0n≥0, with positive message, public-message, and key alphabet sizes Mn,Pn,KnM_n,P_n,K_nMn​,Pn​,Kn​; conditional probability distributions en(m,sN)e_n(m,s^N)en​(m,sN); and deterministic public-message, Alice-key, and Bob-key maps πn(m,xN)\pi_n(m,x^N)πn​(m,xN), an(m,xN)a_n(m,x^N)an​(m,xN), and bn(yN,π)b_n(y^N,\pi)bn​(yN,π). There must be fixed rM,rP≥0r_M,r_P\geq0rM​,rP​≥0 such that

Mn=2⌈NrM⌉N,Pn=2⌈NrP⌉N,Kn=2⌈NR⌉NM_n=2^{\lceil Nr_M\rceil_{\mathbb N}},\qquad P_n=2^{\lceil Nr_P\rceil_{\mathbb N}},\qquad K_n=2^{\lceil NR\rceil_{\mathbb N}}Mn​=2⌈NrM​⌉N​,Pn​=2⌈NrP​⌉N​,Kn​=2⌈NR⌉N​

for every nnn. Give o=(m,sN,xN,yN,zN)o=(m,s^N,x^N,y^N,z^N)o=(m,sN,xN,yN,zN) mass qn(o)=Mn−1en(m,sN)∏iWsi(xi,yi,zi)q_n(o)=M_n^{-1}e_n(m,s^N)\prod_iW_{s_i}(x_i,y_i,z_i)qn​(o)=Mn−1​en​(m,sN)∏i​Wsi​​(xi​,yi​,zi​), put An=an(m,xN)A_n=a_n(m,x^N)An​=an​(m,xN) and Vn=(zN,πn(m,xN))V_n=(z^N,\pi_n(m,x^N))Vn​=(zN,πn​(m,xN)), and define Hq(T)=−∑oq(o)log⁡2(∑o′:T(o′)=T(o)q(o′))H_q(T)=-\sum_o q(o)\log_2(\sum_{o':T(o')=T(o)}q(o'))Hq​(T)=−∑o​q(o)log2​(∑o′:T(o′)=T(o)​q(o′)) and Iq(T;U)=Hq(T)+Hq(U)−Hq(T,U)I_q(T;U)=H_q(T)+H_q(U)-H_q(T,U)Iq​(T;U)=Hq​(T)+Hq​(U)−Hq​(T,U). For every ε>0\varepsilon>0ε>0, eventually R−ε≤Hqn(An)/NR-\varepsilon\leq H_{q_n}(A_n)/NR−ε≤Hqn​​(An​)/N. Writing

dn=∑oqn(o)1{An(o)≠bn(yN,πn(m,xN))},ℓn=Iqn(An;Vn),LN(t)={+∞,t=0,−log⁡2(t)/N,t≠0,d_n=\sum_o q_n(o)\mathbf1_{\{A_n(o)\ne b_n(y^N,\pi_n(m,x^N))\}},\qquad \ell_n=I_{q_n}(A_n;V_n),\qquad L_N(t)= \begin{cases} +\infty,&t=0,\\ -\log_2(t)/N,&t\ne0, \end{cases}dn​=o∑​qn​(o)1{An​(o)=bn​(yN,πn​(m,xN))}​,ℓn​=Iqn​​(An​;Vn​),LN​(t)={+∞,−log2​(t)/N,​t=0,t=0,​

the remaining requirements, in the extended real numbers, are

E≤lim inf⁡n→∞Ln+1(dn),F≤lim inf⁡n→∞Ln+1(ℓn).E\leq\liminf_{n\to\infty}L_{n+1}(d_n),\qquad F\leq\liminf_{n\to\infty}L_{n+1}(\ell_n).E≤n→∞liminf​Ln+1​(dn​),F≤n→∞liminf​Ln+1​(ℓn​).

The natural ceiling is truncated at 000, and log⁡20=0\log_2 0=0log2​0=0 in the entropy definitions. No cost condition is present. The allowed exponents include E=0E=0E=0 and F=0F=0F=0; the predicate does not separately require either dnd_ndn​ or ℓn\ell_nℓn​ to tend to 000.

QAlgorithms.Papers.Independent.Intakethird100.P76.WeakAchievable

Let S,X,Y,ZS,X,Y,ZS,X,Y,Z be finite types, and let WWW specify nonempty alphabets and, for every s∈Ss\in Ss∈S, nonnegative numbers Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z) summing to 111 over X×Y×ZX\times Y\times ZX×Y×Z. Let cost⁡:S→R\operatorname{cost}:S\to\mathbb Rcost:S→R, let Γ\GammaΓ be either absent or a specified real number, and let R∈RR\in\mathbb RR∈R. The predicate asserts R≥0R\geq0R≥0 and the existence, for every n≥0n\geq0n≥0, of a code CnC_nCn​ of length N=n+1N=n+1N=n+1, with positive integers Mn,Pn,KnM_n,P_n,K_nMn​,Pn​,Kn​, conditional probability distributions en(m,sN)e_n(m,s^N)en​(m,sN) on SNS^NSN, and deterministic maps πn(m,xN)∈{0,…,Pn−1}\pi_n(m,x^N)\in\{0,\ldots,P_n-1\}πn​(m,xN)∈{0,…,Pn​−1}, an(m,xN)∈{0,…,Kn−1}a_n(m,x^N)\in\{0,\ldots,K_n-1\}an​(m,xN)∈{0,…,Kn​−1}, and bn(yN,π)∈{0,…,Kn−1}b_n(y^N,\pi)\in\{0,\ldots,K_n-1\}bn​(yN,π)∈{0,…,Kn​−1}, satisfying the following requirements. There exist fixed rM,rP≥0r_M,r_P\geq0rM​,rP​≥0 such that Mn=2⌈NrM⌉NM_n=2^{\lceil Nr_M\rceil_{\mathbb N}}Mn​=2⌈NrM​⌉N​, Pn=2⌈NrP⌉NP_n=2^{\lceil Nr_P\rceil_{\mathbb N}}Pn​=2⌈NrP​⌉N​, and Kn=2⌈NR⌉NK_n=2^{\lceil NR\rceil_{\mathbb N}}Kn​=2⌈NR⌉N​ for every nnn. If Γ=g\Gamma=gΓ=g is specified, then every m,sNm,s^Nm,sN with en(m,sN)>0e_n(m,s^N)>0en​(m,sN)>0 satisfies ∑i=0N−1cost⁡(si)≤Ng\sum_{i=0}^{N-1}\operatorname{cost}(s_i)\leq Ng∑i=0N−1​cost(si​)≤Ng; an absent Γ\GammaΓ imposes no cost condition. On the finite sample space of tuples o=(m,sN,xN,yN,zN)o=(m,s^N,x^N,y^N,z^N)o=(m,sN,xN,yN,zN), put

qn(o)=Mn−1en(m,sN)∏i=0N−1Wsi(xi,yi,zi),An(o)=an(m,xN),Vn(o)=(zN,πn(m,xN)).q_n(o)=M_n^{-1}e_n(m,s^N)\prod_{i=0}^{N-1}W_{s_i}(x_i,y_i,z_i),\qquad A_n(o)=a_n(m,x^N),\qquad V_n(o)=(z^N,\pi_n(m,x^N)).qn​(o)=Mn−1​en​(m,sN)i=0∏N−1​Wsi​​(xi​,yi​,zi​),An​(o)=an​(m,xN),Vn​(o)=(zN,πn​(m,xN)).

For any finite probability mass function qqq and observation TTT, define

Hq(T)=−∑oq(o)log⁡2 ⁣(∑o′: T(o′)=T(o)q(o′)),Iq(T;U)=Hq(T)+Hq(U)−Hq(T,U).H_q(T)=-\sum_o q(o)\log_2\!\left(\sum_{o':\,T(o')=T(o)}q(o')\right),\qquad I_q(T;U)=H_q(T)+H_q(U)-H_q(T,U).Hq​(T)=−o∑​q(o)log2​​o′:T(o′)=T(o)∑​q(o′)​,Iq​(T;U)=Hq​(T)+Hq​(U)−Hq​(T,U).

For every real ε>0\varepsilon>0ε>0, eventually R−ε≤Hqn(An)/NR-\varepsilon\leq H_{q_n}(A_n)/NR−ε≤Hqn​​(An​)/N, and

∑oqn(o) 1{An(o)≠bn(yN,πn(m,xN))}⟶0,Iqn(An;Vn)N⟶0\sum_o q_n(o)\,\mathbf1_{\{A_n(o)\ne b_n(y^N,\pi_n(m,x^N))\}}\longrightarrow0,\qquad \frac{I_{q_n}(A_n;V_n)}{N}\longrightarrow0o∑​qn​(o)1{An​(o)=bn​(yN,πn​(m,xN))}​⟶0,NIqn​​(An​;Vn​)​⟶0

as n→∞n\to\inftyn→∞. The real logarithm is total, with log⁡20=0\log_2 0=0log2​0=0, so zero-mass terms are included under that convention. No positivity or boundedness assumption on the cost function or specified cost limit is imposed.

QAlgorithms.Papers.Independent.Intakethird100.P76.advantage

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel WWW with nonnegative conditional masses summing to 111, and any function p:S→Rp:S\to\mathbb Rp:S→R, put μ(s,x,y,z)=p(s)Ws(x,y,z)\mu(s,x,y,z)=p(s)W_s(x,y,z)μ(s,x,y,z)=p(s)Ws​(x,y,z) and let S,X,Y,Z\mathsf S,\mathsf X,\mathsf Y,\mathsf ZS,X,Y,Z denote the coordinate observations. For any observation AAA, define

Hμ(A)=−∑oμ(o)log⁡2 ⁣(∑o′: A(o′)=A(o)μ(o′)),Iμ(A;B)=Hμ(A)+Hμ(B)−Hμ(A,B).H_\mu(A)=-\sum_o\mu(o)\log_2\!\left(\sum_{o':\,A(o')=A(o)}\mu(o')\right), \qquad I_\mu(A;B)=H_\mu(A)+H_\mu(B)-H_\mu(A,B).Hμ​(A)=−o∑​μ(o)log2​​o′:A(o′)=A(o)∑​μ(o′)​,Iμ​(A;B)=Hμ​(A)+Hμ​(B)−Hμ​(A,B).

The function returns

Iμ((X,S);Y)−Iμ((X,S);Z).I_\mu((\mathsf X,\mathsf S);\mathsf Y) - I_\mu((\mathsf X,\mathsf S);\mathsf Z).Iμ​((X,S);Y)−Iμ​((X,S);Z).

There is no assumption that ppp is nonnegative or sums to 111; the displayed finite-sum expressions are evaluated even then, using the total real logarithm, with log⁡20=0\log_2 0=0log2​0=0 and log⁡2t=log⁡2∣t∣\log_2 t=\log_2|t|log2​t=log2​∣t∣ for t<0t<0t<0.

QAlgorithms.Papers.Independent.Intakethird100.P76.auxMass

For finite types S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel datum WWW supplies their nonemptiness and numbers Ws(x,y,z)≥0W_s(x,y,z)\ge0Ws​(x,y,z)≥0 with ∑x,y,zWs(x,y,z)=1\sum_{x,y,z}W_s(x,y,z)=1∑x,y,z​Ws​(x,y,z)=1 for every s∈Ss\in Ss∈S. Given natural numbers u,wu,wu,w and an auxiliary datum AAA, write its input law as p(s)p(s)p(s), its first stochastic kernel as q(a∣x,s)q(a\mid x,s)q(a∣x,s), and its second stochastic kernel as r(b∣a)r(b\mid a)r(b∣a); thus these functions are nonnegative and each relevant distribution sums to one. The declaration defines the real-valued mass function on tuples (b,a,s,x,y,z)∈{0,…,w−1}×{0,…,u−1}×S×X×Y×Z(b,a,s,x,y,z)\in\{0,\ldots,w-1\}\times\{0,\ldots,u-1\}\times S\times X\times Y\times Z(b,a,s,x,y,z)∈{0,…,w−1}×{0,…,u−1}×S×X×Y×Z by

μ(b,a,s,x,y,z)=r(b∣a) q(a∣x,s) p(s) Ws(x,y,z).\mu(b,a,s,x,y,z)=r(b\mid a)\,q(a\mid x,s)\,p(s)\,W_s(x,y,z).μ(b,a,s,x,y,z)=r(b∣a)q(a∣x,s)p(s)Ws​(x,y,z).

Although u,wu,wu,w are introduced as arbitrary natural numbers, existence of AAA with the nonempty types supplied by WWW forces both to be positive.

QAlgorithms.Papers.Independent.Intakethird100.P76.auxObjective

For finite types S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel datum WWW giving nonempty types and conditional probability laws Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z), natural numbers u,wu,wu,w, and auxiliary data consisting of an input law ppp and stochastic kernels q(a∣x,s)q(a\mid x,s)q(a∣x,s), r(b∣a)r(b\mid a)r(b∣a), form the mass function μ(b,a,s,x,y,z)=r(b∣a)q(a∣x,s)p(s)Ws(x,y,z)\mu(b,a,s,x,y,z)=r(b\mid a)q(a\mid x,s)p(s)W_s(x,y,z)μ(b,a,s,x,y,z)=r(b∣a)q(a∣x,s)p(s)Ws​(x,y,z). Let U,V,Y,ZU,V,Y,ZU,V,Y,Z denote, respectively, the coordinates a,b,y,za,b,y,za,b,y,z. For any observation FFF of this finite sample space, define

Hμ(F)=−∑oμ(o)log⁡2 ⁣(∑o′: F(o′)=F(o)μ(o′)),H_\mu(F)=-\sum_o\mu(o)\log_2\!\left(\sum_{o':\,F(o')=F(o)}\mu(o')\right),Hμ​(F)=−o∑​μ(o)log2​​o′:F(o′)=F(o)∑​μ(o′)​,

with zero-mass terms contributing zero. The declaration defines the objective to be

[Hμ(U,V)−Hμ(V)−Hμ(U,Y,V)+Hμ(Y,V)]−[Hμ(U,V)−Hμ(V)−Hμ(U,Z,V)+Hμ(Z,V)],\bigl[H_\mu(U,V)-H_\mu(V)-H_\mu(U,Y,V)+H_\mu(Y,V)\bigr] -\bigl[H_\mu(U,V)-H_\mu(V)-H_\mu(U,Z,V)+H_\mu(Z,V)\bigr],[Hμ​(U,V)−Hμ​(V)−Hμ​(U,Y,V)+Hμ​(Y,V)]−[Hμ​(U,V)−Hμ​(V)−Hμ​(U,Z,V)+Hμ​(Z,V)],

that is, Iμ(U;Y∣V)−Iμ(U;Z∣V)I_\mu(U;Y\mid V)-I_\mu(U;Z\mid V)Iμ​(U;Y∣V)−Iμ​(U;Z∣V). Neither auxiliary kernel is required to be deterministic or strictly positive.

QAlgorithms.Papers.Independent.Intakethird100.P76.auxValues

For finite types S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel datum WWW giving nonempty types and conditional probability laws Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z), any real-valued cost function c:S→Rc:S\to\mathbb Rc:S→R, and any real number Γ\GammaΓ, the declaration defines a set of real numbers as follows: vvv belongs to it exactly when there are positive natural numbers u,wu,wu,w, a probability law ppp on SSS, and stochastic kernels q(a∣x,s)q(a\mid x,s)q(a∣x,s) and r(b∣a)r(b\mid a)r(b∣a), with a<ua<ua<u and b<wb<wb<w, such that ∑sp(s)c(s)≤Γ\sum_s p(s)c(s)\le\Gamma∑s​p(s)c(s)≤Γ and

v=Iμ(U;Y∣V)−Iμ(U;Z∣V),μ(b,a,s,x,y,z)=r(b∣a)q(a∣x,s)p(s)Ws(x,y,z).v=I_\mu(U;Y\mid V)-I_\mu(U;Z\mid V),\qquad \mu(b,a,s,x,y,z)=r(b\mid a)q(a\mid x,s)p(s)W_s(x,y,z).v=Iμ​(U;Y∣V)−Iμ​(U;Z∣V),μ(b,a,s,x,y,z)=r(b∣a)q(a∣x,s)p(s)Ws​(x,y,z).

Here all laws and kernels are nonnegative and normalized, U=a,V=bU=a,V=bU=a,V=b, and Iμ(A;B∣C)=Hμ(A,C)−Hμ(C)−Hμ(A,B,C)+Hμ(B,C)I_\mu(A;B\mid C)=H_\mu(A,C)-H_\mu(C)-H_\mu(A,B,C)+H_\mu(B,C)Iμ​(A;B∣C)=Hμ​(A,C)−Hμ​(C)−Hμ​(A,B,C)+Hμ​(B,C), using Shannon entropy in bits and zero contribution from zero-probability terms. No sign or boundedness condition on ccc, and no positivity condition on Γ\GammaΓ, is imposed by this definition; if no feasible input law exists, the defined set is empty.

QAlgorithms.Papers.Independent.Intakethird100.P76.blockMass

Let S,X,Y,ZS,X,Y,ZS,X,Y,Z be finite types, let WWW specify nonempty S,X,Y,ZS,X,Y,ZS,X,Y,Z and, for each s∈Ss\in Ss∈S, nonnegative numbers ws(x,y,z)w_s(x,y,z)ws​(x,y,z) summing to 111 over X×Y×ZX\times Y\times ZX×Y×Z, and let CCC be a length-nnn code with positive message count MMM and encoder probabilities e(m,s)e(m,s)e(m,s) summing to 111 over s∈Sns\in S^ns∈Sn for each message. This function assigns to every tuple o=(m,s,x,y,z)o=(m,s,x,y,z)o=(m,s,x,y,z) the real number

P(o)=1M e(m,s)∏i=0n−1wsi(xi,yi,zi).P(o)=\frac1M\,e(m,s)\prod_{i=0}^{n-1}w_{s_i}(x_i,y_i,z_i).P(o)=M1​e(m,s)i=0∏n−1​wsi​​(xi​,yi​,zi​).

The code’s public and key maps do not enter this expression. The natural number nnn may be zero; then the product is 111, and encoder normalization makes the mass of each message tuple 1/M1/M1/M.

QAlgorithms.Papers.Independent.Intakethird100.P76.channelRate

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel WWW whose nonnegative conditional masses sum to 111, and an arbitrary function p:S→Rp:S\to\mathbb Rp:S→R, put μ(s,x,y,z)=p(s)Ws(x,y,z)\mu(s,x,y,z)=p(s)W_s(x,y,z)μ(s,x,y,z)=p(s)Ws​(x,y,z) and let S,Y,Z\mathsf S,\mathsf Y,\mathsf ZS,Y,Z be the corresponding coordinate observations. Define

Hμ(A)=−∑oμ(o)log⁡2 ⁣(∑o′: A(o′)=A(o)μ(o′)).H_\mu(A)=-\sum_o\mu(o)\log_2\!\left(\sum_{o':\,A(o')=A(o)}\mu(o')\right).Hμ​(A)=−o∑​μ(o)log2​​o′:A(o′)=A(o)∑​μ(o′)​.

This function returns

[Hμ(S)+Hμ(Y)−Hμ(S,Y)]−[Hμ(S)+Hμ(Z)−Hμ(S,Z)].\bigl[H_\mu(\mathsf S)+H_\mu(\mathsf Y)-H_\mu(\mathsf S,\mathsf Y)\bigr] - \bigl[H_\mu(\mathsf S)+H_\mu(\mathsf Z)-H_\mu(\mathsf S,\mathsf Z)\bigr].[Hμ​(S)+Hμ​(Y)−Hμ​(S,Y)]−[Hμ​(S)+Hμ​(Z)−Hμ​(S,Z)].

There is no assumption that ppp is a probability distribution. These expressions remain defined for zero or negative masses through the total real logarithm, for which log⁡20=0\log_2 0=0log2​0=0 and log⁡2t=log⁡2∣t∣\log_2 t=\log_2|t|log2​t=log2​∣t∣ when t<0t<0t<0.

QAlgorithms.Papers.Independent.Intakethird100.P76.condEntropy

For any finite type OOO, arbitrary types A,BA,BA,B, any function p:O→Rp:O\to\mathbb Rp:O→R, and observations a:O→Aa:O\to Aa:O→A, b:O→Bb:O\to Bb:O→B, this defines

−∑o∈Op(o)log⁡2 ⁣(∑t∈Oa(t)=a(o), b(t)=b(o)p(t))+∑o∈Op(o)log⁡2 ⁣(∑t∈Ob(t)=b(o)p(t)).-\sum_{o\in O}p(o)\log_2\!\left(\sum_{\substack{t\in O\\a(t)=a(o),\ b(t)=b(o)}}p(t)\right) +\sum_{o\in O}p(o)\log_2\!\left(\sum_{\substack{t\in O\\b(t)=b(o)}}p(t)\right).−o∈O∑​p(o)log2​​t∈Oa(t)=a(o), b(t)=b(o)​∑​p(t)​+o∈O∑​p(o)log2​​t∈Ob(t)=b(o)​∑​p(t)​.

No nonnegativity or normalization is required of ppp, and neither observation type is required to be finite. The logarithm has value 000 at 000 and uses the absolute value at negative arguments. The definition gives 000 when OOO is empty.

QAlgorithms.Papers.Independent.Intakethird100.P76.condInfo

For any finite type OOO, arbitrary types A,B,CA,B,CA,B,C, any function p:O→Rp:O\to\mathbb Rp:O→R, and observations a:O→Aa:O\to Aa:O→A, b:O→Bb:O\to Bb:O→B, c:O→Cc:O\to Cc:O→C, write mc(o)=∑t:c(t)=c(o)p(t)m_c(o)=\sum_{t:c(t)=c(o)}p(t)mc​(o)=∑t:c(t)=c(o)​p(t), mac(o)=∑t:a(t)=a(o), c(t)=c(o)p(t)m_{ac}(o)=\sum_{t:a(t)=a(o),\,c(t)=c(o)}p(t)mac​(o)=∑t:a(t)=a(o),c(t)=c(o)​p(t), mbc(o)=∑t:b(t)=b(o), c(t)=c(o)p(t)m_{bc}(o)=\sum_{t:b(t)=b(o),\,c(t)=c(o)}p(t)mbc​(o)=∑t:b(t)=b(o),c(t)=c(o)​p(t), and mabc(o)=∑t:a(t)=a(o), b(t)=b(o), c(t)=c(o)p(t)m_{abc}(o)=\sum_{t:a(t)=a(o),\,b(t)=b(o),\,c(t)=c(o)}p(t)mabc​(o)=∑t:a(t)=a(o),b(t)=b(o),c(t)=c(o)​p(t). This defines

−∑op(o)log⁡2mac(o)+∑op(o)log⁡2mc(o)+∑op(o)log⁡2mabc(o)−∑op(o)log⁡2mbc(o).-\sum_o p(o)\log_2 m_{ac}(o) +\sum_o p(o)\log_2 m_c(o) +\sum_o p(o)\log_2 m_{abc}(o) -\sum_o p(o)\log_2 m_{bc}(o).−o∑​p(o)log2​mac​(o)+o∑​p(o)log2​mc​(o)+o∑​p(o)log2​mabc​(o)−o∑​p(o)log2​mbc​(o).

There are no probability assumptions on ppp or finiteness assumptions on A,B,CA,B,CA,B,C. The logarithm is 000 at 000 and uses absolute values at negative arguments. If OOO is empty, the result is 000.

QAlgorithms.Papers.Independent.Intakethird100.P76.eveView

For types S,X,Y,ZS,X,Y,ZS,X,Y,Z, with SSS finite, a natural number nnn, a length-nnn code CCC with positive message and public-label counts M,LM,LM,L, and a tuple o=(m,s,x,y,z)∈{0,…,M−1}×Sn×Xn×Yn×Zno=(m,s,x,y,z)\in\{0,\ldots,M-1\}\times S^n\times X^n\times Y^n\times Z^no=(m,s,x,y,z)∈{0,…,M−1}×Sn×Xn×Yn×Zn, this function returns

(z,f(m,x))∈Zn×{0,…,L−1},\bigl(z,f(m,x)\bigr)\in Z^n\times\{0,\ldots,L-1\},(z,f(m,x))∈Zn×{0,…,L−1},

where fff is the code’s public map. This is defined for every tuple, including tuples of zero probability, and for n=0n=0n=0.

QAlgorithms.Papers.Independent.Intakethird100.P76.excitationJointMass

For types S,X,Y,ZS,X,Y,ZS,X,Y,Z, with finite X,Y,ZX,Y,ZX,Y,Z, let WWW consist of nonemptiness evidence for all four types and a function w(s,(x,y,z))w(s,(x,y,z))w(s,(x,y,z)) that is nonnegative and sums to 111 over (x,y,z)(x,y,z)(x,y,z) for each sss. For any function p:S→Rp:S\to\mathbb Rp:S→R, this defines a function on quadruples by

(s,x,y,z)⟼p(s) w(s,(x,y,z)).(s,x,y,z)\longmapsto p(s)\,w(s,(x,y,z)).(s,x,y,z)⟼p(s)w(s,(x,y,z)).

No nonnegativity or normalization is assumed for ppp, and no finiteness of SSS is required.

QAlgorithms.Papers.Independent.Intakethird100.P76.generatedKeyEntropy

For finite types S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel WWW with nonempty alphabets and conditional probability laws wsw_sws​, and a length-nnn code CCC with positive message count MMM, normalized encoder probabilities eee, and Alice key map aaa, let

P(m,s,x,y,z)=1Me(m,s)∏i=0n−1wsi(xi,yi,zi).P(m,s,x,y,z)=\frac1M e(m,s)\prod_{i=0}^{n-1}w_{s_i}(x_i,y_i,z_i).P(m,s,x,y,z)=M1​e(m,s)i=0∏n−1​wsi​​(xi​,yi​,zi​).

This real number is

−∑o=(m,s,x,y,z)P(o)log⁡2 ⁣(∑o′=(m′,s′,x′,y′,z′)a(m′,x′)=a(m,x)P(o′)).-\sum_{o=(m,s,x,y,z)}P(o)\log_2\!\left( \sum_{\substack{o'=(m',s',x',y',z')\\a(m',x')=a(m,x)}}P(o') \right).−o=(m,s,x,y,z)∑​P(o)log2​​o′=(m′,s′,x′,y′,z′)a(m′,x′)=a(m,x)​∑​P(o′)​.

The logarithm is the total real base-222 logarithm, with value 000 at 000. There is no requirement that the generated key be uniform. The natural number nnn may be zero, with the product in PPP then equal to 111.

QAlgorithms.Papers.Independent.Intakethird100.P76.innerRegion

Let S,X,Y,ZS,X,Y,ZS,X,Y,Z be finite nonempty sets, let each Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z) be a probability distribution, and fix any function p:S→Rp:S\to\mathbb Rp:S→R and real numbers RP,RMR_P,R_MRP​,RM​. Write As(x,y)=∑zWs(x,y,z)A_s(x,y)=\sum_zW_s(x,y,z)As​(x,y)=∑z​Ws​(x,y,z), Bs(y)=∑xAs(x,y)B_s(y)=\sum_xA_s(x,y)Bs​(y)=∑x​As​(x,y), Cs(x,z)=∑yWs(x,y,z)C_s(x,z)=\sum_yW_s(x,y,z)Cs​(x,z)=∑y​Ws​(x,y,z), and pZ(z)=∑s,xp(s)Cs(x,z)p_Z(z)=\sum_{s,x}p(s)C_s(x,z)pZ​(z)=∑s,x​p(s)Cs​(x,z). For r∈[0,1]r\in[0,1]r∈[0,1], set

F1(r)=rRP−log⁡2 ⁣∑s,yp(s)Bs(y)[∑x(As(x,y)Bs(y))1/(1+r)]1+r,F2(r)=r(RP−RM)−log⁡2 ⁣∑x,y[∑sp(s)As(x,y)1/(1+r)]1+r,F3(r)=r(RP−RM)−log⁡2 ⁣∑y[∑s,xp(s)As(x,y)1/(1+r)]1+r,\begin{aligned} F_1(r)&=rR_P-\log_2\!\sum_{s,y}p(s)B_s(y) \left[\sum_x\left(\frac{A_s(x,y)}{B_s(y)}\right)^{1/(1+r)}\right]^{1+r},\\ F_2(r)&=r(R_P-R_M)-\log_2\!\sum_{x,y} \left[\sum_sp(s)A_s(x,y)^{1/(1+r)}\right]^{1+r},\\ F_3(r)&=r(R_P-R_M)-\log_2\!\sum_y \left[\sum_{s,x}p(s)A_s(x,y)^{1/(1+r)}\right]^{1+r}, \end{aligned}F1​(r)F2​(r)F3​(r)​=rRP​−log2​s,y∑​p(s)Bs​(y)[x∑​(Bs​(y)As​(x,y)​)1/(1+r)]1+r,=r(RP​−RM​)−log2​x,y∑​[s∑​p(s)As​(x,y)1/(1+r)]1+r,=r(RP​−RM​)−log2​y∑​[s,x∑​p(s)As​(x,y)1/(1+r)]1+r,​

and set

G(α,R)=−α(R+RP−RM)−log⁡2 ⁣∑z{0,pZ(z)=0,∑s,xp(s)Cs(x,z)(Cs(x,z)pZ(z))α,pZ(z)≠0.G(\alpha,R)=-\alpha(R+R_P-R_M)-\log_2\!\sum_z \begin{cases} 0,&p_Z(z)=0,\\ \displaystyle\sum_{s,x}p(s)C_s(x,z) \left(\frac{C_s(x,z)}{p_Z(z)}\right)^\alpha,&p_Z(z)\ne0. \end{cases}G(α,R)=−α(R+RP​−RM​)−log2​z∑​⎩⎨⎧​0,s,x∑​p(s)Cs​(x,z)(pZ​(z)Cs​(x,z)​)α,​pZ​(z)=0,pZ​(z)=0.​

The declaration defines the set of triples (R,E,F)∈R3(R,E,F)\in\mathbb R^3(R,E,F)∈R3 satisfying

R,E,F≥0,E≤min⁡{sup⁡r∈[0,1]F1(r),min⁡{sup⁡r∈[0,1]F2(r),sup⁡r∈[0,1]F3(r)}},F≤sup⁡0<α≤1G(α,R).R,E,F\ge0,\qquad E\le\min\left\{\sup_{r\in[0,1]}F_1(r), \min\left\{\sup_{r\in[0,1]}F_2(r),\sup_{r\in[0,1]}F_3(r)\right\}\right\}, \qquad F\le\sup_{0<\alpha\le1}G(\alpha,R).R,E,F≥0,E≤min{r∈[0,1]sup​F1​(r),min{r∈[0,1]sup​F2​(r),r∈[0,1]sup​F3​(r)}},F≤0<α≤1sup​G(α,R).

The comparisons and suprema are in the extended real line after embedding the real quantities. The function ppp need not be a probability distribution, and RP,RMR_P,R_MRP​,RM​ need not be nonnegative. Zero coordinates R,E,FR,E,FR,E,F are allowed; all powers, divisions, and logarithms are total, with division by zero and log⁡20\log_2 0log2​0 equal to zero.

QAlgorithms.Papers.Independent.Intakethird100.P76.inputOptimizedSecrecyExponent

For finite, nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, let WWW specify numbers ws(x,y,z)≥0w_s(x,y,z)\ge0ws​(x,y,z)≥0 summing to one over (x,y,z)(x,y,z)(x,y,z) for every sss, and let RK,RP,RMR_K,R_P,R_MRK​,RP​,RM​ be arbitrary real numbers. Put cs(x,z)=∑yws(x,y,z)c_s(x,z)=\sum_y w_s(x,y,z)cs​(x,z)=∑y​ws​(x,y,z). For a probability distribution p:S→Rp:S\to\mathbb Rp:S→R, meaning p≥0p\ge0p≥0 and ∑sp(s)=1\sum_s p(s)=1∑s​p(s)=1, put qp(z)=∑s,xp(s)cs(x,z)q_p(z)=\sum_{s,x}p(s)c_s(x,z)qp​(z)=∑s,x​p(s)cs​(x,z). The declaration defines the extended-real supremum

sup⁡p:S→Rp≥0, ∑sp(s)=1 sup⁡α∈(0,1][−α(RK+RP−RM)−log⁡2 ⁣(∑z{0,qp(z)=0,∑s,xp(s)cs(x,z)(cs(x,z)qp(z))α,qp(z)≠0)].\sup_{\substack{p:S\to\mathbb R\\p\ge0,\ \sum_s p(s)=1}} \ \sup_{\alpha\in(0,1]} \left[ -\alpha(R_K+R_P-R_M) -\log_2\!\left( \sum_z \begin{cases} 0,&q_p(z)=0,\\[2pt] \displaystyle\sum_{s,x}p(s)c_s(x,z) \left(\frac{c_s(x,z)}{q_p(z)}\right)^\alpha, &q_p(z)\ne0 \end{cases} \right) \right].p:S→Rp≥0, ∑s​p(s)=1​sup​ α∈(0,1]sup​​−α(RK​+RP​−RM​)−log2​​z∑​⎩⎨⎧​0,s,x∑​p(s)cs​(x,z)(qp​(z)cs​(x,z)​)α,​qp​(z)=0,qp​(z)=0​​​.

Each bracketed real value is embedded into the extended reals before taking the suprema. Distributions with zero entries are allowed, the zero-qp(z)q_p(z)qp​(z) branch contributes exactly zero, and the total real logarithm has log⁡20=0\log_2 0=0log2​0=0.

QAlgorithms.Papers.Independent.Intakethird100.P76.interactiveCapacity

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, conditional probability distributions Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z), an arbitrary cost function c:S→Rc:S\to\mathbb Rc:S→R, and Γ∈R\Gamma\in\mathbb RΓ∈R, this declaration defines an extended-real number as the supremum of the real rates R≥0R\ge0R≥0 satisfying the following condition, embedded into the extended real line. There must exist interactive codes of every positive length NNN, with positive base message, public-label, and key counts MN,PN,KNM_N,P_N,K_NMN​,PN​,KN​, conditional encoder distributions eN,me_{N,m}eN,m​ on SNS^NSN, positive finite Bob-seed counts BNB_NBN​, finite positive transcript alphabets, finite fixed speaking schedules, and deterministic speaking and final-key functions. Fixed constants rM,rP,rK≥0r_M,r_P,r_K\ge0rM​,rP​,rK​≥0 must give MN=2⌈NrM⌉+M_N=2^{\lceil Nr_M\rceil_+}MN​=2⌈NrM​⌉+​, PN=2⌈NrP⌉+P_N=2^{\lceil Nr_P\rceil_+}PN​=2⌈NrP​⌉+​, and KN≤2NrKK_N\le2^{Nr_K}KN​≤2NrK​ for every N≥1N\ge1N≥1; every encoder-supported word must satisfy ∑i<Nc(si)≤NΓ\sum_{i<N}c(s_i)\le N\Gamma∑i<N​c(si​)≤NΓ. Under the sample weights eN,m(sN)(MNBN)−1∏i<NWsi(xi,yi,zi)e_{N,m}(s^N)(M_NB_N)^{-1}\prod_{i<N}W_{s_i}(x_i,y_i,z_i)eN,m​(sN)(MN​BN​)−1∏i<N​Wsi​​(xi​,yi​,zi​), let TNT_NTN​ be the transcript produced by successively applying the scheduled Alice functions of m,xNm,x^Nm,xN and the preceding transcript and Bob functions of his seed, yNy^NyN, and that transcript, and let AN,BN′A_N,B'_NAN​,BN′​ be the resulting final keys. For every ε>0\varepsilon>0ε>0, eventually H(AN)/N≥R−εH(A_N)/N\ge R-\varepsilonH(AN​)/N≥R−ε, while Pr⁡(AN≠BN′)→0\Pr(A_N\ne B'_N)\to0Pr(AN​=BN′​)→0 and I(AN;(ZN,TN))/N→0I(A_N;(Z^N,T_N))/N\to0I(AN​;(ZN,TN​))/N→0, with entropies in bits. The supremum is taken in the extended real line, so an empty set gives −∞-\infty−∞ and an unbounded set gives +∞+\infty+∞.

QAlgorithms.Papers.Independent.Intakethird100.P76.interactiveEntropy

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, let WsW_sWs​ be a probability distribution on X×Y×ZX\times Y\times ZX×Y×Z, and let CCC be an interactive code of natural length nnn, possibly zero. If M,B>0M,B>0M,B>0 are its numbers of base messages and Bob seeds and eme_mem​ is its conditional distribution on SnS^nSn, assign each sample o=(m,sn,xn,yn,zn,b)o=(m,s^n,x^n,y^n,z^n,b)o=(m,sn,xn,yn,zn,b) weight μ(o)=em(sn)(MB)−1∏i<nWsi(xi,yi,zi)\mu(o)=e_m(s^n)(MB)^{-1}\prod_{i<n}W_{s_i}(x_i,y_i,z_i)μ(o)=em​(sn)(MB)−1∏i<n​Wsi​​(xi​,yi​,zi​). Its transcript T(o)T(o)T(o) starts empty and successively appends symbols according to the fixed speaking schedule, using Alice’s functions of m,xnm,x^nm,xn and the preceding transcript or Bob’s functions of b,ynb,y^nb,yn and that transcript. Let A(o)A(o)A(o) be Alice’s final-key function of m,xn,T(o)m,x^n,T(o)m,xn,T(o). The declaration defines the real number

−∑oμ(o)log⁡2 ⁣(∑o′:A(o′)=A(o)μ(o′)),-\sum_o\mu(o)\log_2\!\left(\sum_{o':A(o')=A(o)}\mu(o')\right),−o∑​μ(o)log2​​o′:A(o′)=A(o)∑​μ(o′)​,

the entropy in bits of Alice’s final key under these weights. This uses the actual key distribution; zero probabilities use the total-real convention log⁡20=0\log_2 0=0log2​0=0, and for n=0n=0n=0 the channel product is 111.

QAlgorithms.Papers.Independent.Intakethird100.P76.interactiveError

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, let Ws(x,y,z)≥0W_s(x,y,z)\ge 0Ws​(x,y,z)≥0 satisfy ∑x,y,zWs(x,y,z)=1\sum_{x,y,z}W_s(x,y,z)=1∑x,y,z​Ws​(x,y,z)=1 for every s∈Ss\in Ss∈S, and let CCC be an interactive code of length n∈Nn\in\mathbb Nn∈N, including n=0n=0n=0. Its base code has positive numbers M,P,KM,P,KM,P,K of messages, public labels, and keys, and conditional probabilities em(sn)≥0e_m(s^n)\ge0em​(sn)≥0 with ∑snem(sn)=1\sum_{s^n}e_m(s^n)=1∑sn​em​(sn)=1. The interactive code also has a positive number BBB of Bob seeds, a finite number of rounds, a positive finite transcript alphabet, a fixed schedule specifying the speaker in each round, and deterministic speaking and final-key functions. A sample o=(m,sn,xn,yn,zn,b)o=(m,s^n,x^n,y^n,z^n,b)o=(m,sn,xn,yn,zn,b), with m<Mm<Mm<M and b<Bb<Bb<B, has weight

μ(o)=em(sn)MB∏i=0n−1Wsi(xi,yi,zi).\mu(o)=\frac{e_m(s^n)}{MB}\prod_{i=0}^{n-1}W_{s_i}(x_i,y_i,z_i).μ(o)=MBem​(sn)​i=0∏n−1​Wsi​​(xi​,yi​,zi​).

Starting with an empty transcript, each scheduled Alice round appends her speaking function of m,xnm,x^nm,xn and the preceding transcript; each Bob round appends his speaking function of b,ynb,y^nb,yn and that transcript. Write T(o)T(o)T(o) for the resulting transcript, KA(o)K_A(o)KA​(o) for Alice’s final-key function of m,xn,T(o)m,x^n,T(o)m,xn,T(o), and KB(o)K_B(o)KB​(o) for Bob’s final-key function of b,yn,T(o)b,y^n,T(o)b,yn,T(o). The declaration defines the real number ∑o:KA(o)≠KB(o)μ(o)\sum_{o:K_A(o)\ne K_B(o)}\mu(o)∑o:KA​(o)=KB​(o)​μ(o). Zero rounds give an empty transcript; for n=0n=0n=0, the channel product is 111.

QAlgorithms.Papers.Independent.Intakethird100.P76.interactiveKeyA

For a finite type SSS, arbitrary types X,Y,ZX,Y,ZX,Y,Z, a natural block length nnn, an interactive code CCC, and a sample ((m,sn,xn,yn,zn),b)((m,s^n,x^n,y^n,z^n),b)((m,sn,xn,yn,zn),b), the declaration defines Alice’s interactive key as FinalAlice⁡(m,xn,tr)\operatorname{FinalAlice}(m,x^n,t_r)FinalAlice(m,xn,tr​), an index in the base code’s positive key alphabet {0,…,K−1}\{0,\ldots,K-1\}{0,…,K−1}. Here rrr is the code’s round count, t0=[]t_0=[]t0​=[], and ti+1t_{i+1}ti+1​ is obtained by appending AliceTalk⁡(m,xn,ti)\operatorname{AliceTalk}(m,x^n,t_i)AliceTalk(m,xn,ti​) when sender⁡(i)=true\operatorname{sender}(i)=\mathrm{true}sender(i)=true, or BobTalk⁡(b,yn,ti)\operatorname{BobTalk}(b,y^n,t_i)BobTalk(b,yn,ti​) otherwise, for 0≤i<r0\le i<r0≤i<r. In particular, when r=0r=0r=0, the key is FinalAlice⁡(m,xn,[])\operatorname{FinalAlice}(m,x^n,[])FinalAlice(m,xn,[]); the declaration does not require this function to equal the base code’s Alice key map.

QAlgorithms.Papers.Independent.Intakethird100.P76.interactiveLeakage

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, let WsW_sWs​ be a probability distribution on X×Y×ZX\times Y\times ZX×Y×Z, and let CCC be an interactive code of any natural length nnn, including zero. Let M,BM,BM,B be its positive numbers of base messages and Bob seeds, and let eme_mem​ be its probability distribution on SnS^nSn for message mmm. On samples o=(m,sn,xn,yn,zn,b)o=(m,s^n,x^n,y^n,z^n,b)o=(m,sn,xn,yn,zn,b), use the weights

μ(o)=em(sn)MB∏i=0n−1Wsi(xi,yi,zi).\mu(o)=\frac{e_m(s^n)}{MB}\prod_{i=0}^{n-1}W_{s_i}(x_i,y_i,z_i).μ(o)=MBem​(sn)​i=0∏n−1​Wsi​​(xi​,yi​,zi​).

Construct T(o)T(o)T(o) from the empty transcript by following the code’s fixed finite speaking schedule: Alice’s next symbol depends on m,xnm,x^nm,xn and the preceding transcript, while Bob’s depends on b,ynb,y^nb,yn and that transcript. Let A(o)A(o)A(o) be Alice’s final key computed from m,xn,T(o)m,x^n,T(o)m,xn,T(o), and let V(o)=(zn,T(o))V(o)=(z^n,T(o))V(o)=(zn,T(o)). For any observation FFF, define

Hμ(F)=−∑oμ(o)log⁡2 ⁣(∑o′:F(o′)=F(o)μ(o′)).H_\mu(F)=-\sum_o\mu(o)\log_2\!\left(\sum_{o':F(o')=F(o)}\mu(o')\right).Hμ​(F)=−o∑​μ(o)log2​​o′:F(o′)=F(o)∑​μ(o′)​.

The declaration defines Hμ(A)+Hμ(V)−Hμ(A,V)H_\mu(A)+H_\mu(V)-H_\mu(A,V)Hμ​(A)+Hμ​(V)−Hμ​(A,V), the mutual information in bits between Alice’s final key and the pair consisting of Eve’s channel observations and the interactive transcript. The logarithm is the total real logarithm used in the supplied code, with log⁡20=0\log_2 0=0log2​0=0; empty channel products equal 111, and zero speaking rounds give an empty transcript.

QAlgorithms.Papers.Independent.Intakethird100.P76.interactiveMass

For finite types S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel datum WWW giving their nonemptiness and nonnegative normalized conditional laws Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z), a natural block length nnn, and an interactive code CCC, let M>0M>0M>0 be its base message count, B>0B>0B>0 its Bob-seed count, and e(sn∣m)e(s^n\mid m)e(sn∣m) its base encoder, which is nonnegative and sums to one over SnS^nSn for every message mmm. The declaration defines the mass of a sample ((m,sn,xn,yn,zn),b)((m,s^n,x^n,y^n,z^n),b)((m,sn,xn,yn,zn),b) to be

1MB e(sn∣m)∏i=0n−1Wsi(xi,yi,zi).\frac{1}{MB}\,e(s^n\mid m)\prod_{i=0}^{n-1}W_{s_i}(x_i,y_i,z_i).MB1​e(sn∣m)i=0∏n−1​Wsi​​(xi​,yi​,zi​).

Thus the formula does not depend on the particular seed index bbb. Both denominators are positive by the code’s fields. For n=0n=0n=0, the product is 111, and encoder normalization on the unique empty input word makes the mass 1/(MB)1/(MB)1/(MB).

QAlgorithms.Papers.Independent.Intakethird100.P76.keyA

For types S,X,Y,ZS,X,Y,ZS,X,Y,Z, with SSS finite, a natural number nnn, a length-nnn code CCC with positive message and key counts M,KM,KM,K, and a tuple o=(m,s,x,y,z)∈{0,…,M−1}×Sn×Xn×Yn×Zno=(m,s,x,y,z)\in\{0,\ldots,M-1\}\times S^n\times X^n\times Y^n\times Z^no=(m,s,x,y,z)∈{0,…,M−1}×Sn×Xn×Yn×Zn, this function returns CCC’s Alice key a(m,x)∈{0,…,K−1}a(m,x)\in\{0,\ldots,K-1\}a(m,x)∈{0,…,K−1}. It uses only the message mmm and the XXX-word xxx, regardless of the tuple’s probability. The length n=0n=0n=0 is included.

QAlgorithms.Papers.Independent.Intakethird100.P76.keyDisagreementProbability

For finite types S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel WWW with nonempty alphabets and conditional probability laws wsw_sws​ on X×Y×ZX\times Y\times ZX×Y×Z, and a length-nnn code CCC, write M,L,K>0M,L,K>0M,L,K>0 for its message, public-label, and key counts, e(m,s)e(m,s)e(m,s) for its normalized encoder probabilities, f(m,x)f(m,x)f(m,x) for its public map, and a(m,x)a(m,x)a(m,x) and b(y,ℓ)b(y,\ell)b(y,ℓ) for its two key maps. This real number is

∑m<M, s∈Sn, x∈Xn, y∈Yn, z∈Zna(m,x)≠b(y,f(m,x))1M e(m,s)∏i=0n−1wsi(xi,yi,zi).\sum_{\substack{m<M,\ s\in S^n,\ x\in X^n,\ y\in Y^n,\ z\in Z^n\\ a(m,x)\ne b(y,f(m,x))}} \frac1M\,e(m,s)\prod_{i=0}^{n-1}w_{s_i}(x_i,y_i,z_i).m<M, s∈Sn, x∈Xn, y∈Yn, z∈Zna(m,x)=b(y,f(m,x))​∑​M1​e(m,s)i=0∏n−1​wsi​​(xi​,yi​,zi​).

Thus only tuples on which the two specified keys differ contribute. Zero-length codes are included, with an empty product equal to 111.

QAlgorithms.Papers.Independent.Intakethird100.P76.logRate

For every natural number nnn, including 000, and every real number ttt, this extended-real-valued function is

logRate⁡(n,t)={+∞,t=0,−log⁡2tn+1,t≠0.\operatorname{logRate}(n,t)= \begin{cases} +\infty,&t=0,\\[2mm] -\dfrac{\log_2 t}{n+1},&t\ne0. \end{cases}logRate(n,t)=⎩⎨⎧​+∞,−n+1log2​t​,​t=0,t=0.​

The second branch is a real number embedded in the extended reals, and its denominator is always positive. There is no assumption that ttt is a probability or even nonnegative: the total real logarithm used here satisfies log⁡2t=log⁡2∣t∣\log_2 t=\log_2|t|log2​t=log2​∣t∣ for negative ttt.

QAlgorithms.Papers.Independent.Intakethird100.P76.obsS

For arbitrary types S,X,Y,ZS,X,Y,ZS,X,Y,Z and any quadruple o=(s,x,y,z)∈S×X×Y×Zo=(s,x,y,z)\in S\times X\times Y\times Zo=(s,x,y,z)∈S×X×Y×Z, this defines the SSS-valued observation o↦so\mapsto so↦s, its first coordinate.

QAlgorithms.Papers.Independent.Intakethird100.P76.obsX

For arbitrary types S,X,Y,ZS,X,Y,ZS,X,Y,Z and any quadruple o=(s,x,y,z)∈S×X×Y×Zo=(s,x,y,z)\in S\times X\times Y\times Zo=(s,x,y,z)∈S×X×Y×Z, this defines the XXX-valued observation o↦xo\mapsto xo↦x, its second coordinate.

QAlgorithms.Papers.Independent.Intakethird100.P76.obsY

For arbitrary types S,X,Y,ZS,X,Y,ZS,X,Y,Z and any quadruple o=(s,x,y,z)∈S×X×Y×Zo=(s,x,y,z)\in S\times X\times Y\times Zo=(s,x,y,z)∈S×X×Y×Z, this defines the YYY-valued observation o↦yo\mapsto yo↦y, its third coordinate.

QAlgorithms.Papers.Independent.Intakethird100.P76.obsZ

For arbitrary types S,X,Y,ZS,X,Y,ZS,X,Y,Z and any quadruple o=(s,x,y,z)∈S×X×Y×Zo=(s,x,y,z)\in S\times X\times Y\times Zo=(s,x,y,z)∈S×X×Y×Z, this defines the ZZZ-valued observation o↦zo\mapsto zo↦z, its fourth coordinate.

QAlgorithms.Papers.Independent.Intakethird100.P76.observationEntropyBits

For any finite type OOO, any type AAA, any function p:O→Rp:O\to\mathbb Rp:O→R, and any observation a:O→Aa:O\to Aa:O→A, this defines the real number

−∑o∈Op(o)log⁡2 ⁣(∑t∈Oa(t)=a(o)p(t)).-\sum_{o\in O}p(o)\log_2\!\left(\sum_{\substack{t\in O\\a(t)=a(o)}}p(t)\right).−o∈O∑​p(o)log2​​t∈Oa(t)=a(o)​∑​p(t)​.

There is no assumption that ppp is nonnegative or sums to 111, and AAA need not be finite. Here the real logarithm is total: log⁡20=0\log_2 0=0log2​0=0, and for a negative argument it equals the base-222 logarithm of its absolute value. If OOO is empty, the value is 000.

QAlgorithms.Papers.Independent.Intakethird100.P76.observationMutualInfoBits

For any finite type OOO, arbitrary types A,BA,BA,B, any function p:O→Rp:O\to\mathbb Rp:O→R, and observations a:O→Aa:O\to Aa:O→A, b:O→Bb:O\to Bb:O→B, this defines

−∑o∈Op(o)log⁡2 ⁣(∑t∈Oa(t)=a(o)p(t))−∑o∈Op(o)log⁡2 ⁣(∑t∈Ob(t)=b(o)p(t))+∑o∈Op(o)log⁡2 ⁣(∑t∈Oa(t)=a(o), b(t)=b(o)p(t)).\begin{aligned} &-\sum_{o\in O}p(o)\log_2\!\left(\sum_{\substack{t\in O\\a(t)=a(o)}}p(t)\right) -\sum_{o\in O}p(o)\log_2\!\left(\sum_{\substack{t\in O\\b(t)=b(o)}}p(t)\right)\\ &\qquad+\sum_{o\in O}p(o)\log_2\!\left(\sum_{\substack{t\in O\\a(t)=a(o),\ b(t)=b(o)}}p(t)\right). \end{aligned}​−o∈O∑​p(o)log2​​t∈Oa(t)=a(o)​∑​p(t)​−o∈O∑​p(o)log2​​t∈Ob(t)=b(o)​∑​p(t)​+o∈O∑​p(o)log2​​t∈Oa(t)=a(o), b(t)=b(o)​∑​p(t)​.​

The weights ppp may be arbitrary real numbers; they need not form a probability distribution. The observation types need not be finite. The logarithm is total, with log⁡20=0\log_2 0=0log2​0=0 and log⁡2x=log⁡2∣x∣\log_2 x=\log_2|x|log2​x=log2​∣x∣ for x<0x<0x<0; an empty OOO gives value 000.

QAlgorithms.Papers.Independent.Intakethird100.P76.optimizedReliability

For finite, nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, let WWW specify numbers ws(x,y,z)≥0w_s(x,y,z)\ge 0ws​(x,y,z)≥0 with ∑x,y,zws(x,y,z)=1\sum_{x,y,z}w_s(x,y,z)=1∑x,y,z​ws​(x,y,z)=1 for every s∈Ss\in Ss∈S, and let RP,RMR_P,R_MRP​,RM​ be arbitrary real numbers. Write as(x,y)=∑zws(x,y,z)a_s(x,y)=\sum_z w_s(x,y,z)as​(x,y)=∑z​ws​(x,y,z) and bs(y)=∑xas(x,y)b_s(y)=\sum_x a_s(x,y)bs​(y)=∑x​as​(x,y). For each probability distribution p:S→Rp:S\to\mathbb Rp:S→R, meaning p(s)≥0p(s)\ge0p(s)≥0 and ∑sp(s)=1\sum_s p(s)=1∑s​p(s)=1, define

F1(p,ρ)=ρRP−log⁡2 ⁣[∑s,yp(s)bs(y)(∑x(as(x,y)bs(y))1/(1+ρ))1+ρ],F2(p,ρ)=ρ(RP−RM)−log⁡2 ⁣[∑x,y(∑sp(s)as(x,y)1/(1+ρ))1+ρ],F3(p,ρ)=ρ(RP−RM)−log⁡2 ⁣[∑y(∑s,xp(s)as(x,y)1/(1+ρ))1+ρ].\begin{aligned} F_1(p,\rho)&=\rho R_P-\log_2\!\left[ \sum_{s,y}p(s)b_s(y) \left(\sum_x\left(\frac{a_s(x,y)}{b_s(y)}\right)^{1/(1+\rho)}\right)^{1+\rho} \right],\\ F_2(p,\rho)&=\rho(R_P-R_M)-\log_2\!\left[ \sum_{x,y}\left(\sum_s p(s)a_s(x,y)^{1/(1+\rho)}\right)^{1+\rho} \right],\\ F_3(p,\rho)&=\rho(R_P-R_M)-\log_2\!\left[ \sum_y\left(\sum_{s,x}p(s)a_s(x,y)^{1/(1+\rho)}\right)^{1+\rho} \right]. \end{aligned}F1​(p,ρ)F2​(p,ρ)F3​(p,ρ)​=ρRP​−log2​​s,y∑​p(s)bs​(y)(x∑​(bs​(y)as​(x,y)​)1/(1+ρ))1+ρ​,=ρ(RP​−RM​)−log2​​x,y∑​(s∑​p(s)as​(x,y)1/(1+ρ))1+ρ​,=ρ(RP​−RM​)−log2​​y∑​(s,x∑​p(s)as​(x,y)1/(1+ρ))1+ρ​.​

The declaration defines the extended-real value

sup⁡p:S→Rp≥0, ∑sp(s)=1min⁡ ⁣{sup⁡ρ∈[0,1]F1(p,ρ), sup⁡ρ∈[0,1]F2(p,ρ), sup⁡ρ∈[0,1]F3(p,ρ)},\sup_{\substack{p:S\to\mathbb R\\p\ge0,\ \sum_s p(s)=1}} \min\!\left\{ \sup_{\rho\in[0,1]}F_1(p,\rho),\ \sup_{\rho\in[0,1]}F_2(p,\rho),\ \sup_{\rho\in[0,1]}F_3(p,\rho) \right\},p:S→Rp≥0, ∑s​p(s)=1​sup​min{ρ∈[0,1]sup​F1​(p,ρ), ρ∈[0,1]sup​F2​(p,ρ), ρ∈[0,1]sup​F3​(p,ρ)},

where each Fi(p,ρ)F_i(p,\rho)Fi​(p,ρ) is embedded into the extended reals before taking its supremum. The three suprema are taken separately. Zero output masses are included: division by zero is interpreted as zero, and the total real logarithm used here has log⁡20=0\log_2 0=0log2​0=0.

QAlgorithms.Papers.Independent.Intakethird100.P76.publicKeyLeakage

For finite types S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel WWW with nonempty alphabets and conditional probability laws wsw_sws​, and a length-nnn code CCC with positive message count MMM, normalized encoder probabilities eee, public map fff, and Alice key map aaa, put

P(m,s,x,y,z)=1Me(m,s)∏i=0n−1wsi(xi,yi,zi),A(m,s,x,y,z)=a(m,x),V(m,s,x,y,z)=(z,f(m,x)).P(m,s,x,y,z)=\frac1M e(m,s)\prod_{i=0}^{n-1}w_{s_i}(x_i,y_i,z_i),\qquad A(m,s,x,y,z)=a(m,x),\qquad V(m,s,x,y,z)=(z,f(m,x)).P(m,s,x,y,z)=M1​e(m,s)i=0∏n−1​wsi​​(xi​,yi​,zi​),A(m,s,x,y,z)=a(m,x),V(m,s,x,y,z)=(z,f(m,x)).

For any observation hhh on this finite tuple space, define its entropy by

HP(h)=−∑oP(o)log⁡2 ⁣(∑t: h(t)=h(o)P(t)).H_P(h)=-\sum_o P(o)\log_2\!\left(\sum_{t:\,h(t)=h(o)}P(t)\right).HP​(h)=−o∑​P(o)log2​​t:h(t)=h(o)∑​P(t)​.

The defined leakage is exactly HP(A)+HP(V)−HP(o↦(A(o),V(o)))H_P(A)+H_P(V)-H_P(o\mapsto(A(o),V(o)))HP​(A)+HP​(V)−HP​(o↦(A(o),V(o))). The logarithm is the total real base-222 logarithm, whose value at 000 is 000. The definition includes n=0n=0n=0, using the empty product 111.

QAlgorithms.Papers.Independent.Intakethird100.P76.region

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z and a channel WWW whose nonnegative conditional masses Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z) sum to 111, this set is the closure in R3\mathbb R^3R3 of the following triples (R,E,F)(R,E,F)(R,E,F). All three coordinates are nonnegative, and there exists a code at every length L=n+1L=n+1L=n+1, with positive finite message, public-message, and key sizes Mn,Pn,KnM_n,P_n,K_nMn​,Pn​,Kn​, stochastic encoder en(m,sL)e_n(m,s^L)en​(m,sL), and deterministic public, Alice-key, and Bob-key maps an(m,xL)a_n(m,x^L)an​(m,xL), kn(m,xL)k_n(m,x^L)kn​(m,xL), and bn(yL,a)b_n(y^L,a)bn​(yL,a). Under the sample mass

μn(m,sL,xL,yL,zL)=Mn−1en(m,sL)∏iWsi(xi,yi,zi),\mu_n(m,s^L,x^L,y^L,z^L) =M_n^{-1}e_n(m,s^L)\prod_iW_{s_i}(x_i,y_i,z_i),μn​(m,sL,xL,yL,zL)=Mn−1​en​(m,sL)i∏​Wsi​​(xi​,yi​,zi​),

let An=kn(m,xL)A_n=k_n(m,x^L)An​=kn​(m,xL), Vn=(zL,an(m,xL))V_n=(z^L,a_n(m,x^L))Vn​=(zL,an​(m,xL)), dn=Pr⁡[An≠bn(yL,an(m,xL))]d_n=\Pr[A_n\ne b_n(y^L,a_n(m,x^L))]dn​=Pr[An​=bn​(yL,an​(m,xL))], and ℓn=Hμn(An)+Hμn(Vn)−Hμn(An,Vn)\ell_n=H_{\mu_n}(A_n)+H_{\mu_n}(V_n)-H_{\mu_n}(A_n,V_n)ℓn​=Hμn​​(An​)+Hμn​​(Vn​)−Hμn​​(An​,Vn​), using

Hμ(A)=−∑oμ(o)log⁡2 ⁣(∑o′: A(o′)=A(o)μ(o′)).H_\mu(A)=-\sum_o\mu(o)\log_2\!\left(\sum_{o':\,A(o')=A(o)}\mu(o')\right).Hμ​(A)=−o∑​μ(o)log2​​o′:A(o′)=A(o)∑​μ(o′)​.

Fixed nonnegative rM,rP,rKr_M,r_P,r_KrM​,rP​,rK​ must satisfy Mn=2⌈LrM⌉M_n=2^{\lceil Lr_M\rceil}Mn​=2⌈LrM​⌉, Pn=2⌈LrP⌉P_n=2^{\lceil Lr_P\rceil}Pn​=2⌈LrP​⌉, and Kn≤2LrKK_n\le2^{Lr_K}Kn​≤2LrK​. For every ε>0\varepsilon>0ε>0, eventually Hμn(An)/L≥R−εH_{\mu_n}(A_n)/L\ge R-\varepsilonHμn​​(An​)/L≥R−ε, while E≤lim inf⁡ngn(dn)E\le\liminf_n g_n(d_n)E≤liminfn​gn​(dn​) and F≤lim inf⁡ngn(ℓn)F\le\liminf_n g_n(\ell_n)F≤liminfn​gn​(ℓn​), where gn(0)=+∞g_n(0)=+\inftygn​(0)=+∞ and gn(t)=−log⁡2(t)/(n+1)g_n(t)=-\log_2(t)/(n+1)gn​(t)=−log2​(t)/(n+1) otherwise. No cost constraint is imposed. Taking the closure includes limits of such triples, whether or not the limiting triple itself has such a code sequence.

QAlgorithms.Papers.Independent.Intakethird100.P76.reliabilityExponent

Let S,X,Y,ZS,X,Y,ZS,X,Y,Z be finite nonempty sets, let each WsW_sWs​ be a probability distribution on X×Y×ZX\times Y\times ZX×Y×Z, let p:S→Rp:S\to\mathbb Rp:S→R be arbitrary, and let RP,RM∈RR_P,R_M\in\mathbb RRP​,RM​∈R. Define As(x,y)=∑zWs(x,y,z)A_s(x,y)=\sum_zW_s(x,y,z)As​(x,y)=∑z​Ws​(x,y,z) and Bs(y)=∑xAs(x,y)B_s(y)=\sum_xA_s(x,y)Bs​(y)=∑x​As​(x,y), and, for 0≤r≤10\le r\le10≤r≤1, define the real numbers

F1(r)=rRP−log⁡2 ⁣[∑s,yp(s)Bs(y)(∑x(As(x,y)Bs(y))1/(1+r))1+r],F2(r)=r(RP−RM)−log⁡2 ⁣[∑x,y(∑sp(s)As(x,y)1/(1+r))1+r],F3(r)=r(RP−RM)−log⁡2 ⁣[∑y(∑s,xp(s)As(x,y)1/(1+r))1+r].\begin{aligned} F_1(r)&=rR_P-\log_2\!\left[ \sum_{s,y}p(s)B_s(y) \left(\sum_x\left(\frac{A_s(x,y)}{B_s(y)}\right)^{1/(1+r)}\right)^{1+r} \right],\\ F_2(r)&=r(R_P-R_M)-\log_2\!\left[ \sum_{x,y}\left(\sum_sp(s)A_s(x,y)^{1/(1+r)}\right)^{1+r} \right],\\ F_3(r)&=r(R_P-R_M)-\log_2\!\left[ \sum_y\left(\sum_{s,x}p(s)A_s(x,y)^{1/(1+r)}\right)^{1+r} \right]. \end{aligned}F1​(r)F2​(r)F3​(r)​=rRP​−log2​​s,y∑​p(s)Bs​(y)(x∑​(Bs​(y)As​(x,y)​)1/(1+r))1+r​,=r(RP​−RM​)−log2​​x,y∑​(s∑​p(s)As​(x,y)1/(1+r))1+r​,=r(RP​−RM​)−log2​​y∑​(s,x∑​p(s)As​(x,y)1/(1+r))1+r​.​

The declaration defines the extended-real value

reliabilityExponent⁡(W,p,RP,RM)=min⁡{sup⁡r∈[0,1]F1(r), min⁡{sup⁡r∈[0,1]F2(r),sup⁡r∈[0,1]F3(r)}},\operatorname{reliabilityExponent}(W,p,R_P,R_M) =\min\left\{\sup_{r\in[0,1]}F_1(r),\, \min\left\{\sup_{r\in[0,1]}F_2(r),\sup_{r\in[0,1]}F_3(r)\right\}\right\},reliabilityExponent(W,p,RP​,RM​)=min{r∈[0,1]sup​F1​(r),min{r∈[0,1]sup​F2​(r),r∈[0,1]sup​F3​(r)}},

where each real value is embedded in the extended real line before taking its supremum. Each supremum is taken independently and includes both endpoints. No probability-law assumption is imposed on ppp, and no sign restriction is imposed on the rates. Zero marginal probabilities are included using division by zero equal to zero; powers and logarithms are total, with log⁡20=0\log_2 0=0log2​0=0.

QAlgorithms.Papers.Independent.Intakethird100.P76.reliabilityOne

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, let Ws(x,y,z)≥0W_s(x,y,z)\ge0Ws​(x,y,z)≥0 sum to 111 over x,y,zx,y,zx,y,z for every sss. For an arbitrary function p:S→Rp:S\to\mathbb Rp:S→R and arbitrary real parameters ρ,RP\rho,R_Pρ,RP​, put asxy=∑zWs(x,y,z)a_{sxy}=\sum_zW_s(x,y,z)asxy​=∑z​Ws​(x,y,z) and bsy=∑x,zWs(x,y,z)b_{sy}=\sum_{x,z}W_s(x,y,z)bsy​=∑x,z​Ws​(x,y,z). The declaration defines the real number

ρRP−log⁡2 ⁣(∑s∈S∑y∈Yp(s)bsy[∑x∈X(asxybsy)1/(1+ρ)]1+ρ).\rho R_P-\log_2\!\left( \sum_{s\in S}\sum_{y\in Y} p(s)b_{sy} \left[\sum_{x\in X} \left(\frac{a_{sxy}}{b_{sy}}\right)^{1/(1+\rho)} \right]^{1+\rho} \right).ρRP​−log2​​s∈S∑​y∈Y∑​p(s)bsy​[x∈X∑​(bsy​asxy​​)1/(1+ρ)]1+ρ​.

No probability-law assumption is imposed on ppp, and neither real parameter is restricted. All divisions, real powers, and logarithms are total operations: a zero denominator gives quotient 000, so ρ=−1\rho=-1ρ=−1 makes 1/(1+ρ)=01/(1+\rho)=01/(1+ρ)=0, and bsy=0b_{sy}=0bsy​=0 makes each displayed ratio 000; the real-power convention includes 00=10^0=100=1. The logarithm is log⁡2u=log⁡u/log⁡2\log_2u=\log u/\log2log2​u=logu/log2, where the total real logarithm has log⁡0=0\log0=0log0=0 and log⁡u=log⁡∣u∣\log u=\log|u|logu=log∣u∣ for negative uuu.

QAlgorithms.Papers.Independent.Intakethird100.P76.reliabilityThree

Let S,X,Y,ZS,X,Y,ZS,X,Y,Z be finite nonempty sets, and let Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z) be a probability distribution on X×Y×ZX\times Y\times ZX×Y×Z for every s∈Ss\in Ss∈S. For any function p:S→Rp:S\to\mathbb Rp:S→R and any real numbers ρ,RP,RM\rho,R_P,R_Mρ,RP​,RM​, write As(x,y)=∑z∈ZWs(x,y,z)A_s(x,y)=\sum_{z\in Z}W_s(x,y,z)As​(x,y)=∑z∈Z​Ws​(x,y,z). The declaration defines

reliabilityThree⁡(W,p,ρ,RP,RM)=ρ(RP−RM)−log⁡2 ⁣[∑y∈Y(∑s∈S∑x∈Xp(s)As(x,y)1/(1+ρ))1+ρ].\operatorname{reliabilityThree}(W,p,\rho,R_P,R_M) =\rho(R_P-R_M)-\log_2\!\left[ \sum_{y\in Y} \left(\sum_{s\in S}\sum_{x\in X}p(s)A_s(x,y)^{1/(1+\rho)}\right)^{1+\rho} \right].reliabilityThree(W,p,ρ,RP​,RM​)=ρ(RP​−RM​)−log2​​y∈Y∑​(s∈S∑​x∈X∑​p(s)As​(x,y)1/(1+ρ))1+ρ​.

The function ppp need not be a probability distribution, and none of the real parameters is restricted. The real powers, reciprocals, and logarithms are total operations, including division by zero and log⁡20\log_2 0log2​0 being zero; thus ρ=−1\rho=-1ρ=−1 is also an allowed argument.

QAlgorithms.Papers.Independent.Intakethird100.P76.reliabilityTwo

Let S,X,Y,ZS,X,Y,ZS,X,Y,Z be finite nonempty sets, and let WWW assign to each s∈Ss\in Ss∈S a probability distribution Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z) on X×Y×ZX\times Y\times ZX×Y×Z. For an arbitrary function p:S→Rp:S\to\mathbb Rp:S→R and arbitrary real numbers ρ,RP,RM\rho,R_P,R_Mρ,RP​,RM​, put As(x,y)=∑z∈ZWs(x,y,z)A_s(x,y)=\sum_{z\in Z}W_s(x,y,z)As​(x,y)=∑z∈Z​Ws​(x,y,z). The declaration defines

reliabilityTwo⁡(W,p,ρ,RP,RM)=ρ(RP−RM)−log⁡2 ⁣[∑x∈X∑y∈Y(∑s∈Sp(s)As(x,y)1/(1+ρ))1+ρ].\operatorname{reliabilityTwo}(W,p,\rho,R_P,R_M) =\rho(R_P-R_M)-\log_2\!\left[ \sum_{x\in X}\sum_{y\in Y} \left(\sum_{s\in S}p(s)A_s(x,y)^{1/(1+\rho)}\right)^{1+\rho} \right].reliabilityTwo(W,p,ρ,RP​,RM​)=ρ(RP​−RM​)−log2​​x∈X∑​y∈Y∑​(s∈S∑​p(s)As​(x,y)1/(1+ρ))1+ρ​.

There is no assumption that ppp is nonnegative or normalized, or that the real parameters are nonnegative. Powers and logarithms use their total real-valued definitions; division by zero and log⁡20\log_2 0log2​0 equal zero. In particular, ρ=−1\rho=-1ρ=−1 is included, with 1/(1+ρ)=01/(1+\rho)=01/(1+ρ)=0.

QAlgorithms.Papers.Independent.Intakethird100.P76.renyiBits

For any finite type AAA, any function p:A→Rp:A\to\mathbb Rp:A→R, and any real parameter α\alphaα, this defines

−log⁡2 ⁣(∑a∈Ap(a) 1+α)α.-\frac{\log_2\!\left(\sum_{a\in A}p(a)^{\,1+\alpha}\right)}{\alpha}.−αlog2​(∑a∈A​p(a)1+α)​.

Neither nonnegativity nor normalization of ppp is assumed, and α\alphaα is unrestricted. Powers use the total real-power operation: for x>0x>0x>0, xr=exp⁡(rlog⁡x)x^r=\exp(r\log x)xr=exp(rlogx); 00=10^0=100=1, 0r=00^r=00r=0 for r≠0r\ne0r=0; and for x<0x<0x<0, xr=exp⁡(rlog⁡∣x∣)cos⁡(πr)x^r=\exp(r\log|x|)\cos(\pi r)xr=exp(rlog∣x∣)cos(πr). The logarithm is 000 at 000 and uses absolute values at negative arguments. Division by zero gives 000, so the definition gives 000 at α=0\alpha=0α=0; it also gives 000 for an empty AAA.

QAlgorithms.Papers.Independent.Intakethird100.P76.residualSourceRate

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel WWW with nonnegative conditional masses summing to 111, and any function p:S→Rp:S\to\mathbb Rp:S→R, put μ(s,x,y,z)=p(s)Ws(x,y,z)\mu(s,x,y,z)=p(s)W_s(x,y,z)μ(s,x,y,z)=p(s)Ws​(x,y,z) and write S,X,Y,Z\mathsf S,\mathsf X,\mathsf Y,\mathsf ZS,X,Y,Z for the coordinate observations. Define

Hμ(A)=−∑oμ(o)log⁡2 ⁣(∑o′: A(o′)=A(o)μ(o′)),Hμ(A∣C)=Hμ(A,C)−Hμ(C),Iμ(A;B∣C)=Hμ(A∣C)−Hμ(A∣(B,C)).H_\mu(A)=-\sum_o\mu(o)\log_2\!\left(\sum_{o':\,A(o')=A(o)}\mu(o')\right), \quad H_\mu(A\mid C)=H_\mu(A,C)-H_\mu(C), \quad I_\mu(A;B\mid C)=H_\mu(A\mid C)-H_\mu(A\mid(B,C)).Hμ​(A)=−o∑​μ(o)log2​​o′:A(o′)=A(o)∑​μ(o′)​,Hμ​(A∣C)=Hμ​(A,C)−Hμ​(C),Iμ​(A;B∣C)=Hμ​(A∣C)−Hμ​(A∣(B,C)).

The function returns exactly

Iμ(X;Y∣S)−Iμ(X;Z∣S).I_\mu(\mathsf X;\mathsf Y\mid\mathsf S) - I_\mu(\mathsf X;\mathsf Z\mid\mathsf S).Iμ​(X;Y∣S)−Iμ​(X;Z∣S).

No nonnegativity or normalization condition is imposed on ppp; all these finite-sum formulas use the total real logarithm, including log⁡20=0\log_2 0=0log2​0=0 and log⁡2t=log⁡2∣t∣\log_2 t=\log_2|t|log2​t=log2​∣t∣ for t<0t<0t<0.

QAlgorithms.Papers.Independent.Intakethird100.P76.secrecyExponent

Let S,X,Y,ZS,X,Y,ZS,X,Y,Z be finite nonempty sets, let WsW_sWs​ be a probability distribution on X×Y×ZX\times Y\times ZX×Y×Z for each sss, and let p:S→Rp:S\to\mathbb Rp:S→R and RK,RP,RM∈RR_K,R_P,R_M\in\mathbb RRK​,RP​,RM​∈R be arbitrary. Put Cs(x,z)=∑yWs(x,y,z)C_s(x,z)=\sum_yW_s(x,y,z)Cs​(x,z)=∑y​Ws​(x,y,z) and pZ(z)=∑s,xp(s)Cs(x,z)p_Z(z)=\sum_{s,x}p(s)C_s(x,z)pZ​(z)=∑s,x​p(s)Cs​(x,z). The declaration defines

secrecyExponent⁡(W,p,RK,RP,RM)=sup⁡0<α≤1{−α(RK+RP−RM)−log⁡2 ⁣[∑z{0,pZ(z)=0,∑s,xp(s)Cs(x,z)(Cs(x,z)pZ(z))α,pZ(z)≠0]}.\operatorname{secrecyExponent}(W,p,R_K,R_P,R_M) =\sup_{0<\alpha\le1} \left\{-\alpha(R_K+R_P-R_M) -\log_2\!\left[ \sum_z \begin{cases} 0,&p_Z(z)=0,\\ \displaystyle\sum_{s,x}p(s)C_s(x,z) \left(\frac{C_s(x,z)}{p_Z(z)}\right)^\alpha,&p_Z(z)\ne0 \end{cases} \right]\right\}.secrecyExponent(W,p,RK​,RP​,RM​)=0<α≤1sup​⎩⎨⎧​−α(RK​+RP​−RM​)−log2​​z∑​⎩⎨⎧​0,s,x∑​p(s)Cs​(x,z)(pZ​(z)Cs​(x,z)​)α,​pZ​(z)=0,pZ​(z)=0​​⎭⎬⎫​.

This is a supremum in the extended real line of the displayed real values; α=0\alpha=0α=0 is excluded and α=1\alpha=1α=1 is included. Neither normalization nor nonnegativity of ppp is required, and the rates have no sign restrictions. The zero branch is used whenever pZ(z)=0p_Z(z)=0pZ​(z)=0, and real powers and logarithms use their total definitions, including log⁡20=0\log_2 0=0log2​0=0.

QAlgorithms.Papers.Independent.Intakethird100.P76.secrecyTrial

Let S,X,Y,ZS,X,Y,ZS,X,Y,Z be finite nonempty sets, and let Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z) be a probability distribution for every s∈Ss\in Ss∈S. For an arbitrary function p:S→Rp:S\to\mathbb Rp:S→R and arbitrary real numbers α,RK,RP,RM\alpha,R_K,R_P,R_Mα,RK​,RP​,RM​, define

Cs(x,z)=∑yWs(x,y,z),pZ(z)=∑s,xp(s)Cs(x,z).C_s(x,z)=\sum_yW_s(x,y,z),\qquad p_Z(z)=\sum_{s,x}p(s)C_s(x,z).Cs​(x,z)=y∑​Ws​(x,y,z),pZ​(z)=s,x∑​p(s)Cs​(x,z).

The declaration defines

secrecyTrial⁡(W,p,α,RK,RP,RM)=−α(RK+RP−RM)−log⁡2 ⁣[∑z{0,pZ(z)=0,∑s,xp(s)Cs(x,z)(Cs(x,z)pZ(z))α,pZ(z)≠0.].\operatorname{secrecyTrial}(W,p,\alpha,R_K,R_P,R_M) =-\alpha(R_K+R_P-R_M) -\log_2\!\left[ \sum_z \begin{cases} 0,&p_Z(z)=0,\\ \displaystyle\sum_{s,x}p(s)C_s(x,z) \left(\frac{C_s(x,z)}{p_Z(z)}\right)^\alpha,&p_Z(z)\ne0. \end{cases} \right].secrecyTrial(W,p,α,RK​,RP​,RM​)=−α(RK​+RP​−RM​)−log2​​z∑​⎩⎨⎧​0,s,x∑​p(s)Cs​(x,z)(pZ​(z)Cs​(x,z)​)α,​pZ​(z)=0,pZ​(z)=0.​​.

There is no assumption that ppp is a probability distribution or that any parameter is nonnegative. The zero branch depends only on the equality pZ(z)=0p_Z(z)=0pZ​(z)=0, including when that equality results from cancellation among signed terms. Powers and logarithms are total real-valued operations, with log⁡20=0\log_2 0=0log2​0=0.

QAlgorithms.Papers.Independent.Intakethird100.P76.senderExcitedCapacity

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel WWW whose Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z) are nonnegative and sum to 111 for each sss, an arbitrary function cost:S→R\mathrm{cost}:S\to\mathbb Rcost:S→R, and an optional real bound Γ\GammaΓ, this is the supremum in the extended real numbers of the real rates R≥0R\ge0R≥0 satisfying the following conditions. There exists a code for every length L=n+1L=n+1L=n+1, with positive finite message, public-message, and key sizes Mn,Pn,KnM_n,P_n,K_nMn​,Pn​,Kn​, a stochastic encoder en(m,sL)e_n(m,s^L)en​(m,sL), and deterministic public, Alice-key, and Bob-key maps an(m,xL)a_n(m,x^L)an​(m,xL), kn(m,xL)k_n(m,x^L)kn​(m,xL), and bn(yL,a)b_n(y^L,a)bn​(yL,a). Samples have mass

μn(m,sL,xL,yL,zL)=Mn−1en(m,sL)∏iWsi(xi,yi,zi).\mu_n(m,s^L,x^L,y^L,z^L) =M_n^{-1}e_n(m,s^L)\prod_iW_{s_i}(x_i,y_i,z_i).μn​(m,sL,xL,yL,zL)=Mn−1​en​(m,sL)i∏​Wsi​​(xi​,yi​,zi​).

There are fixed rM,rP,rK≥0r_M,r_P,r_K\ge0rM​,rP​,rK​≥0 with Mn=2⌈LrM⌉M_n=2^{\lceil Lr_M\rceil}Mn​=2⌈LrM​⌉, Pn=2⌈LrP⌉P_n=2^{\lceil Lr_P\rceil}Pn​=2⌈LrP​⌉, and Kn≤2LrKK_n\le2^{Lr_K}Kn​≤2LrK​. If Γ=g\Gamma=gΓ=g, every encoder-supported word satisfies ∑icost(si)≤Lg\sum_i\mathrm{cost}(s_i)\le Lg∑i​cost(si​)≤Lg; an absent Γ\GammaΓ imposes no cost condition. The probability of unequal Alice and Bob keys tends to zero, the Alice-key entropy per symbol has eventual lower bound R−εR-\varepsilonR−ε for every ε>0\varepsilon>0ε>0, and the mutual information between Alice's key and (zL,an(m,xL))(z^L,a_n(m,x^L))(zL,an​(m,xL)), divided by LLL, tends to zero. Here an observation AAA has entropy

Hμ(A)=−∑oμ(o)log⁡2 ⁣(∑o′: A(o′)=A(o)μ(o′)),H_\mu(A)=-\sum_o\mu(o)\log_2\!\left(\sum_{o':\,A(o')=A(o)}\mu(o')\right),Hμ​(A)=−o∑​μ(o)log2​​o′:A(o′)=A(o)∑​μ(o′)​,

and mutual information is Hμ(A)+Hμ(B)−Hμ(A,B)H_\mu(A)+H_\mu(B)-H_\mu(A,B)Hμ​(A)+Hμ​(B)−Hμ​(A,B). Length 111 is included. The supremum need not itself be an admitted rate; the extended-real supremum is −∞-\infty−∞ if the rate set is empty and +∞+\infty+∞ if it is unbounded above.

QAlgorithms.Papers.Independent.Intakethird100.P76.strongCapacity

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z and a channel WWW with nonnegative conditional masses Ws(x,y,z)W_s(x,y,z)Ws​(x,y,z) summing to 111, this is the extended-real supremum of real rates R≥0R\ge0R≥0 for which there exist E,F>0E,F>0E,F>0 and the following code sequence. At every length L=n+1L=n+1L=n+1, including length 111, a code has positive finite message, public-message, and key sizes Mn,Pn,KnM_n,P_n,K_nMn​,Pn​,Kn​, a stochastic encoder en(m,sL)e_n(m,s^L)en​(m,sL), and deterministic public, Alice-key, and Bob-key maps an(m,xL)a_n(m,x^L)an​(m,xL), kn(m,xL)k_n(m,x^L)kn​(m,xL), and bn(yL,a)b_n(y^L,a)bn​(yL,a). Under

μn(m,sL,xL,yL,zL)=Mn−1en(m,sL)∏iWsi(xi,yi,zi),\mu_n(m,s^L,x^L,y^L,z^L) =M_n^{-1}e_n(m,s^L)\prod_iW_{s_i}(x_i,y_i,z_i),μn​(m,sL,xL,yL,zL)=Mn−1​en​(m,sL)i∏​Wsi​​(xi​,yi​,zi​),

write An=kn(m,xL)A_n=k_n(m,x^L)An​=kn​(m,xL), Vn=(zL,an(m,xL))V_n=(z^L,a_n(m,x^L))Vn​=(zL,an​(m,xL)), dn=Pr⁡[An≠bn(yL,an(m,xL))]d_n=\Pr[A_n\ne b_n(y^L,a_n(m,x^L))]dn​=Pr[An​=bn​(yL,an​(m,xL))], and ℓn=Iμn(An;Vn)\ell_n=I_{\mu_n}(A_n;V_n)ℓn​=Iμn​​(An​;Vn​). Here

Hμ(A)=−∑oμ(o)log⁡2 ⁣(∑o′: A(o′)=A(o)μ(o′)),Iμ(A;B)=Hμ(A)+Hμ(B)−Hμ(A,B).H_\mu(A)=-\sum_o\mu(o)\log_2\!\left(\sum_{o':\,A(o')=A(o)}\mu(o')\right), \qquad I_\mu(A;B)=H_\mu(A)+H_\mu(B)-H_\mu(A,B).Hμ​(A)=−o∑​μ(o)log2​​o′:A(o′)=A(o)∑​μ(o′)​,Iμ​(A;B)=Hμ​(A)+Hμ​(B)−Hμ​(A,B).

Fixed nonnegative rM,rP,rKr_M,r_P,r_KrM​,rP​,rK​ must give Mn=2⌈LrM⌉M_n=2^{\lceil Lr_M\rceil}Mn​=2⌈LrM​⌉, Pn=2⌈LrP⌉P_n=2^{\lceil Lr_P\rceil}Pn​=2⌈LrP​⌉, and Kn≤2LrKK_n\le2^{Lr_K}Kn​≤2LrK​. The entropy per symbol is eventually at least R−εR-\varepsilonR−ε for every ε>0\varepsilon>0ε>0, and

E≤lim inf⁡ngn(dn),F≤lim inf⁡ngn(ℓn),E\le\liminf_n g_n(d_n),\qquad F\le\liminf_n g_n(\ell_n),E≤nliminf​gn​(dn​),F≤nliminf​gn​(ℓn​),

where gn(0)=+∞g_n(0)=+\inftygn​(0)=+∞ and gn(t)=−log⁡2(t)/(n+1)g_n(t)=-\log_2(t)/(n+1)gn​(t)=−log2​(t)/(n+1) otherwise. There is no cost constraint. The supremum does not require attainment; it is −∞-\infty−∞ for an empty rate set and +∞+\infty+∞ for an unbounded rate set.

QAlgorithms.Papers.Independent.Intakethird100.P76.transcript

For a finite type SSS, arbitrary types X,Y,ZX,Y,ZX,Y,Z, a natural block length nnn, an interactive code CCC, and a sample ((m,sn,xn,yn,zn),b)((m,s^n,x^n,y^n,z^n),b)((m,sn,xn,yn,zn),b), where mmm is a base message index and bbb a Bob-seed index, the declaration defines a transcript using the code’s natural round count rrr, positive symbol count ddd, sender function, and talk functions. Start with the empty list t0=[]t_0=[]t0​=[]; for each i=0,…,r−1i=0,\ldots,r-1i=0,…,r−1, append exactly one symbol according to

ti+1={ti+ ⁣ ⁣+[AliceTalk⁡(m,xn,ti)],sender⁡(i)=true,ti+ ⁣ ⁣+[BobTalk⁡(b,yn,ti)],sender⁡(i)=false.t_{i+1}= \begin{cases} t_i\mathbin{+\!\!+}[\operatorname{AliceTalk}(m,x^n,t_i)],&\operatorname{sender}(i)=\mathrm{true},\\ t_i\mathbin{+\!\!+}[\operatorname{BobTalk}(b,y^n,t_i)],&\operatorname{sender}(i)=\mathrm{false}. \end{cases}ti+1​={ti​++[AliceTalk(m,xn,ti​)],ti​++[BobTalk(b,yn,ti​)],​sender(i)=true,sender(i)=false.​

The result is trt_rtr​, a list of rrr symbols from {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. The words sn,zns^n,z^nsn,zn do not enter this calculation; if r=0r=0r=0, the result is the empty list.

QAlgorithms.Papers.Independent.Intakethird100.P76.upperObjective

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, a channel WWW with nonnegative conditional masses summing to 111, and any real-valued function ppp on SSS, put μ(s,x,y,z)=p(s)Ws(x,y,z)\mu(s,x,y,z)=p(s)W_s(x,y,z)μ(s,x,y,z)=p(s)Ws​(x,y,z) and denote the coordinate observations by S,X,Y,Z\mathsf S,\mathsf X,\mathsf Y,\mathsf ZS,X,Y,Z. With

Hμ(A)=−∑oμ(o)log⁡2 ⁣(∑o′: A(o′)=A(o)μ(o′)),H_\mu(A)=-\sum_o\mu(o)\log_2\!\left(\sum_{o':\,A(o')=A(o)}\mu(o')\right),Hμ​(A)=−o∑​μ(o)log2​​o′:A(o′)=A(o)∑​μ(o′)​,

this function is the following difference of conditional-entropy expressions:

[Hμ((X,S),Z)−Hμ(Z)]−[Hμ((X,S),(Y,Z))−Hμ(Y,Z)].\bigl[H_\mu((\mathsf X,\mathsf S),\mathsf Z)-H_\mu(\mathsf Z)\bigr] - \bigl[H_\mu((\mathsf X,\mathsf S),(\mathsf Y,\mathsf Z)) -H_\mu(\mathsf Y,\mathsf Z)\bigr].[Hμ​((X,S),Z)−Hμ​(Z)]−[Hμ​((X,S),(Y,Z))−Hμ​(Y,Z)].

Thus it is the explicitly defined conditional information Iμ((X,S);Y∣Z)I_\mu((\mathsf X,\mathsf S);\mathsf Y\mid\mathsf Z)Iμ​((X,S);Y∣Z). No probability-law assumption is imposed on ppp; the sums use the total real logarithm, including log⁡20=0\log_2 0=0log2​0=0 and log⁡2t=log⁡2∣t∣\log_2 t=\log_2|t|log2​t=log2​∣t∣ for negative ttt.

QAlgorithms.Papers.Independent.Intakethird100.P76.xyMass

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, let Ws(x,y,z)≥0W_s(x,y,z)\ge0Ws​(x,y,z)≥0 satisfy ∑x,y,zWs(x,y,z)=1\sum_{x,y,z}W_s(x,y,z)=1∑x,y,z​Ws​(x,y,z)=1 for every sss. For every s∈Ss\in Ss∈S, x∈Xx\in Xx∈X, and y∈Yy\in Yy∈Y, this declaration defines the real number

WXY∣s(x,y)=∑z∈ZWs(x,y,z).W_{XY\mid s}(x,y)=\sum_{z\in Z}W_s(x,y,z).WXY∣s​(x,y)=z∈Z∑​Ws​(x,y,z).

QAlgorithms.Papers.Independent.Intakethird100.P76.xzMass

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, let Ws(x,y,z)≥0W_s(x,y,z)\ge0Ws​(x,y,z)≥0 satisfy ∑x,y,zWs(x,y,z)=1\sum_{x,y,z}W_s(x,y,z)=1∑x,y,z​Ws​(x,y,z)=1 for every sss. For every s∈Ss\in Ss∈S, x∈Xx\in Xx∈X, and z∈Zz\in Zz∈Z, this declaration defines the real number

WXZ∣s(x,z)=∑y∈YWs(x,y,z).W_{XZ\mid s}(x,z)=\sum_{y\in Y}W_s(x,y,z).WXZ∣s​(x,z)=y∈Y∑​Ws​(x,y,z).

QAlgorithms.Papers.Independent.Intakethird100.P76.yMass

For finite nonempty alphabets S,X,Y,ZS,X,Y,ZS,X,Y,Z, let Ws(x,y,z)≥0W_s(x,y,z)\ge0Ws​(x,y,z)≥0 satisfy ∑x,y,zWs(x,y,z)=1\sum_{x,y,z}W_s(x,y,z)=1∑x,y,z​Ws​(x,y,z)=1 for every sss. For every s∈Ss\in Ss∈S and y∈Yy\in Yy∈Y, this declaration defines the real number

WY∣s(y)=∑x∈X∑z∈ZWs(x,y,z).W_{Y\mid s}(y)=\sum_{x\in X}\sum_{z\in Z}W_s(x,y,z).WY∣s​(y)=x∈X∑​z∈Z∑​Ws​(x,y,z).
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