AFTD Auto-Formalizing Theoretical Domains

ClassicalMechanics.SimplePendulum.ConfigurationSpace.instIsManifold

instanceimported Lean

The configuration space is an analytic manifold: every change of charts is a change of charts of the unit circle.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open scoped Manifold ContDiff in
noncomputable instance ClassicalMechanics.SimplePendulum.ConfigurationSpace.instIsManifold : IsManifold (𝓡 1) ω' ConfigurationSpace
Defined in
Physlib, `ClassicalMechanics.SimplePendulum.ConfigurationSpace.instIsManifold`
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.
What was changed in ClassicalMechanics.SimplePendulum.ConfigurationSpace.instIsManifold
--- Physlib/ClassicalMechanics/Pendulum/SimplePendulum/Geometric/Basic.lean:206 (ClassicalMechanics.SimplePendulum.ConfigurationSpace.instIsManifold)
+++ as compiled here
@@ -1,4 +1,5 @@
-/-- The configuration space is an analytic manifold: every change of charts is a change of charts
-  of the unit circle. -/
-instance instIsManifold : IsManifold (𝓡 1) ω ConfigurationSpace where
+set_option autoImplicit true in
+set_option relaxedAutoImplicit true in
+open scoped Manifold ContDiff in
+noncomputable instance ClassicalMechanics.SimplePendulum.ConfigurationSpace.instIsManifold : IsManifold (𝓡 1) ω' ConfigurationSpace where
   compatible := by
Verified
09 Oct 2026
Axioms
none listed
Built on 9
Used by 20

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
open scoped Manifold ContDiff in
/-- The configuration space is an analytic manifold: every change of charts is a change of charts of the unit circle. -/
noncomputable instance ClassicalMechanics.SimplePendulum.ConfigurationSpace.instIsManifold : IsManifold (𝓡 1) ω' ConfigurationSpace where
  compatible := by
    rintro _ _ ⟨e₁, he₁, rfl⟩ ⟨e₂, he₂, rfl⟩
    -- The identification `h` with the circle is global, so `h.symm ≫ₕ h` is the identity.
    have hself : circleHomeomorph.toOpenPartialHomeomorph.symm.trans
        circleHomeomorph.toOpenPartialHomeomorph = OpenPartialHomeomorph.refl Circle := by
      rw [← Homeomorph.symm_toOpenPartialHomeomorph, ← Homeomorph.trans_toOpenPartialHomeomorph,
        Homeomorph.symm_trans_self, Homeomorph.refl_toOpenPartialHomeomorph]
    -- Hence it cancels in the change of charts, which is therefore that of the circle.
    have hcancel : (circleHomeomorph.toOpenPartialHomeomorph.trans e₁).symm.trans
        (circleHomeomorph.toOpenPartialHomeomorph.trans e₂) = e₁.symm.trans e₂ := by
      rw [OpenPartialHomeomorph.trans_symm_eq_symm_trans_symm, OpenPartialHomeomorph.trans_assoc,
        ← OpenPartialHomeomorph.trans_assoc circleHomeomorph.toOpenPartialHomeomorph.symm,
        hself, OpenPartialHomeomorph.refl_trans]
    rw [hcancel]
    exact HasGroupoid.compatible he₁ he₂
See it in the graphDiscuss this resultChallenge it