The 2019 SI defining constants and the derived electrical constants
Definitionelementary_charge_si_constantsThe 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 C, the Avogadro constant , the Planck constant J s and the speed of light m/s. It then defines, as functions of their arguments rather than as fixed numbers, the Faraday constant , the Josephson constant , the von Klitzing constant , the fine-structure constant in CODATA form , and the natural unit of charge . Units are implicit: each constant is a bare real number in the SI unit named in its docstring.
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
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 , 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:
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:
- , for arbitrary reals and ;
- , for arbitrary reals and — at this returns , since division by zero is total and yields zero;
- , for arbitrary reals and — at this returns for the same reason;
- , for arbitrary reals, again returning at ;
- , using the principal real square root, which returns whenever the argument 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 to be the number , and no consistency between the definitions is asserted.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.