Conservation of mechanical energy in a conservative force field
ProvedConservationLaws.mechanical_energy_conservationA particle of mass moves in under a force derived from a differentiable potential , i.e. . Then the mechanical energy
is constant in time.
import Mathlib
namespace ConservationLaws
theorem mechanical_energy_conservation
{d : ℕ} (m : ℝ) (hm : 0 < m)
(V : EuclideanSpace ℝ (Fin d) → ℝ) (hV : Differentiable ℝ V)
(x v a : ℝ → EuclideanSpace ℝ (Fin d))
(hx : ∀ t, HasDerivAt x (v t) t)
(hv : ∀ t, HasDerivAt v (a t) t)
(hnewton : ∀ t, m • a t = -gradient V (x t)) :
∀ t s, (1 / 2 : ℝ) * m * ‖v t‖ ^ 2 + V (x t) = (1 / 2 : ℝ) * m * ‖v s‖ ^ 2 + V (x s) := by sorry
end ConservationLawsRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as drafter, non-blind
Disclosure: NON-BLIND read-back. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statement, with full knowledge of the source material and of the intended meaning. It is not independent or blind testimony and must not be treated as such by any reviewer. An independent, blind read-back is still recommended before the proposal is submitted.
Fix a natural number and a real . Let be (Fréchet) differentiable at every point of Euclidean space . Let with: for every , is differentiable at with derivative , and is differentiable at with derivative . Assume for every :
where is the gradient of at (the vector representing the derivative of at via the Euclidean inner product). Conclusion: for all real ,
No continuity of is assumed beyond what differentiability of gives. Edge case : is a constant and .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.