Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Virial of potential pair forces: ∑kFk⋅rk=−∑j<kVjk′(rjk) rjk\sum_k F_k\cdot r_k=-\sum_{j<k}V'_{jk}(r_{jk})\,r_{jk}∑k​Fk​⋅rk​=−∑j<k​Vjk′​(rjk​)rjk​

Proved
VirialTheorem.virial_central_potential

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

classical-mechanicsvirial-theorem

Let x1,…,xN∈R3x_1,\dots,x_N\in\mathbb R^3x1​,…,xN​∈R3 be pairwise distinct and let Vjk:R→RV_{jk}:\mathbb R\to\mathbb RVjk​:R→R be pair potentials with Vjk=VkjV_{jk}=V_{kj}Vjk​=Vkj​, each VjkV_{jk}Vjk​ (j≠kj\ne kj=k) differentiable at rjk=∥xk−xj∥r_{jk}=\|x_k-x_j\|rjk​=∥xk​−xj​∥. With Fjk=−∇xkVjk(∥xk−xj∥)F_{jk}=-\nabla_{x_k}V_{jk}(\|x_k-x_j\|)Fjk​=−∇xk​​Vjk​(∥xk​−xj​∥) and Fk=∑jFjkF_k=\sum_j F_{jk}Fk​=∑j​Fjk​,

∑k=1NFk⋅xk=−∑k=1N∑j<kVjk′(rjk) rjk.\sum_{k=1}^N F_k\cdot x_k=-\sum_{k=1}^N\sum_{j<k}V_{jk}'(r_{jk})\,r_{jk}.k=1∑N​Fk​⋅xk​=−k=1∑N​j<k∑​Vjk′​(rjk​)rjk​.
Preamble
import Mathlib
import Definitions.Def_virial_theorem_defs

open Filter Topology
Formal statement
namespace VirialTheorem

theorem virial_central_potential {N : ℕ} (V : Fin N → Fin N → ℝ → ℝ) (x : Fin N → Space)
    (hsymm : ∀ j k, V j k = V k j)
    (hx : ∀ j k, j ≠ k → x j ≠ x k)
    (hV : ∀ j k, j ≠ k → DifferentiableAt ℝ (V j k) (dist (x k) (x j))) :
    ∑ k, inner ℝ (netPairForce V x k) (x k) =
      -∑ k, ∑ j ∈ Finset.univ.filter (fun j => j < k),
        deriv (V j k) (dist (x k) (x j)) * dist (x k) (x j) := by sorry

end VirialTheorem
Source
Wikipedia, "Virial theorem" (article supplied as Virial_theorem.pdf), https://en.wikipedia.org/wiki/Virial_theorem, section 'Connection with the potential energy between particles' (final formula)
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, pair potentials Vjk:R→RV_{jk}:\mathbb R\to\mathbb RVjk​:R→R and x∈(R3)Nx\in(\mathbb R^3)^Nx∈(R3)N, with (i) Vjk=VkjV_{jk}=V_{kj}Vjk​=Vkj​ for all j,kj,kj,k; (ii) xj≠xkx_j\ne x_kxj​=xk​ for j≠kj\ne kj=k; (iii) VjkV_{jk}Vjk​ differentiable at ∥xk−xj∥\|x_k-x_j\|∥xk​−xj​∥ for all j≠kj\ne kj=k. Then, with Fk(x)=∑jFjk(x)F_k(x)=\sum_j F_{jk}(x)Fk​(x)=∑j​Fjk​(x) the net pair force,

∑k⟨Fk(x),xk⟩=−∑k∑j<kVjk′(∥xk−xj∥) ∥xk−xj∥.\sum_k\langle F_k(x),x_k\rangle=-\sum_k\sum_{j<k}V_{jk}'\big(\|x_k-x_j\|\big)\,\|x_k-x_j\| .k∑​⟨Fk​(x),xk​⟩=−k∑​j<k∑​Vjk′​(∥xk​−xj​∥)∥xk​−xj​∥.
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