AFTD Auto-Formalizing Theoretical Domains

ClassicalMechanics.SimplePendulum.torque_eq

theoremverifiedformalizationimported Lean

The torque of the simple pendulum is -m g ℓ sin θ times the unit vector of the angular coordinate. It is restoring near the bottom of the swing: for |θ| < π it opposes the displacement, and it vanishes both at the bottom and at the inverted position.

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.torque_eq (x : EuclideanSpace ℝ (Fin 1)) :
    S.torque x = -((S.m * S.g * S.ℓ * Real.sin (x 0)) • EuclideanSpace.single 0 1)
Formalizes
Physlib, `ClassicalMechanics.SimplePendulum.torque_eq`
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 9
Used by 3

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 torque of the simple pendulum is `-m g ℓ sin θ` times the unit vector of the angular coordinate. It is restoring near the bottom of the swing: for `|θ| < π` it opposes the displacement, and it vanishes both at the bottom and at the inverted position. -/lemma ClassicalMechanics.SimplePendulum.torque_eq (x : EuclideanSpace ℝ (Fin 1)) :    S.torque x = -((S.m * S.g * S.ℓ * Real.sin (x 0)) • EuclideanSpace.single 0 1) := by  rw [torque, gradient_potentialEnergy]
See it in the graphDiscuss this resultChallenge it