Definitions for Unconstrained Capacities of Quantum Key Distribution and Entanglement Distillation for Pure-Loss Bosonic Broadcast Channels
DefinitionQAlgorithms_Papers_Independent_Bridge50_P19The objects the formalized statements of Unconstrained Capacities of Quantum Key Distribution and Entanglement Distillation for Pure-Loss Bosonic Broadcast Channels (arXiv:1706.06746) are stated in. Each was checked against the paper by a blind read-back and a moderator.
detectedAmplitude: PDF pp.7–8, Fig.5 and (30): amplitude of the TMSV after the broadcast channel and both trusted 50% detector losses. Coordinates 0,1,2 are Alice, Bob's detected mode and Charlie's detected mode. The unmeasured modes can be combined into one vacuum output for this classical marginal only.detectedResource: PDF p.8: actual three-mode density before the sifted homodyne readings. This partial trace includes all undetected output modes.quadratureTerm: PDF p.8, corrected (32): the number-basis Born term for the measured coordinates. The Hermite wavefunctions have vacuum variance 1/2.quadratureDensity: PDF p.8, corrected (32): actual marginal outcome density relative to Lebesgue measure. Series convergence and probability normalization are conclusions, not assumptions encoding the entropy calculation.measuredEntropyBits: PDF p.8, (33)–(38): differential Shannon entropy in bits of the actual measured marginal. Integrability is supplied by the theorem before use.measuredSets: PDF p.8: the six measured marginals explicitly evaluated in (33)–(38).RegularMeasuredMarginal: PDF p.8: analytic validity of the Born-density and entropy expressions. This guard is a conclusion of the evaluation theorem.groupedAmplitude: PDF pp.8–9, Fig.5(c),(39): vacuum splitter powers for the combined adversary C'=CE, the detected receiver mode, and trusted detector vacuum. For receiver power t in [0,1] these sum to one. The sign of C' is a removable local phase, fixed positive here. C' never includes trusted detector loss.groupedJoint: PDF pp.8–9, (39): actual C',B density, obtained by splitting a thermal signal of mean mu and tracing only the trusted detector port. Tracing Alice makes the input photon number diagonal. No entropy formula defines this state.groupedMarginal: PDF p.9, (40): the true unconditioned C'=CE marginal.conditionalNumerator: PDF p.9, (43)–(46): unnormalized conditional C' density from the homodyne spectral density on the detected receiver mode. Conditional means are retained through the outcome-dependent Hermite functions.receiverDensity: PDF p.9: actual homodyne outcome probability density.conditionalAdversary: PDF p.9: normalized measurement-conditioned adversary state. The theorem establishes a strictly positive denominator for every real y.oscillatorEntropyBits: PDF p.9, (40),(46): genuine spectral von Neumann entropy in bits. Finiteness is established before conversion to a real number.adversaryHolevoBits: PDF pp.8–9: Holevo information between the detected classical receiver outcome and CE (or BE in the swapped ordering). This is quantum side information, not the mutual information of two classical outcomes.conditionalOccupation: PDF p.9, (45),(46): (sqrt(alpha beta)-1)/2, with v=2mu+1. This scalar is an evaluation target, never the definition of a density or entropy.
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Support50_P48
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P13
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P32
/-!
# arXiv:1706.06746v1: broadcast CVQKD information evaluation
PDF pp.7–9. The operational capacity and key-distillation nodes are deferred,
not identified with scalar polytopes. Two resource nodes reuse Support50.P48.
The theorem below evaluates actual Born densities and quantum conditional
states on the complete oscillator number basis. No covariance-only state
predicate, photon cutoff, independently supplied information number, or
outcome-independent conditional density is used.
Quadratures have vacuum variance 1/2 (quantum doubled covariance I). Sifting
conditions on Alice's public quadrature choice; phase symmetry permits the
q quadrature throughout. Trusted detector loss is traced, never given to Eve.
Compilation and independent moderation are pending the batch handoff.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Bridge50.P19
open MeasureTheory
open scoped BigOperators ENNReal NNReal
open QAlgorithms.Papers.Independent.Dependency50.P30
(PureLossBroadcastParameters thermalEntropyBits)
open QAlgorithms.Papers.Independent.Support50.P48
(tmsvWeight vacuumAmplitude subsystem)
open QAlgorithms.Papers.Independent.Dependency50.P33 (IsDensity)
open QAlgorithms.Papers.Independent.Frontier18.P07 (extendedEntropyNats)
open QAlgorithms.Papers.Independent.Gap48.P13 (hermiteValue)
attribute [local instance] Classical.propDecidable Classical.decEq
/-- PDF pp.7–8, Fig.5 and (30): amplitude of the TMSV after the broadcast
channel and both trusted 50% detector losses. Coordinates 0,1,2 are Alice,
Bob's detected mode and Charlie's detected mode. The unmeasured modes can
be combined into one vacuum output for this classical marginal only. -/
def detectedAmplitude (p : PureLossBroadcastParameters 2) (mu : ℝ≥0)
(a : Fin 3 → ℕ) (e : ℕ) : ℝ :=
Real.sqrt (tmsvWeight mu (a 0)) *
vacuumAmplitude
![p.transmissivity 0 / 2, p.transmissivity 1 / 2,
1 - p.transmissivity 0 / 2 - p.transmissivity 1 / 2]
![a 1, a 2, e] (a 0)
/-- PDF p.8: actual three-mode density before the sifted homodyne readings.
This partial trace includes all undetected output modes. -/
def detectedResource (p : PureLossBroadcastParameters 2) (mu : ℝ≥0) :
Matrix (Fin 3 → ℕ) (Fin 3 → ℕ) ℂ :=
fun a b => ∑' e : ℕ,
(detectedAmplitude p mu a e : ℂ) * (detectedAmplitude p mu b e : ℂ)
/-- PDF p.8, corrected (32): the number-basis Born term for the measured
coordinates. The Hermite wavefunctions have vacuum variance 1/2. -/
def quadratureTerm (p : PureLossBroadcastParameters 2) (mu : ℝ≥0)
(S : Finset (Fin 3)) (x : S → ℝ) (a b : S → ℕ) : ℂ :=
subsystem S (detectedResource p mu) a b *
(∏ i : S, hermiteValue (a i) (x i)) *
star (∏ i : S, hermiteValue (b i) (x i))
/-- PDF p.8, corrected (32): actual marginal outcome density relative to
Lebesgue measure. Series convergence and probability normalization are
conclusions, not assumptions encoding the entropy calculation. -/
def quadratureDensity (p : PureLossBroadcastParameters 2) (mu : ℝ≥0)
(S : Finset (Fin 3)) (x : S → ℝ) : ℝ :=
(∑' a : S → ℕ, ∑' b : S → ℕ, quadratureTerm p mu S x a b).re
/-- PDF p.8, (33)–(38): differential Shannon entropy in bits of the actual
measured marginal. Integrability is supplied by the theorem before use. -/
def measuredEntropyBits (p : PureLossBroadcastParameters 2) (mu : ℝ≥0)
(S : Finset (Fin 3)) : ℝ :=
-∫ x : S → ℝ, quadratureDensity p mu S x *
Real.logb 2 (quadratureDensity p mu S x)
/-- PDF p.8: the six measured marginals explicitly evaluated in (33)–(38). -/
def measuredSets : Finset (Finset (Fin 3)) :=
{Finset.univ, {0}, {1}, {2}, {0, 1}, {0, 2}}
/-- PDF p.8: analytic validity of the Born-density and entropy expressions.
This guard is a conclusion of the evaluation theorem. -/
def RegularMeasuredMarginal (p : PureLossBroadcastParameters 2) (mu : ℝ≥0)
(S : Finset (Fin 3)) : Prop :=
(∀ x : S → ℝ,
(∀ a : S → ℕ, Summable (fun b => quadratureTerm p mu S x a b)) ∧
Summable (fun a : S → ℕ => ∑' b : S → ℕ, quadratureTerm p mu S x a b)) ∧
(∀ x : S → ℝ, 0 ≤ quadratureDensity p mu S x) ∧
Integrable (quadratureDensity p mu S) ∧
(∫ x : S → ℝ, quadratureDensity p mu S x) = 1 ∧
Integrable (fun x : S → ℝ =>
quadratureDensity p mu S x * Real.logb 2 (quadratureDensity p mu S x))
/-- PDF pp.8–9, Fig.5(c),(39): vacuum splitter powers for the combined
adversary C'=CE, the detected receiver mode, and trusted detector vacuum.
For receiver power t in [0,1] these sum to one. The sign of C' is a removable
local phase, fixed positive here. C' never includes trusted detector loss. -/
def groupedAmplitude (t : ℝ≥0) (a b e n : ℕ) : ℝ :=
vacuumAmplitude ![1 - t, t / 2, t / 2] ![a, b, e] n
/-- PDF pp.8–9, (39): actual C',B density, obtained by splitting a thermal
signal of mean mu and tracing only the trusted detector port. Tracing Alice
makes the input photon number diagonal. No entropy formula defines this state. -/
def groupedJoint (t mu : ℝ≥0) : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ :=
fun a b => ∑' e : ℕ, if a.1 + a.2 = b.1 + b.2 then
((tmsvWeight mu (a.1 + a.2 + e) *
groupedAmplitude t a.1 a.2 e (a.1 + a.2 + e) *
groupedAmplitude t b.1 b.2 e (b.1 + b.2 + e) : ℝ) : ℂ)
else 0
/-- PDF p.9, (40): the true unconditioned C'=CE marginal. -/
def groupedMarginal (t mu : ℝ≥0) : Matrix ℕ ℕ ℂ :=
fun a b => ∑' k : ℕ, groupedJoint t mu (a, k) (b, k)
/-- PDF p.9, (43)–(46): unnormalized conditional C' density from the
homodyne spectral density on the detected receiver mode. Conditional means
are retained through the outcome-dependent Hermite functions. -/
def conditionalNumerator (t mu : ℝ≥0) (y : ℝ) : Matrix ℕ ℕ ℂ :=
fun a b => ∑' k : ℕ, ∑' l : ℕ,
groupedJoint t mu (a, k) (b, l) * hermiteValue k y * star (hermiteValue l y)
/-- PDF p.9: actual homodyne outcome probability density. -/
def receiverDensity (t mu : ℝ≥0) (y : ℝ) : ℝ :=
∑' a : ℕ, (conditionalNumerator t mu y a a).re
/-- PDF p.9: normalized measurement-conditioned adversary state.
The theorem establishes a strictly positive denominator for every real y. -/
def conditionalAdversary (t mu : ℝ≥0) (y : ℝ) : Matrix ℕ ℕ ℂ :=
fun a b => conditionalNumerator t mu y a b / (receiverDensity t mu y : ℂ)
/-- PDF p.9, (40),(46): genuine spectral von Neumann entropy in bits.
Finiteness is established before conversion to a real number. -/
def oscillatorEntropyBits (rho : Matrix ℕ ℕ ℂ) : ℝ≥0∞ :=
extendedEntropyNats rho / ENNReal.ofReal (Real.log 2)
/- PDF p.9, (46): write this experiment's real-outcome entropy average
inline below. The imported Next46.P32.conditionalEntropyAverage instead
averages coherent-state ensembles over complex outcomes in nats; it cannot
replace the homodyne-conditioned entropy in bits. -/
/-- PDF pp.8–9: Holevo information between the detected classical receiver
outcome and CE (or BE in the swapped ordering). This is quantum side
information, not the mutual information of two classical outcomes. -/
def adversaryHolevoBits (t mu : ℝ≥0) : ℝ :=
(oscillatorEntropyBits (groupedMarginal t mu)).toReal -
(∫ y : ℝ, receiverDensity t mu y *
(oscillatorEntropyBits (conditionalAdversary t mu y)).toReal)
/-- PDF p.9, (45),(46): (sqrt(alpha beta)-1)/2, with v=2mu+1.
This scalar is an evaluation target, never the definition of a density or entropy. -/
def conditionalOccupation (t mu : ℝ≥0) : ℝ :=
let alpha := 1 + (1 - (t : ℝ)) * (2 * (mu : ℝ)) / ((t : ℝ) * (mu : ℝ) + 1)
let beta := 1 + (1 - (t : ℝ)) * (2 * (mu : ℝ))
(Real.sqrt (alpha * beta) - 1) / 2
/-- The source vacuum TMSV remains the full network vacuum. -/
example (p : PureLossBroadcastParameters 2) :
detectedAmplitude p 0 (fun _ => 0) 0 = 1 := by
simp [detectedAmplitude, tmsvWeight, vacuumAmplitude, Fin.sum_univ_succ, Fin.prod_univ_succ]
/-- Every splitting stage preserves the vacuum, including zero-power ports. -/
example (t : ℝ≥0) : groupedAmplitude t 0 0 0 0 = 1 := by
simp [groupedAmplitude, vacuumAmplitude, Fin.sum_univ_succ, Fin.prod_univ_succ]
/-- Vacuum input has zero conditional thermal occupation, even at t=0 or t=1. -/
example (t : ℝ≥0) : conditionalOccupation t 0 = 0 := by
simp [conditionalOccupation]
/-- The covariance expression has no denominator singularity at zero receiver power. -/
example (mu : ℝ≥0) : conditionalOccupation 1 mu = 0 := by
simp [conditionalOccupation]
end QAlgorithms.Papers.Independent.Bridge50.P19
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Bridge50.P19.RegularMeasuredMarginal
For supplying nonnegative with , , and any , this defines the following proposition. Put
where combines assignments on and its complement, , and
The proposition requires that, for every and every , the complex family is summable, and that for every the family is summable; furthermore, for every , is Lebesgue integrable on , , and is Lebesgue integrable. These summability requirements concern the two displayed occupation sums defining ; the internal complement and sums still use total summation. Empty is permitted, giving singleton occupation and coordinate spaces and empty products equal to ; the logarithm convention is .
QAlgorithms.Papers.Independent.Bridge50.P19.adversaryHolevoBits
For any nonnegative real numbers , this defines the real number
where denotes conversion from to , which sends to zero. The matrices and scalar functions in this formula are
Here
Real matrix entries in these formulas are regarded as complex numbers. For any complex matrix indexed by , the extended nonnegative quantity used above is
where is the principal submatrix, , and is the total continuous-functional-calculus application of the real logarithm. The integral is with respect to Lebesgue measure. No summability, integrability, density, or normalization hypotheses accompany this definition: nonsummable real or complex series have total sum zero, a nonintegrable integrand has total integral zero, and when its denominator is zero. The parameters include and every , including , for which the displayed truncation applies.
QAlgorithms.Papers.Independent.Bridge50.P19.conditionalAdversary
For any nonnegative real numbers and any real number , this defines a complex matrix , indexed by , by
Here the real denominator is regarded as a complex scalar,
and
with real values in this expression embedded in , and
The truncation comes from subtraction in the nonnegative reals: the definition allows , as well as and . These are total infinite-sum expressions; a nonsummable real or complex series has total sum zero under the summation convention used here. No convergence, positivity, normalization, or nonzero-denominator assumption is imposed. In particular, if , complex division by zero makes every entry of zero.
QAlgorithms.Papers.Independent.Bridge50.P19.conditionalNumerator
For nonnegative real numbers and any real , this defines a complex matrix indexed by as
where
The real terms in the innermost sum are embedded into . The order is an outer sum, an inner sum, and an sum inside each matrix coefficient; each uses total summation, returning zero for a nonsummable family. No convergence, positivity, or normalization condition is imposed. The parameter is unrestricted above, so its first weight uses truncated subtraction, and zero parameters and occupations are allowed with .
QAlgorithms.Papers.Independent.Bridge50.P19.conditionalOccupation
For any nonnegative real numbers , regarded as ordinary real numbers in the following arithmetic, this defines
The result is a real number; no nonnegativity conclusion is part of the definition. There is no upper bound on , and here is ordinary real subtraction, so it may be negative. The denominator is positive for all allowed parameters. The real square root is total and equals zero if its argument is negative. The definition includes , , and ; in particular, or gives .
QAlgorithms.Papers.Independent.Bridge50.P19.detectedAmplitude
For nonnegative real numbers supplied by , with , a nonnegative real number , a triple , and , this defines the real number
Here is the transmissivity of index in . The subtractions in the supplied nonnegative weights are truncated at zero, although the bound on makes truncation unnecessary here. All occupation numbers may be zero, and either transmissivity may be zero, and powers use .
QAlgorithms.Papers.Independent.Bridge50.P19.detectedResource
For consisting of nonnegative transmissivities with , and , this defines a complex matrix indexed by triples in by
where the real amplitudes are regarded as complex numbers and
The same appears in both factors, and there is no complex conjugation in their product. The infinite sum is the total complex summation operation, which returns zero if the family is not summable; summability or the density conditions are not part of this definition. Zero parameters and zero occupations are included, with .
QAlgorithms.Papers.Independent.Bridge50.P19.groupedAmplitude
For any nonnegative real and natural numbers , this defines
The maximum appears because is calculated in the nonnegative reals, where subtraction is truncated at zero. There is no assumption ; for the first weight is zero. All occupations, including , may be zero, and , so the value at is for every .
QAlgorithms.Papers.Independent.Bridge50.P19.groupedJoint
For arbitrary nonnegative real numbers , this defines a complex matrix indexed by pairs of natural numbers. For and , its entry is
with the real summands embedded into , where
Thus each amplitude is evaluated at its own total occupation, and the thermal weight uses . The parameter need not be at most one; reflects truncated nonnegative subtraction. The sum returns zero if its complex family is not summable, and the definition imposes no density or convergence condition. Zero parameters and occupations are included, with .
QAlgorithms.Papers.Independent.Bridge50.P19.groupedMarginal
For any nonnegative real , this defines a complex matrix indexed by by the nested sums
where
and the real summands are embedded into . The same occupies the second coordinate on both sides; consequently the entries with are zero. Each infinite sum is total and returns zero for a nonsummable family, without any summability or density assumption in the definition. There is no upper bound on , and all parameters and occupations may be zero, with .
QAlgorithms.Papers.Independent.Bridge50.P19.measuredEntropyBits
For a parameter record supplying with , , and any , this defines the real number
using Lebesgue measure on the finite coordinate space, where
Here combines occupations on and its complement, , and
No summability, positivity, normalization, or integrability assumption accompanies this definition: nonsummable families have total sum zero, and the real integral is zero when its integrand is not integrable. The real logarithm is total, with , so the integrand is zero wherever . Empty is allowed and gives a one-point coordinate space; empty products are .
QAlgorithms.Papers.Independent.Bridge50.P19.measuredSets
This defines the finite collection of six subsets of
It has no parameters; neither the empty subset nor belongs to this collection.
QAlgorithms.Papers.Independent.Bridge50.P19.oscillatorEntropyBits
For any complex matrix , this defines an extended nonnegative real number by
Here is the finite principal submatrix, is embedded in , the supremum and division take place in , and is the matrix obtained by applying the real logarithm through the library’s total continuous functional calculus. The scalar logarithm is natural, with its total real-valued convention, including . The supremum includes the empty principal submatrix, whose contribution is zero. There is no hypothesis that is positive, Hermitian, trace class, or normalized, and the resulting value may be .
QAlgorithms.Papers.Independent.Bridge50.P19.quadratureDensity
For nonnegative transmissivities with , their parameter record , , a subset , and , this defines the real number
The assignment equals on and on its complement in , and
The sums are nested in the displayed order, with each nonsummable family assigned sum zero. The definition itself does not require nonnegativity, integrability, or integral one. Empty and zero parameters are included; empty products equal , and .
QAlgorithms.Papers.Independent.Bridge50.P19.quadratureTerm
For with nonnegative transmissivities , , any subset , real coordinates , and occupations , this defines
Here , and agrees with on and with on . For a triple ,
Every infinite sum uses total summation, returning zero for a nonsummable family. No convergence hypothesis is imposed. Empty is allowed, in which case the products are and are the unique empty coordinate assignments; empty gives a sum over its single empty assignment.
QAlgorithms.Papers.Independent.Bridge50.P19.receiverDensity
For arbitrary nonnegative real numbers and , this defines the real number
where
The real innermost summands are embedded into , and the real part is taken after the two complex sums over , before the outer real sum over . Each sum is total and equals zero if its corresponding family is not summable. The definition itself asserts no nonnegativity, integrability, or integral-one property. It includes , where the first weight is zero by truncated subtraction, as well as zero parameters and occupations, with .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.