Special-relativistic kinematics for mass–energy equivalence: Lorentz factor, relativistic energy, momentum and mass, rest and kinetic energy, invariant mass, boosts
DefinitionMassEnergyEquivalence_DefsBasic objects of special-relativistic kinematics with an explicit speed of light , as used in the article Mass–energy equivalence.
Velocities and momenta are vectors in with the Euclidean norm ; the coordinates are indexed here ( in Lean). For a speed of light , a rest mass and a velocity :
- Lorentz factor .
- Relativistic energy .
- Relativistic momentum .
- Rest energy .
- Kinetic energy .
- Relativistic mass .
- Invariant mass of a finite system of free particles with rest masses and velocities :
where , are the relativistic energy and momentum of particle ; i.e. is the total energy divided by in the centre-of-momentum frame. 8. Lorentz boost with speed along the first axis, , acting on an energy–momentum pair :
These are the objects in terms of which the article states , its extension to moving systems, the low-speed expansion, and the invariance of rest/invariant mass.
Formalization Note is EuclideanSpace ℝ (Fin 3). All quantities are total functions: when (or ) the square root returns the junk value , hence ; every theorem of the mission therefore assumes and (resp. ). For the divisions by return . Inside the invariant-mass square root a negative argument would give ; for physical data (, ) the argument is non-negative.
import Mathlib
namespace MassEnergyEquivalence
/-- Three-dimensional Euclidean space `ℝ³`, the space of velocities and momenta. -/
abbrev Vec3 : Type := EuclideanSpace ℝ (Fin 3)
/-- The Lorentz factor `γ = 1 / √(1 - ‖v‖² / c²)` of a velocity `v ∈ ℝ³`, where `c` is the
speed of light. For `‖v‖ ≥ c` the square root is the junk value `0` and so is `γ`. -/
noncomputable def lorentzFactor (c : ℝ) (v : Vec3) : ℝ :=
1 / Real.sqrt (1 - ‖v‖ ^ 2 / c ^ 2)
/-- The relativistic energy `E_rel = γ m c²` of a body of rest mass `m` moving with
velocity `v`. -/
noncomputable def relEnergy (c m : ℝ) (v : Vec3) : ℝ :=
lorentzFactor c v * m * c ^ 2
/-- The relativistic momentum `p = γ m v` of a body of rest mass `m` moving with velocity `v`. -/
noncomputable def relMomentum (c m : ℝ) (v : Vec3) : Vec3 :=
(lorentzFactor c v * m) • v
/-- The rest energy `E₀ = m c²` of a body of rest mass `m`. -/
noncomputable def restEnergy (c m : ℝ) : ℝ :=
m * c ^ 2
/-- The relativistic kinetic energy `E_k = E_rel - m c² = m c² (γ - 1)`. -/
noncomputable def kineticEnergy (c m : ℝ) (v : Vec3) : ℝ :=
relEnergy c m v - restEnergy c m
/-- The relativistic mass `m_rel = E_rel / c²`. -/
noncomputable def relMass (c m : ℝ) (v : Vec3) : ℝ :=
relEnergy c m v / c ^ 2
/-- The invariant mass `M` of a finite system of free particles indexed by `s`, particle `i`
having rest mass `m i` and velocity `v i`:
`M = √((Σ E_i)² - c² ‖Σ p_i‖²) / c²`. -/
noncomputable def invariantMass {ι : Type*} (s : Finset ι) (c : ℝ) (m : ι → ℝ)
(v : ι → Vec3) : ℝ :=
Real.sqrt ((∑ i ∈ s, relEnergy c (m i) (v i)) ^ 2
- c ^ 2 * ‖∑ i ∈ s, relMomentum c (m i) (v i)‖ ^ 2) / c ^ 2
/-- The Lorentz factor `γ_u = 1 / √(1 - u² / c²)` of a boost with speed `u` along the
first coordinate axis. -/
noncomputable def boostFactor (c u : ℝ) : ℝ :=
1 / Real.sqrt (1 - u ^ 2 / c ^ 2)
/-- Energy measured in a frame moving with speed `u` along the first coordinate axis:
`E' = γ_u (E - u p₁)`. -/
noncomputable def boostEnergy (c u E : ℝ) (p : Vec3) : ℝ :=
boostFactor c u * (E - u * p 0)
/-- Momentum measured in a frame moving with speed `u` along the first coordinate axis:
`p' = (γ_u (p₁ - u E / c²), p₂, p₃)`. -/
noncomputable def boostMomentum (c u E : ℝ) (p : Vec3) : Vec3 :=
!₂[boostFactor c u * (p 0 - u * E / c ^ 2), p 1, p 2]
end MassEnergyEquivalence
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind
Disclosure — this is NOT a blind read-back. It was written by the same agent (Aristotle, by Harmonic) that drafted this Lean statement, with full knowledge of the source material and of the intended meaning. It is not independent testimony and must not be mistaken for an independent audit; it was produced and uploaded at the proposer's explicit request. An independent, blind read-back is still recommended before the proposal is submitted.
The file introduces, in a namespace MassEnergyEquivalence, the following objects. Throughout, denotes three-dimensional Euclidean space with norm and coordinates (Lean indices ); , , , are arbitrary real numbers (the definitions impose no sign conditions). is the real square root, which returns on negative inputs, and division by returns .
- for . It equals whenever (e.g. and ); if then and .
- .
- .
- .
- .
- (equal to when ).
- For a type , a finite set , masses and velocities :
with the same truncated square root (a negative radicand gives ). For the sums are and . 8. (same conventions), and for , :
The file contains no hypotheses, axioms or theorems; all objects are plain (noncomputable) definitions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.