Definitions for Theory of channel simulation and bounds for private communication
DefinitionQAlgorithms_Papers_Independent_Intake100_P02The objects the formalized statements of Theory of channel simulation and bounds for private communication (arXiv:1711.09909) are stated in. Each was checked against the paper by a blind read-back and a moderator.
varianceEntropy: PDF p.14, (111): entropy in bits, vacuum variance 1/2; 0 log 0 = 0.conditionalSymplecticEigenvalue: PDF p.14, (115): limiting conditional symplectic eigenvalue.siftedRateExpression: PDF p.14, (116): signed calculated expression including basis sifting. This does not define an achieved rate. Domain: 0<eta<1, omega>=1/2, xi>=0.reverseRateExpression: PDF p.13, (110): signed reverse-coherent-information comparison expression.leadingRateExpression: PDF p.15, (118): leading expression, with the continuous convention at nbar=0.KeyRegister: PDF pp.2-3: two key registers followed by two shield registers.privateTarget: PDF pp.2-3: private target from a shield and diagonal twisting blocks. Register-order adapter to the accepted Information100.P67.privateState. Every family U_i extends to a controlled twisting.finiteKeyRate: PDF pp.2-3: log2(k) key bits divided by actual channel-use count n.FiniteTargetFunctional: PDF p.15, (122)-(123): only the functional properties needed in (129), simultaneously over every finite key/shield dimension. No simulation or capacity bound is a field. Radius records the available continuity interval.schmidtAmplitude: PDF p.28, (A1)-(A2): TMSV Schmidt amplitudes at variance t=N+1/2.tmsvKernel: PDF p.28, (A1)-(A2): actual full pure TMSV density kernel, reusing the accepted thermal purification after converting variance to mean occupation.bkNoise: PDF p.28: BK added quadrature variance at resource variance mu.displacedTmsvKernel: PDF p.28, (A3): displace only the transmitted mode; retain the reference. Its photon index fixes the input Schmidt index.bkOutput: PDF p.28, text before (A3): actual additive-noise realization of BK on one TMSV half. Complex displacement variance xi equals added quadrature variance under [q,p]=i. Neither state nor channel is defined by (A4).bkOverlapTerm: PDF p.28, (A4): terms of the pure-input overlap with the constructed output.bkRootFidelity: PDF pp.5,28, (28),(A4): unsquared fidelity with pure TMSV input, sqrt(<TMSV|output|TMSV>). Normalization, integrability and summability are conclusions below, rather than assumed closed fidelity formulas.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Channel
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P33
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P39
import Definitions.Def_QAlgorithms_Papers_Independent_Next46_P32
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P67
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P35
/-!
arXiv:1711.09909v3. All citations are PDF pages. Missing operational
interfaces are deferred in HARD.md. Signed scalar expressions are not capacities.
Full Fock kernels have no photon cutoff. Accepted-paper imports provide normal
densities, Weyl matrix elements, the complex Gaussian law and private targets. Compilation and
independent moderation are pending the batch handoff.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Intake100.P02
open Filter MeasureTheory QAlgorithms
open scoped ENNReal Topology
open QAlgorithms.Papers.Independent.Dependency50.P33 (IsDensity)
open QAlgorithms.Papers.Independent.Dependency50.P39 (displacementMatrix)
open QAlgorithms.Papers.Independent.Next46.P32 (complexNormal)
/-- PDF p.14, (111): entropy in bits, vacuum variance 1/2; 0 log 0 = 0. -/
def varianceEntropy (x : ℝ) : ℝ :=
(x + 1 / 2) * Real.logb 2 (x + 1 / 2) -
(x - 1 / 2) * Real.logb 2 (x - 1 / 2)
/-- PDF p.14, (115): limiting conditional symplectic eigenvalue. -/
def conditionalSymplecticEigenvalue (eta omega xi : ℝ) : ℝ :=
Real.sqrt (omega * (1 + 4 * omega * xi * (1 - eta)) /
(4 * (omega + xi * (1 - eta))))
/-- PDF p.14, (116): signed calculated expression including basis sifting.
This does not define an achieved rate. Domain: 0<eta<1, omega>=1/2, xi>=0. -/
def siftedRateExpression (eta omega xi : ℝ) : ℝ :=
(1 / 4 : ℝ) * Real.logb 2
((omega + xi * (1 - eta)) / ((1 - eta) * ((1 - eta) * omega + xi))) +
(varianceEntropy (conditionalSymplecticEigenvalue eta omega xi) - varianceEntropy omega) / 2
/-- PDF p.13, (110): signed reverse-coherent-information comparison expression. -/
def reverseRateExpression (eta omega : ℝ) : ℝ :=
-Real.logb 2 (1 - eta) - varianceEntropy omega
/-- PDF p.15, (118): leading expression, with the continuous convention at nbar=0. -/
def leadingRateExpression (eta nbar : ℝ) : ℝ :=
(eta - nbar) * Real.logb 2 (Real.exp 1) + nbar * Real.logb 2 nbar
/-- PDF pp.2-3: two key registers followed by two shield registers. -/
abbrev KeyRegister (k a b : ℕ) := (Fin k × Fin k) × (Fin a × Fin b)
/-- PDF pp.2-3: private target from a shield and diagonal twisting blocks.
Register-order adapter to the accepted Information100.P67.privateState.
Every family U_i extends to a controlled twisting. -/
def privateTarget {k a b : ℕ}
(shield : Matrix (Fin a × Fin b) (Fin a × Fin b) ℂ)
(U : Fin k → Matrix.unitaryGroup (Fin a × Fin b) ℂ) :
Matrix (KeyRegister k a b) (KeyRegister k a b) ℂ :=
fun x y => QAlgorithms.Papers.Independent.Information100.P67.privateState
(fun i => (U i : Matrix (Fin a × Fin b) (Fin a × Fin b) ℂ)) shield
(x.1.1, (x.2.1, (x.1.2, x.2.2)))
(y.1.1, (y.2.1, (y.1.2, y.2.2)))
/-- PDF pp.2-3: log2(k) key bits divided by actual channel-use count n. -/
def finiteKeyRate (k n : ℕ) : ℝ := Real.logb 2 (k : ℝ) / (n : ℝ)
/-- PDF p.15, (122)-(123): only the functional properties needed in (129),
simultaneously over every finite key/shield dimension. No simulation or
capacity bound is a field. Radius records the available continuity interval. -/
structure FiniteTargetFunctional where
value : (k a b : ℕ) → Matrix (KeyRegister k a b) (KeyRegister k a b) ℂ → ℝ
g : ℝ → ℝ
h : ℝ → ℝ
radius : ℝ
radius_positive : 0 < radius
radius_le_one : radius ≤ 1
nonnegative : ∀ k a b rho, IsDensityMatrix rho → 0 ≤ value k a b rho
normalization : ∀ k a b, 0 < k → 0 < a → 0 < b →
∀ (shield : Matrix (Fin a × Fin b) (Fin a × Fin b) ℂ),
IsDensityMatrix shield →
∀ U : Fin k → Matrix.unitaryGroup (Fin a × Fin b) ℂ,
Real.logb 2 (k : ℝ) ≤ value k a b (privateTarget shield U)
continuity : ∀ k a b rho sigma, IsDensityMatrix rho → IsDensityMatrix sigma →
∀ eps : ℝ, 0 ≤ eps → eps < radius → traceNorm (rho - sigma) ≤ eps →
|value k a b rho - value k a b sigma| ≤
g eps * Real.logb 2 ((k : ℝ) ^ 2 * (a : ℝ) * (b : ℝ)) + h eps
/-- PDF p.28, (A1)-(A2): TMSV Schmidt amplitudes at variance t=N+1/2. -/
def schmidtAmplitude (t : ℝ) (n : ℕ) : ℝ :=
Real.sqrt ((QAlgorithms.Papers.Independent.Claimed50.P35.thermalInput (t - 1 / 2)) n n).re
/-- PDF p.28, (A1)-(A2): actual full pure TMSV density kernel, reusing the
accepted thermal purification after converting variance to mean occupation. -/
def tmsvKernel (t : ℝ) : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ :=
QAlgorithms.Papers.Independent.Claimed50.P35.thermalPurificationDensity (t - 1 / 2)
/-- PDF p.28: BK added quadrature variance at resource variance mu. -/
def bkNoise (mu : ℝ) : ℝ := 2 * mu - Real.sqrt (4 * mu ^ 2 - 1)
/-- PDF p.28, (A3): displace only the transmitted mode; retain the reference.
Its photon index fixes the input Schmidt index. -/
def displacedTmsvKernel (t : ℝ) (z : ℂ) : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ :=
fun x y =>
((schmidtAmplitude t x.1 : ℂ) * displacementMatrix z x.2 x.1) *
star ((schmidtAmplitude t y.1 : ℂ) * displacementMatrix z y.2 y.1)
/-- PDF p.28, text before (A3): actual additive-noise realization of BK on
one TMSV half. Complex displacement variance xi equals added quadrature
variance under [q,p]=i. Neither state nor channel is defined by (A4). -/
def bkOutput (mu t : ℝ) : Matrix (ℕ × ℕ) (ℕ × ℕ) ℂ :=
fun x y => ∫ z : ℂ, displacedTmsvKernel t z x y ∂complexNormal (bkNoise mu) 0
/-- PDF p.28, (A4): terms of the pure-input overlap with the constructed output. -/
def bkOverlapTerm (mu t : ℝ) (p : ℕ × ℕ) : ℂ :=
(schmidtAmplitude t p.1 : ℂ) *
bkOutput mu t (p.1, p.1) (p.2, p.2) * (schmidtAmplitude t p.2 : ℂ)
/-- PDF pp.5,28, (28),(A4): unsquared fidelity with pure TMSV input,
sqrt(<TMSV|output|TMSV>). Normalization, integrability and summability are
conclusions below, rather than assumed closed fidelity formulas. -/
def bkRootFidelity (mu t : ℝ) : ℝ :=
Real.sqrt ((∑' p : ℕ × ℕ, bkOverlapTerm mu t p).re)
/-- Vacuum entropy, including the zero-log convention; PDF p.14. -/
example : varianceEntropy (1 / 2) = 0 := by
norm_num [varianceEntropy, Real.logb]
/-- A one-dimensional key carries zero bits; PDF pp.2-3. -/
example (n : ℕ) : finiteKeyRate 1 n = 0 := by
simp [finiteKeyRate]
/-- With a one-dimensional key and identity twisting, the private target is
exactly the original shield density, entry by entry; PDF pp.2-3. -/
example {a b : ℕ} (shield : Matrix (Fin a × Fin b) (Fin a × Fin b) ℂ)
(i j : Fin a × Fin b) :
privateTarget shield (fun _ : Fin 1 => 1) ((0, 0), i) ((0, 0), j) = shield i j := by
simp [privateTarget, QAlgorithms.Papers.Independent.Information100.P67.privateState]
/-- Vacuum-resource BK adds quadrature variance one; PDF p.28. -/
example : bkNoise (1 / 2) = 1 := by
norm_num [bkNoise]
/-- Vacuum TMSV has zero-photon amplitude one; PDF p.28. -/
example : schmidtAmplitude (1 / 2) 0 = 1 := by
norm_num [schmidtAmplitude,
QAlgorithms.Papers.Independent.Claimed50.P35.thermalInput,
QAlgorithms.Papers.Independent.Dependency50.P39.thermalMatrix]
/-- The matching reference index is retained; PDF p.28. -/
example (t : ℝ) (z : ℂ) (m n : ℕ) :
displacedTmsvKernel t z (0, m) (0, n) =
((schmidtAmplitude t 0 : ℂ) * displacementMatrix z m 0) *
star ((schmidtAmplitude t 0 : ℂ) * displacementMatrix z n 0) := rfl
end QAlgorithms.Papers.Independent.Intake100.P02
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intake100.P02.FiniteTargetFunctional
This structure consists of a real-valued function on all complex matrices indexed by , for every triple of natural numbers ; two functions ; and a real radius satisfying , together with the following requirements. For every and every positive semidefinite matrix of trace one on , . For every positive , every positive semidefinite shield matrix of trace one indexed by pairs with , and every family of unitary matrices on that shield index set, one has , where
Finally, for every , every two positive semidefinite matrices of trace one on , and every real with and , one has
The square root here is the positive semidefinite matrix square root. No further conditions on or are fields of the structure. The nonnegativity and continuity requirements quantify over zero dimensions too, where the trace-one hypotheses cannot be satisfied; normalization explicitly requires positive dimensions.
QAlgorithms.Papers.Independent.Intake100.P02.KeyRegister
For any natural numbers , this abbreviates the index set
Its elements are pairs , and it has elements. It is empty if any of is zero.
QAlgorithms.Papers.Independent.Intake100.P02.bkNoise
For every real number , this defines
There is no restriction on ; when , the real square root is zero and the defined value is .
QAlgorithms.Papers.Independent.Intake100.P02.bkOutput
For every pair of real numbers , put , and let be the measure on that is the point mass at zero when , and otherwise has density
with respect to planar Lebesgue measure. Define
The defined matrix has entries
No integrability or parameter hypotheses accompany this definition: a nonintegrable complex integrand has integral zero. Square roots of negative real numbers and division by zero have value zero. In particular, uses the point mass at zero, while gives the zero measure and hence the zero matrix.
QAlgorithms.Papers.Independent.Intake100.P02.bkOverlapTerm
For all real and every pair , define
Let ; let be the point mass at zero if , and otherwise the measure with Lebesgue density . The defined complex number is
Thus the two outer amplitudes multiply the matrix entry whose row is and column is . All real parameter values and all natural indices, including zero, are allowed. Negative real radicands and division by zero yield zero, and a nonintegrable complex integrand is assigned integral zero.
QAlgorithms.Papers.Independent.Intake100.P02.bkRootFidelity
For every real , define
and let be the point mass at zero when equals zero, and otherwise have Lebesgue density . The defined real number is
The sum is an unordered sum over pairs, with no summability hypothesis; if the complex family is not summable, its sum is defined as zero. Nonintegrable complex integrands likewise have integral zero. The square root returns zero for a negative argument, and division by zero is zero. The definition imposes no density, normalization, positivity, or range condition on .
QAlgorithms.Papers.Independent.Intake100.P02.conditionalSymplecticEigenvalue
For arbitrary real numbers , this defines
No parameter restrictions are imposed. Division by zero has value zero, and the real square root of a negative number has value zero, so this expression is defined in those cases as well.
QAlgorithms.Papers.Independent.Intake100.P02.displacedTmsvKernel
For every real and complex , this defines a complex matrix indexed by pairs of natural numbers. Set
and, for , set
The matrix entry at and is
There is no restriction on or , and no normalization is required. Real square roots of negative numbers and division by zero are assigned the value zero; in particular, is permitted and gives the zero matrix.
QAlgorithms.Papers.Independent.Intake100.P02.finiteKeyRate
For any natural numbers , this defines the real value
Both zero values are allowed: , and division by zero is zero, so the value is zero whenever or .
QAlgorithms.Papers.Independent.Intake100.P02.leadingRateExpression
For arbitrary real numbers , this defines
In particular, negative and zero values of are included: the logarithm is when , and zero when , so the defined value at is .
QAlgorithms.Papers.Independent.Intake100.P02.privateTarget
For any natural numbers , any complex matrix indexed by , and any family of unitary matrices on that same index set, this defines a complex matrix indexed by tuples , where , , and , through
Here denotes conjugate transpose. No positivity or trace condition is imposed on . Zero values of the dimensions are allowed; if any dimension is zero, the resulting matrix has an empty index set.
QAlgorithms.Papers.Independent.Intake100.P02.reverseRateExpression
For arbitrary real numbers , this defines
No restrictions on the parameters are required. Every logarithm uses the total real convention for , and .
QAlgorithms.Papers.Independent.Intake100.P02.schmidtAmplitude
For every real number and natural number , this defines the real value
Indeed, the referenced thermal input has diagonal entry , regarded as a complex number, and the definition takes the square root of its real part. No restriction such as is imposed. Division by zero is zero, a negative radicand has real square root zero, and the zeroth power is one, including .
QAlgorithms.Papers.Independent.Intake100.P02.siftedRateExpression
For arbitrary real numbers , put
This defines the real value
There are no parameter restrictions: division by zero is zero, real square roots of negative numbers are zero, and for nonzero , with .
QAlgorithms.Papers.Independent.Intake100.P02.tmsvKernel
For every real number , this defines a complex matrix indexed by pairs of natural numbers. Writing
its entries are
with the real products embedded in . No restriction on is imposed. Division by zero is zero, square roots of negative real numbers are zero, and zeroth powers are one, including .
QAlgorithms.Papers.Independent.Intake100.P02.varianceEntropy
For every real number , this defines the real value
There is no restriction on . Here the real logarithm is total: for , and ; thus the formula also applies when either logarithm has a nonpositive argument.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.