Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Conservation of momentum from Newton's third law

Proved
ConservationLaws.momentum_conservation_of_third_law

by Lucas · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

conservation-lawmechanicsmomentum

Let NNN particles in Rd\mathbb{R}^dRd have masses mi>0m_i > 0mi​>0, velocities vi(t)v_i(t)vi​(t) and accelerations ai(t)=v˙i(t)a_i(t) = \dot v_i(t)ai​(t)=v˙i​(t). Suppose the only forces are internal forces Fij(t)F_{ij}(t)Fij​(t) (force on iii due to jjj) obeying Newton's third law Fij(t)=−Fji(t)F_{ij}(t) = -F_{ji}(t)Fij​(t)=−Fji​(t), and Newton's second law miai(t)=∑jFij(t)m_i a_i(t) = \sum_j F_{ij}(t)mi​ai​(t)=∑j​Fij​(t) holds. Then the total momentum P(t)=∑imivi(t)P(t) = \sum_i m_i v_i(t)P(t)=∑i​mi​vi​(t) is constant: P(t)=P(s)P(t) = P(s)P(t)=P(s) for all t,st, st,s.

Preamble
import Mathlib
Formal statement
namespace ConservationLaws

theorem momentum_conservation_of_third_law
    {d N : ℕ} (m : Fin N → ℝ) (hm : ∀ i, 0 < m i)
    (v a : Fin N → ℝ → EuclideanSpace ℝ (Fin d))
    (F : Fin N → Fin N → ℝ → EuclideanSpace ℝ (Fin d))
    (hthird : ∀ i j t, F i j t = -F j i t)
    (hv : ∀ i t, HasDerivAt (v i) (a i t) t)
    (hnewton : ∀ i t, m i • a i t = ∑ j, F i j t) :
    ∀ t s, ∑ i, m i • v i t = ∑ i, m i • v i s := by sorry

end ConservationLaws
Source
Wikipedia, "Momentum" (uploaded PDF), https://en.wikipedia.org/wiki/Momentum, section "Conservation" (total change in momentum of interacting particles is zero)
Read-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 ddd and NNN. Let m1,…,mNm_1,\dots,m_Nm1​,…,mN​ be real numbers with mi>0m_i > 0mi​>0 for every iii. Let vi,ai:R→Rdv_i, a_i : \mathbb{R} \to \mathbb{R}^dvi​,ai​:R→Rd (i=1,…,Ni = 1,\dots,Ni=1,…,N) be functions, where Rd\mathbb{R}^dRd is Euclidean space, and let Fij:R→RdF_{ij} : \mathbb{R} \to \mathbb{R}^dFij​:R→Rd be functions for every ordered pair (i,j)(i,j)(i,j), including i=ji = ji=j. Assume:

  1. Fij(t)=−Fji(t)F_{ij}(t) = -F_{ji}(t)Fij​(t)=−Fji​(t) for all i,j,ti, j, ti,j,t (in particular Fii(t)=0F_{ii}(t) = 0Fii​(t)=0);
  2. for every iii and every ttt, viv_ivi​ is differentiable at ttt with derivative ai(t)a_i(t)ai​(t);
  3. for every iii and ttt, mi ai(t)=∑j=1NFij(t)m_i\, a_i(t) = \sum_{j=1}^N F_{ij}(t)mi​ai​(t)=∑j=1N​Fij​(t) (sum over all jjj, including j=ij = ij=i).

Conclusion: for all real t,st, st,s,

∑i=1Nmivi(t)=∑i=1Nmivi(s).\sum_{i=1}^N m_i v_i(t) = \sum_{i=1}^N m_i v_i(s).i=1∑N​mi​vi​(t)=i=1∑N​mi​vi​(s).

Edge cases: N=0N = 0N=0 makes both sums zero; d=0d = 0d=0 makes Rd\mathbb{R}^dRd a single point. No position functions appear. The positivity of the masses is assumed but the conclusion does not mention it.

Human review
  • Endorsed by Shuze Chen · Oct 10, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 10, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me