Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The 2019 SI defining constants and the derived electrical constants

Definition
elementary_charge_si_constants

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

mathematical-physicsmetrologysi-units

The definition layer of the mission. It fixes, as exact rational real numbers, the four 2019 SI defining constants used in the source: the elementary charge e=1.602176634×10−19e = 1.602176634\times10^{-19}e=1.602176634×10−19 C, the Avogadro constant NA=6.02214076×1023 mol−1N_\mathrm{A} = 6.02214076\times10^{23}\ \mathrm{mol}^{-1}NA​=6.02214076×1023 mol−1, the Planck constant h=6.62607015×10−34h = 6.62607015\times10^{-34}h=6.62607015×10−34 J s and the speed of light c=299792458c = 299792458c=299792458 m/s. It then defines, as functions of their arguments rather than as fixed numbers, the Faraday constant F=NAeF = N_\mathrm{A}eF=NA​e, the Josephson constant KJ=2e/hK_\mathrm{J} = 2e/hKJ​=2e/h, the von Klitzing constant RK=h/e2R_\mathrm{K} = h/e^2RK​=h/e2, the fine-structure constant in CODATA form α=μ0ce2/(2h)\alpha = \mu_0 c e^2/(2h)α=μ0​ce2/(2h), and the natural unit of charge q0=4πε0ℏcq_0 = \sqrt{4\pi\varepsilon_0\hbar c}q0​=4πε0​ℏc​. Units are implicit: each constant is a bare real number in the SI unit named in its docstring.

Definition code
import Mathlib

namespace ElementaryCharge

/-- The elementary charge `e`, in coulombs.  Fixed exactly by the 2019 revision
of the SI: `e = 1.602176634 × 10⁻¹⁹ C`. -/
noncomputable def eSI : ℝ := 1602176634 / 10 ^ 28

/-- The Avogadro constant `N_A`, in `mol⁻¹`.  Fixed exactly by the 2019
revision of the SI: `N_A = 6.02214076 × 10²³ mol⁻¹`. -/
noncomputable def avogadroSI : ℝ := 602214076 * 10 ^ 15

/-- The Planck constant `h`, in `J s`.  Fixed exactly by the 2019 revision of
the SI: `h = 6.62607015 × 10⁻³⁴ J s`. -/
noncomputable def planckSI : ℝ := 662607015 / 10 ^ 42

/-- The speed of light in vacuum `c`, in `m s⁻¹`: `c = 299792458 m/s` exactly. -/
noncomputable def lightSpeedSI : ℝ := 299792458

/-- The Faraday constant `F = N_A e`: the charge of one mole of electrons. -/
noncomputable def faradayConstant (NA q : ℝ) : ℝ := NA * q

/-- The Josephson constant `K_J = 2e/h`. -/
noncomputable def josephsonConstant (q hPlanck : ℝ) : ℝ := 2 * q / hPlanck

/-- The von Klitzing constant `R_K = h/e²`. -/
noncomputable def vonKlitzingConstant (q hPlanck : ℝ) : ℝ := hPlanck / q ^ 2

/-- The fine-structure constant in the form used by the CODATA relation,
`α = μ₀ c e² / (2h)`. -/
noncomputable def fineStructureConstant (q hPlanck mu0 cLight : ℝ) : ℝ :=
  mu0 * cLight * q ^ 2 / (2 * hPlanck)

/-- The natural unit of charge `q₀ = √(4π ε₀ ħ c)`, for which the fine-structure
constant equals `(e/q₀)²`. -/
noncomputable def naturalUnitCharge (eps0 hbar cLight : ℝ) : ℝ :=
  Real.sqrt (4 * Real.pi * eps0 * hbar * cLight)

end ElementaryCharge
Source
"Elementary charge", Wikipedia, https://en.wikipedia.org/wiki/Elementary_charge (uploaded PDF revision). Sections: "As a unit"; "Quantization"; "Lack of fractional charges"; "In terms of the Avogadro constant and Faraday constant"; "From the Josephson and von Klitzing constants"; "CODATA method".
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — NON-BLIND: same agent that drafted the statements, not an independent auditor

⚠ NOT INDEPENDENT TESTIMONY — NON-BLIND READ-BACK. This text was written by the same agent that drafted this Lean statement, at the explicit instruction of the proposal owner. It is not the testimony of an independent auditor with fresh context: its author knew the source material, the informal statement and the drafting intent while writing it, which is exactly the knowledge a blind read-back is supposed to exclude. It therefore carries none of the evidential weight of a blind read-back and must not be counted as one. A blind, independent audit of this item is still outstanding.

This file introduces nine real-valued definitions, all in the namespace ElementaryCharge\mathrm{ElementaryCharge}ElementaryCharge, and asserts nothing: it contains no theorems and no hypotheses.

Four are closed rational numbers, written as exact quotients of integers rather than decimal approximations:

eSI=16021766341028,NA,SI=602214076⋅1015,hSI=6626070151042,cSI=299792458.e_{\mathrm{SI}} = \frac{1602176634}{10^{28}},\qquad N_{\mathrm{A},\mathrm{SI}} = 602214076\cdot 10^{15},\qquad h_{\mathrm{SI}} = \frac{662607015}{10^{42}},\qquad c_{\mathrm{SI}} = 299792458.eSI​=10281602176634​,NA,SI​=602214076⋅1015,hSI​=1042662607015​,cSI​=299792458.

These are real numbers with no attached units; nothing in the code records a unit, a dimension, or any relation between the four.

Five are functions of real arguments, each a plain algebraic expression of its arguments and of nothing else:

  • F(N,q)=N⋅qF(N,q) = N\cdot qF(N,q)=N⋅q, for arbitrary reals NNN and qqq;
  • K(q,h)=2qhK(q,h) = \dfrac{2q}{h}K(q,h)=h2q​, for arbitrary reals qqq and hhh — at h=0h = 0h=0 this returns 000, since division by zero is total and yields zero;
  • R(q,h)=hq2R(q,h) = \dfrac{h}{q^{2}}R(q,h)=q2h​, for arbitrary reals qqq and hhh — at q=0q = 0q=0 this returns 000 for the same reason;
  • α(q,h,μ,c)=μ c q22h\alpha(q,h,\mu,c) = \dfrac{\mu\, c\, q^{2}}{2h}α(q,h,μ,c)=2hμcq2​, for arbitrary reals, again returning 000 at h=0h = 0h=0;
  • q0(ε,ℏ,c)=4πεℏcq_0(\varepsilon,\hbar,c) = \sqrt{4\pi\varepsilon\hbar c}q0​(ε,ℏ,c)=4πεℏc​, using the principal real square root, which returns 000 whenever the argument 4πεℏc4\pi\varepsilon\hbar c4πεℏc is negative.

None of the five functions is applied to the four fixed numbers here, and no function argument is constrained to be positive, nonzero, or physically meaningful. The names are labels only: nothing in the file forces the argument called hhh to be the number hSIh_{\mathrm{SI}}hSI​, and no consistency between the definitions is asserted.

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