AFTD Auto-Formalizing Theoretical Domains

ClassicalMechanics.SimplePendulum.phaseVectorField_lipschitz

theoremverifiedformalizationimported Lean

The phase-space vector field of the simple pendulum is globally Lipschitz, with constant 1 + ω²: the first component is the projection onto the angular velocity, and the second is -ω² times sin of the angle, and sin is Lipschitz with constant one.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open ClassicalMechanics ClassicalMechanics.SimplePendulum in
open Real in
open scoped ContDiff in
variable (S : SimplePendulum) in
lemma ClassicalMechanics.SimplePendulum.phaseVectorField_lipschitz :
    LipschitzWith (Real.toNNReal (1 + S.ω ^ 2)) S.phaseVectorField
Formalizes
Physlib, `ClassicalMechanics.SimplePendulum.phaseVectorField_lipschitz`
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

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen ClassicalMechanics ClassicalMechanics.SimplePendulum inopen Real inopen scoped ContDiff invariable (S : SimplePendulum) in/-- The phase-space vector field of the simple pendulum is globally Lipschitz, with constant `1 + ω²`: the first component is the projection onto the angular velocity, and the second is `-ω²` times `sin` of the angle, and `sin` is Lipschitz with constant one. -/lemma ClassicalMechanics.SimplePendulum.phaseVectorField_lipschitz :    LipschitzWith (Real.toNNReal (1 + S.ω ^ 2)) S.phaseVectorField := by  refine LipschitzWith.of_dist_le_mul fun p q => ?_  rw [Real.coe_toNNReal _ (by positivity), Prod.dist_eq, add_mul, one_mul]  apply max_le _ _  · apply le_trans _ (le_add_of_nonneg_right (by positivity))    exact le_max_right _ _  · apply le_trans _ (le_add_of_nonneg_left (by positivity))    apply le_trans (dist_pair_smul _ _ _)    rw [dist_neg_neg, dist_eq_norm, norm_eq_abs, ← mul_sub, abs_mul, abs_of_nonneg (sq_nonneg _),      mul_assoc, mul_le_mul_iff_right₀ (pow_succ_pos S.ω_pos _), dist_zero_right, PiLp.norm_single,      norm_one, mul_one]    apply le_trans _ (le_max_left _ _)    apply le_trans (Real.abs_sin_sub_sin_le _ _)    rw [dist_eq_norm, ← Real.norm_eq_abs, ← PiLp.sub_apply]    exact PiLp.norm_apply_le _ _
See it in the graphDiscuss this resultChallenge it