pith. machine review for the scientific record. sign in

IndisputableMonolith.Physics.PhotonStatisticsFromRS

IndisputableMonolith/Physics/PhotonStatisticsFromRS.lean · 43 lines · 5 declarations

show as:
view math explainer →

open module explainer GitHub source

Explainer status: ready · generated 2026-05-15 07:07:59.397491+00:00

   1import Mathlib
   2import IndisputableMonolith.Cost
   3
   4/-!
   5# Photon Statistics from RS — B14/B16 Depth
   6
   7Photon statistics characterise quantum vs classical light.
   8In RS: photon number statistics = J-cost distribution.
   9
  10Five canonical photon statistics regimes (super-Poissonian, Poissonian,
  11sub-Poissonian, Fano, Mandel Q) = configDim D = 5.
  12
  13Coherent light (J=0): Poissonian statistics.
  14Thermal light (J>0): super-Poissonian.
  15Squeezed light (J>0 in anti-squeezed quadrature): sub-Poissonian.
  16
  17Lean: 5 regimes.
  18
  19Lean status: 0 sorry, 0 axiom.
  20-/
  21
  22namespace IndisputableMonolith.Physics.PhotonStatisticsFromRS
  23open Cost
  24
  25inductive PhotonStatisticsRegime where
  26  | superPoissonian | poissonian | subPoissonian | fano | mandelQ
  27  deriving DecidableEq, Repr, BEq, Fintype
  28
  29theorem photonStatCount : Fintype.card PhotonStatisticsRegime = 5 := by decide
  30
  31/-- Coherent light (Poissonian): J = 0. -/
  32theorem coherent_poissonian : Jcost 1 = 0 := Jcost_unit0
  33
  34structure PhotonStatCert where
  35  five_regimes : Fintype.card PhotonStatisticsRegime = 5
  36  coherent_zero : Jcost 1 = 0
  37
  38def photonStatCert : PhotonStatCert where
  39  five_regimes := photonStatCount
  40  coherent_zero := coherent_poissonian
  41
  42end IndisputableMonolith.Physics.PhotonStatisticsFromRS
  43

source mirrored from github.com/jonwashburn/shape-of-logic