Systems of base units, normalization of , and the Planck system
Definitionplanck_unitsThis bundle sets up the objects the mission is stated in terms of.
A unit system is a quadruple of real numbers: the sizes of a chosen unit of length, mass, time and temperature, measured in some fixed reference system of units (SI, say). The predicate IsPositive says all four are strictly positive.
Given four real constants , the predicate Normalizes says that each of them has numerical value when expressed in the units of , i.e. that
the four left-hand sides being the coherent unit of speed, of the dimension of the gravitational constant, of action, and of heat capacity.
Finally, planckSystem is the quadruple of Table 1 of the source,
import Mathlib namespace PlanckUnits /-- A system of base units: a length, mass, time and temperature, recorded as bare real numbers (their sizes in some fixed reference system). Positivity is not built in; it is imposed separately by `UnitSystem.IsPositive`. -/ structure UnitSystem where length : ℝ mass : ℝ time : ℝ temperature : ℝ /-- All four base units are positive. -/ def UnitSystem.IsPositive (u : UnitSystem) : Prop := 0 < u.length ∧ 0 < u.mass ∧ 0 < u.time ∧ 0 < u.temperature /-- `u` normalizes the four constants `c`, `G`, `ħ`, `k_B`: measured in the base units of `u`, each of the four has numerical value `1`. Written out, the speed `length/time`, the quantity `length³/(mass·time²)`, the action `mass·length²/time` and the heat capacity `mass·length²/(time²·temperature)` equal `c`, `G`, `ħ` and `k_B` respectively. -/ def UnitSystem.Normalizes (u : UnitSystem) (c G hbar kB : ℝ) : Prop := u.length / u.time = c ∧ u.length ^ 3 / (u.mass * u.time ^ 2) = G ∧ u.mass * u.length ^ 2 / u.time = hbar ∧ u.mass * u.length ^ 2 / (u.time ^ 2 * u.temperature) = kB /-- The Planck system of units: `l_P = √(ħG/c³)`, `m_P = √(ħc/G)`, `t_P = √(ħG/c⁵)`, `T_P = √(ħc⁵/G)/k_B`. -/ noncomputable def planckSystem (c G hbar kB : ℝ) : UnitSystem where length := Real.sqrt (hbar * G / c ^ 3) mass := Real.sqrt (hbar * c / G) time := Real.sqrt (hbar * G / c ^ 5) temperature := Real.sqrt (hbar * c ^ 5 / G) / kB end PlanckUnits
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Disclosure — non-blind read-back. This read-back was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal owner; it was not produced by an independent auditor working blind from the code alone. It is therefore not independent testimony and must not be treated as such: when auditing this item, read it as the author's own restatement, and check it against the Lean code directly.
This bundle introduces three items and no assertions.
1. Unit systems. A unit system is a record of four arbitrary real numbers, named (length), (mass), (time) and (temperature). Nothing is assumed about them at this point: they may be zero or negative. Two unit systems are equal exactly when all four components agree.
2. Positivity. For a unit system , the predicate IsPositive is the conjunction , , , .
3. Normalization. For a unit system and four arbitrary reals , the predicate Normalizes is the conjunction of the four equations
These are written with division. Division here is the total operation on the reals, in which division by zero returns zero; so, for a degenerate unit system, e.g. one with , the first conjunct asserts rather than being undefined, and similarly for the others.
4. The Planck system. For four arbitrary reals , planckSystem is the unit system whose four components are
The square root is the total real square root, which returns at negative arguments, and the divisions are again total; so for arguments that are not all positive these components may be rather than undefined. No positivity of is assumed in the definition itself.