Solution of the MSD equation with
ProvedLangevinHarmonicTrap.msd_solutionPart (d) of the source. Let be two distinct roots of the characteristic polynomial of the MSD equation. Then
is twice differentiable, solves , and starts from rest at the origin: and — the initial conditions appropriate to a particle whose displacement is measured from its position at .
import Mathlib open Real
namespace LangevinHarmonicTrap
theorem msd_solution {d : ℕ} {m zeta k kB T lamP lamM : ℝ}
(hk : k ≠ 0) (hne : lamP ≠ lamM)
(hrootP : m * lamP ^ 2 + zeta * lamP + 2 * k = 0)
(hrootM : m * lamM ^ 2 + zeta * lamM + 2 * k = 0)
(M M1 M2 : ℝ → ℝ)
(hM : ∀ t : ℝ, M t = d * kB * T / k *
(1 + (lamM * Real.exp (lamP * t) - lamP * Real.exp (lamM * t)) / (lamP - lamM)))
(hM1 : ∀ t : ℝ, M1 t = d * kB * T / k *
(lamP * lamM * (Real.exp (lamP * t) - Real.exp (lamM * t)) / (lamP - lamM)))
(hM2 : ∀ t : ℝ, M2 t = d * kB * T / k *
(lamP * lamM * (lamP * Real.exp (lamP * t) - lamM * Real.exp (lamM * t))
/ (lamP - lamM))) :
(∀ t : ℝ, HasDerivAt M (M1 t) t) ∧ (∀ t : ℝ, HasDerivAt M1 (M2 t) t) ∧
(∀ t : ℝ, m * M2 t + zeta * M1 t + 2 * k * M t = 2 * (d * kB * T)) ∧
M 0 = 0 ∧ M1 0 = 0 := by sorry
end LangevinHarmonicTrap
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 natural number and reals , , , , , , subject to: ; ; and both characteristic equations
Fix three real functions , , of a real variable given explicitly, for every real , by
with coerced from a natural number to a real and the real exponential.
The conclusion is the conjunction of five claims:
- for every real , is differentiable at with derivative ;
- for every real , is differentiable at with derivative ;
- for every real , ;
- ;
- .
The roots are only required to be distinct and to satisfy the characteristic equation; they are not required to be real-negative, nor ordered, nor is any discriminant condition imposed, and or may vanish provided two distinct roots still exist. Degenerate parameter choices are silently included: if or then is identically zero and all five claims hold trivially. The statement asserts that this particular solves the equation; it asserts nothing about uniqueness, and nothing about the case .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.