AFTD Auto-Formalizing Theoretical Domains

ClassicalMechanics.SimplePendulum.torque

defimported Lean

The generalized force of the simple pendulum conjugate to the angle, that is the torque about the pivot, is minus the gradient of the potential energy, τ = -∂V/∂θ.

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
noncomputable def ClassicalMechanics.SimplePendulum.torque (x : EuclideanSpace ℝ (Fin 1)) : EuclideanSpace ℝ (Fin 1)
Defined in
Physlib, `ClassicalMechanics.SimplePendulum.torque`
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
none listed
Built on 7
Used by 4

Lean source view module on GitHub

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
/-- The generalized force of the simple pendulum conjugate to the angle, that is the torque about the pivot, is minus the gradient of the potential energy, `τ = -∂V/∂θ`. -/
noncomputable def ClassicalMechanics.SimplePendulum.torque (x : EuclideanSpace ℝ (Fin 1)) : EuclideanSpace ℝ (Fin 1) :=
  -gradient S.potentialEnergy x
See it in the graphDiscuss this resultChallenge it