Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Photometric model: luminosity function, radiant flux, luminous flux, luminous efficacy

Definition
luminous_efficacy

by LG · Sep 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

mathematical-physicsmeasure-theoryphotometry

The photometric model underlying the mission, transcribed from the "Mathematical definition" section of the source.

A spectral radiant flux distribution is modelled as a finite Borel measure μ\muμ on the wavelength axis R\mathbb{R}R (wavelengths in nanometres). Using a measure rather than a density covers both cases the source discusses: an ordinary spectrum with spectral radiant flux Φe,λ\Phi_{e,\lambda}Φe,λ​ is the measure dμ=Φe,λ dλ\mathrm{d}\mu = \Phi_{e,\lambda}\,\mathrm{d}\lambdadμ=Φe,λ​dλ, while an ideal monochromatic source is a point mass, which has no density.

  • Km=683.002K_m = 683.002Km​=683.002 lm/W is the photopic maximum spectral luminous efficacy (attained at 555555555 nm), and 170017001700 lm/W is its scotopic counterpart (at 507507507 nm).
  • A luminosity function with peak at λ0\lambda_0λ0​ is a measurable V:R→RV : \mathbb{R} \to \mathbb{R}V:R→R with 0≤V(λ)≤10 \le V(\lambda) \le 10≤V(λ)≤1 for all λ\lambdaλ and V(λ0)=1V(\lambda_0) = 1V(λ0​)=1. Only these normalization properties of the CIE curve are assumed; no further shape is imposed.
  • Radiant flux Φe=μ(R)\Phi_e = \mu(\mathbb{R})Φe​=μ(R).
  • Luminous flux Φv=Kmax⁡∫V dμ\Phi_v = K_{\max} \int V \,\mathrm{d}\muΦv​=Kmax​∫Vdμ, i.e. the integral of the spectral luminous efficacy K(λ)=Kmax⁡V(λ)K(\lambda) = K_{\max} V(\lambda)K(λ)=Kmax​V(λ) against the spectral radiant flux.
  • Luminous efficacy of radiation K=Φv/ΦeK = \Phi_v / \Phi_eK=Φv​/Φe​, luminous efficiency K/Kmax⁡K / K_{\max}K/Kmax​, and luminous efficacy of a source Φv/P\Phi_v / PΦv​/P, where PPP is the total input power consumed by the source.
  • ofDensity(Φ)\mathrm{ofDensity}(\Phi)ofDensity(Φ) is the measure with density Φ\PhiΦ with respect to Lebesgue measure on the wavelength axis, used to connect the measure model with the source's integral formula.
Definition code
import Mathlib

open MeasureTheory

namespace LuminousEfficacy

/-- The photopic maximum spectral luminous efficacy `K_m = 683.002` lm/W,
attained at the wavelength 555 nm. -/
noncomputable def Km : ℝ := 683.002

/-- The scotopic maximum spectral luminous efficacy `1700` lm/W,
attained at the wavelength 507 nm. -/
noncomputable def KmScotopic : ℝ := 1700

/-- `IsLuminosityFunction V peak` says that `V` is a normalized luminous efficiency function
(luminosity function) of the wavelength, with its maximum value `1` attained at the
wavelength `peak`: `V` is measurable, takes values in `[0, 1]`, and `V peak = 1`. -/
structure IsLuminosityFunction (V : ℝ → ℝ) (peak : ℝ) : Prop where
  measurable : Measurable V
  nonneg : ∀ l, 0 ≤ V l
  le_one : ∀ l, V l ≤ 1
  peak_eq_one : V peak = 1

/-- The radiant flux `Φ_e` of a spectral radiant flux distribution `mu`, modelled as a
finite Borel measure on the wavelength axis: the total mass of `mu`. -/
noncomputable def radiantFlux (mu : Measure ℝ) : ℝ := (mu Set.univ).toReal

/-- The luminous flux `Φ_v = K_max * ∫ V dmu` of the spectral radiant flux distribution `mu`,
where the spectral luminous efficacy is `K(λ) = K_max * V λ`. -/
noncomputable def luminousFlux (Kmax : ℝ) (V : ℝ → ℝ) (mu : Measure ℝ) : ℝ :=
  Kmax * ∫ l, V l ∂mu

/-- The luminous efficacy of radiation `K = Φ_v / Φ_e`. -/
noncomputable def efficacyOfRadiation (Kmax : ℝ) (V : ℝ → ℝ) (mu : Measure ℝ) : ℝ :=
  luminousFlux Kmax V mu / radiantFlux mu

/-- The luminous efficiency: the luminous efficacy of radiation divided by its maximum
possible value `K_max`. -/
noncomputable def luminousEfficiency (Kmax : ℝ) (V : ℝ → ℝ) (mu : Measure ℝ) : ℝ :=
  efficacyOfRadiation Kmax V mu / Kmax

/-- The luminous efficacy of a source (overall luminous efficacy): the luminous flux
divided by the total input power `P` consumed by the source. -/
noncomputable def efficacyOfSource (Kmax : ℝ) (V : ℝ → ℝ) (mu : Measure ℝ) (P : ℝ) : ℝ :=
  luminousFlux Kmax V mu / P

/-- The spectral radiant flux distribution whose spectral radiant flux (density with respect
to wavelength) is `Phi`. -/
noncomputable def ofDensity (Phi : ℝ → ℝ) : Measure ℝ :=
  volume.withDensity (fun l => ENNReal.ofReal (Phi l))

end LuminousEfficacy
Source
Wikipedia, Luminous efficacy, https://en.wikipedia.org/wiki/Luminous_efficacy (revision supplied as Luminous_efficacy.pdf), sections 'Luminous efficacy of radiation' (Explanation; Mathematical definition; Examples) and 'Lighting efficiency'
Read-back

What the Lean code literally says, in plain math · self-authored by the drafting agent (non-blind; see the notice in each read-back)

Provenance notice - this read-back is NOT independent testimony. It was written by the same agent that drafted the Lean statement it describes, and it was written with full knowledge of the source material and of the intended meaning of the statement. It is therefore not blind: it is self-review, not third-party corroboration, and it can repeat any misreading already baked into the formalization. It is uploaded in this form at the explicit instruction of the proposal's human owner. A reviewer should treat it as an annotation by the author, and should still obtain a genuinely independent read-back before relying on it.

This bundle introduces a model of photometric quantities on the real line, whose points are written λ\lambdaλ and play the role of wavelengths. It fixes two real constants, Km=683.002K_m = 683.002Km​=683.002 and Kmscot=1700K_{m}^{\mathrm{scot}} = 1700Kmscot​=1700, with no unit attached inside the code.

It defines a predicate IsLuminosityFunction(V,λ0)\mathrm{IsLuminosityFunction}(V, \lambda_0)IsLuminosityFunction(V,λ0​) on a function V:R→RV : \mathbb{R} \to \mathbb{R}V:R→R and a real number λ0\lambda_0λ0​, which holds exactly when all four of the following hold:

V is (Borel) measurable,∀λ,  0≤V(λ),∀λ,  V(λ)≤1,V(λ0)=1.V \text{ is (Borel) measurable}, \qquad \forall \lambda,\; 0 \le V(\lambda), \qquad \forall \lambda,\; V(\lambda) \le 1, \qquad V(\lambda_0) = 1 .V is (Borel) measurable,∀λ,0≤V(λ),∀λ,V(λ)≤1,V(λ0​)=1.

Nothing else is required of VVV: it need not be continuous, unimodal, supported in any particular band, or equal to any tabulated curve, and λ0\lambda_0λ0​ is an arbitrary real number (though V≤1=V(λ0)V \le 1 = V(\lambda_0)V≤1=V(λ0​) does make it a global maximizer).

For a Borel measure μ\muμ on R\mathbb{R}R it defines

Φe(μ)  =  (μ(R))toReal,\Phi_e(\mu) \;=\; \big(\mu(\mathbb{R})\big)^{\mathrm{toReal}},Φe​(μ)=(μ(R))toReal,

the total mass of μ\muμ converted from an extended nonnegative real to a real number; if μ\muμ has infinite total mass this conversion returns 000.

For a real number Kmax⁡K_{\max}Kmax​, a function VVV, and a measure μ\muμ it defines

Φv(Kmax⁡,V,μ)  =  Kmax⁡∫RV(λ) dμ(λ),\Phi_v(K_{\max}, V, \mu) \;=\; K_{\max} \int_{\mathbb{R}} V(\lambda)\, \mathrm{d}\mu(\lambda),Φv​(Kmax​,V,μ)=Kmax​∫R​V(λ)dμ(λ),

where the integral is the Bochner integral, which by convention returns 000 when VVV is not μ\muμ-integrable;

K(Kmax⁡,V,μ)  =  Φv(Kmax⁡,V,μ)Φe(μ),η(Kmax⁡,V,μ)  =  K(Kmax⁡,V,μ)Kmax⁡,K(K_{\max}, V, \mu) \;=\; \frac{\Phi_v(K_{\max}, V, \mu)}{\Phi_e(\mu)}, \qquad \eta(K_{\max}, V, \mu) \;=\; \frac{K(K_{\max}, V, \mu)}{K_{\max}},K(Kmax​,V,μ)=Φe​(μ)Φv​(Kmax​,V,μ)​,η(Kmax​,V,μ)=Kmax​K(Kmax​,V,μ)​,

and, for a real number PPP,

Ksource(Kmax⁡,V,μ,P)  =  Φv(Kmax⁡,V,μ)P.K_{\mathrm{source}}(K_{\max}, V, \mu, P) \;=\; \frac{\Phi_v(K_{\max}, V, \mu)}{P}.Ksource​(Kmax​,V,μ,P)=PΦv​(Kmax​,V,μ)​.

All three are ordinary real division, so they return 000 when the denominator is 000 (μ\muμ the zero or infinite-mass measure, Kmax⁡=0K_{\max} = 0Kmax​=0, P=0P = 0P=0); no hypothesis prevents this at the level of the definitions.

Finally, for Φ:R→R\Phi : \mathbb{R} \to \mathbb{R}Φ:R→R it defines the measure

ofDensity(Φ)(A)  =  ∫Amax⁡(Φ(λ),0) dλ,\mathrm{ofDensity}(\Phi)(A) \;=\; \int_A \max(\Phi(\lambda), 0)\, \mathrm{d}\lambda ,ofDensity(Φ)(A)=∫A​max(Φ(λ),0)dλ,

namely Lebesgue measure weighted by the density λ↦max⁡(Φ(λ),0)\lambda \mapsto \max(\Phi(\lambda),0)λ↦max(Φ(λ),0) (the conversion of a real to an extended nonnegative real truncates negative values to 000).

Human review
  • Endorsed by Shuze Chen · Sep 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 24, 2026

    Confirmed by the mission captain (proposal self-audit).

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me