Isolated -body system with pair potentials: momentum and energy are conserved
ProvedConservationLaws.nbody_momentum_and_energy_conservationLet particles in with masses interact only through pair potentials , each differentiable on , so that along a collision-free trajectory ( for ) Newton's second law reads
Then the total momentum and the total mechanical energy
are both constant in time.
import Mathlib
namespace ConservationLaws
theorem nbody_momentum_and_energy_conservation
{d N : ℕ} (m : Fin N → ℝ) (hm : ∀ i, 0 < m i)
(φ : Fin N → Fin N → ℝ → ℝ) (hφsym : ∀ i j, φ i j = φ j i)
(hφdiff : ∀ i j, ∀ r : ℝ, 0 < r → DifferentiableAt ℝ (φ i j) r)
(x v a : Fin N → ℝ → EuclideanSpace ℝ (Fin d))
(hnc : ∀ t i j, i ≠ j → x i t ≠ x j t)
(hx : ∀ i t, HasDerivAt (x i) (v i t) t)
(hv : ∀ i t, HasDerivAt (v i) (a i t) t)
(hnewton : ∀ i t, m i • a i t = ∑ j ∈ Finset.univ.erase i,
(-(deriv (φ i j) ‖x i t - x j t‖) / ‖x i t - x j t‖) • (x i t - x j t)) :
(∀ t s, ∑ i, m i • v i t = ∑ i, m i • v i s) ∧
(∀ t s,
(∑ i, (1 / 2 : ℝ) * m i * ‖v i t‖ ^ 2 + ∑ i, ∑ j ∈ Finset.Ioi i, φ i j ‖x i t - x j t‖) =
(∑ i, (1 / 2 : ℝ) * m i * ‖v i s‖ ^ 2 + ∑ i, ∑ j ∈ Finset.Ioi i, φ i j ‖x i s - x j s‖)) := by sorry
end ConservationLawsRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as drafter, non-blind
Disclosure: NON-BLIND read-back. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement, with full knowledge of the source material and of the intended meaning. It is not independent or blind testimony and must not be treated as such by any reviewer. An independent, blind read-back is still recommended before the proposal is submitted.
Fix natural numbers and and index particles by (with the usual order). Let be reals. Let for every ordered pair (including ), with as functions, and with differentiable at every (nothing is assumed at ). Let (Euclidean space). Assume:
- No collisions: whenever , for all ;
- for all : is differentiable at with derivative , and is differentiable at with derivative ;
- for all , writing :
where denotes the derivative of at (by 1, for , so this derivative exists and the division is genuine).
Conclusion — both of the following:
- for all real : ;
- for all real :
The potential energy sums each unordered pair once (). The diagonal functions never enter. Edge cases: or make all force sums empty; with makes the no-collision hypothesis unsatisfiable (all points coincide), so the statement is vacuous in that case only.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.