Central force motion, the Kepler problem, and ellipses with a focus at the origin
DefinitionDynamicsRelativity_CentralForces_DefsThis bundle sets up the objects of Tong §4 (Central Forces), and is imported by every theorem of the mission.
The arena. A point particle moves in Euclidean -space, written , with its standard inner product and norm . A trajectory is a map ; its velocity and acceleration are the first and second pointwise derivatives, and is the usual cross product .
Central force motion. Following Tong's equation (4.1), a particle of mass moves in a central force field with radial profile when
together with the standing conventions of the chapter: the mass is positive, the trajectory is twice continuously differentiable on all of , and it never meets the origin, where a central field is singular. For a force derived from a central potential one has .
The Kepler problem. The inverse-square case is , the force of Tong's potential (4.12) , with for gravitational attraction. Unfolded, a Kepler motion satisfies .
Conserved quantities. The angular momentum is the vector , and the total energy of the Kepler problem is
Swept area. The area swept by the radius vector between two times is , the invariant form of the element used in Tong §4.3.2.
Ellipse with a focus at the origin. A set qualifies when there are a nonzero normal , a second focus with , and a number with , such that is exactly the set of points of the plane with
This is the two-foci ("string") characterization, with the origin as one of the two foci; the inequality forces and rules out the degenerate loci, while gives a circle.
These definitions are the shared vocabulary of the whole series on the source notes: they are stated for a general central force wherever the source's result is general, and specialized to the inverse-square law only where it is needed.
Formalization Note. The arena is EuclideanSpace ℝ (Fin 3). Smoothness is ContDiff ℝ 2 and derivatives are Mathlib's deriv. The force enters through its radial profile rather than through a potential, so no derivative of a potential is evaluated at a point where it may fail to exist.
import Mathlib
namespace DynamicsRelativity
/-- Euclidean 3-space: the arena in which a point particle moves. -/
abbrev Vec : Type := EuclideanSpace ℝ (Fin 3)
/-- The cross product `a × b` of two vectors of Euclidean 3-space. -/
noncomputable def cross (a b : Vec) : Vec :=
WithLp.toLp 2 (crossProduct a.ofLp b.ofLp)
/-- The velocity `ẋ` of a trajectory `x : ℝ → Vec`. -/
noncomputable def vel (x : ℝ → Vec) : ℝ → Vec := deriv x
/-- The acceleration `ẍ` of a trajectory `x : ℝ → Vec`. -/
noncomputable def acc (x : ℝ → Vec) : ℝ → Vec := deriv (deriv x)
/-- `CentralForceMotion m F x` says that `x : ℝ → Vec` is the trajectory of a point
particle of mass `m > 0` moving in a central force field whose radial component at
distance `r` from the origin is `F r`; that is, Tong eq. (4.1),
`m ẍ = F(r) r̂`, where `r = ‖x‖` and `r̂ = x / ‖x‖`.
For a force derived from a central potential `V(r)` one has `F = -dV/dr`.
The trajectory is assumed twice continuously differentiable and to avoid the
origin, where a central force field is generally singular. -/
structure CentralForceMotion (m : ℝ) (F : ℝ → ℝ) (x : ℝ → Vec) : Prop where
/-- The particle has positive mass. -/
mass_pos : 0 < m
/-- The trajectory is twice continuously differentiable. -/
smooth : ContDiff ℝ 2 x
/-- The particle never reaches the centre of attraction. -/
ne_origin : ∀ t, x t ≠ 0
/-- Newton's second law for a central force. -/
eom : ∀ t, m • acc x t = (F ‖x t‖ / ‖x t‖) • x t
/-- The radial force of the inverse-square (Kepler/Coulomb) law for a particle of
mass `m`: `F(r) = -k m / r²`, the force derived from Tong's potential (4.12)
`V(r) = -k m / r`. Here `k = GM` for gravity; `k > 0` is the attractive case. -/
noncomputable def keplerForce (k m : ℝ) (r : ℝ) : ℝ := -(k * m) / r ^ 2
/-- `KeplerMotion k m x`: the trajectory of a particle of mass `m` in the
inverse-square central field of strength `k` (Tong §4.3.1, the Kepler problem). -/
def KeplerMotion (k m : ℝ) (x : ℝ → Vec) : Prop :=
CentralForceMotion m (keplerForce k m) x
/-- The angular momentum `L = m x × ẋ` of a particle of mass `m` (Tong §4, p. 48). -/
noncomputable def angularMomentum (m : ℝ) (x : ℝ → Vec) (t : ℝ) : Vec :=
m • cross (x t) (vel x t)
/-- The total energy `E = ½ m ‖ẋ‖² - k m / r` of a particle of mass `m` in the
inverse-square field of strength `k` (Tong §4.3.1, using the potential (4.12)). -/
noncomputable def keplerEnergy (k m : ℝ) (x : ℝ → Vec) (t : ℝ) : ℝ :=
(1 / 2) * m * ‖vel x t‖ ^ 2 - k * m / ‖x t‖
/-- The area swept out by the radius vector between times `t₀` and `t₁`
(Tong §4.3.2, `δA = ½ r² δθ`): for planar motion the element of area swept by the
segment joining the origin to the particle is `½ ‖x × ẋ‖ dt`. -/
noncomputable def sweptArea (x : ℝ → Vec) (t₀ t₁ : ℝ) : ℝ :=
(1 / 2) * ∫ t in t₀..t₁, ‖cross (x t) (vel x t)‖
/-- `IsEllipseWithFocusAtOrigin S` says that `S` is a (possibly circular)
nondegenerate ellipse lying in a plane through the origin, having the origin as one
of its two foci. Concretely: there are a nonzero normal vector `n`, a second focus
`c` lying in the plane `n ᗮ` through the origin, and a real number `a` with
`‖c‖ < 2a`, such that `S` consists of exactly those points `y` of that plane whose
distances to the two foci `0` and `c` sum to `2a`. -/
def IsEllipseWithFocusAtOrigin (S : Set Vec) : Prop :=
∃ (n c : Vec) (a : ℝ), n ≠ 0 ∧ inner ℝ n c = 0 ∧ ‖c‖ < 2 * a ∧
S = {y : Vec | inner ℝ n y = 0 ∧ ‖y‖ + ‖y - c‖ = 2 * a}
end DynamicsRelativity
Read-back
What the Lean code literally says, in plain math · aristotle-harmonic
⚠️ Not an independent read-back — please read first
This read-back is non-blind, and was written by the same agent that drafted the Lean statement it describes, at the explicit instruction of the proposal owner.
On this platform a read-back is normally written blind, by an independent auditor that has been shown only the Lean code — never the source text, the informal statement, or the author's intent. That independence is the whole point: it is what allows a reviewer to compare the read-back against the intended meaning and catch an unfaithful formalization.
This text cannot serve that purpose, because the same reading of the source produced both the Lean code and the description below; any misreading of the source is reproduced identically in both. It is the author's own restatement of its own code, not testimony from a second party, and no reviewer should count it as corroboration. An independent audit, if one is wanted, still needs to be carried out by an auditor that has seen only the Lean code.
This file introduces nine declarations, all in the namespace DynamicsRelativity.
The arena. abbreviates real Euclidean -space, carrying the standard inner product and the norm it induces.
Cross product. For , converts and to plain coordinate triples, applies the ordinary cross product, and converts back; with -based indices its components are .
Velocity and acceleration. For a curve , is the pointwise derivative of and is the pointwise derivative of . Both are total operations: at a time where the function being differentiated is not differentiable, the value returned is the vector rather than being undefined.
Central force motion. For a real number , a function and a curve , the proposition is the conjunction of exactly four conditions:
- ;
- is twice continuously differentiable on all of ;
- for every real ;
- for every real ,
is an arbitrary real-valued function of a real variable, subject to no continuity, sign or growth condition, and it is only ever evaluated at the nonnegative number . Condition 3 makes the division in condition 4 well defined. Time ranges over all of , so only globally defined trajectories satisfy this.
Inverse-square radial force. for real . At the expression evaluates to , since division by zero returns . No condition constrains the sign of or of in this definition.
Kepler motion. is defined to be . Unfolded it says: ; is twice continuously differentiable; for all ; and for all ,
The sign of is not constrained by this definition: gives an attractive field, a repulsive one, and free motion in a straight line.
Angular momentum. , a vector depending on the time . It is defined for any and any curve, with no hypotheses attached.
Energy. , again defined unconditionally; if the second term is by the division convention.
Swept area. . This is an oriented interval integral: exchanging and negates it. Since the integrand is a norm and so is nonnegative, the value is when and when . If the integrand is not integrable over the interval, the integral is by convention.
Ellipse with a focus at the origin. For a set of vectors, asserts that there exist vectors and a real number with , , , and
The last condition is an equality of sets, not an inclusion: must be exactly that locus, no larger and no smaller. In words: is the set of points of the plane through the origin with normal whose distances to the two points and sum to , and the second focus is required to lie in that plane. Since , the condition forces . The case is allowed and makes the circle of radius in that plane. The degenerate cases (a line segment) and (the empty set) are excluded by the strict inequality. Nothing in the predicate refers to any dynamics.