One-dimensional relativistic kinematics: , , , boosts,
DefinitionSpeedOfLight_kinematicsThe definition layer for the mission, in one spatial dimension and for an arbitrary invariant speed . It introduces relativistic velocity addition ; the Lorentz factor ; the Lorentz interval of an event with spatial coordinate and time coordinate ; the Lorentz boost of velocity , which sends to ; and the relativistic kinetic energy of a body of rest mass at speed . All five are total real functions: outside the subluminal range the Lorentz factor takes the junk value , because the real square root of a negative number is , and velocity addition takes the junk value where its denominator vanishes. The theorems of the mission therefore carry explicit hypotheses and .
import Mathlib namespace SpeedOfLight /-- Relativistic (Einstein) velocity addition of the speeds `u` and `v` at invariant speed `c`, in one spatial dimension. -/ noncomputable def velAdd (c u v : ℝ) : ℝ := (u + v) / (1 + u * v / c ^ 2) /-- The Lorentz factor `γ = 1 / √(1 - v ^ 2 / c ^ 2)`. -/ noncomputable def lorentzFactor (c v : ℝ) : ℝ := 1 / Real.sqrt (1 - v ^ 2 / c ^ 2) /-- The Lorentz (spacetime) interval `c ^ 2 * t ^ 2 - x ^ 2` of an event with spatial coordinate `x` and time coordinate `t`. -/ noncomputable def lorentzInterval (c x t : ℝ) : ℝ := c ^ 2 * t ^ 2 - x ^ 2 /-- The Lorentz boost of velocity `v`, sending an event `(x, t)` to its coordinates `(γ * (x - v * t), γ * (t - v * x / c ^ 2))` in the moving frame. -/ noncomputable def boost (c v x t : ℝ) : ℝ × ℝ := (lorentzFactor c v * (x - v * t), lorentzFactor c v * (t - v * x / c ^ 2)) /-- The relativistic kinetic energy `(γ - 1) * m * c ^ 2` of a body of rest mass `m` moving with speed `v`. -/ noncomputable def kineticEnergy (c m v : ℝ) : ℝ := (lorentzFactor c v - 1) * m * c ^ 2 end SpeedOfLight
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the statement author; non-blind
Disclosure — this read-back is NOT blind and NOT independent. It was written by the same agent that drafted this Lean statement, at the explicit instruction of the proposal owner, with full sight of the source material and of the intended meaning. It is an author's restatement of the code, not independent testimony, and must not be mistaken for an independent audit.
This file introduces five total real-valued functions and proves nothing.
Velocity addition. , defined for all real . Since division in the reals is total, the value is whenever , and the expression is itself when , so .
Lorentz factor. , using the real square root, which returns on negative arguments. Consequently: if the value is the usual ; if then , the square root is , and the value is ; if the value is again ; and for every , because .
Lorentz interval. , a plain polynomial in three real arguments, with the time term carrying the positive sign.
Boost. is the ordered pair of reals
whose first component is spatial and whose second is temporal; it inherits every junk value of , so for the pair is .
Kinetic energy. , again total; for it equals , and it is at .
No positivity, no subluminality, and no physical interpretation is imposed at the level of these definitions; all such restrictions must come from hypotheses in the theorems that use them.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.