Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Chapter CoherentOccupation

Definition
ChapterCoherentOccupation

by leonardopedro · Oct 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

definitionsformalizationtimepiece

Formal definitions for the timepiece Lean 4 formalization (source chapter BookProof/ChapterCoherentOccupation.lean): generated def bundle for ChapterCoherentOccupation. See BookProof/ChapterCoherentOccupation.lean for full context.

Definition code
import Definitions.Def_ChapterCoherentTemperature
import Mathlib


/-!
# Chapter "The Coherent State of Attention", §"Temperature and the Thermal Bath" —
the occupation statistics of a coherent state

`BookProof/ChapterCoherentTemperature.lean` proves the moment structure of the
*thermal* (Bose–Einstein) occupation distribution and records the temperature
`τ = n̄ + 1/2` as a definition, with the physical derivation flagged as a gap.
Its docstring appeals twice to the *coherent* (Poisson) occupation statistics —
"the Poissonian variance `n̄` of a coherent state" and "the zero-point half".
This module proves those two statements.

What is proved:

* `coherentOccupation` — the coherent-state occupation law
  `p(n) = e^{-λ} λⁿ / n!`, i.e. Mathlib's Poisson probability mass function
  (`coherentOccupation_eq_poissonPMFReal` records the identification);
* `coherentOccupation_hasSum_one`, `coherentOccupation_tsum_one`,
  `coherentOccupation_nonneg` — it is a probability distribution on `ℕ`;
* `coherentOccupation_mean` — its mean occupation is `λ`;
* `coherentOccupation_second_moment` — its second moment is `λ² + λ`;
* `coherentOccupation_variance` — hence its variance is exactly `λ`: coherent
  light is **Poissonian**, the statement `ChapterCoherentTemperature` appeals to;
* `coherentOccupation_energy` — the mean of the harmonic-oscillator energy
  observable `n + 1/2` in a coherent state is `λ + 1/2`, the "mean occupation
  plus the zero-point half";
* `thermalOccupation_energy` and `thermalTemperature_eq_energy_expectation` — the
  same energy identity for the thermal law: the chapter's temperature
  `τ = n̄ + 1/2` **is** the expectation of `n + 1/2` in the thermal state (this
  upgrades `thermalTemperature_eq_mean_add_half` from a restatement of the
  definition to an identity for a genuine observable);
* `coherent_variance_lt_thermal_variance` — for a nonvacuum bath the coherent
  (Poisson) noise `n̄` is strictly below the thermal noise `n̄² + n̄`.

**Recorded disparity with the informal chapter (unchanged).**  What remains a
documented gap is the *physical* derivation of `τ = n̄ + 1/2` from the quantum
fidelity of displaced thermal states on a bosonic Fock space; the identity is
proved here only for the occupation statistics, i.e. as the expectation of the
number-plus-zero-point observable, not from fidelity.

Everything here is `sorry`-free and `axiom`-free (only `propext`,
`Classical.choice`, `Quot.sound`).
-/

noncomputable section

namespace BookProof.ChapterCoherentOccupation

open Real Nat ProbabilityTheory

/-! ## The exponential series -/



/-! ## The coherent (Poisson) occupation distribution -/

/-- The **occupation distribution of a coherent state** with mean occupation
`λ = |α|²`: the Poisson law `p(n) = e^{-λ} λⁿ / n!`. -/
def coherentOccupation (lam : ℝ) (n : ℕ) : ℝ := Real.exp (-lam) * lam ^ n / n !











/-! ## Moments -/

















/-! ## The thermal law: the temperature is the energy expectation -/

open BookProof.ChapterCoherentTemperature











end BookProof.ChapterCoherentOccupation

end
Source
https://github.com/leonardopedro/timepiece/blob/61595bc/BookProof/ChapterCoherentOccupation.lean

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me