Conservation of energy: is constant for
ProvedVectorCalculus.energy_conservationLet be a continuously differentiable potential on and let be a twice continuously differentiable trajectory obeying Newton's second law with the conservative force ,
Then the total energy is conserved: there is a constant with
import Definitions.Def_VectorCalculus_grad
namespace VectorCalculus
theorem energy_conservation {n : ℕ} (m : ℝ) (V : (Fin n → ℝ) → ℝ) (hV : ContDiff ℝ 1 V)
(x : ℝ → (Fin n → ℝ)) (hx : ContDiff ℝ 2 x)
(hnewton : ∀ (t : ℝ) (i : Fin n),
m * deriv (fun s => deriv (fun u => x u i) s) t = -grad V (x t) i) :
∃ E : ℝ, ∀ t : ℝ,
(1 / 2) * m * (∑ i, (deriv (fun s => x s i) t) ^ 2) + V (x t) = E := by sorry
end VectorCalculus
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Provenance: non-blind read-back, not independent testimony. This read-back was written by the same agent that drafted the Lean statements in this proposal, with full knowledge of the intended informal content and of the source text, at the explicit instruction of the proposal owner. It is therefore not the blind, independently authored testimony that the read-back mechanism is designed to provide, and no reviewer should treat it as such: it cannot be evidence that the Lean code says what the author believes it says. Please audit the Lean code directly against the cited source.
Fix a natural number , with the functions from an -element index type into . Let be an arbitrary real number — no positivity or nonvanishing is assumed. Let be of class on all of , and let be of class on all of . Assume that for every real and every index ,
where the left-hand side is the iterated coordinatewise ordinary derivative of the real function and is the derivative at of the one-variable function obtained from by replacing its -th coordinate argument by .
The conclusion is that there exists a real number such that for every real ,
The sum of squares of the coordinatewise velocities plays the role of ; the factor is and the potential enters with a plus sign. The equation of motion is imposed at every real parameter value, not only on a bounded interval, and the conserved quantity is asserted for all real . The degenerate choices and are included; in those cases the hypothesis and conclusion remain meaningful and the conclusion is then a statement about alone, respectively about a constant function.