AFTD Auto-Formalizing Theoretical Domains

ClassicalMechanics.SimplePendulum.ConfigurationSpace.ofAngle_eq_iff

theoremverifiedformalizationimported Lean

Two angles describe the same configuration exactly when they differ by a whole number of turns.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open scoped Manifold ContDiff in
lemma ClassicalMechanics.SimplePendulum.ConfigurationSpace.ofAngle_eq_iff (θ₁ θ₂ : ℝ) :
    ofAngle θ₁ = ofAngle θ₂ ↔ ∃ n : ℤ, θ₂ = θ₁ + n * (2 * Real.pi)
Formalizes
Physlib, `ClassicalMechanics.SimplePendulum.ConfigurationSpace.ofAngle_eq_iff`
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 12

Lean source view module on GitHub

set_option autoImplicit true inset_option relaxedAutoImplicit true inopen scoped Manifold ContDiff in/-- Two angles describe the same configuration exactly when they differ by a whole number of turns. -/lemma ClassicalMechanics.SimplePendulum.ConfigurationSpace.ofAngle_eq_iff (θ₁ θ₂ : ℝ) :    ofAngle θ₁ = ofAngle θ₂ ↔ ∃ n : ℤ, θ₂ = θ₁ + n * (2 * Real.pi) := by  constructor  · intro h    obtain ⟨k, hk⟩ :=      Real.Angle.angle_eq_iff_two_pi_dvd_sub.mp (congrArg ConfigurationSpace.angle h)    exact ⟨-k, by push_cast; linarith⟩  · rintro ⟨n, rfl⟩    exact ConfigurationSpace.ext      (Real.Angle.angle_eq_iff_two_pi_dvd_sub.mpr ⟨-n, by push_cast; ring⟩)
See it in the graphDiscuss this resultChallenge it