ComparatorChallenges/EntropyPhotonNumber.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: OpenAI's pinned repository says an unreleased internal model produced the manuscripts and supporting proof artifacts. The collection builds on the mathematics community's accumulated problems, results, language, and formal libraries; each manuscript's BibTeX and bibliography are the authority for individual scholarly credit.
Project sources: Pinned openai/math documentation, Pinned formalization catalogue
18 declarations, 1 contain sorry, 0 declared as axioms
- abbrev
OAI.EntropyPhotonNumber.NumberIndexThe number-basis indices fornbosonic modes line 12Source documentation
The number-basis indices for
nbosonic modes.L4DEL explanation
The number-basis indices for
nbosonic modes.- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:12 (same declaration text).
abbrev NumberIndex (n : ℕ) := Fin n → ℕ
- abbrev
OAI.EntropyPhotonNumber.FockThe full, untruncated bosonic Fock spaceℓ²(ℕⁿ, ℂ)line 15Source documentation
The full, untruncated bosonic Fock space
ℓ²(ℕⁿ, ℂ).L4DEL explanation
The full, untruncated bosonic Fock space
ℓ²(ℕⁿ, ℂ).- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:15 (same declaration text).
abbrev Fock (n : ℕ) := lp (fun _ : NumberIndex n => ℂ) 2
Mentions: OAI.EntropyPhotonNumber.NumberIndex
- def
OAI.EntropyPhotonNumber.numberKetA number-basis vector line 18Source documentation
A number-basis vector.
L4DEL explanation
A number-basis vector.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:18 (same declaration text).
def numberKet {n : ℕ} (k : NumberIndex n) : Fock n := lp.single 2 k 1Mentions: OAI.EntropyPhotonNumber.NumberIndex, OAI.EntropyPhotonNumber.Fock
- def
OAI.EntropyPhotonNumber.entryMatrix entries of an operator in the number basis line 21Source documentation
Matrix entries of an operator in the number basis.
L4DEL explanation
Matrix entries of an operator in the number basis.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:21 (same declaration text).
def entry {n : ℕ} (T : Fock n →L[ℂ] Fock n) (k l : NumberIndex n) : ℂ := …Mentions: OAI.EntropyPhotonNumber.Fock, OAI.EntropyPhotonNumber.NumberIndex
- structure
OAI.EntropyPhotonNumber.StatePositive trace-one operators line 27Source documentation
Positive trace-one operators. For a positive bounded operator on this Hilbert space, summability of its diagonal is the positive trace-class criterion;
HasSum ... 1includes summability as well as normalization.L4DEL explanation
Positive trace-one operators. For a positive bounded operator on this Hilbert space, summability of its diagonal is the positive trace-class criterion;
HasSum ... 1includes summability as well as normalization.- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:27 (same declaration text).
structure State (n : ℕ) where …
- def
OAI.EntropyPhotonNumber.totalNumberTotal number of quanta in a number-basis vector line 33Source documentation
Total number of quanta in a number-basis vector.
L4DEL explanation
Total number of quanta in a number-basis vector.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:33 (same declaration text).
def totalNumber {n : ℕ} (k : NumberIndex n) : ℕ := ∑ j, k jMentions: OAI.EntropyPhotonNumber.NumberIndex
- def
OAI.EntropyPhotonNumber.FiniteEnergyExactly finiteness of the expectation of the nonnegative number operator line 36Source documentation
Exactly finiteness of the expectation of the nonnegative number operator.
L4DEL explanation
Exactly finiteness of the expectation of the nonnegative number operator.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:36 (same declaration text).
def FiniteEnergy {n : ℕ} (ρ : State n) : Prop := …Mentions: OAI.EntropyPhotonNumber.State
- def
OAI.EntropyPhotonNumber.entropy−Tr ρ log ρ, using the continuous extension of−t log tat zero and continuous functional calculus for the positive operatorρline 41Source documentation
−Tr ρ log ρ, using the continuous extension of−t log tat zero and continuous functional calculus for the positive operatorρ.L4DEL explanation
−Tr ρ log ρ, using the continuous extension of−t log tat zero and continuous functional calculus for the positive operatorρ.- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:41 (same declaration text).
def entropy {n : ℕ} (ρ : State n) : ℝ := …Mentions: OAI.EntropyPhotonNumber.State
- def
OAI.EntropyPhotonNumber.gThe thermal entropy per mode, with the convention0 log 0 = 0line 45Source documentation
The thermal entropy per mode, with the convention
0 log 0 = 0.L4DEL explanation
The thermal entropy per mode, with the convention
0 log 0 = 0.- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:46 (same declaration text).
def g (t : ℝ) : ℝ := (t + 1) * Real.log (t + 1) - t * Real.log t
- def
OAI.EntropyPhotonNumber.gInvThe inverse of increasingg : [0,∞) → [0,∞), expressed by its lower level cut line 49Source documentation
The inverse of increasing
g : [0,∞) → [0,∞), expressed by its lower level cut. Only its values on[0,∞)occur in the main theorem.L4DEL explanation
The inverse of increasing
g : [0,∞) → [0,∞), expressed by its lower level cut. Only its values on[0,∞)occur in the main theorem.- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:50 (same declaration text).
def gInv (s : ℝ) : ℝ := sInf {t : ℝ | 0 ≤ t ∧ s ≤ g t}Mentions: OAI.EntropyPhotonNumber.g
- def
OAI.EntropyPhotonNumber.oneModeBeamCoefficientOne-mode passive beam-splitter coefficient, in number bases line 55Source documentation
One-mode passive beam-splitter coefficient, in number bases. It is the coefficient of
(c†)^k (d†)^ein(√η c† − √(1−η) d†)^a (√(1−η) c† + √η d†)^b, with the normalized number-vector factorials.L4DEL explanation
One-mode passive beam-splitter coefficient, in number bases. It is the coefficient of
(c†)^k (d†)^ein(√η c† − √(1−η) d†)^a (√(1−η) c† + √η d†)^b, with the normalized number-vector factorials.- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:56 (same declaration text).
def oneModeBeamCoefficient (η : ℝ) (k e a b : ℕ) : ℝ := …
Mentions: OAI.EntropyPhotonNumber.b
- def
OAI.EntropyPhotonNumber.beamCoefficientThe same passive rotation is performed on all mode indices line 67Source documentation
The same passive rotation is performed on all mode indices.
L4DEL explanation
The same passive rotation is performed on all mode indices.
- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:68 (same declaration text).
def beamCoefficient {n : ℕ} (η : ℝ) (k e a b : NumberIndex n) : ℝ := …Mentions: OAI.EntropyPhotonNumber.b, OAI.EntropyPhotonNumber.NumberIndex
- abbrev
OAI.EntropyPhotonNumber.SectorSplitChoices of the first input number in the total-number sector of(k,e)line 71Source documentation
Choices of the first input number in the total-number sector of
(k,e).L4DEL explanation
Choices of the first input number in the total-number sector of
(k,e).- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:72 (same declaration text).
abbrev SectorSplit {n : ℕ} (k e : NumberIndex n) := ∀ j, Fin (k j + e j + 1)Mentions: OAI.EntropyPhotonNumber.NumberIndex
- def
OAI.EntropyPhotonNumber.splitLeftline 73Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:74 (same declaration text).
- def
OAI.EntropyPhotonNumber.splitRightline 76Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:77 (same declaration text).
- def
OAI.EntropyPhotonNumber.outputBlockA single discarded-number diagonal block ofU(ρA ⊗ ρB)U†line 82Source documentation
A single discarded-number diagonal block of
U(ρA ⊗ ρB)U†. The sums are finite because passive mixing preserves number in each paired mode. The two unrestricted density matrices allow all internal entanglement.L4DEL explanation
A single discarded-number diagonal block of
U(ρA ⊗ ρB)U†. The sums are finite because passive mixing preserves number in each paired mode. The two unrestricted density matrices allow all internal entanglement.- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:83 (same declaration text).
def outputBlock {n : ℕ} (η : ℝ) (ρA ρB : State n) (k l e : NumberIndex n) : ℂ := …Mentions: OAI.EntropyPhotonNumber.State, OAI.EntropyPhotonNumber.NumberIndex
- def
OAI.EntropyPhotonNumber.IsBeamSplitterOutputReduced state after passive beam-splitter mixing of independent ports line 94Source documentation
Reduced state after passive beam-splitter mixing of independent ports. The second row of the orthogonal rotation is
(-√(1−η),√η); changing its sign has no effect on this reduced state.HasSumrecords the actual partial trace, not a default value for a possibly divergent series.L4DEL explanation
Reduced state after passive beam-splitter mixing of independent ports. The second row of the orthogonal rotation is
(-√(1−η),√η); changing its sign has no effect on this reduced state.HasSumrecords the actual partial trace, not a default value for a possibly divergent series.- This explanation is a condensed rendering of the declaration's own doc comment at the pinned source commit; consult the exact Lean statement below for authority.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Also declared: OAI/InformationTheory/PhotonNumber/Basic.lean:95 (same declaration text).
def IsBeamSplitterOutput {n : ℕ} (η : ℝ) (ρA ρB ρC : State n) : Prop := …Mentions: OAI.EntropyPhotonNumber.State
- theorem
OAI.EntropyPhotonNumber.entropy_photon_number_inequalityChallenge statement: The entropy photon-number inequality sorry line 99Source documentation
The entropy photon-number inequality for arbitrary finite-energy inputs and any positive finite number of modes.
L4DEL explanation
The formalization proves the entropy photon-number inequality for two independent bosonic inputs with finite mean energy and any finite positive number $n$ of modes. Write $N(\rho)=g^{-1}(S(\rho)/n)$, where $S$ is von Neumann entropy and $g(x)=(x+1)\log(x+1)-x\log x$ is the thermal entropy per mode. For a beam splitter of transmissivity $0\le\eta\le1$, its output satisfies $N(\rho_C)\ge\eta N(\rho_A)+(1-\eta)N(\rho_B)$. Entanglement among modes within either input is allowed. The thermal-attenuator minimum-output-entropy and broadcast-capacity consequences in the paper are outside this selected inequality.
- This is an exact comparator target linked by the pinned repository's formalization note for this result.
- The repository's comparator configuration selects OAI.InformationTheory.PhotonNumber.Inequality as the released solution module checked against this declaration.
Sources and attribution: Pinned Lean source (fd4aeeb2ee4f)
Distinct definitions of this name: OAI/InformationTheory/PhotonNumber/Inequality.lean:689 (same statement text; different proof or body). Qualify references as OAI.EntropyPhotonNumber.entropy_photon_number_inequality@path.
theorem entropy_photon_number_inequality (n : ℕ) (hn : 1 ≤ n) (ρA ρB ρC : State n) (hA : FiniteEnergy ρA) (hB : FiniteEnergy ρB) (η : ℝ) (hη : η ∈ Set.Icc 0 1) (hC : IsBeamSplitterOutput η ρA ρB ρC) : η * gInv (entropy ρA / n) + (1 - η) * gInv (entropy ρB / n) ≤ gInv (entropy ρC / n) := by …Mentions: OAI.EntropyPhotonNumber.State, OAI.EntropyPhotonNumber.FiniteEnergy, OAI.EntropyPhotonNumber.IsBeamSplitterOutput, OAI.EntropyPhotonNumber.gInv, OAI.EntropyPhotonNumber.entropy