Definitions for Capacities of noiseless quantum channels for massive indistinguishable particles: Bosons vs. fermions
DefinitionQAlgorithms_Papers_Independent_Advance50_P31The objects the formalized statements of Capacities of noiseless quantum channels for massive indistinguishable particles: Bosons vs. fermions (arXiv:quant-ph/0512200) are stated in. Each was checked against the paper by a blind read-back and a moderator.
bitEntropyWeight: PDF pp.3,8: continuous bit-entropy weight, including zero.boseEntropy: PDF p.8, Eq.(51): entropy of a geometric occupation law of mean x.fermiEntropy: PDF pp.11--12: entropy of a spin-resolved Bernoulli occupation. This is the correction of Eq.(60) determined by Eqs.(56),(58),(59).BoseConfig: PDF pp.5,8: all finite-particle Fock configurations over countably many modes; there is no common bound on particle number or on occupied mode indices.FermiConfig: PDF p.11, Eq.(58): every spin-resolved occupation is zero or one.boseNumber: PDF p.8: eigenvalue of the total particle-number operator.boseEnergy: PDF p.8: noninteracting many-particle energy.fermiNumber: PDF p.11: sum over spin-resolved occupations.fermiEnergy: PDF p.11: all g spin states at spatial mode i have the same energy eps i.IsFockDensity: PDF pp.3,6: positive trace-one states. Positivity includes self-adjointness.fockEntropyBits: PDF p.3, Eq.(4): full extended von Neumann entropy in bits, using continuous functional calculus of -x log_2 x. On densities the diagonal weights are nonnegative; the extended sum preserves infinite entropy.fockMean: PDF p.6, Eqs.(36),(37): diagonal expectation, with absolute convergence required by Moment below. Negative bounded-below single-particle energies are allowed.Moment: PDF pp.5--8: finite absolute moment; prevents a divergent real tsum becoming zero.FockEnsembleData: PDF pp.2--3: countably supported ensembles, including finite ensembles via zero weights.fockAverage: PDF p.3: the actual average input operator; for normalized ensembles this series converges in operator norm as well as trace norm.IsFockEnsemble: PDF pp.2--3: normalization of each state and the message probability law.FockAdmissible: PDF pp.6--8: equality constraints on the average ensemble state. N=none is the photon model with no particle-number constraint. No constraint is messagewise.fockHolevoBits: PDF pp.3,7, Eq.(40): Holevo quantity for the identity channel. On the Gibbs constraint shell every average entropy is finite, a consequence of the capacity theorem, so the extended subtraction does not conceal infinity minus infinity there.fockClassicalCapacity: PDF p.7, Eq.(42), and p.8, Eq.(48): supremum of Holevo information over all admissible ensembles; this is not defined as the candidate Gibbs entropy.IsFockPOVM: PDF pp.2--3: all countable-outcome POVMs, normalized weakly on the whole Hilbert space. Countable outcomes suffice for the accessible-information supremum; the attaining Fock measurement is itself countable.effectProbability: PDF p.2: Born probability tr(M rho), with the source's noiseless output rho.relativeTermBits: PDF p.2: classical relative-entropy summand. The +q-p form is nonnegative and has the same total as p log_2(p/q) for normalized distributions.countableMutualInformationBits: PDF p.2, Eq.(1): countable classical mutual information from the actual joint law and the product of its marginals. Extended nonnegative summands avoid divergent signed real sums.fockMeasuredInformation: PDF pp.2--3: mutual information for one specified measurement.fockMeasurement: PDF pp.7--8: computational Fock measurement, with one outcome for every configuration.fockAccessibleInformation: PDF p.3, Eq.(2): optimize the actual measured mutual information.singleCopyCapacity: PDF p.3, Eq.(5): single-copy capacity, allowing arbitrary admissible ensembles.fockGibbsWeight: PDF pp.5,8,11: Gibbs weight on the complete number-state basis.fockPartition: PDF pp.5,8,11: partition sum, used only with GibbsRegular.fockGibbsProbability: PDF pp.5,8,11: normalized grand-canonical probability law.countableShannonBits: PDF p.7, Eq.(44), p.8, Eq.(50), p.11, Eq.(56): Shannon entropy of a NORMALIZED probability law, rather than entropy of mean occupations.GibbsRegular: PDF pp.5--8: the normalizable, finite-moment, finite-entropy Gibbs domain. These conditions do not assert optimality, attainment, or the mode-entropy formula.fockEnsemble: PDF pp.7,8,11: the constructed orthogonal number-state ensemble.fockGibbsMean: PDF pp.7--8: actual Gibbs mean, not a free value tied by an optimality assumption.ThermalAttainment: PDF pp.7,8,11: full attainment claim, both Holevo and single-copy accessible information, plus the explicit entropy formula. Both capacities are optimized independently above; average-state entropy finiteness is a conclusion.trapExponent: PDF p.14, Eq.(86): power-law trap exponent a=d/gamma+d/2.densityOfStates: PDF p.14, Eq.(86): semiclassical density, on positive energies only. A is the common positive normalization from phase space, including the mass and trap scale.powerLawPhaseSpaceEnergy: PDF p.14, Eqs.(83),(85): the actual classical single-particle energy on momentum-position phase space, with ordinary Euclidean Lebesgue volume. The first component is momentum and the second is position.boltzmannMoment: PDF pp.12--14, Eqs.(63),(86): continuum Boltzmann moment S_k.weightedMoment: PDF pp.13--14, Eq.(77): D_k has betaenergy, not kbeta*energy.continuumOccupation: PDF pp.12--15: spinless continuum occupations at fugacity z=exp(beta*mu). The Boolean selects fermions; false selects bosons.continuumNumber: PDF pp.12--15: excited-state particle-number integral. For bosons a>1 is used at z=1; all retained comparison theorems satisfy this restriction.continuumEntropy: PDF pp.12--15: continuum entropy at a specified fugacity, in bits.boseFugacity: PDF pp.9,14--15: Bose fugacity solved from fixed mean N. The supremum clips at one in the condensed regime. The uncounted ground condensate has zero entropy in this continuum thermodynamic model. This is not finite-trap exact thermodynamics. The defining set contains zero and lies in [0,1] for positive A,a,beta,N with a>1.fermiFugacity: PDF pp.12--15: Fermi fugacity is solved separately at the same mean N. On positive A,a,beta,N the set is nonempty, bounded below, and its infimum is the unique positive solution. No equality of the Bose and Fermi energies is imposed.thermodynamicCapacity: PDF pp.12--15: the explicit CLASSICAL thermodynamic capacity curve in the continuum model used in Sections IX--X, evaluated at its fixed-N equilibrium. It is not a definition of an operational quantum capacity.
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Basic
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P13
/-!
Sen(De) et al., arXiv:quant-ph/0512200v3. Discrete noiseless classical
capacities and continuum thermodynamic comparisons are separate models.
All entropy units are bits. The quantum operational assertions and numerical
observations deferred in HARD.md are deliberately absent.
The nuclear trace-class predicate and basis trace are imported from the pinned
accepted Dependency50.P13 module, as authorized by the independent-paper workflow.
The remaining Fock definitions distinguish countable labels, bit units, and
average-state equality constraints from finite-dimensional or natural-log
quantities in the accepted library. No finite Fock cutoff, fixed particle-number
sector, or entropy value is used to define classical capacity. The channel is the identity on states.
-/
noncomputable section
open MeasureTheory
open scoped ENNReal BigOperators
namespace QAlgorithms.Papers.Independent.Advance50.P31
open QAlgorithms.Papers.Independent.Dependency50.P13 (IsTraceClass operatorTrace)
/-- PDF pp.3,8: continuous bit-entropy weight, including zero. -/
def bitEntropyWeight (x : ℝ) : ℝ := -x * Real.logb 2 x
/-- PDF p.8, Eq.(51): entropy of a geometric occupation law of mean x. -/
def boseEntropy (x : ℝ) : ℝ := (1 + x) * Real.logb 2 (1 + x) + bitEntropyWeight x
/-- PDF pp.11--12: entropy of a spin-resolved Bernoulli occupation. This is the
correction of Eq.(60) determined by Eqs.(56),(58),(59). -/
def fermiEntropy (x : ℝ) : ℝ := bitEntropyWeight x + bitEntropyWeight (1 - x)
example : bitEntropyWeight 0 = 0 := by simp [bitEntropyWeight]
example : fermiEntropy 1 = 0 := by simp [fermiEntropy, bitEntropyWeight]
example : boseEntropy 0 = 0 := by simp [boseEntropy, bitEntropyWeight]
/-- PDF pp.5,8: all finite-particle Fock configurations over countably many modes;
there is no common bound on particle number or on occupied mode indices. -/
abbrev BoseConfig := ℕ →₀ ℕ
/-- PDF p.11, Eq.(58): every spin-resolved occupation is zero or one. -/
abbrev FermiConfig (g : ℕ) :=
{n : (ℕ × Fin g) →₀ ℕ // ∀ i, n i ≤ 1}
/-- PDF p.8: eigenvalue of the total particle-number operator. -/
def boseNumber (n : BoseConfig) : ℝ := n.sum (fun _ v => (v : ℝ))
/-- PDF p.8: noninteracting many-particle energy. -/
def boseEnergy (eps : ℕ → ℝ) (n : BoseConfig) : ℝ :=
n.sum (fun i v => eps i * (v : ℝ))
/-- PDF p.11: sum over spin-resolved occupations. -/
def fermiNumber {g : ℕ} (n : FermiConfig g) : ℝ :=
n.val.sum (fun _ v => (v : ℝ))
/-- PDF p.11: all g spin states at spatial mode i have the same energy eps i. -/
def fermiEnergy {g : ℕ} (eps : ℕ → ℝ) (n : FermiConfig g) : ℝ :=
n.val.sum (fun i v => eps i.1 * (v : ℝ))
example : boseNumber 0 = 0 := by simp [boseNumber]
example (eps : ℕ → ℝ) : boseEnergy eps 0 = 0 := by simp [boseEnergy]
variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]
variable {I : Type*} [Countable I]
/-- PDF pp.3,6: positive trace-one states. Positivity includes self-adjointness. -/
def IsFockDensity (b : HilbertBasis I ℂ H) (rho : H →L[ℂ] H) : Prop :=
IsTraceClass rho ∧ rho.adjoint = rho ∧
(∀ x, 0 ≤ (inner ℂ x (rho x)).re) ∧ operatorTrace b rho = 1
/-- PDF p.3, Eq.(4): full extended von Neumann entropy in bits, using continuous
functional calculus of -x log_2 x. On densities the diagonal weights are nonnegative;
the extended sum preserves infinite entropy. -/
def fockEntropyBits (b : HilbertBasis I ℂ H) (rho : H →L[ℂ] H) : ℝ≥0∞ :=
∑' i, ENNReal.ofReal (inner ℂ (b i) ((cfc bitEntropyWeight rho) (b i))).re
/-- PDF p.6, Eqs.(36),(37): diagonal expectation, with absolute convergence required
by Moment below. Negative bounded-below single-particle energies are allowed. -/
def fockMean (b : HilbertBasis I ℂ H) (v : I → ℝ) (rho : H →L[ℂ] H) : ℝ :=
∑' i, v i * (inner ℂ (b i) (rho (b i))).re
/-- PDF pp.5--8: finite absolute moment; prevents a divergent real tsum becoming zero. -/
def Moment (b : HilbertBasis I ℂ H) (v : I → ℝ) (rho : H →L[ℂ] H) : Prop :=
Summable (fun i => v i * (inner ℂ (b i) (rho (b i))).re)
/-- PDF pp.2--3: countably supported ensembles, including finite ensembles via zero weights. -/
structure FockEnsembleData (I H : Type*) [NormedAddCommGroup H] [NormedSpace ℂ H] where
p : I → ℝ
rho : I → H →L[ℂ] H
/-- PDF p.3: the actual average input operator; for normalized ensembles this series
converges in operator norm as well as trace norm. -/
def fockAverage (e : FockEnsembleData I H) : H →L[ℂ] H := ∑' i, (e.p i : ℂ) • e.rho i
/-- PDF pp.2--3: normalization of each state and the message probability law. -/
def IsFockEnsemble (b : HilbertBasis I ℂ H) (e : FockEnsembleData I H) : Prop :=
(∀ i, 0 ≤ e.p i) ∧ Summable e.p ∧ (∑' i, e.p i) = 1 ∧
(∀ i, IsFockDensity b (e.rho i))
/-- PDF pp.6--8: equality constraints on the average ensemble state. N=none is
the photon model with no particle-number constraint. No constraint is messagewise. -/
def FockAdmissible (b : HilbertBasis I ℂ H) (energy number : I → ℝ)
(E : ℝ) (N : Option ℝ) (e : FockEnsembleData I H) : Prop :=
IsFockEnsemble b e ∧ IsFockDensity b (fockAverage e) ∧
Moment b energy (fockAverage e) ∧ fockMean b energy (fockAverage e) = E ∧
match N with
| none => True
| some n => Moment b number (fockAverage e) ∧ fockMean b number (fockAverage e) = n
/-- PDF pp.3,7, Eq.(40): Holevo quantity for the identity channel. On the Gibbs
constraint shell every average entropy is finite, a consequence of the capacity theorem,
so the extended subtraction does not conceal infinity minus infinity there. -/
def fockHolevoBits (b : HilbertBasis I ℂ H) (e : FockEnsembleData I H) : ℝ≥0∞ :=
fockEntropyBits b (fockAverage e) - ∑' i, ENNReal.ofReal (e.p i) * fockEntropyBits b (e.rho i)
/-- PDF p.7, Eq.(42), and p.8, Eq.(48): supremum of Holevo information over all
admissible ensembles; this is not defined as the candidate Gibbs entropy. -/
def fockClassicalCapacity (b : HilbertBasis I ℂ H) (energy number : I → ℝ)
(E : ℝ) (N : Option ℝ) : ℝ≥0∞ :=
⨆ e : {e : FockEnsembleData I H // FockAdmissible b energy number E N e}, fockHolevoBits b e.val
/-- PDF pp.2--3: all countable-outcome POVMs, normalized weakly on the whole Hilbert
space. Countable outcomes suffice for the accessible-information supremum; the
attaining Fock measurement is itself countable. -/
def IsFockPOVM (M : I → H →L[ℂ] H) : Prop :=
(∀ i, (M i).adjoint = M i ∧ ∀ x, 0 ≤ (inner ℂ x (M i x)).re) ∧
∀ x y, Summable (fun i => inner ℂ x (M i y)) ∧
(∑' i, inner ℂ x (M i y)) = inner ℂ x y
/-- PDF p.2: Born probability tr(M rho), with the source's noiseless output rho. -/
def effectProbability (b : HilbertBasis I ℂ H) (M rho : H →L[ℂ] H) : ℝ :=
(operatorTrace b (M.comp rho)).re
/-- PDF p.2: classical relative-entropy summand. The +q-p form is nonnegative
and has the same total as p log_2(p/q) for normalized distributions. -/
def relativeTermBits (p q : ℝ) : ℝ≥0∞ :=
if p = 0 then ENNReal.ofReal (q / Real.log 2)
else if q = 0 then ⊤
else ENNReal.ofReal ((p * Real.log (p / q) - p + q) / Real.log 2)
/-- PDF p.2, Eq.(1): countable classical mutual information from the actual joint
law and the product of its marginals. Extended nonnegative summands avoid divergent
signed real sums. -/
def countableMutualInformationBits (r : I × I → ℝ) : ℝ≥0∞ :=
∑' ij, relativeTermBits (r ij)
((∑' j, r (ij.1, j)) * (∑' i, r (i, ij.2)))
/-- PDF pp.2--3: mutual information for one specified measurement. -/
def fockMeasuredInformation (b : HilbertBasis I ℂ H) (e : FockEnsembleData I H)
(M : I → H →L[ℂ] H) : ℝ≥0∞ :=
countableMutualInformationBits (fun ij => e.p ij.1 * effectProbability b (M ij.2) (e.rho ij.1))
/-- PDF pp.7--8: computational Fock measurement, with one outcome for every configuration. -/
def fockMeasurement (b : HilbertBasis I ℂ H) (i : I) : H →L[ℂ] H :=
InnerProductSpace.rankOne ℂ (b i) (b i)
/-- PDF p.3, Eq.(2): optimize the actual measured mutual information. -/
def fockAccessibleInformation (b : HilbertBasis I ℂ H) (e : FockEnsembleData I H) : ℝ≥0∞ :=
⨆ M : {M : I → H →L[ℂ] H // IsFockPOVM M},
fockMeasuredInformation b e M.val
/-- PDF p.3, Eq.(5): single-copy capacity, allowing arbitrary admissible ensembles. -/
def singleCopyCapacity (b : HilbertBasis I ℂ H) (energy number : I → ℝ)
(E : ℝ) (N : Option ℝ) : ℝ≥0∞ :=
⨆ e : {e : FockEnsembleData I H // FockAdmissible b energy number E N e}, fockAccessibleInformation b e.val
/-- PDF pp.5,8,11: Gibbs weight on the complete number-state basis. -/
def fockGibbsWeight (energy number : I → ℝ) (beta mu : ℝ) (i : I) : ℝ :=
Real.exp (-beta * (energy i - mu * number i))
/-- PDF pp.5,8,11: partition sum, used only with GibbsRegular. -/
def fockPartition (energy number : I → ℝ) (beta mu : ℝ) : ℝ :=
∑' i, fockGibbsWeight energy number beta mu i
/-- PDF pp.5,8,11: normalized grand-canonical probability law. -/
def fockGibbsProbability (energy number : I → ℝ) (beta mu : ℝ) (i : I) : ℝ :=
fockGibbsWeight energy number beta mu i / fockPartition energy number beta mu
/-- PDF p.7, Eq.(44), p.8, Eq.(50), p.11, Eq.(56): Shannon entropy of a
NORMALIZED probability law, rather than entropy of mean occupations. -/
def countableShannonBits (p : I → ℝ) : ℝ≥0∞ := ∑' i, ENNReal.ofReal (bitEntropyWeight (p i))
/-- PDF pp.5--8: the normalizable, finite-moment, finite-entropy Gibbs domain.
These conditions do not assert optimality, attainment, or the mode-entropy formula. -/
def GibbsRegular (energy number : I → ℝ) (beta mu : ℝ) : Prop :=
Summable (fockGibbsWeight energy number beta mu) ∧
0 < fockPartition energy number beta mu ∧
Summable (fun i => energy i * fockGibbsProbability energy number beta mu i) ∧
Summable (fun i => number i * fockGibbsProbability energy number beta mu i) ∧
countableShannonBits (fockGibbsProbability energy number beta mu) < ⊤
/-- PDF pp.7,8,11: the constructed orthogonal number-state ensemble. -/
def fockEnsemble (b : HilbertBasis I ℂ H) (energy number : I → ℝ)
(beta mu : ℝ) : FockEnsembleData I H where
p := fockGibbsProbability energy number beta mu
rho := fun i => InnerProductSpace.rankOne ℂ (b i) (b i)
example (beta mu : ℝ) :
fockGibbsProbability (fun _ : Unit => 0) (fun _ : Unit => 0) beta mu () = 1 := by
simp [fockGibbsProbability, fockPartition, fockGibbsWeight, tsum_fintype]
/-- PDF pp.7--8: actual Gibbs mean, not a free value tied by an optimality assumption. -/
def fockGibbsMean (energy number v : I → ℝ) (beta mu : ℝ) : ℝ :=
∑' i, v i * fockGibbsProbability energy number beta mu i
/-- PDF pp.7,8,11: full attainment claim, both Holevo and single-copy accessible
information, plus the explicit entropy formula. Both capacities are optimized
independently above; average-state entropy finiteness is a conclusion. -/
def ThermalAttainment (b : HilbertBasis I ℂ H) (energy number : I → ℝ)
(beta mu : ℝ) (N : Option ℝ) (modeEntropy : ℝ≥0∞) : Prop :=
let E := fockGibbsMean energy number energy beta mu
let e := fockEnsemble b energy number beta mu
let S := countableShannonBits e.p
FockAdmissible b energy number E N e ∧
IsFockPOVM (fockMeasurement b) ∧ fockMeasuredInformation b e (fockMeasurement b) = S ∧
fockEntropyBits b (fockAverage e) = S ∧ fockHolevoBits b e = S ∧ fockAccessibleInformation b e = S ∧
fockClassicalCapacity b energy number E N = S ∧
singleCopyCapacity b energy number E N = S ∧ S = modeEntropy ∧
∀ other : FockEnsembleData I H, FockAdmissible b energy number E N other →
fockEntropyBits b (fockAverage other) ≤ S
example (x y : H) : InnerProductSpace.rankOne ℂ x x y = (inner ℂ x y) • x := rfl
example : relativeTermBits 0 0 = 0 := by simp [relativeTermBits]
/-- PDF p.14, Eq.(86): power-law trap exponent a=d/gamma+d/2. -/
def trapExponent (d : ℕ) (gamma : ℝ) : ℝ := (d : ℝ) / gamma + (d : ℝ) / 2
/-- PDF p.14, Eq.(86): semiclassical density, on positive energies only. A is the
common positive normalization from phase space, including the mass and trap scale. -/
def densityOfStates (A a energy : ℝ) : ℝ := A * energy ^ (a - 1)
/-- PDF p.14, Eqs.(83),(85): the actual classical single-particle energy on
momentum-position phase space, with ordinary Euclidean Lebesgue volume.
The first component is momentum and the second is position. -/
def powerLawPhaseSpaceEnergy (d : ℕ) (gamma m : ℝ)
(w : EuclideanSpace ℝ (Fin d) × EuclideanSpace ℝ (Fin d)) : ℝ :=
‖w.1‖ ^ 2 / (2 * m) + ‖w.2‖ ^ gamma
example (d : ℕ) (gamma m : ℝ) (hgamma : 0 < gamma) :
powerLawPhaseSpaceEnergy d gamma m (0, 0) = 0 := by
simp [powerLawPhaseSpaceEnergy, Real.zero_rpow hgamma.ne']
/-- PDF pp.12--14, Eqs.(63),(86): continuum Boltzmann moment S_k. -/
def boltzmannMoment (A a beta : ℝ) (k : ℕ) : ℝ :=
∫ e in Set.Ioi (0 : ℝ), densityOfStates A a e * Real.exp (-(k : ℝ) * beta * e)
/-- PDF pp.13--14, Eq.(77): D_k has beta*energy, not k*beta*energy. -/
def weightedMoment (A a beta : ℝ) (k : ℕ) : ℝ :=
∫ e in Set.Ioi (0 : ℝ), beta * e * densityOfStates A a e *
Real.exp (-(k : ℝ) * beta * e)
/-- PDF pp.12--15: spinless continuum occupations at fugacity z=exp(beta*mu).
The Boolean selects fermions; false selects bosons. -/
def continuumOccupation (fermion : Bool) (beta z energy : ℝ) : ℝ :=
z / (Real.exp (beta * energy) + if fermion then z else -z)
/-- PDF pp.12--15: excited-state particle-number integral. For bosons a>1 is
used at z=1; all retained comparison theorems satisfy this restriction. -/
def continuumNumber (fermion : Bool) (A a beta z : ℝ) : ℝ :=
∫ e in Set.Ioi (0 : ℝ), densityOfStates A a e * continuumOccupation fermion beta z e
/-- PDF pp.12--15: continuum entropy at a specified fugacity, in bits. -/
def continuumEntropy (fermion : Bool) (A a beta z : ℝ) : ℝ :=
∫ e in Set.Ioi (0 : ℝ), densityOfStates A a e *
(if fermion then fermiEntropy (continuumOccupation true beta z e)
else boseEntropy (continuumOccupation false beta z e))
/-- PDF pp.9,14--15: Bose fugacity solved from fixed mean N. The supremum clips
at one in the condensed regime. The uncounted ground condensate has zero entropy
in this continuum thermodynamic model. This is not finite-trap exact thermodynamics.
The defining set contains zero and lies in [0,1] for positive A,a,beta,N with a>1. -/
def boseFugacity (A a beta N : ℝ) : ℝ :=
sSup {z : ℝ | 0 ≤ z ∧ z ≤ 1 ∧ continuumNumber false A a beta z ≤ N}
/-- PDF pp.12--15: Fermi fugacity is solved separately at the same mean N. On
positive A,a,beta,N the set is nonempty, bounded below, and its infimum is the
unique positive solution. No equality of the Bose and Fermi energies is imposed. -/
def fermiFugacity (A a beta N : ℝ) : ℝ :=
sInf {z : ℝ | 0 ≤ z ∧ N ≤ continuumNumber true A a beta z}
/-- PDF pp.12--15: the explicit CLASSICAL thermodynamic capacity curve in the
continuum model used in Sections IX--X, evaluated at its fixed-N equilibrium.
It is not a definition of an operational quantum capacity. -/
def thermodynamicCapacity (fermion : Bool) (A a kB N T : ℝ) : ℝ :=
let beta := (kB * T)⁻¹
let z := if fermion then fermiFugacity A a beta N else boseFugacity A a beta N
continuumEntropy fermion A a beta z
example (beta e : ℝ) : continuumOccupation false beta 0 e = 0 := by
simp [continuumOccupation]
example (A a beta : ℝ) : continuumNumber true A a beta 0 = 0 := by
simp [continuumNumber, continuumOccupation]
end QAlgorithms.Papers.Independent.Advance50.P31
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
QAlgorithms.Papers.Independent.Advance50.P31.BoseConfig
This abbreviates the type of finitely supported functions : each is a nonnegative integer, and only finitely many are nonzero. The identically zero function is included, and there is no prescribed bound on the entries or their sum.
QAlgorithms.Papers.Independent.Advance50.P31.FermiConfig
For every natural number , this abbreviates the type of finitely supported functions satisfying for every index . Thus every entry is or . The zero function is included; when , the index set is empty and there is exactly one such function.
QAlgorithms.Papers.Independent.Advance50.P31.FockAdmissible
For any index type , complex Hilbert space , Hilbert basis , real functions , real target , optional real target , and data , put , with a nonsummable operator family assigned sum zero. This predicate requires nonnegative summable weights with sum one, and requires each and to satisfy the following density condition: an operator has sequences with summable and for every , is self-adjoint, satisfies for every , and has . In addition, the real family must be summable and
If is absent there is no further condition; if contains , the analogous number-weighted family must be summable and its sum must equal . No sign conditions are imposed on the two functions or either target, no countability assumption is made on , and empty cannot satisfy the weight normalization.
QAlgorithms.Papers.Independent.Advance50.P31.FockEnsembleData
For arbitrary types and , where has a normed additive commutative group structure and a compatible normed complex vector-space structure, an object of this structure consists of a real function and a family of bounded complex-linear operators . No nonnegativity, normalization, summability, positivity, self-adjointness, or trace-class conditions are part of this structure. The index type may be empty or uncountable.
QAlgorithms.Papers.Independent.Advance50.P31.GibbsRegular
For any index type , arbitrary functions , and arbitrary real parameters , write
This predicate means precisely that is summable as a real family, , both real families and are summable, and
There are no separate sign assumptions on . The positive-part operation is applied to each entropy term, with the total logarithm satisfying . These conditions cannot hold when is empty, because then .
QAlgorithms.Papers.Independent.Advance50.P31.IsFockDensity
For a complex Hilbert space , an arbitrary index type , a Hilbert basis of , and a bounded complex-linear operator , this predicate means that there exist sequences such that is summable and for every , that , that for every , and that
as a complex equality. No countability assumption on is imposed; if is the zero space, the trace equality cannot hold.
QAlgorithms.Papers.Independent.Advance50.P31.IsFockEnsemble
For any index type , complex Hilbert space , Hilbert basis , and data with real weights and bounded complex-linear operators, this predicate requires that every , the real family is summable, , and every satisfies all of the following: it has sequences such that is summable and
it is self-adjoint; for every ; and as a complex equality. These operator requirements apply even at indices with weight zero. There is no countability assumption on , and the predicate cannot hold when is empty.
QAlgorithms.Papers.Independent.Advance50.P31.IsFockPOVM
For an arbitrary index type , complex Hilbert space , and family of bounded complex-linear operators , this predicate requires every to be self-adjoint and to satisfy for every . It further requires, for every pair , that the complex family be summable and
There is no countability assumption on . When is empty, the last equality requires every inner product to vanish, so the predicate can hold only for the zero space.
QAlgorithms.Papers.Independent.Advance50.P31.Moment
For an index type , a complex Hilbert space , a Hilbert basis , any real function , and any bounded complex-linear operator , this predicate means that the real family
is summable, equivalently absolutely summable. There is no positivity, normalization, or trace-class requirement on , no sign restriction on , and no countability assumption on ; summability is understood as convergence over finite subsets of . For empty , the condition holds.
QAlgorithms.Papers.Independent.Advance50.P31.ThermalAttainment
For a complete complex inner-product space , an index type , a Hilbert basis , arbitrary functions , real parameters , an optional real number constraint , and a prescribed , define
To specify the predicate, call a density operator when it is bounded and complex-linear, self-adjoint, has nonnegative quadratic forms and basis trace , and admits sequences with and for every . Let consist of all data with nonnegative summable weights summing to one, every a density operator, and a density operator, such that is summable with sum ; if contains , also require the analogous number family using to be summable with sum , and otherwise impose no number condition. Define
where is given by continuous functional calculus and subtraction is subtraction in . Let consist of all families of self-adjoint positive bounded operators such that, for every , is summable with sum . For ensemble data , set , , and , where if , if and , and otherwise. Write . The predicate is exactly the conjunction
No separate regularity assumption or finiteness of is included. Real, complex, and operator primed sums are totalized to zero when nonsummable; division by zero is zero; nonnegative extended-real sums may be infinite, empty suprema are zero, and extended-real subtraction is truncated, including . If is empty, the required ensemble normalization is impossible.
QAlgorithms.Papers.Independent.Advance50.P31.bitEntropyWeight
For every real number , this defines , where for and . Thus the definition applies to negative inputs as well as nonnegative inputs, and its value at is .
QAlgorithms.Papers.Independent.Advance50.P31.boltzmannMoment
For arbitrary real numbers and every natural number , including , this defines the real Lebesgue integral
There are no positivity or integrability hypotheses; if the integrand is not integrable on , the total real integral is zero. At , the exponential factor is .
QAlgorithms.Papers.Independent.Advance50.P31.boseEnergy
For every function and every finitely supported function , this defines
as a real number. No sign or growth condition is imposed on ; the sum is finite and is when .
QAlgorithms.Papers.Independent.Advance50.P31.boseEntropy
For every real number , this defines
where for and . There is no restriction on ; in particular, the formula includes , , and negative logarithm arguments under this convention.
QAlgorithms.Papers.Independent.Advance50.P31.boseFugacity
For arbitrary real numbers , this defines the real supremum
No additional parameter or integrability restrictions are imposed. The integral is the total real Lebesgue integral, equal to zero for a nonintegrable integrand, and division by zero is zero. The set is bounded above by ; if it is empty, the total real supremum is zero. The definition does not additionally require its supremum to belong to the set.
QAlgorithms.Papers.Independent.Advance50.P31.boseNumber
For every finitely supported function , this defines the real number
with each natural-number entry interpreted as a real number. The sum is finite and equals for the zero function.
QAlgorithms.Papers.Independent.Advance50.P31.continuumEntropy
For a Boolean flag and arbitrary real numbers , put when , and when . This defines
No positivity, occupation-range, or integrability assumptions are imposed. Powers, logarithms, and division use their total real definitions, including division by zero equal to zero and ; each real Lebesgue integral is zero if its integrand is not integrable.
QAlgorithms.Papers.Independent.Advance50.P31.continuumNumber
For a Boolean flag and arbitrary real numbers , this defines
These are real Lebesgue integrals using total real powers and division, so a quotient with zero denominator is zero. No positivity or integrability assumptions are imposed, and a nonintegrable integrand gives integral zero.
QAlgorithms.Papers.Independent.Advance50.P31.continuumOccupation
For a Boolean flag and arbitrary real numbers , this defines
There are no sign or range restrictions on the parameters or on the resulting value. If the selected denominator is zero, the quotient is defined to be zero.
QAlgorithms.Papers.Independent.Advance50.P31.countableMutualInformationBits
For any index type and arbitrary real function , define the real sums and . This definition returns
where is regarded as an extended nonnegative real number. The first branch gives ; real logarithms use their total values, including and for negative . There are no countability, nonnegativity, normalization, or summability assumptions on or . Each nonsummable real marginal family is assigned sum zero, whereas the outer nonnegative extended sum may be infinite. For empty , the value is zero.
QAlgorithms.Papers.Independent.Advance50.P31.countableShannonBits
For any index type and any real-valued function , this defines the nonnegative extended-real quantity
No countability assumption on , nonnegativity of , normalization, or summability hypothesis is imposed. The logarithm is the total real logarithm, with , so a zero entry contributes zero; negative entropy-weight values are replaced by zero. The sum may be infinite and is zero for an empty index type.
QAlgorithms.Papers.Independent.Advance50.P31.densityOfStates
For arbitrary real numbers , this defines
where the power is the total real-power operation. No positivity assumptions are imposed on , , or , and the definition also applies to zero and negative .
QAlgorithms.Papers.Independent.Advance50.P31.effectProbability
For any index type , complex Hilbert space , Hilbert basis , and arbitrary bounded complex-linear operators , this definition returns the real number
There is no positivity, normalization, trace-class, or summability hypothesis, and need not be countable. If the displayed complex family is not summable, its sum is defined to be zero; an empty basis index also gives zero. No requirement that the resulting real number lie between zero and one is included.
QAlgorithms.Papers.Independent.Advance50.P31.fermiEnergy
For every natural number , every function , and every finitely supported function with entries at most , this defines
The energy coefficient depends only on the first index, and no sign or growth condition is imposed on . The finite sum is for the zero configuration and when .
QAlgorithms.Papers.Independent.Advance50.P31.fermiEntropy
For every real number , this defines
where for and . The input is not required to lie in ; the values at both and are .
QAlgorithms.Papers.Independent.Advance50.P31.fermiFugacity
For arbitrary real numbers , this defines the real infimum
No upper bound on , positivity assumptions on the parameters, or integrability assumptions are imposed. The integral is the total real Lebesgue integral, equal to zero for a nonintegrable integrand, and division by zero is zero. The set is bounded below by zero; if it is empty, the total real infimum is zero. The definition does not additionally require its infimum to belong to the set.
QAlgorithms.Papers.Independent.Advance50.P31.fermiNumber
For every natural number and every finitely supported function whose entries are at most , this defines the real number
Each entry is interpreted as a real number, so this counts the nonzero entries. It is for the zero configuration, including the unique configuration when .
QAlgorithms.Papers.Independent.Advance50.P31.fockAccessibleInformation
For a complete complex inner-product space , an index type , a Hilbert basis , and ensemble data , where and each is bounded and complex-linear, this defines an element of by taking the supremum over all families of bounded complex-linear operators such that every is self-adjoint with for every , and, for every , the family is summable with sum . For each such family, set
The value being maximized is , where
No nonnegativity, normalization, density-operator, or summability assumptions are imposed on the supplied ensemble data. The real and complex primed sums are totalized sums, equal to zero when the corresponding family is not summable; the nonnegative extended-real sum always exists, and an empty supremum is zero.
QAlgorithms.Papers.Independent.Advance50.P31.fockAverage
For any index type , normed complex vector space , and data consisting of real numbers and bounded complex-linear operators , this definition returns the bounded operator
where each real coefficient is regarded as a complex scalar and the sum is taken in the operator-norm topology. No conditions on the weights or operators, and no summability hypothesis, are imposed. The sum is unconditional for arbitrary ; if the operator family is not summable, this total sum has value zero. The empty sum is also zero.
QAlgorithms.Papers.Independent.Advance50.P31.fockClassicalCapacity
For any index type , complex Hilbert space , Hilbert basis , real functions , real target , and optional real target , this definition takes a supremum in over all real weight families and bounded operator families indexed by . The permitted families have nonnegative summable weights of sum one; each , and their operator sum , must be self-adjoint and positive in the sense for every , must have basis trace , and must admit sequences with summable and for every . The energy-weighted diagonal family of must be summable with sum ; when contains , its number-weighted diagonal family must also be summable with sum , and absent imposes no number condition. For each permitted family the quantity being maximized is
with interpreted by continuous functional calculus and . All sums are unconditional; nonsummable real, complex, or operator sums have value zero. Subtraction is extended nonnegative subtraction, including , and . Neither countability nor sign restrictions on the energy, number, or targets are assumed. The supremum need not be attained or finite; if there are no permitted families, including when is empty, its value is zero.
QAlgorithms.Papers.Independent.Advance50.P31.fockEnsemble
For a complete complex inner-product space , an index type , a Hilbert basis , arbitrary functions , and arbitrary real parameters , this constructs ensemble data with
The construction requires no regularity or normalization hypothesis. Its real denominator is zero when the weight family is nonsummable, and division by zero gives zero, so those cases still produce ensemble data.
QAlgorithms.Papers.Independent.Advance50.P31.fockEntropyBits
For a complex Hilbert space , an arbitrary index type , a Hilbert basis , and any bounded complex-linear operator , this defines the extended nonnegative real number
where for , , and is the total real continuous functional calculus applied to . Each summand is converted to an extended nonnegative real before summation, and the result may be . No trace-class, self-adjointness, positivity, normalization, or summability hypothesis on is required.
QAlgorithms.Papers.Independent.Advance50.P31.fockGibbsMean
For any index type , arbitrary real-valued functions on , and arbitrary real parameters , this defines
Neither sum is assumed summable: each is a totalized real sum that equals zero for a nonsummable family. Division by a zero denominator is zero. In particular, the definition gives zero when is empty or when the denominator vanishes.
QAlgorithms.Papers.Independent.Advance50.P31.fockGibbsProbability
For any index type , arbitrary functions , arbitrary real parameters , and any , this defines
There is no summability or nonzero-denominator hypothesis. The denominator is the totalized real sum, which is zero for a nonsummable family, and division by zero gives zero; thus in that case every defined is zero. No normalization assertion is part of this definition.
QAlgorithms.Papers.Independent.Advance50.P31.fockGibbsWeight
For any index type , arbitrary functions , arbitrary real parameters , and any , this defines the real weight
No sign, boundedness, or summability hypotheses are required.
QAlgorithms.Papers.Independent.Advance50.P31.fockHolevoBits
For any index type , complex Hilbert space , Hilbert basis , and data with real weights and bounded complex-linear operators, let , using zero if this operator family is not summable, and define, for any bounded operator ,
where is given by continuous functional calculus and is regarded as an extended nonnegative real number. The definition returns
No ensemble, density, positivity, normalization, or finiteness hypotheses are imposed. Subtraction is extended nonnegative subtraction, so it is truncated at zero and ; multiplication uses . For empty , the value is zero.
QAlgorithms.Papers.Independent.Advance50.P31.fockMean
For a complex Hilbert space , an arbitrary index type , a Hilbert basis , any real-valued function , and any bounded complex-linear operator , this defines the real number
No positivity, normalization, trace-class, or summability condition is imposed. The sum is the total real infinite-sum operation, which returns when the summand family is not summable; it also returns for an empty index set.
QAlgorithms.Papers.Independent.Advance50.P31.fockMeasuredInformation
For any index type , complex Hilbert space , Hilbert basis , data with real weights and bounded complex-linear operators, and any family of bounded complex-linear operators , set
The definition returns
as an extended nonnegative real number, where , the first branch gives , and the logarithm is the total real logarithm, including and for negative . No ensemble conditions on , measurement conditions on , countability assumption, or summability hypotheses are imposed. Nonsummable complex trace families and real marginal families have sum zero; the outer extended nonnegative sum may be infinite and is zero for empty .
QAlgorithms.Papers.Independent.Advance50.P31.fockMeasurement
For a complete complex inner-product space , an index type , a Hilbert basis of , and any , this defines the bounded complex-linear operator
If is empty, there is no index at which to evaluate this family.
QAlgorithms.Papers.Independent.Advance50.P31.fockPartition
For any index type , arbitrary functions , and arbitrary real parameters , this defines the real number
This is a totalized real sum: it equals zero if the family is not summable, rather than taking an infinite value. It also equals zero when is empty.
QAlgorithms.Papers.Independent.Advance50.P31.powerLawPhaseSpaceEnergy
For every natural number , real numbers , and pair , define the real-valued function
No positivity assumptions are imposed on , , or . Division by zero is assigned the value zero, and real powers use the conventions and for , including negative . In particular, when , both norms vanish and the function equals if and otherwise.
QAlgorithms.Papers.Independent.Advance50.P31.relativeTermBits
For arbitrary real numbers , this definition returns the extended nonnegative real number
where . No nonnegativity assumptions on or are imposed. The first branch takes precedence, so gives zero. The real logarithm is the total real logarithm, with and for negative .
QAlgorithms.Papers.Independent.Advance50.P31.singleCopyCapacity
For a complete complex inner-product space , an index type , a Hilbert basis , arbitrary functions , an arbitrary real , and an optional real number constraint , this defines the supremum, in , of the following accessible-information quantity over all ensemble data satisfying the stated conditions. Here a density operator means a bounded complex-linear operator that is self-adjoint, satisfies for every , has , and admits sequences with and for every . The ensemble conditions are , summability of , , every being a density operator, and the operator sum also being a density operator; moreover, must be summable with sum . If contains a real , the analogous family with must be summable with sum ; if is absent, there is no number-moment condition. For each admissible ensemble, its accessible information is the supremum over families of self-adjoint positive bounded operators for which, for all , is summable with sum , of
where is when , is when and , and otherwise is . Real, complex, and operator primed sums are totalized, taking value zero for nonsummable families. An empty admissible set gives capacity zero; in particular, the ensemble normalization cannot hold when is empty.
QAlgorithms.Papers.Independent.Advance50.P31.thermodynamicCapacity
For a Boolean flag and arbitrary real numbers , set . If , let
if , let
The defined real value is
No positivity or integrability assumptions are imposed: gives , division by zero is zero, real powers and logarithms are total, each nonintegrable real integrand has integral zero, and an empty set in either displayed extremum gives .
QAlgorithms.Papers.Independent.Advance50.P31.trapExponent
For every natural number , including , and every real number , this defines the real number
There is no positivity or nonzero assumption on ; real division by zero is defined to be zero, so the value at is .
QAlgorithms.Papers.Independent.Advance50.P31.weightedMoment
For arbitrary real numbers and every natural number , including , this defines the real Lebesgue integral
No positivity or integrability assumptions are imposed; the total real integral is zero when the integrand is not integrable on . For , the exponential factor is , and for , the value is zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.