Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Langevin's rearrangement: m2S¨+ζ2S˙+kS=mr˙2+r⋅f\tfrac{m}{2}\ddot S + \tfrac{\zeta}{2}\dot S + kS = m\dot r^2 + r\cdot f2m​S¨+2ζ​S˙+kS=mr˙2+r⋅f

Proved
LangevinHarmonicTrap.pathwise_identity

by LG · Sep 19, 2026 · Mathlib 0df444a (Lean v4.33.1)

brownian-motionlangevin-equationmathematical-physics

Part (a) of the source. Multiplying Newton's equation by rrr and rearranging, every realization of the dynamics satisfies, with S=r2S = r^2S=r2,

m2 S¨(t)+ζ2 S˙(t)+k S(t)  =  m r˙(t)2+r(t)⋅f(t).\frac{m}{2}\,\ddot S(t) + \frac{\zeta}{2}\,\dot S(t) + k\,S(t) \;=\; m\,\dot r(t)^2 + r(t)\cdot f(t).2m​S¨(t)+2ζ​S˙(t)+kS(t)=mr˙(t)2+r(t)⋅f(t).

This is a deterministic identity, valid path by path, with no averaging and no assumption on the random force; the first and second derivatives of SSS enter through hypotheses naming them, so the statement is exactly a differential identity in r2r^2r2 and r˙2\dot r^2r˙2.

Preamble
import Mathlib
import Definitions.Def_LangevinHarmonicTrap_dotSum
import Definitions.Def_LangevinHarmonicTrap_IsLangevinPath

open Finset
Formal statement
namespace LangevinHarmonicTrap

theorem pathwise_identity {d : ℕ} {m zeta k : ℝ} {x v a f : Fin d → ℝ → ℝ}
    (h : IsLangevinPath d m zeta k x v a f)
    (S S1 S2 : ℝ → ℝ)
    (hS : ∀ t : ℝ, S t = dotSum d x x t)
    (hS1 : ∀ t : ℝ, HasDerivAt S (S1 t) t)
    (hS2 : ∀ t : ℝ, HasDerivAt S1 (S2 t) t) :
    ∀ t : ℝ, m / 2 * S2 t + zeta / 2 * S1 t + k * S t
      = m * dotSum d v v t + dotSum d x f t := by sorry

end LangevinHarmonicTrap
Source
Nonequilibrium Statistical Physics, Honour School of Mathematical and Theoretical Physics Part C / MSc in Mathematical and Theoretical Physics, Trinity Term 2018, paper A15282W1, Question 1 (parts (a), (b), (d), (e)), Eq. (1); Langevin's 1908 method, cf. D. S. Lemons and A. Gythiel, Am. J. Phys. 65 (1997) 1079, https://doi.org/10.1119/1.18725
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Disclosure — non-blind read-back. This read-back was written by the same agent that drafted the Lean statement above, not by an independent auditor working from the code alone. It is therefore not independent testimony: it may reproduce the author's intended reading rather than an outside reading of the code, and a reviewer should not treat it as a second, corroborating opinion.

Fix a dimension ddd, reals mmm, ζ\zetaζ, kkk, and families xxx, vvv, aaa, fff of real functions indexed by i∈{0,…,d−1}i \in \{0,\dots,d-1\}i∈{0,…,d−1} satisfying the model predicate: for every iii and every real ttt, xi′(t)=vi(t)x_i' (t) = v_i(t)xi′​(t)=vi​(t), vi′(t)=ai(t)v_i'(t) = a_i(t)vi′​(t)=ai​(t), and mai(t)=−(ζvi(t))−kxi(t)+fi(t)m a_i(t) = -(\zeta v_i(t)) - k x_i(t) + f_i(t)mai​(t)=−(ζvi​(t))−kxi​(t)+fi​(t). Write u⋅wu\cdot wu⋅w at ttt for ∑iui(t)wi(t)\sum_i u_i(t) w_i(t)∑i​ui​(t)wi​(t).

Further fix three real functions SSS, S1S_1S1​, S2S_2S2​ of a real variable subject to three hypotheses: S(t)=∑ixi(t)2S(t) = \sum_i x_i(t)^2S(t)=∑i​xi​(t)2 for every ttt; SSS is differentiable at every ttt with derivative S1(t)S_1(t)S1​(t); and S1S_1S1​ is differentiable at every ttt with derivative S2(t)S_2(t)S2​(t). (Thus S1S_1S1​ and S2S_2S2​ are forced to be the first and second derivatives of r2r^2r2; they are not free.)

The conclusion is that for every real ttt,

m2 S2(t)+ζ2 S1(t)+k S(t)  =  m∑ivi(t)2  +  ∑ixi(t)fi(t).\frac{m}{2}\,S_2(t) + \frac{\zeta}{2}\,S_1(t) + k\,S(t) \;=\; m \sum_i v_i(t)^2 \; + \; \sum_i x_i(t) f_i(t).2m​S2​(t)+2ζ​S1​(t)+kS(t)=mi∑​vi​(t)2+i∑​xi​(t)fi​(t).

No positivity or nonvanishing is assumed of mmm, ζ\zetaζ or kkk; no averaging, probability space or statistical property of fff appears; the identity is asserted for each individual path and at every real time, negative times included. For d=0d = 0d=0 every term is 000 and the identity is 0=00 = 00=0.

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

    Confirmed by the moderator at approval.

  • Endorsed by LG · 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me