Definitions for Security of coherent state quantum cryptography in the presence of Gaussian noise
DefinitionQAlgorithms_Papers_Independent_Intake100_P53The objects the formalized statements of Security of coherent state quantum cryptography in the presence of Gaussian noise (arXiv:quant-ph/0608015) are stated in. Each was checked against the paper by a blind read-back and a moderator.
CoherentHeterodyneParameters: PDF pp.2--3: finite modulation, channel transmittivity, and excess noise.priorDensity: PDF p.2, (2): planar modulation density.circularGaussian: PDF pp.2--3: circular Gaussian measure with real-coordinate variance v.modulation: PDF p.2, (2): actual modulation probability measure.heterodyneDensity: PDF p.3, (5): heterodyne density relative to planar Lebesgue measure.receivedState: PDF p.3: actual displaced thermal operator; accepted thermal a=1+delta has mean photon number (a-1)/2=delta/2. Realization is a theorem conclusion.modulationOutcomeLaw: PDF p.3, (5): joint modulation/outcome law, with independent Gaussian heterodyne noise of coordinate variance (2+delta)/4.rawBit: PDF p.2: false=0, true=1; the null real axis is assigned bit zero.announcement: PDF p.2: both components (absolute real part, imaginary part) are public.signedAmplitude: PDF p.4: the labelled preimages of an announcement on its half-plane.announcementLaw: PDF pp.4--5: induced public law; neither imaginary coordinate is discarded.signAnnouncementDensity: PDF p.4: joint sign/announcement density from the four preimages.announcementDensity: PDF p.4: announcement density obtained by marginalizing the signs.signKernel: PDF p.4: density disintegration, not singleton-event conditioning.bitError: PDF p.4: actual bit-error probability before evaluating (12).aliceAnnouncementDensity: PDF p.4, (6): Alice's announcement density on the half-plane.bobAnnouncementDensity: PDF p.4, (9): Bob's conditional announcement density.aliceMagnitudeDensity: PDF p.5, (17): the half-normal absolute-real prior.bobMagnitudeDensity: PDF p.4, (16): the folded-normal absolute-real conditional density.channelMutualInformation: PDF p.4, (14): mutual information in bits computed from the finite sign kernel, including its actual row and column marginals.announcedMutualInformation: PDF pp.4--5: averaged conditional SIGN mutual information, not analog MI.oscillatorVectorOfCoefficients: PDF pp.3,6: realize coefficients in the complete l2 register. Every physical use concludes realization and unit norm; zero fallback is not silently used to manufacture a state.GaussianAttack: PDF pp.1--3: one pure isometry, fixed independently of the signal, repeated iid in the collective scenario. Eve keeps its entire supported environment. The receiver kernel is verified for every coherent input by complete tomography. Countable environment coordinates entail no energy cutoff: inaccessible unused ancillary directions may be removed. The source's incomplete finite-sample tomography step is not asserted as a theorem.branchCoefficient: PDF pp.3,6: coherent-bra projection onto Bob. Omitting 1/sqrt(pi) makes the branch norm squared equal to pi times the heterodyne density.eveBranch: PDF pp.3,6: physical unnormalized Eve branch.eveVector: PDF pp.3,5: conditional pure vector; positive density justifies normalization.eveSupport: PDF p.3: closed support of the full labelled conditional ensemble.supportedVector: PDF p.3: physical vector in its supported space.physicalDyad: PDF p.5: the actual four conditional pure projectors.physicalMixture: PDF p.5, (18): Eve's state from the actual sign disintegration.physicalDR: PDF p.5, (21): actual state conditioned on Alice's bit.physicalRR: PDF p.5, (21): actual state conditioned on Bob's bit.splitterCoefficient: PDF p.6, (28): bounded number-basis beam-splitter action. For c=sqrt(eta),s=sqrt(1-eta), b† maps to c b†+s e† and e† to -s b†+c e†. Only conserved-photon-number coefficients k≤m+n are used below.clonerCoefficient: PDF p.6, (27)--(28): three-mode coefficients in order B,E1,E2. The minus sign is the source's S=exp[-xi e1†e2†+conj(xi)e2e1], xi=r exp(i gamma). All number subtraction is guarded by the conserved total photon number.clonerVector: PDF p.6, (27): constructed vector on three complete oscillator spaces.BinaryProductModel: PDF pp.6--8, (36)--(41): independent product algebra, p=|c0|²,q=|c+|². Nonnegative square-root representatives fix irrelevant basis phases. The lower bounds mean the source's real overlaps are nonnegative; no physical A,B is asserted.factorVector: PDF p.7, (36)--(39): binary factor with either sign.productDyad: PDF pp.6--7: tensor dyads in the fixed factor order (Alice,Bob).productMixture: PDF p.5, (18): explicitly constructed product-model mixture.productDR: PDF pp.7--8, (45): direct conditional state, constructed from dyads.productRR: PDF p.8, (50): reverse conditional state in the same factor order. Constructing the dyads corrects (51)'s repeated |c+|² lower diagonal entry.productHolevoDR: PDF p.5, (24): direct Holevo quantity with both conditional entropies.productHolevoRR: PDF p.5, (25): reverse Holevo quantity with both conditional entropies.blockRoot: PDF p.7, (43): roots of a two-dimensional block; plus root first.mixtureSpectrum: PDF p.7, (43): all four eigenvalues with multiplicity.conditionalSpectrum: PDF p.8, (48),(52): the two conditional eigenvalue candidates.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P39
/-!
Heid--Luetkenhaus, arXiv:quant-ph/0608015v4. Physical oscillator conditioning
and binary-product algebra are separate. No definition identifies the disputed
printed (35) with physical overlaps. Operational extraction is deferred;
a numerical integral is not defined to be an achievable secret-key rate.
-/
noncomputable section
namespace QAlgorithms.Papers.Independent.Intake100.P53
open MeasureTheory
open QAlgorithms.Papers.Independent.Dependency50.P39
open scoped ComplexConjugate Matrix
attribute [local instance] Classical.propDecidable
/-- PDF pp.2--3: finite modulation, channel transmittivity, and excess noise. -/
structure CoherentHeterodyneParameters where
kappa : ℝ
eta : ℝ
delta : ℝ
kappa_pos : 0 < kappa
eta_pos : 0 < eta
eta_le_one : eta ≤ 1
delta_nonneg : 0 ≤ delta
/-- PDF p.2, (2): planar modulation density. -/
def priorDensity (P : CoherentHeterodyneParameters) (alpha : ℂ) : ℝ :=
Real.exp (-Complex.normSq alpha / (2 * P.kappa)) / (2 * Real.pi * P.kappa)
/-- PDF pp.2--3: circular Gaussian measure with real-coordinate variance v. -/
def circularGaussian (v : NNReal) : Measure ℂ :=
Measure.map (fun z : ℝ × ℝ => (z.1 : ℂ) + Complex.I * (z.2 : ℂ))
((ProbabilityTheory.gaussianReal 0 v).prod (ProbabilityTheory.gaussianReal 0 v))
/-- PDF p.2, (2): actual modulation probability measure. -/
def modulation (P : CoherentHeterodyneParameters) : Measure ℂ :=
circularGaussian ⟨P.kappa, P.kappa_pos.le⟩
/-- PDF p.3, (5): heterodyne density relative to planar Lebesgue measure. -/
def heterodyneDensity (P : CoherentHeterodyneParameters) (alpha beta : ℂ) : ℝ :=
2 / (Real.pi * (2 + P.delta)) *
Real.exp (-2 * Complex.normSq (beta - (Real.sqrt P.eta : ℂ) * alpha) / (2 + P.delta))
/-- PDF p.3: actual displaced thermal operator; accepted thermal a=1+delta
has mean photon number (a-1)/2=delta/2. Realization is a theorem conclusion. -/
def receivedState (P : CoherentHeterodyneParameters) (alpha : ℂ) : FockOperator :=
let D := displacement ((Real.sqrt P.eta : ℂ) * alpha)
(D.comp (thermalDensity (1 + P.delta))).comp (ContinuousLinearMap.adjoint D)
/-- PDF p.3, (5): joint modulation/outcome law, with independent Gaussian
heterodyne noise of coordinate variance (2+delta)/4. -/
def modulationOutcomeLaw (P : CoherentHeterodyneParameters) : Measure (ℂ × ℂ) :=
Measure.map (fun z : ℂ × ℂ => (z.1, (Real.sqrt P.eta : ℂ) * z.1 + z.2))
((modulation P).prod (circularGaussian
⟨(2 + P.delta) / 4, by linarith [P.delta_nonneg]⟩))
/-- PDF p.2: false=0, true=1; the null real axis is assigned bit zero. -/
def rawBit (alpha : ℂ) : Bool := decide (alpha.re < 0)
/-- PDF p.2: both components (absolute real part, imaginary part) are public. -/
def announcement (alpha : ℂ) : ℝ × ℝ := (|alpha.re|, alpha.im)
/-- PDF p.4: the labelled preimages of an announcement on its half-plane. -/
def signedAmplitude (a : ℝ × ℝ) (i : Bool) : ℂ :=
((if i then -a.1 else a.1) : ℝ) + Complex.I * (a.2 : ℂ)
/-- PDF pp.4--5: induced public law; neither imaginary coordinate is discarded. -/
def announcementLaw (P : CoherentHeterodyneParameters) : Measure ((ℝ × ℝ) × (ℝ × ℝ)) :=
Measure.map (fun z : ℂ × ℂ => (announcement z.1, announcement z.2)) (modulationOutcomeLaw P)
/-- PDF p.4: joint sign/announcement density from the four preimages. -/
def signAnnouncementDensity (P : CoherentHeterodyneParameters) (a b : ℝ × ℝ) (i j : Bool) : ℝ :=
priorDensity P (signedAmplitude a i) *
heterodyneDensity P (signedAmplitude a i) (signedAmplitude b j)
/-- PDF p.4: announcement density obtained by marginalizing the signs. -/
def announcementDensity (P : CoherentHeterodyneParameters) (a b : ℝ × ℝ) : ℝ :=
∑ i : Bool, ∑ j : Bool, signAnnouncementDensity P a b i j
/-- PDF p.4: density disintegration, not singleton-event conditioning. -/
def signKernel (P : CoherentHeterodyneParameters) (a b : ℝ × ℝ) (i j : Bool) : ℝ :=
signAnnouncementDensity P a b i j / announcementDensity P a b
/-- PDF p.4: actual bit-error probability before evaluating (12). -/
def bitError (P : CoherentHeterodyneParameters) (a b : ℝ × ℝ) : ℝ :=
∑ i : Bool, signKernel P a b i (!i)
/-- PDF p.4, (6): Alice's announcement density on the half-plane. -/
def aliceAnnouncementDensity (P : CoherentHeterodyneParameters) (a : ℝ × ℝ) : ℝ :=
∑ i : Bool, priorDensity P (signedAmplitude a i)
/-- PDF p.4, (9): Bob's conditional announcement density. -/
def bobAnnouncementDensity (P : CoherentHeterodyneParameters) (a b : ℝ × ℝ) : ℝ :=
announcementDensity P a b / aliceAnnouncementDensity P a
/-- PDF p.5, (17): the half-normal absolute-real prior. -/
def aliceMagnitudeDensity (P : CoherentHeterodyneParameters) (u : ℝ) : ℝ :=
Real.sqrt (2 / (Real.pi * P.kappa)) * Real.exp (-u ^ 2 / (2 * P.kappa))
/-- PDF p.4, (16): the folded-normal absolute-real conditional density. -/
def bobMagnitudeDensity (P : CoherentHeterodyneParameters) (u w : ℝ) : ℝ :=
Real.sqrt (2 / (Real.pi * (2 + P.delta))) *
(Real.exp (-2 * (w + Real.sqrt P.eta * u) ^ 2 / (2 + P.delta)) +
Real.exp (-2 * (w - Real.sqrt P.eta * u) ^ 2 / (2 + P.delta)))
/-- PDF p.4, (14): mutual information in bits computed from the finite sign
kernel, including its actual row and column marginals. -/
def channelMutualInformation (P : CoherentHeterodyneParameters) (a b : ℝ × ℝ) : ℝ :=
∑ i : Bool, ∑ j : Bool,
signKernel P a b i j * Real.logb 2
(signKernel P a b i j /
((∑ k : Bool, signKernel P a b i k) * (∑ k : Bool, signKernel P a b k j)))
/-- PDF pp.4--5: averaged conditional SIGN mutual information, not analog MI. -/
def announcedMutualInformation (P : CoherentHeterodyneParameters) : ℝ :=
∫ z, channelMutualInformation P z.1 z.2 ∂announcementLaw P
/-- PDF pp.3,6: realize coefficients in the complete l2 register.
Every physical use concludes realization and unit norm; zero fallback is not
silently used to manufacture a state. -/
def oscillatorVectorOfCoefficients {I : Type} (c : I → ℂ) : QAlgorithms.RealRegisters.Hilbert I :=
if h : ∃ v : QAlgorithms.RealRegisters.Hilbert I, ∀ i, v i = c i then
Classical.choose h else 0
/-- PDF pp.1--3: one pure isometry, fixed independently of the signal, repeated
iid in the collective scenario. Eve keeps its entire supported environment.
The receiver kernel is verified for every coherent input by complete tomography.
Countable environment coordinates entail no energy cutoff: inaccessible unused
ancillary directions may be removed. The source's incomplete finite-sample
tomography step is not asserted as a theorem. -/
structure GaussianAttack (P : CoherentHeterodyneParameters) where
interaction : Fock →ₗᵢ[ℂ] QAlgorithms.RealRegisters.Hilbert (ℕ × ℕ)
receiver : ∀ (alpha : ℂ) (m n : ℕ),
(∑' k : ℕ, interaction (coherentKet alpha) (m, k) *
conj (interaction (coherentKet alpha) (n, k))) =
receivedState P alpha (fockKet n) m
/-- PDF pp.3,6: coherent-bra projection onto Bob. Omitting 1/sqrt(pi)
makes the branch norm squared equal to pi times the heterodyne density. -/
def branchCoefficient {P : CoherentHeterodyneParameters} (V : GaussianAttack P)
(alpha beta : ℂ) (k : ℕ) : ℂ :=
∑' n : ℕ, conj (coherentKet beta n) * V.interaction (coherentKet alpha) (n, k)
/-- PDF pp.3,6: physical unnormalized Eve branch. -/
def eveBranch {P : CoherentHeterodyneParameters} (V : GaussianAttack P) (alpha beta : ℂ) : Fock :=
oscillatorVectorOfCoefficients (branchCoefficient V alpha beta)
/-- PDF pp.3,5: conditional pure vector; positive density justifies normalization. -/
def eveVector {P : CoherentHeterodyneParameters} (V : GaussianAttack P) (alpha beta : ℂ) : Fock :=
(‖eveBranch V alpha beta‖⁻¹ : ℂ) • eveBranch V alpha beta
/-- PDF p.3: closed support of the full labelled conditional ensemble. -/
def eveSupport {P : CoherentHeterodyneParameters} (V : GaussianAttack P) : Submodule ℂ Fock :=
(Submodule.span ℂ (Set.range (fun z : ℂ × ℂ => eveVector V z.1 z.2))).topologicalClosure
/-- PDF p.3: physical vector in its supported space. -/
def supportedVector {P : CoherentHeterodyneParameters} (V : GaussianAttack P) (alpha beta : ℂ) : eveSupport V :=
⟨eveVector V alpha beta,
Submodule.le_topologicalClosure _ (Submodule.subset_span ⟨(alpha, beta), rfl⟩)⟩
/-- PDF p.5: the actual four conditional pure projectors. -/
def physicalDyad {P : CoherentHeterodyneParameters} (V : GaussianAttack P)
(a b : ℝ × ℝ) (i j : Bool) : FockOperator :=
let v := eveVector V (signedAmplitude a i) (signedAmplitude b j)
InnerProductSpace.rankOne ℂ v v
/-- PDF p.5, (18): Eve's state from the actual sign disintegration. -/
def physicalMixture {P : CoherentHeterodyneParameters} (V : GaussianAttack P) (a b : ℝ × ℝ) : FockOperator :=
∑ i : Bool, ∑ j : Bool, (signKernel P a b i j : ℂ) • physicalDyad V a b i j
/-- PDF p.5, (21): actual state conditioned on Alice's bit. -/
def physicalDR {P : CoherentHeterodyneParameters} (V : GaussianAttack P)
(a b : ℝ × ℝ) (i : Bool) : FockOperator :=
((∑ j : Bool, signKernel P a b i j)⁻¹ : ℂ) •
∑ j : Bool, (signKernel P a b i j : ℂ) • physicalDyad V a b i j
/-- PDF p.5, (21): actual state conditioned on Bob's bit. -/
def physicalRR {P : CoherentHeterodyneParameters} (V : GaussianAttack P)
(a b : ℝ × ℝ) (j : Bool) : FockOperator :=
((∑ i : Bool, signKernel P a b i j)⁻¹ : ℂ) •
∑ i : Bool, (signKernel P a b i j : ℂ) • physicalDyad V a b i j
/-- PDF p.6, (28): bounded number-basis beam-splitter action.
For c=sqrt(eta),s=sqrt(1-eta), b† maps to c b†+s e† and e† to -s b†+c e†.
Only conserved-photon-number coefficients k≤m+n are used below. -/
def splitterCoefficient (eta : ℝ) (m n k : ℕ) : ℂ :=
if k ≤ m + n then
(Real.sqrt ((Nat.factorial k : ℝ) * (Nat.factorial (m + n - k) : ℝ) /
((Nat.factorial m : ℝ) * (Nat.factorial n : ℝ))) : ℂ) *
∑ j ∈ Finset.range (m + 1),
if j ≤ k ∧ k - j ≤ n then
(Nat.choose m j : ℂ) * (Nat.choose n (k - j) : ℂ) *
(Real.sqrt eta : ℂ) ^ j * (Real.sqrt (1 - eta) : ℂ) ^ (m - j) *
(-(Real.sqrt (1 - eta) : ℂ)) ^ (k - j) * (Real.sqrt eta : ℂ) ^ (n - (k - j))
else 0
else 0
/-- PDF p.6, (27)--(28): three-mode coefficients in order B,E1,E2.
The minus sign is the source's S=exp[-xi e1†e2†+conj(xi)e2e1], xi=r exp(i gamma).
All number subtraction is guarded by the conserved total photon number. -/
def clonerCoefficient (eta r gamma : ℝ) (alpha : ℂ) (z : ℕ × (ℕ × ℕ)) : ℂ :=
let k := z.1
let l := z.2.1
let n := z.2.2
if n ≤ k + l then
coherentCoefficient alpha (k + l - n) *
(-Complex.exp (Complex.I * (gamma : ℂ)) * (Real.tanh r : ℂ)) ^ n /
(Real.cosh r : ℂ) * splitterCoefficient eta (k + l - n) n k
else 0
/-- PDF p.6, (27): constructed vector on three complete oscillator spaces. -/
def clonerVector (eta r gamma : ℝ) (alpha : ℂ) :
QAlgorithms.RealRegisters.Hilbert (ℕ × (ℕ × ℕ)) :=
oscillatorVectorOfCoefficients (clonerCoefficient eta r gamma alpha)
/-- PDF pp.6--8, (36)--(41): independent product algebra, p=|c0|²,q=|c+|².
Nonnegative square-root representatives fix irrelevant basis phases. The lower
bounds mean the source's real overlaps are nonnegative; no physical A,B is asserted. -/
structure BinaryProductModel where
p : ℝ
q : ℝ
e : ℝ
p_lower : 1 / 2 ≤ p
p_upper : p ≤ 1
q_lower : 1 / 2 ≤ q
q_upper : q ≤ 1
e_lower : 0 ≤ e
e_upper : e ≤ 1 / 2
/-- PDF p.7, (36)--(39): binary factor with either sign. -/
def factorVector (p : ℝ) (i : Bool) : EuclideanSpace ℂ Bool :=
WithLp.toLp 2 fun k => if k then
(if i then -(Real.sqrt (1 - p) : ℂ) else (Real.sqrt (1 - p) : ℂ))
else (Real.sqrt p : ℂ)
/-- PDF pp.6--7: tensor dyads in the fixed factor order (Alice,Bob). -/
def productDyad (M : BinaryProductModel) (i j : Bool) : Matrix (Bool × Bool) (Bool × Bool) ℂ :=
Matrix.kronecker (QAlgorithms.pureDensity (factorVector M.p i))
(QAlgorithms.pureDensity (factorVector M.q j))
/-- PDF p.5, (18): explicitly constructed product-model mixture. -/
def productMixture (M : BinaryProductModel) : Matrix (Bool × Bool) (Bool × Bool) ℂ :=
((1 / 2 : ℝ) : ℂ) •
(((1 - M.e : ℝ) : ℂ) • (productDyad M false false + productDyad M true true) +
(M.e : ℂ) • (productDyad M false true + productDyad M true false))
/-- PDF pp.7--8, (45): direct conditional state, constructed from dyads. -/
def productDR (M : BinaryProductModel) (i : Bool) : Matrix (Bool × Bool) (Bool × Bool) ℂ :=
((1 - M.e : ℝ) : ℂ) • productDyad M i i + (M.e : ℂ) • productDyad M i (!i)
/-- PDF p.8, (50): reverse conditional state in the same factor order.
Constructing the dyads corrects (51)'s repeated |c+|² lower diagonal entry. -/
def productRR (M : BinaryProductModel) (j : Bool) : Matrix (Bool × Bool) (Bool × Bool) ℂ :=
((1 - M.e : ℝ) : ℂ) • productDyad M j j + (M.e : ℂ) • productDyad M (!j) j
/-- PDF p.5, (24): direct Holevo quantity with both conditional entropies. -/
def productHolevoDR (M : BinaryProductModel) : ℝ :=
QAlgorithms.vnEntropy (productMixture M) -
(QAlgorithms.vnEntropy (productDR M false) + QAlgorithms.vnEntropy (productDR M true)) / 2
/-- PDF p.5, (25): reverse Holevo quantity with both conditional entropies. -/
def productHolevoRR (M : BinaryProductModel) : ℝ :=
QAlgorithms.vnEntropy (productMixture M) -
(QAlgorithms.vnEntropy (productRR M false) + QAlgorithms.vnEntropy (productRR M true)) / 2
/-- PDF p.7, (43): roots of a two-dimensional block; plus root first. -/
def blockRoot (s d : ℝ) (k : Fin 2) : ℝ :=
(s + (if k = 0 then 1 else -1) * Real.sqrt (s ^ 2 - d)) / 2
/-- PDF p.7, (43): all four eigenvalues with multiplicity. -/
def mixtureSpectrum (M : BinaryProductModel) : Fin 4 → ℝ :=
let s := M.p * (1 - M.q) + (1 - M.p) * M.q
let t := M.p * M.q + (1 - M.p) * (1 - M.q)
let d := 16 * M.e * (1 - M.e) * M.p * (1 - M.p) * M.q * (1 - M.q)
![blockRoot s d 0, blockRoot s d 1, blockRoot t d 0, blockRoot t d 1]
/-- PDF p.8, (48),(52): the two conditional eigenvalue candidates. -/
def conditionalSpectrum (p e : ℝ) (k : Fin 2) : ℝ :=
blockRoot 1 (16 * e * (1 - e) * p * (1 - p)) k
/-- Definition sanity: the heterodyne density at its center, PDF p.3, (5). -/
example (P : CoherentHeterodyneParameters) (alpha : ℂ) :
heterodyneDensity P alpha ((Real.sqrt P.eta : ℂ) * alpha) = 2 / (Real.pi * (2 + P.delta)) := by
simp [heterodyneDensity]
example (P : CoherentHeterodyneParameters) : priorDensity P 0 = 1 / (2 * Real.pi * P.kappa) := by
simp [priorDensity]
example : oscillatorVectorOfCoefficients (fun _ : ℕ => (0 : ℂ)) = (0 : Fock) := by
have h : ∃ v : Fock, ∀ n, v n = 0 := ⟨0, by simp⟩
unfold oscillatorVectorOfCoefficients
rw [dif_pos h]
ext n
exact Classical.choose_spec h n
example : rawBit (0 : ℂ) = false := by simp [rawBit]
example : announcement (0 : ℂ) = (0, 0) := by simp [announcement]
example (y : ℝ) : signedAmplitude (0, y) true = signedAmplitude (0, y) false := by
simp [signedAmplitude]
example (P : CoherentHeterodyneParameters) : 0 < 2 + P.delta := by linarith [P.delta_nonneg]
example (P : CoherentHeterodyneParameters) (V : GaussianAttack P) (alpha beta : ℂ) :
(supportedVector V alpha beta : Fock) = eveVector V alpha beta := rfl
example : splitterCoefficient (1 : ℝ) 0 0 0 = 1 := by simp [splitterCoefficient]
example (eta gamma : ℝ) : clonerCoefficient eta 0 gamma 0 (0, (0, 0)) = 1 := by
simp [clonerCoefficient, coherentCoefficient, splitterCoefficient]
example : factorVector 1 false false = 1 := by simp [factorVector]
example : Nonempty CoherentHeterodyneParameters :=
⟨⟨1, 1, 0, by norm_num, by norm_num, by norm_num, by norm_num⟩⟩
example : Nonempty BinaryProductModel :=
⟨⟨1, 1, 0, by norm_num, by norm_num, by norm_num, by norm_num, by norm_num, by norm_num⟩⟩
example (p e : ℝ) : conditionalSpectrum p e 0 =
(1 + Real.sqrt (1 - 16 * e * (1 - e) * p * (1 - p))) / 2 := by
simp [conditionalSpectrum, blockRoot]
example (M : BinaryProductModel) : productDR M false =
((1 - M.e : ℝ) : ℂ) • productDyad M false false +
(M.e : ℂ) • productDyad M false true := rfl
end QAlgorithms.Papers.Independent.Intake100.P53
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Intake100.P53.BinaryProductModel
A value of this structure consists of three real numbers , together with proofs of
Every endpoint is permitted; the structure imposes no further conditions or relations among the three numbers.
QAlgorithms.Papers.Independent.Intake100.P53.CoherentHeterodyneParameters
A parameter record consists of three real numbers , together with proofs that , , , and . Thus and are allowed, while and are excluded.
QAlgorithms.Papers.Independent.Intake100.P53.GaussianAttack
For parameters with , , and , this structure consists of a complex-linear norm-preserving map , together with the following equality for every and every , including zero:
Here is the sequence equal to at and elsewhere, and is a chosen square-summable vector with coordinates
if such a vector exists, and is zero otherwise. The operator is a chosen continuous complex-linear operator whose matrix entries are when and zero otherwise, if such an operator exists, and is zero otherwise. Similarly, is a chosen continuous complex-linear operator with entries
if an operator with those entries exists, and is zero otherwise; the star denotes the Hilbert-space adjoint. The infinite sum in the required equality is the total infinite sum, which is zero if its summands are not summable.
QAlgorithms.Papers.Independent.Intake100.P53.aliceAnnouncementDensity
For parameters with , , and , and every , the definition assigns
The parameters do not occur in this expression. The first coordinate may be negative or zero; at zero, the two identical summands are both included.
QAlgorithms.Papers.Independent.Intake100.P53.aliceMagnitudeDensity
For parameters with , , and , and every real , the definition assigns
This formula applies also to negative and to ; it contains no restriction to a nonnegative domain. The parameters do not occur in the expression.
QAlgorithms.Papers.Independent.Intake100.P53.announcedMutualInformation
For parameters with , , and , let , where are independent real Gaussian variables of mean zero and variance ; independently let , where are independent real Gaussian variables of mean zero and variance . Put , and let be the distribution of . For , write , define
The definition assigns
with all sum indices Boolean. No integrability hypothesis is part of this definition; the integral uses the total convention that a nonintegrable integrand has integral zero.
QAlgorithms.Papers.Independent.Intake100.P53.announcement
For every complex number , this defines the ordered pair of real numbers
The first coordinate is the absolute value of the real part, including when the real part vanishes; the imaginary part is retained unchanged.
QAlgorithms.Papers.Independent.Intake100.P53.announcementDensity
For parameters with , , and , and arbitrary , define for each Boolean , and likewise . The definition assigns the real number
There is no restriction that or be nonnegative; all four Boolean pairs are counted, including when a zero first coordinate makes some signed amplitudes coincide.
QAlgorithms.Papers.Independent.Intake100.P53.announcementLaw
For any parameter record , with , , and , this defines a measure on as the law of
Here and , where the four real variables are independent Gaussian variables with mean , each have variance , and each have variance . The measure is obtained by pushing the law of forward under the displayed absolute-real-part and imaginary-part map.
QAlgorithms.Papers.Independent.Intake100.P53.bitError
For parameters with , , and , and arbitrary , define and
The definition assigns the sum of the two normalized weights with opposite Boolean indices,
where both denominator sums range over all four Boolean pairs and are positive. No nonnegativity restriction is imposed on .
QAlgorithms.Papers.Independent.Intake100.P53.blockRoot
For every pair of real numbers , without any sign or discriminant assumptions, and every index , this definition gives
Here the real square root is defined to be zero on negative inputs, so if , both indexed values equal .
QAlgorithms.Papers.Independent.Intake100.P53.bobAnnouncementDensity
For parameters with , , and , and arbitrary , let . The definition assigns the real ratio
The denominator is positive. There is no restriction on the signs of the coordinates, and coinciding signed amplitudes remain separate summands.
QAlgorithms.Papers.Independent.Intake100.P53.bobMagnitudeDensity
For parameters with , , and , and every pair of real numbers , the definition assigns
Neither nor is required to be nonnegative, and both summands are retained when they coincide, including at or . The parameter does not occur in the expression.
QAlgorithms.Papers.Independent.Intake100.P53.branchCoefficient
For parameters with , , and , an attack , arbitrary , and , including , the definition assigns
Here is a chosen vector with coordinates for every , if such a vector exists, and is zero otherwise. The attack supplies a complex-linear norm-preserving map satisfying, for every and ,
In this condition is the standard coordinate vector, is a chosen continuous operator with diagonal entries and zero off-diagonal entries, and is a chosen continuous operator with entries
each chosen operator is defined to be zero if no continuous operator with its specified entries exists, and the star denotes the adjoint. Both infinite sums use the total convention of returning zero for nonsummable families.
QAlgorithms.Papers.Independent.Intake100.P53.channelMutualInformation
For parameters with , , and , and arbitrary , define , and, for Boolean , set
The definition assigns
where every index in every sum ranges over the two Booleans. All weights and displayed denominators are positive under the parameter constraints. The first coordinates of are unrestricted, and Boolean labels are still counted separately when their signed amplitudes coincide.
QAlgorithms.Papers.Independent.Intake100.P53.circularGaussian
For every nonnegative real number , this defines a measure on by taking the product of two real Gaussian measures, each with mean and variance , and pushing that product measure forward under . Equivalently, it is the law of for independent real Gaussian variables with those parameters. The case is included and gives the point mass at .
QAlgorithms.Papers.Independent.Intake100.P53.clonerCoefficient
For arbitrary real numbers , arbitrary , and , this defines
where, for natural numbers ,
Real factors are embedded in . No positivity or interval restrictions are imposed on ; real square root is zero for negative inputs. Zero indices and zero exponents are included, with . Natural-number subtraction truncates at zero, although the guards ensure nonnegative differences in contributing terms.
QAlgorithms.Papers.Independent.Intake100.P53.clonerVector
For arbitrary and , this defines a vector in by choosing a vector with coordinates
if such a square-summable vector exists, and choosing the zero vector otherwise. Here
All indices are natural numbers, real factors are embedded in , real square root is zero on negative inputs, and zero powers have value , including . This definition itself makes no existence or normalization assertion about the prescribed coordinates.
QAlgorithms.Papers.Independent.Intake100.P53.conditionalSpectrum
For arbitrary real numbers , with no interval restrictions, and each index , this definition gives
The real square root is zero when its argument is negative, so both values are in that case.
QAlgorithms.Papers.Independent.Intake100.P53.eveBranch
For parameters with , , and , let , with standard basis . Write for the vector with coordinates if such a vector belongs to , and for zero otherwise. A Gaussian attack is a complex-linear isometry satisfying, for every and ,
Here and are bounded operators with respective prescribed entries
each operator is chosen if its prescribed matrix is realized by a bounded operator, and is zero otherwise. For every , the declaration defines the branch vector to be the vector in with coordinates
if a vector with all these coordinates exists, and zero otherwise. Each infinite scalar sum is the unconditional sum, assigned zero if its summands are not summable; no nonzero or normalization condition is imposed on the resulting branch vector.
QAlgorithms.Papers.Independent.Intake100.P53.eveSupport
For with , , and , let , and let be the vector with coordinates , with zero used if no such vector exists. A Gaussian attack is a complex-linear isometry satisfying
for all . The operators on the right are chosen bounded realizations of
and are zero if the corresponding realization does not exist. Define by coordinates , using zero for a nonsummable scalar series and using the zero vector if these coordinates have no realization, and put , with . The declaration defines the complex subspace
where the closure is in the norm topology of . The span consists of finite complex linear combinations, and zero branch vectors are included without exception.
QAlgorithms.Papers.Independent.Intake100.P53.eveVector
For parameters satisfying , , and , put . Let have coordinates when such a vector exists in , and be zero otherwise. The argument is a complex-linear isometry into satisfying
where and are the bounded operators prescribed by
with zero substituted whenever no bounded realization exists. For arbitrary , let be the vector with coordinates , or zero if these coordinates have no realization; nonsummable scalar series are assigned sum zero. The declaration defines
The inverse of zero is zero, so this vector is zero when the branch is zero; otherwise it has norm one.
QAlgorithms.Papers.Independent.Intake100.P53.factorVector
For every real number , with no interval restriction, and every Boolean , this defines the vector with the Euclidean norm and coordinates
The square roots are real and then embedded in ; a square root of a negative real is defined as zero. Thus the definition includes , , and the endpoints , without asserting that the resulting vector has norm one for arbitrary .
QAlgorithms.Papers.Independent.Intake100.P53.heterodyneDensity
For any parameter record , with , , and , and any complex numbers , this defines the real number
Here is the nonnegative real square root, regarded as a complex scalar, and the squared modulus is the sum of the squares of the real and imaginary parts. The boundary cases and are included.
QAlgorithms.Papers.Independent.Intake100.P53.mixtureSpectrum
For a model with real parameters satisfying , , and , including all endpoints, put
This definition assigns to the indices , respectively, the four real numbers
The square roots are real square roots, whose value on a negative input is zero; the definition does not require the four values to be distinct.
QAlgorithms.Papers.Independent.Intake100.P53.modulation
For any parameter record , with , , and , this defines a measure on as the pushforward under of the product of two real Gaussian measures, each having mean and variance . Thus it is the law of for independent .
QAlgorithms.Papers.Independent.Intake100.P53.modulationOutcomeLaw
For any parameter record , with , , and , this defines a measure on as the law of
where are independent real Gaussian variables with mean , each have variance , and each have variance . More precisely, it pushes the product of the laws of and forward under . The cases and are included.
QAlgorithms.Papers.Independent.Intake100.P53.oscillatorVectorOfCoefficients
For every type , with no finiteness or countability assumption, and every coefficient function , this definition returns an element of , the space of square-summable complex families indexed by . If there exists satisfying for every , it returns a classically chosen such vector; otherwise it returns the zero vector. No normalization is required. For an empty index type, the coordinate condition is vacuous and the resulting vector is the unique zero vector.
QAlgorithms.Papers.Independent.Intake100.P53.physicalDR
For parameters satisfying , , and , let , and let have coordinates , or be zero if no such vector exists. A Gaussian attack is a complex-linear isometry satisfying
for every , where are bounded realizations, or zero if unrealizable, of
For arbitrary , set , with Boolean labels identified with , and define
Let be the vector with coordinates , or zero if no such vector exists, with nonsummable scalar sums assigned zero; put . For each fixed Boolean , the declaration defines
Every inverse uses , so zero branches give zero dyads and a zero row sum would give the zero operator. There are no sign restrictions on .
QAlgorithms.Papers.Independent.Intake100.P53.physicalDyad
Let satisfy , , and , and put . Write for the vector with coordinates , or zero if no such vector exists. The argument is a complex-linear isometry satisfying
for every , where are chosen bounded realizations of
with zero used if a realization does not exist. Define by coordinates , with nonsummable scalar sums assigned zero and with the zero vector used if these coordinates have no realization; put , using . For arbitrary and Boolean labels , define , identifying false with and true with . The declaration defines the bounded operator
No sign restrictions are imposed on . If the relevant branch is zero, ; otherwise is the orthogonal projection onto the line generated by .
QAlgorithms.Papers.Independent.Intake100.P53.physicalMixture
For with , , and , let , and let have coordinates , with zero used if no such vector exists. The argument is a complex-linear isometry into satisfying
Here are bounded realizations, or zero if none exist, of
For arbitrary , identify Boolean labels with , set , and define
Let have coordinates , with nonsummable scalar sums assigned zero and the whole vector set to zero if these coordinates have no realization; put , using . The declaration defines the bounded operator
The inputs may be negative or zero, and a zero branch contributes the zero operator.
QAlgorithms.Papers.Independent.Intake100.P53.physicalRR
Let satisfy , , and , and write . Let have coordinates , or be zero if no such vector exists. The argument is a complex-linear isometry with
where are chosen bounded realizations, or zero if none exist, of
For arbitrary , set , identifying Boolean labels with , and define
Let have coordinates , using zero for nonsummable scalar sums and using the zero vector if the coordinates have no realization; put . For each fixed Boolean , the declaration defines
Inverses satisfy ; thus zero branches give zero dyads, and a zero column sum would give the zero operator. The coordinates are unrestricted real numbers.
QAlgorithms.Papers.Independent.Intake100.P53.priorDensity
For any parameter record , whose real components satisfy , , and , and any complex number , this defines the real number
where . The value depends only on and .
QAlgorithms.Papers.Independent.Intake100.P53.productDR
For every model with and , and every Boolean , this defines the complex matrix
Here false and true are identified with and , so denotes Boolean negation; , ; and the matrices on Boolean pairs are given explicitly by
The real weights are embedded in , and all endpoints allowed by the model’s inequalities are included.
QAlgorithms.Papers.Independent.Intake100.P53.productDyad
For every model with and , and every pair of Booleans , this defines a complex matrix whose rows and columns are indexed by pairs of Booleans. Write false as and true as , and define and . Then
Equivalently, it is the Kronecker product of the matrices with entries and . The parameter is part of the model but does not occur in this matrix; all permitted endpoints of are included.
QAlgorithms.Papers.Independent.Intake100.P53.productHolevoDR
For every model satisfying and , this defines the real number
where false and true are denoted by and , , , and
All these matrices have rows and columns indexed by Boolean pairs. The function used here is defined by
where is the continuous functional calculus, and the real logarithm is totalized with , so the scalar function has value zero at zero. The definition includes every permitted endpoint, including cases with zero eigenvalues.
QAlgorithms.Papers.Independent.Intake100.P53.productHolevoRR
For a model with real parameters satisfying , , and , including all endpoints, define the complex vectors , where Boolean indices are identified with and . Put , a matrix indexed by pairs of Booleans, and set
For a complex matrix , write , where and is defined by continuous functional calculus. The real number defined by this declaration is
QAlgorithms.Papers.Independent.Intake100.P53.productMixture
For every model satisfying and , this defines the complex matrix on Boolean pairs
where false and true are denoted by and , , , and
All real coefficients are embedded in . The definition includes , , and or equal to or .
QAlgorithms.Papers.Independent.Intake100.P53.productRR
For every model with and , and every Boolean , this defines the complex matrix
Here false and true are identified with and , so denotes Boolean negation; , ; and
The matrices are indexed by Boolean pairs, the real weights are embedded in , and all permitted endpoint values of the model parameters are included.
QAlgorithms.Papers.Independent.Intake100.P53.rawBit
For every complex number , this defines a Boolean value that is true exactly when , and false otherwise. In particular, every with gives false.
QAlgorithms.Papers.Independent.Intake100.P53.receivedState
For any parameter record , with , , and , and any , this defines a bounded complex-linear operator on the Hilbert space , where is the Hilbert-space adjoint of . To specify the operators, let be the sequence equal to at and elsewhere, and put . If there exists a bounded complex-linear operator whose coordinates , for every , equal
then is an operator selected from those satisfying these equalities; if none exists, is the zero operator. Likewise, if there exists a bounded complex-linear operator whose coordinates equal
then is an operator selected from those satisfying these equalities; otherwise is the zero operator. All natural indices, including , are covered, and powers use the convention . The definition itself supplies no additional realization or density-operator hypothesis.
QAlgorithms.Papers.Independent.Intake100.P53.signAnnouncementDensity
For any parameter record , with , , and , any real pairs and , and any Booleans , put if is false and if is true, and put if is false and if is true. This defines the real number
All four real coordinates are unrestricted, so and may be negative or zero; when either is zero, its corresponding Boolean sign choices give the same complex amplitude.
QAlgorithms.Papers.Independent.Intake100.P53.signKernel
For parameters with , , and , arbitrary , and Booleans , put and
The definition assigns . The denominator is positive for these parameters. The coordinates of are unrestricted, and the sum includes every Boolean pair even when signed amplitudes coincide.
QAlgorithms.Papers.Independent.Intake100.P53.signedAmplitude
For every real pair and every Boolean , this defines the complex number
There is no nonnegativity assumption on and no restriction on . When , the two Boolean choices give the same complex number.
QAlgorithms.Papers.Independent.Intake100.P53.splitterCoefficient
For every real and natural numbers , this defines the complex number
The real quantities in this formula are regarded as complex numbers. The sum ranges over integer , and an empty sum is zero. There is no restriction : real square root is zero on negative inputs. All indices may be zero, exponent zero gives , including , and the displayed guards ensure that the natural-number subtractions in contributing terms do not truncate.
QAlgorithms.Papers.Independent.Intake100.P53.supportedVector
For parameters with , , and , let . Set if this specifies an vector, and otherwise. The argument is a complex-linear isometry satisfying, for all ,
where the bounded operators have prescribed matrices
and each is replaced by zero if no bounded realization exists. Let be the vector with coordinates , or zero if no such vector exists, with nonsummable scalar sums assigned zero; let , using . For every complex , this declaration returns regarded as an element of
Its underlying vector is unchanged; membership follows because this vector is itself one of the generators of the span. A zero branch gives the zero element of .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.