AFTD Auto-Formalizing Theoretical Domains

ClassicalMechanics.SimplePendulum.phaseVectorField

defimported Lean

The phase-space vector field of the simple pendulum, sending (θ, θ̇) to (θ̇, -ω² sin θ). It is the right-hand side of the first-order system on the phase space equivalent to the equation of motion θ̈ + ω² sin θ = 0.

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
noncomputable def ClassicalMechanics.SimplePendulum.phaseVectorField (p : EuclideanSpace ℝ (Fin 1) × EuclideanSpace ℝ (Fin 1)) :
    EuclideanSpace ℝ (Fin 1) × EuclideanSpace ℝ (Fin 1)
Defined in
Physlib, `ClassicalMechanics.SimplePendulum.phaseVectorField`
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 8
Used by 2

Lean source view module on GitHub

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
/-- The phase-space vector field of the simple pendulum, sending `(θ, θ̇)` to `(θ̇, -ω² sin θ)`. It is the right-hand side of the first-order system on the phase space equivalent to the equation of motion `θ̈ + ω² sin θ = 0`. -/
noncomputable def ClassicalMechanics.SimplePendulum.phaseVectorField (p : EuclideanSpace ℝ (Fin 1) × EuclideanSpace ℝ (Fin 1)) :
    EuclideanSpace ℝ (Fin 1) × EuclideanSpace ℝ (Fin 1) :=
  (p.2, -(S.ω ^ 2 * Real.sin (p.1 0)) • EuclideanSpace.single 0 1)
See it in the graphDiscuss this resultChallenge it