Lagrange's identity: for
ProvedVirialTheorem.lagrange_identityThroughout, point particles move in ; particle has constant mass , position and velocity , and momentum . Suppose each is differentiable at all times with derivative , the particles are pairwise distinct at time , and at time each momentum has derivative equal to the net force from inverse-distance pair potentials with . Then
import Mathlib import Definitions.Def_virial_theorem_defs open Filter Topology
namespace VirialTheorem
theorem lagrange_identity {N : ℕ} (m : Fin N → ℝ) (r v : Fin N → ℝ → Space)
(α : Fin N → Fin N → ℝ) (t : ℝ)
(hα : ∀ j k, α j k = α k j)
(hr : ∀ k s, HasDerivAt (r k) (v k s) s)
(hp : ∀ k, HasDerivAt (fun s => m k • v k s)
(netPairForce (powerLawPotential α (-1)) (fun i => r i t) k) t)
(hx : ∀ j k, j ≠ k → r j t ≠ r k t) :
(1 / 2 : ℝ) * deriv (deriv (momentOfInertia m r)) t =
2 * kineticEnergy m v t + totalPotential (powerLawPotential α (-1)) (fun i => r i t) := by sorry
end VirialTheoremRead-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 , masses , functions , symmetric real coefficients and a time . Assume: for every and every time , has derivative at ; at the single time , each has derivative equal to the net pair force for potentials at the configuration ; and for . Then, writing for the derivative at of the derivative function of (Lean's deriv, which is at points of non-differentiability),
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.