Newtonian gravitation: point force, fields, potential, symmetric mass distributions
DefinitionNewtonGravitation_DefsThis bundle fixes the objects of Newtonian gravitation used by every statement in the mission. Space is with the Euclidean norm, and .
- Point force (vector form of the law). For masses at positions ,
the force applied on body 2 by body 1. 2. Point field of a mass at : . 3. Point potential of a mass at : . 4. Field of a mass distribution (a measure on ):
- Spherical symmetry: for every linear isometry of .
- Uniform shell : the surface measure of the unit sphere, pushed forward by and scaled to total mass .
- Uniform solid ball : Lebesgue measure on the open ball , scaled to total mass .
These are the basic notions in terms of which the shell theorem and its corollaries are stated.
Formalization Note At coincident points the formulas divide by zero; Lean's convention makes the point force and point field equal to there, and the corresponding theorems exclude that case where relevant. A non-integrable Bochner integral is . For the "uniform ball" is the zero measure; theorems assume positive radii.
import Mathlib
open MeasureTheory
namespace NewtonGravitation
/-- Physical space: three-dimensional Euclidean space. -/
abbrev Space := EuclideanSpace ℝ (Fin 3)
/-- The Newtonian constant of gravitation, `G = 6.67430 × 10⁻¹¹ m³ kg⁻¹ s⁻²` (CODATA 2022). -/
noncomputable def G : ℝ := 6.67430e-11
/-- Vector form of Newton's law: the force `F₂₁` applied on body 2 (mass `m₂`, position `r₂`)
exerted by body 1 (mass `m₁`, position `r₁`):
`F₂₁ = -G m₁ m₂ / ‖r₂₁‖² • r̂₂₁`, with `r₂₁ = r₂ - r₁` and `r̂₂₁ = r₂₁ / ‖r₂₁‖`. -/
noncomputable def pointForce (m₁ m₂ : ℝ) (r₁ r₂ : Space) : Space :=
-(G * m₁ * m₂ / ‖r₂ - r₁‖ ^ 2) • (‖r₂ - r₁‖⁻¹ • (r₂ - r₁))
/-- Gravitational field at `x` of a point mass `M` located at `c`:
`g(x) = -G M / ‖x - c‖³ • (x - c)`. -/
noncomputable def pointField (M : ℝ) (c x : Space) : Space :=
-(G * M / ‖x - c‖ ^ 3) • (x - c)
/-- Gravitational potential at `x` of a point mass `M` located at `c`: `V(x) = -G M / ‖x - c‖`. -/
noncomputable def pointPotential (M : ℝ) (c x : Space) : ℝ :=
-(G * M / ‖x - c‖)
/-- Gravitational field at `x` produced by a mass distribution `μ` (a measure on space, giving the
mass of each region): the superposition (integral) of the point-mass fields of its elements,
`g_μ(x) = ∫ -G / ‖x - y‖³ • (x - y) dμ(y)`. -/
noncomputable def gravField (μ : Measure Space) (x : Space) : Space :=
∫ y, -(G / ‖x - y‖ ^ 3) • (x - y) ∂μ
/-- A mass distribution is spherically symmetric about the origin if it is invariant under every
linear isometry of space (every rotation and reflection fixing the origin). -/
def IsSphericallySymmetric (μ : Measure Space) : Prop :=
∀ A : Space ≃ₗᵢ[ℝ] Space, μ.map A = μ
/-- A uniform spherical shell of total mass `M` and radius `a`, centred at the origin: the surface
measure of the unit sphere, transported to the sphere of radius `a`, normalised to total mass `M`. -/
noncomputable def uniformShell (M : NNReal) (a : ℝ) : Measure Space :=
((M : ENNReal) / (volume : Measure Space).toSphere Set.univ) •
((volume : Measure Space).toSphere.map (fun u : Metric.sphere (0 : Space) 1 => a • (u : Space)))
/-- A uniform solid ball of total mass `M` and radius `R`, centred at the origin: Lebesgue measure
restricted to the open ball, normalised to total mass `M`. -/
noncomputable def uniformBall (M : NNReal) (R : ℝ) : Measure Space :=
((M : ENNReal) / volume (Metric.ball (0 : Space) R)) • volume.restrict (Metric.ball (0 : Space) R)
end NewtonGravitation
Read-back
What the Lean code literally says, in plain math · aristotle-harmonic (same agent as drafter; non-blind)
Non-blind read-back. This read-back was written by the same agent that drafted the Lean statements (Aristotle, by Harmonic), at the proposal owner's explicit instruction. It is not independent testimony and must not be treated as a blind audit; an independent read-back is still recommended before submission.
The file declares, in the namespace NewtonGravitation, the following objects. Let be (indexed by three coordinates) with the Euclidean norm .
- is the real number (written as the decimal literal
6.67430e-11). - For real numbers (any sign) and points , the point force is
When the divisions by zero evaluate to , so .
- For a real and points : the point field (equal to when ), and the point potential (equal to when ).
- For any measure on the Borel sets of (not necessarily finite) and a point , is the Bochner integral ; the integrand is at , and if the integrand is not -integrable the value is defined to be .
- A measure is called spherically symmetric if for every linear isometric bijection the image measure equals . The symmetry centre is the origin.
- For and real (any sign), , where is Mathlib's measure on the unit sphere induced from Lebesgue measure (
Measure.toSphere, which is the Lebesgue measure of the cone over a subset of the sphere), and . The division is in the extended nonnegative reals. For this is times the point mass at ; for it is the shell of radius . - For and real , where is Lebesgue measure and the open ball; for the ball is empty and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.