Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Power-law forces: dG/dt=2T−n VTOTdG/dt = 2T - n\,V_{\mathrm{TOT}}dG/dt=2T−nVTOT​

Proved
VirialTheorem.virialG_hasDerivAt_power_law

by Lucas · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

classical-mechanicsvirial-theorem

Throughout, NNN point particles move in R3\mathbb R^3R3; particle kkk has constant mass mk∈Rm_k\in\mathbb Rmk​∈R, position rk(t)r_k(t)rk​(t) and velocity vk(t)v_k(t)vk​(t), and momentum pk=mkvkp_k=m_kv_kpk​=mk​vk​. Suppose the only forces are power-law pair forces, Vjk(s)=αjksnV_{jk}(s)=\alpha_{jk}s^nVjk​(s)=αjk​sn with αjk=αkj\alpha_{jk}=\alpha_{kj}αjk​=αkj​, so that at time ttt each momentum pkp_kpk​ has derivative Fk(t)=∑jFjk(r(t))F_k(t)=\sum_jF_{jk}(r(t))Fk​(t)=∑j​Fjk​(r(t)). If moreover rkr_krk​ has derivative vk(t)v_k(t)vk​(t) at ttt and the particles occupy pairwise distinct positions at time ttt, then

dGdt(t)=2T(t)−n VTOT(t).\frac{dG}{dt}(t)=2T(t)-n\,V_{\mathrm{TOT}}(t).dtdG​(t)=2T(t)−nVTOT​(t).
Preamble
import Mathlib
import Definitions.Def_virial_theorem_defs

open Filter Topology
Formal statement
namespace VirialTheorem

theorem virialG_hasDerivAt_power_law {N : ℕ} (m : Fin N → ℝ) (r v : Fin N → ℝ → Space)
    (α : Fin N → Fin N → ℝ) (n : ℝ) (t : ℝ)
    (hα : ∀ j k, α j k = α k j)
    (hr : ∀ k, HasDerivAt (r k) (v k t) t)
    (hp : ∀ k, HasDerivAt (fun s => m k • v k s)
      (netPairForce (powerLawPotential α n) (fun i => r i t) k) t)
    (hx : ∀ j k, j ≠ k → r j t ≠ r k t) :
    HasDerivAt (virialG m r v)
      (2 * kineticEnergy m v t - n * totalPotential (powerLawPotential α n) (fun i => r i t)) t := by sorry

end VirialTheorem
Source
Wikipedia, "Virial theorem" (article supplied as Virial_theorem.pdf), https://en.wikipedia.org/wiki/Virial_theorem, section 'Special case of power-law forces' (dG/dt = 2T - nV_TOT)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) - drafting agent, non-blind

Non-blind read-back. This read-back is not independent testimony. It was written by the same agent that drafted the Lean statements, with full knowledge of the source article and of the intended meaning. Reviewers must not treat it as a blind audit; an independent read-back should still be obtained before relying on it.

Let N≥0N\ge0N≥0, masses mk∈Rm_k\in\mathbb Rmk​∈R, functions rk,vk:R→R3r_k,v_k:\mathbb R\to\mathbb R^3rk​,vk​:R→R3, symmetric real coefficients αjk=αkj\alpha_{jk}=\alpha_{kj}αjk​=αkj​, a real exponent nnn and a time ttt. Assume, at the single time ttt: each rkr_krk​ has derivative vk(t)v_k(t)vk​(t); each s↦mkvk(s)s\mapsto m_kv_k(s)s↦mk​vk​(s) has derivative equal to the net power-law pair force FkF_kFk​ evaluated at the configuration (r0(t),…,rN−1(t))(r_0(t),\dots,r_{N-1}(t))(r0​(t),…,rN−1​(t)); and rj(t)≠rk(t)r_j(t)\ne r_k(t)rj​(t)=rk​(t) for j≠kj\ne kj=k. Then GGG has derivative at ttt equal to

2T(t)−n∑k∑j<kαjk∥rk(t)−rj(t)∥n.2T(t)-n\sum_k\sum_{j<k}\alpha_{jk}\|r_k(t)-r_j(t)\|^n .2T(t)−nk∑​j<k∑​αjk​∥rk​(t)−rj​(t)∥n.
Human review
  • Endorsed by Shuze Chen · Oct 8, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 8, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me