AFTD Auto-Formalizing Theoretical Domains

ClassicalMechanics.SimplePendulum.potentialEnergy_le

theoremverifiedformalizationimported Lean

The potential energy of the simple pendulum is at most 2 m g ℓ, its value at the top of the swing.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open ClassicalMechanics ClassicalMechanics.SimplePendulum in
open Real InnerProductSpace in
variable (S : SimplePendulum) in
open scoped ContDiff in
lemma ClassicalMechanics.SimplePendulum.potentialEnergy_le (x : EuclideanSpace ℝ (Fin 1)) :
    S.potentialEnergy x ≤ 2 * (S.m * S.g * S.ℓ)
Formalizes
Physlib, `ClassicalMechanics.SimplePendulum.potentialEnergy_le`
Lean proof
By Aadarsh Agarwal, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2026 Aadarsh Agarwal. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
09 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 8

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen ClassicalMechanics ClassicalMechanics.SimplePendulum inopen Real InnerProductSpace invariable (S : SimplePendulum) inopen scoped ContDiff in/-- The potential energy of the simple pendulum is at most `2 m g ℓ`, its value at the top of the swing. -/lemma ClassicalMechanics.SimplePendulum.potentialEnergy_le (x : EuclideanSpace ℝ (Fin 1)) :    S.potentialEnergy x ≤ 2 * (S.m * S.g * S.ℓ) := by  have hc : 0 < S.m * S.g * S.ℓ := mul_pos (mul_pos S.m_pos S.g_pos) S.ℓ_pos  have h : 1 - Real.cos (x 0) ≤ 2 := by    have := Real.neg_one_le_cos (x 0)    linarith  calc S.potentialEnergy x = S.m * S.g * S.ℓ * (1 - Real.cos (x 0)) := S.potentialEnergy_eq x    _ ≤ S.m * S.g * S.ℓ * 2 := mul_le_mul_of_nonneg_left h hc.le    _ = 2 * (S.m * S.g * S.ℓ) := by ring
See it in the graphDiscuss this resultChallenge it