Definitions for The Sender-Excited Secret Key Agreement Model: Capacity, Reliability and Secrecy Exponents
DefinitionQAlgorithms_Papers_Independent_Intakethird100_P76The 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.
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
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 , a function , and a real number , this predicate means that , there exists a real such that for every , and there exists a function satisfying
The expected-cost bound is non-strict, while positivity of is strict. If is empty, the normalization equation cannot hold, so the predicate is false.
QAlgorithms.Papers.Independent.Intakethird100.P76.Aux
For finite types and natural numbers , an auxiliary datum consists of a function satisfying and , a function satisfying and for every , and a function satisfying and for every . Zero probabilities are permitted. Positivity of is not separately required: the law for forces to be nonempty, but if is empty the conditions on are vacuous, so is possible; when , the conditions on are also vacuous and is possible.
QAlgorithms.Papers.Independent.Intakethird100.P76.BlockSample
For types , with finite, a natural number , and a code of length whose positive message count is , this abbreviation denotes the Cartesian product
Thus an element is a tuple containing a message and four length- words. Membership imposes no condition involving the encoder or any channel probabilities, so tuples with zero probability are included. When , all four word spaces are singletons, leaving only the message coordinate.
QAlgorithms.Papers.Independent.Intakethird100.P76.BoundedRanges
Let be a finite type, let be types, let , and let , for every natural number , be a sender-excited code of block length . Such a code has positive integer message, public-message, and key alphabet sizes ; a probability distribution on for each message; deterministic public-message and Alice-key maps depending on the message and the observation; and a deterministic Bob-key map depending on the observation and public message. The predicate asserts that there exist fixed real numbers such that, for every ,
Here is the least natural number at least , and is when . These are exact equalities for every positive block length, including length . There is no hypothesis that ; if , every equals . Either auxiliary rate may also be , making the corresponding alphabet size .
QAlgorithms.Papers.Independent.Intakethird100.P76.CodeCost
For types , with finite, a natural number , a function , an optional real bound , and a length- code with encoder , this predicate is always true when no bound is supplied. When supplies a real number , it means
Neither nor the costs are required to be nonnegative. Words of zero encoder probability impose no condition. For , the required inequality is .
QAlgorithms.Papers.Independent.Intakethird100.P76.CostFeasibleInput
For a finite type , functions , and a real number , this predicate means that for every , , and
There is no requirement that the costs or be nonnegative. If is empty, the normalization condition cannot hold.
QAlgorithms.Papers.Independent.Intakethird100.P76.DMBC
For types , with specified finite enumerations of , this structure consists of evidence that each of is nonempty, together with a function satisfying
No finiteness assumption is imposed on . If any of the four types is empty, no such structure can exist.
QAlgorithms.Papers.Independent.Intakethird100.P76.EntropyRate
For finite types , a channel with nonempty alphabets and conditional probability laws , a family of codes of length , and a real number , let , , and be each code’s message count, normalized encoder probabilities, and Alice key map. On tuples of length , put
where denote the message and -word of , and the total real logarithm has value at . The predicate means that for every real , there is a natural number such that every satisfies . It imposes no nonnegativity assumption on , and requires this eventual lower bound rather than convergence to .
QAlgorithms.Papers.Independent.Intakethird100.P76.InteractiveAchievable
Let be finite nonempty alphabets, let sum to for every , let , and let . The predicate asserts and the existence of an interactive code of every length , . Its underlying sender-excited code has positive alphabet sizes , a conditional probability distribution , and deterministic public-message and key maps of the sender-excited-code type. There exist fixed such that, for every , , , and ; moreover, implies . The interactive code additionally has a positive integer of Bob seeds, a natural number 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 and taking values in the underlying -element key alphabet. For , give the sample mass
Starting with the empty transcript, append at each of the rounds the prescribed sender’s discussion symbol, thereby obtaining ; put and . Define and , using the total real logarithm, for which . For every , eventually , and
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 is assumed.
QAlgorithms.Papers.Independent.Intakethird100.P76.InteractiveCode
For a finite type , arbitrary types , and any natural block length , an interactive code consists of a base code, a positive natural number of Bob seeds, a natural number of rounds, a positive natural number of transcript symbols, a function , and four functions
The base code supplies positive natural message, public-message, and key counts , a nonnegative normalized encoder , a public map , an Alice key map , and a Bob key map . 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 and are allowed.
QAlgorithms.Papers.Independent.Intakethird100.P76.InteractiveSample
For a finite type , arbitrary types , a natural block length , and an interactive code , let be its base message count and its Bob-seed count. The declaration abbreviates the sample type as
with an element represented by . This is the base sample—one message and four length- words—paired with a Bob seed; it imposes no probability law or encoder-support restriction on its elements. For , each word space contains its unique empty word, including when its alphabet is empty.
QAlgorithms.Papers.Independent.Intakethird100.P76.SenderExcitedCode
For types , with finite, and a natural number , a code consists of positive natural numbers , respectively specifying the numbers of messages, public labels, and keys; an encoder satisfying and for every message ; and deterministic functions
These are the public map, Alice’s key map, and Bob’s key map. No correctness, secrecy, or cost condition is imposed. The length is allowed, and each zero-length word space is a singleton. No finiteness or nonemptiness assumption on or is required here; if is empty and , the encoder normalization is impossible.
QAlgorithms.Papers.Independent.Intakethird100.P76.SenderExcitedDegraded
For finite nonempty alphabets and conditional probabilities summing to over for each , this predicate means that there exists a function such that and for every , and, for every , , and ,
The same is used for all . The required equality concerns these marginals; it does not require itself to factor as .
QAlgorithms.Papers.Independent.Intakethird100.P76.StrongAchievable
For finite nonempty alphabets , a channel whose nonnegative conditional masses sum to , and a real rate , this predicate means that there exist strictly positive real numbers such that and a code sequence satisfies the following conditions. For each , the code has length , positive finite message, public-message, and key sizes , a stochastic encoder , and deterministic public, Alice-key, and Bob-key maps , , and . Its sample mass is
For fixed , the sizes satisfy , , and . Let , , , and , where
For every , eventually , and , , with and for . No cost constraint is part of this predicate.
QAlgorithms.Papers.Independent.Intakethird100.P76.StrongAchievableAt
Let be finite nonempty alphabets, and let assign to each a probability distribution on . For real numbers , this property means that all three rates are nonnegative and there exist real numbers and a code of length for every natural number , including , with exactly
messages, public symbols, and key symbols, respectively, where is the natural-number ceiling. Each code consists of a probability distribution on for every message , a public map , an Alice key map , and a Bob key map . All probabilities below use the finite sample law
Write and , where , , and , with zero-probability summands equal to zero. For every real , eventually in ,
Furthermore, defining the extended-real quantity
one has
Thus zero disagreement or zero leakage contributes 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 be finite nonempty alphabets, let sum to for every , and write the given real triple as . The predicate asserts and the existence of codes of every length , , with positive message, public-message, and key alphabet sizes ; conditional probability distributions ; and deterministic public-message, Alice-key, and Bob-key maps , , and . There must be fixed such that
for every . Give mass , put and , and define and . For every , eventually . Writing
the remaining requirements, in the extended real numbers, are
The natural ceiling is truncated at , and in the entropy definitions. No cost condition is present. The allowed exponents include and ; the predicate does not separately require either or to tend to .
QAlgorithms.Papers.Independent.Intakethird100.P76.WeakAchievable
Let be finite types, and let specify nonempty alphabets and, for every , nonnegative numbers summing to over . Let , let be either absent or a specified real number, and let . The predicate asserts and the existence, for every , of a code of length , with positive integers , conditional probability distributions on , and deterministic maps , , and , satisfying the following requirements. There exist fixed such that , , and for every . If is specified, then every with satisfies ; an absent imposes no cost condition. On the finite sample space of tuples , put
For any finite probability mass function and observation , define
For every real , eventually , and
as . The real logarithm is total, with , 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 , a channel with nonnegative conditional masses summing to , and any function , put and let denote the coordinate observations. For any observation , define
The function returns
There is no assumption that is nonnegative or sums to ; the displayed finite-sum expressions are evaluated even then, using the total real logarithm, with and for .
QAlgorithms.Papers.Independent.Intakethird100.P76.auxMass
For finite types , a channel datum supplies their nonemptiness and numbers with for every . Given natural numbers and an auxiliary datum , write its input law as , its first stochastic kernel as , and its second stochastic kernel as ; thus these functions are nonnegative and each relevant distribution sums to one. The declaration defines the real-valued mass function on tuples by
Although are introduced as arbitrary natural numbers, existence of with the nonempty types supplied by forces both to be positive.
QAlgorithms.Papers.Independent.Intakethird100.P76.auxObjective
For finite types , a channel datum giving nonempty types and conditional probability laws , natural numbers , and auxiliary data consisting of an input law and stochastic kernels , , form the mass function . Let denote, respectively, the coordinates . For any observation of this finite sample space, define
with zero-mass terms contributing zero. The declaration defines the objective to be
that is, . Neither auxiliary kernel is required to be deterministic or strictly positive.
QAlgorithms.Papers.Independent.Intakethird100.P76.auxValues
For finite types , a channel datum giving nonempty types and conditional probability laws , any real-valued cost function , and any real number , the declaration defines a set of real numbers as follows: belongs to it exactly when there are positive natural numbers , a probability law on , and stochastic kernels and , with and , such that and
Here all laws and kernels are nonnegative and normalized, , and , using Shannon entropy in bits and zero contribution from zero-probability terms. No sign or boundedness condition on , and no positivity condition on , is imposed by this definition; if no feasible input law exists, the defined set is empty.
QAlgorithms.Papers.Independent.Intakethird100.P76.blockMass
Let be finite types, let specify nonempty and, for each , nonnegative numbers summing to over , and let be a length- code with positive message count and encoder probabilities summing to over for each message. This function assigns to every tuple the real number
The code’s public and key maps do not enter this expression. The natural number may be zero; then the product is , and encoder normalization makes the mass of each message tuple .
QAlgorithms.Papers.Independent.Intakethird100.P76.channelRate
For finite nonempty alphabets , a channel whose nonnegative conditional masses sum to , and an arbitrary function , put and let be the corresponding coordinate observations. Define
This function returns
There is no assumption that is a probability distribution. These expressions remain defined for zero or negative masses through the total real logarithm, for which and when .
QAlgorithms.Papers.Independent.Intakethird100.P76.condEntropy
For any finite type , arbitrary types , any function , and observations , , this defines
No nonnegativity or normalization is required of , and neither observation type is required to be finite. The logarithm has value at and uses the absolute value at negative arguments. The definition gives when is empty.
QAlgorithms.Papers.Independent.Intakethird100.P76.condInfo
For any finite type , arbitrary types , any function , and observations , , , write , , , and . This defines
There are no probability assumptions on or finiteness assumptions on . The logarithm is at and uses absolute values at negative arguments. If is empty, the result is .
QAlgorithms.Papers.Independent.Intakethird100.P76.eveView
For types , with finite, a natural number , a length- code with positive message and public-label counts , and a tuple , this function returns
where is the code’s public map. This is defined for every tuple, including tuples of zero probability, and for .
QAlgorithms.Papers.Independent.Intakethird100.P76.excitationJointMass
For types , with finite , let consist of nonemptiness evidence for all four types and a function that is nonnegative and sums to over for each . For any function , this defines a function on quadruples by
No nonnegativity or normalization is assumed for , and no finiteness of is required.
QAlgorithms.Papers.Independent.Intakethird100.P76.generatedKeyEntropy
For finite types , a channel with nonempty alphabets and conditional probability laws , and a length- code with positive message count , normalized encoder probabilities , and Alice key map , let
This real number is
The logarithm is the total real base- logarithm, with value at . There is no requirement that the generated key be uniform. The natural number may be zero, with the product in then equal to .
QAlgorithms.Papers.Independent.Intakethird100.P76.innerRegion
Let be finite nonempty sets, let each be a probability distribution, and fix any function and real numbers . Write , , , and . For , set
and set
The declaration defines the set of triples satisfying
The comparisons and suprema are in the extended real line after embedding the real quantities. The function need not be a probability distribution, and need not be nonnegative. Zero coordinates are allowed; all powers, divisions, and logarithms are total, with division by zero and equal to zero.
QAlgorithms.Papers.Independent.Intakethird100.P76.inputOptimizedSecrecyExponent
For finite, nonempty alphabets , let specify numbers summing to one over for every , and let be arbitrary real numbers. Put . For a probability distribution , meaning and , put . The declaration defines the extended-real supremum
Each bracketed real value is embedded into the extended reals before taking the suprema. Distributions with zero entries are allowed, the zero- branch contributes exactly zero, and the total real logarithm has .
QAlgorithms.Papers.Independent.Intakethird100.P76.interactiveCapacity
For finite nonempty alphabets , conditional probability distributions , an arbitrary cost function , and , this declaration defines an extended-real number as the supremum of the real rates satisfying the following condition, embedded into the extended real line. There must exist interactive codes of every positive length , with positive base message, public-label, and key counts , conditional encoder distributions on , positive finite Bob-seed counts , finite positive transcript alphabets, finite fixed speaking schedules, and deterministic speaking and final-key functions. Fixed constants must give , , and for every ; every encoder-supported word must satisfy . Under the sample weights , let be the transcript produced by successively applying the scheduled Alice functions of and the preceding transcript and Bob functions of his seed, , and that transcript, and let be the resulting final keys. For every , eventually , while and , with entropies in bits. The supremum is taken in the extended real line, so an empty set gives and an unbounded set gives .
QAlgorithms.Papers.Independent.Intakethird100.P76.interactiveEntropy
For finite nonempty alphabets , let be a probability distribution on , and let be an interactive code of natural length , possibly zero. If are its numbers of base messages and Bob seeds and is its conditional distribution on , assign each sample weight . Its transcript starts empty and successively appends symbols according to the fixed speaking schedule, using Alice’s functions of and the preceding transcript or Bob’s functions of and that transcript. Let be Alice’s final-key function of . The declaration defines the real number
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 , and for the channel product is .
QAlgorithms.Papers.Independent.Intakethird100.P76.interactiveError
For finite nonempty alphabets , let satisfy for every , and let be an interactive code of length , including . Its base code has positive numbers of messages, public labels, and keys, and conditional probabilities with . The interactive code also has a positive number 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 , with and , has weight
Starting with an empty transcript, each scheduled Alice round appends her speaking function of and the preceding transcript; each Bob round appends his speaking function of and that transcript. Write for the resulting transcript, for Alice’s final-key function of , and for Bob’s final-key function of . The declaration defines the real number . Zero rounds give an empty transcript; for , the channel product is .
QAlgorithms.Papers.Independent.Intakethird100.P76.interactiveKeyA
For a finite type , arbitrary types , a natural block length , an interactive code , and a sample , the declaration defines Alice’s interactive key as , an index in the base code’s positive key alphabet . Here is the code’s round count, , and is obtained by appending when , or otherwise, for . In particular, when , the key is ; 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 , let be a probability distribution on , and let be an interactive code of any natural length , including zero. Let be its positive numbers of base messages and Bob seeds, and let be its probability distribution on for message . On samples , use the weights
Construct from the empty transcript by following the code’s fixed finite speaking schedule: Alice’s next symbol depends on and the preceding transcript, while Bob’s depends on and that transcript. Let be Alice’s final key computed from , and let . For any observation , define
The declaration defines , 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 ; empty channel products equal , and zero speaking rounds give an empty transcript.
QAlgorithms.Papers.Independent.Intakethird100.P76.interactiveMass
For finite types , a channel datum giving their nonemptiness and nonnegative normalized conditional laws , a natural block length , and an interactive code , let be its base message count, its Bob-seed count, and its base encoder, which is nonnegative and sums to one over for every message . The declaration defines the mass of a sample to be
Thus the formula does not depend on the particular seed index . Both denominators are positive by the code’s fields. For , the product is , and encoder normalization on the unique empty input word makes the mass .
QAlgorithms.Papers.Independent.Intakethird100.P76.keyA
For types , with finite, a natural number , a length- code with positive message and key counts , and a tuple , this function returns ’s Alice key . It uses only the message and the -word , regardless of the tuple’s probability. The length is included.
QAlgorithms.Papers.Independent.Intakethird100.P76.keyDisagreementProbability
For finite types , a channel with nonempty alphabets and conditional probability laws on , and a length- code , write for its message, public-label, and key counts, for its normalized encoder probabilities, for its public map, and and for its two key maps. This real number is
Thus only tuples on which the two specified keys differ contribute. Zero-length codes are included, with an empty product equal to .
QAlgorithms.Papers.Independent.Intakethird100.P76.logRate
For every natural number , including , and every real number , this extended-real-valued function is
The second branch is a real number embedded in the extended reals, and its denominator is always positive. There is no assumption that is a probability or even nonnegative: the total real logarithm used here satisfies for negative .
QAlgorithms.Papers.Independent.Intakethird100.P76.obsS
For arbitrary types and any quadruple , this defines the -valued observation , its first coordinate.
QAlgorithms.Papers.Independent.Intakethird100.P76.obsX
For arbitrary types and any quadruple , this defines the -valued observation , its second coordinate.
QAlgorithms.Papers.Independent.Intakethird100.P76.obsY
For arbitrary types and any quadruple , this defines the -valued observation , its third coordinate.
QAlgorithms.Papers.Independent.Intakethird100.P76.obsZ
For arbitrary types and any quadruple , this defines the -valued observation , its fourth coordinate.
QAlgorithms.Papers.Independent.Intakethird100.P76.observationEntropyBits
For any finite type , any type , any function , and any observation , this defines the real number
There is no assumption that is nonnegative or sums to , and need not be finite. Here the real logarithm is total: , and for a negative argument it equals the base- logarithm of its absolute value. If is empty, the value is .
QAlgorithms.Papers.Independent.Intakethird100.P76.observationMutualInfoBits
For any finite type , arbitrary types , any function , and observations , , this defines
The weights may be arbitrary real numbers; they need not form a probability distribution. The observation types need not be finite. The logarithm is total, with and for ; an empty gives value .
QAlgorithms.Papers.Independent.Intakethird100.P76.optimizedReliability
For finite, nonempty alphabets , let specify numbers with for every , and let be arbitrary real numbers. Write and . For each probability distribution , meaning and , define
The declaration defines the extended-real value
where each 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 .
QAlgorithms.Papers.Independent.Intakethird100.P76.publicKeyLeakage
For finite types , a channel with nonempty alphabets and conditional probability laws , and a length- code with positive message count , normalized encoder probabilities , public map , and Alice key map , put
For any observation on this finite tuple space, define its entropy by
The defined leakage is exactly . The logarithm is the total real base- logarithm, whose value at is . The definition includes , using the empty product .
QAlgorithms.Papers.Independent.Intakethird100.P76.region
For finite nonempty alphabets and a channel whose nonnegative conditional masses sum to , this set is the closure in of the following triples . All three coordinates are nonnegative, and there exists a code at every length , with positive finite message, public-message, and key sizes , stochastic encoder , and deterministic public, Alice-key, and Bob-key maps , , and . Under the sample mass
let , , , and , using
Fixed nonnegative must satisfy , , and . For every , eventually , while and , where and 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 be finite nonempty sets, let each be a probability distribution on , let be arbitrary, and let . Define and , and, for , define the real numbers
The declaration defines the extended-real value
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 , 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 .
QAlgorithms.Papers.Independent.Intakethird100.P76.reliabilityOne
For finite nonempty alphabets , let sum to over for every . For an arbitrary function and arbitrary real parameters , put and . The declaration defines the real number
No probability-law assumption is imposed on , and neither real parameter is restricted. All divisions, real powers, and logarithms are total operations: a zero denominator gives quotient , so makes , and makes each displayed ratio ; the real-power convention includes . The logarithm is , where the total real logarithm has and for negative .
QAlgorithms.Papers.Independent.Intakethird100.P76.reliabilityThree
Let be finite nonempty sets, and let be a probability distribution on for every . For any function and any real numbers , write . The declaration defines
The function 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 being zero; thus is also an allowed argument.
QAlgorithms.Papers.Independent.Intakethird100.P76.reliabilityTwo
Let be finite nonempty sets, and let assign to each a probability distribution on . For an arbitrary function and arbitrary real numbers , put . The declaration defines
There is no assumption that is nonnegative or normalized, or that the real parameters are nonnegative. Powers and logarithms use their total real-valued definitions; division by zero and equal zero. In particular, is included, with .
QAlgorithms.Papers.Independent.Intakethird100.P76.renyiBits
For any finite type , any function , and any real parameter , this defines
Neither nonnegativity nor normalization of is assumed, and is unrestricted. Powers use the total real-power operation: for , ; , for ; and for , . The logarithm is at and uses absolute values at negative arguments. Division by zero gives , so the definition gives at ; it also gives for an empty .
QAlgorithms.Papers.Independent.Intakethird100.P76.residualSourceRate
For finite nonempty alphabets , a channel with nonnegative conditional masses summing to , and any function , put and write for the coordinate observations. Define
The function returns exactly
No nonnegativity or normalization condition is imposed on ; all these finite-sum formulas use the total real logarithm, including and for .
QAlgorithms.Papers.Independent.Intakethird100.P76.secrecyExponent
Let be finite nonempty sets, let be a probability distribution on for each , and let and be arbitrary. Put and . The declaration defines
This is a supremum in the extended real line of the displayed real values; is excluded and is included. Neither normalization nor nonnegativity of is required, and the rates have no sign restrictions. The zero branch is used whenever , and real powers and logarithms use their total definitions, including .
QAlgorithms.Papers.Independent.Intakethird100.P76.secrecyTrial
Let be finite nonempty sets, and let be a probability distribution for every . For an arbitrary function and arbitrary real numbers , define
The declaration defines
There is no assumption that is a probability distribution or that any parameter is nonnegative. The zero branch depends only on the equality , including when that equality results from cancellation among signed terms. Powers and logarithms are total real-valued operations, with .
QAlgorithms.Papers.Independent.Intakethird100.P76.senderExcitedCapacity
For finite nonempty alphabets , a channel whose are nonnegative and sum to for each , an arbitrary function , and an optional real bound , this is the supremum in the extended real numbers of the real rates satisfying the following conditions. There exists a code for every length , with positive finite message, public-message, and key sizes , a stochastic encoder , and deterministic public, Alice-key, and Bob-key maps , , and . Samples have mass
There are fixed with , , and . If , every encoder-supported word satisfies ; an absent 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 for every , and the mutual information between Alice's key and , divided by , tends to zero. Here an observation has entropy
and mutual information is . Length is included. The supremum need not itself be an admitted rate; the extended-real supremum is if the rate set is empty and if it is unbounded above.
QAlgorithms.Papers.Independent.Intakethird100.P76.strongCapacity
For finite nonempty alphabets and a channel with nonnegative conditional masses summing to , this is the extended-real supremum of real rates for which there exist and the following code sequence. At every length , including length , a code has positive finite message, public-message, and key sizes , a stochastic encoder , and deterministic public, Alice-key, and Bob-key maps , , and . Under
write , , , and . Here
Fixed nonnegative must give , , and . The entropy per symbol is eventually at least for every , and
where and otherwise. There is no cost constraint. The supremum does not require attainment; it is for an empty rate set and for an unbounded rate set.
QAlgorithms.Papers.Independent.Intakethird100.P76.transcript
For a finite type , arbitrary types , a natural block length , an interactive code , and a sample , where is a base message index and a Bob-seed index, the declaration defines a transcript using the code’s natural round count , positive symbol count , sender function, and talk functions. Start with the empty list ; for each , append exactly one symbol according to
The result is , a list of symbols from . The words do not enter this calculation; if , the result is the empty list.
QAlgorithms.Papers.Independent.Intakethird100.P76.upperObjective
For finite nonempty alphabets , a channel with nonnegative conditional masses summing to , and any real-valued function on , put and denote the coordinate observations by . With
this function is the following difference of conditional-entropy expressions:
Thus it is the explicitly defined conditional information . No probability-law assumption is imposed on ; the sums use the total real logarithm, including and for negative .
QAlgorithms.Papers.Independent.Intakethird100.P76.xyMass
For finite nonempty alphabets , let satisfy for every . For every , , and , this declaration defines the real number
QAlgorithms.Papers.Independent.Intakethird100.P76.xzMass
For finite nonempty alphabets , let satisfy for every . For every , , and , this declaration defines the real number
QAlgorithms.Papers.Independent.Intakethird100.P76.yMass
For finite nonempty alphabets , let satisfy for every . For every and , this declaration defines the real number
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.