Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

First and second time derivatives of r2r^2r2 along a path

Proved
LangevinHarmonicTrap.sqDisp_hasDerivAt

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

brownian-motionlangevin-equationmathematical-physics

The kinematic half of part (a): along any path of the model, the squared displacement S=r2S = r^2S=r2 is twice differentiable with

S˙=2 r⋅r˙,S¨=2(r˙2+r⋅r¨),\dot S = 2\, r\cdot\dot r, \qquad \ddot S = 2\bigl(\dot r^2 + r\cdot\ddot r\bigr),S˙=2r⋅r˙,S¨=2(r˙2+r⋅r¨),

which is the identity that lets r⋅r¨r\cdot\ddot rr⋅r¨ be traded for 12S¨−r˙2\tfrac12\ddot S - \dot r^221​S¨−r˙2 in Newton's equation.

Preamble
import Mathlib
import Definitions.Def_LangevinHarmonicTrap_dotSum
import Definitions.Def_LangevinHarmonicTrap_IsLangevinPath

open Finset
Formal statement
namespace LangevinHarmonicTrap

theorem sqDisp_hasDerivAt {d : ℕ} {m zeta k : ℝ} {x v a f : Fin d → ℝ → ℝ}
    (h : IsLangevinPath d m zeta k x v a f) :
    (∀ t : ℝ, HasDerivAt (dotSum d x x) (2 * dotSum d x v t) t) ∧
      (∀ t : ℝ, HasDerivAt (fun s : ℝ => 2 * dotSum d x v s)
        (2 * (dotSum d v v t + dotSum d x a t)) 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, real parameters mmm, ζ\zetaζ, kkk, and four families of real functions xxx, vvv, aaa, fff indexed by i∈{0,…,d−1}i \in \{0,\dots,d-1\}i∈{0,…,d−1}. Assume the model predicate: for all iii and all real ttt, xix_ixi​ is differentiable at ttt with derivative vi(t)v_i(t)vi​(t), viv_ivi​ is differentiable at ttt with derivative ai(t)a_i(t)ai​(t), and m ai(t)=−(ζvi(t))−k xi(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 time ttt for ∑iui(t)wi(t)\sum_{i} u_i(t) w_i(t)∑i​ui​(t)wi​(t).

The conclusion is the conjunction of two statements, each quantified over all real ttt:

  1. the function s↦∑ixi(s)2s \mapsto \sum_i x_i(s)^2s↦∑i​xi​(s)2 is differentiable at ttt with derivative 2∑ixi(t)vi(t)2\sum_i x_i(t) v_i(t)2∑i​xi​(t)vi​(t);
  2. the function s↦2∑ixi(s)vi(s)s \mapsto 2\sum_i x_i(s) v_i(s)s↦2∑i​xi​(s)vi​(s) is differentiable at ttt with derivative 2(∑ivi(t)2+∑ixi(t)ai(t))2\bigl(\sum_i v_i(t)^2 + \sum_i x_i(t) a_i(t)\bigr)2(∑i​vi​(t)2+∑i​xi​(t)ai​(t)).

The second statement is about the derivative of the specific function displayed in the first, so together they express that r2r^2r2 is twice differentiable everywhere with the stated first and second derivatives. The algebraic relation mai=−ζvi−kxi+fim a_i = -\zeta v_i - k x_i + f_imai​=−ζvi​−kxi​+fi​ is available as a hypothesis but no part of the conclusion mentions mmm, ζ\zetaζ, kkk or fff. Both claims hold at every real ttt, negative times included, and are vacuous content-free identities 0=00 = 00=0 when d=0d = 0d=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