Newton's second law for one realization
DefinitionLangevinHarmonicTrap_IsLangevinPathThe model predicate of the mission. For a particle of mass with hydrodynamic drag coefficient , held in a harmonic trap of spring constant and driven by the force of the surrounding medium, a path is a triple of component families (position), (velocity), (acceleration) such that is the time derivative of , is the time derivative of , and
componentwise. This is Eq. (1) of the source. Velocity and acceleration are carried as explicit data together with the statements that they are the derivatives, so that no smoothness is assumed implicitly and the later statements can quantify over the second derivative without using a junk-value convention.
import Mathlib namespace LangevinHarmonicTrap /-- Newton's second law for one realization of a particle of mass `m` with hydrodynamic drag coefficient `zeta`, trapped in a harmonic potential with spring constant `k` and driven by the force `f` of the surrounding medium, written in `d` Cartesian components: `m r̈(t) = -zeta ṙ(t) - k r(t) + f(t)`. Here `x i t` is the `i`-th component of the position, `v i t` of the velocity and `a i t` of the acceleration, and the structure records that `v` is the derivative of `x`, that `a` is the derivative of `v`, and that Newton's law holds at every time. -/ structure IsLangevinPath (d : ℕ) (m zeta k : ℝ) (x v a f : Fin d → ℝ → ℝ) : Prop where /-- the velocity is the time derivative of the position -/ hasDerivAt_pos : ∀ (i : Fin d) (t : ℝ), HasDerivAt (x i) (v i t) t /-- the acceleration is the time derivative of the velocity -/ hasDerivAt_vel : ∀ (i : Fin d) (t : ℝ), HasDerivAt (v i) (a i t) t /-- Newton's second law with drag, harmonic trap and random force -/ newton : ∀ (i : Fin d) (t : ℝ), m * a i t = -(zeta * v i t) - k * x i t + f i t 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.
The declaration introduces a predicate with eight arguments: a natural number ; three real parameters , , ; and four families , , , , each assigning to every index a real-valued function of a real variable. The predicate holds exactly when all three of the following hold.
- For every index and every real , the function is differentiable at with derivative .
- For every index and every real , the function is differentiable at with derivative .
- For every index and every real ,
Points to note about what is not required. The parameters , , are arbitrary reals: they may be zero or negative, and in particular is allowed, in which case the third condition is a first-order relation and the first two conditions still force to be twice differentiable. The family is arbitrary — no probabilistic, statistical, measurability or boundedness assumption is attached to it, and condition 3 determines uniquely from the other data, so for any with two derivatives there is exactly one making the predicate hold. Time ranges over all of , including negative times; no initial condition is imposed. Differentiability is required at every real point, so the conditions are global, not local or almost-everywhere. If the index set is empty and all three conditions hold vacuously for every choice of parameters.