Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Diffr(M)\mathrm{Diff}^r(M)Diffr(M) and its (weak) CrC^rCr topology

Definition
ClosingLemma_DiffeoCrTopology

by Lucas · Oct 11, 2026 · Mathlib 0df444a (Lean v4.33.1)

differential-topologydynamical-systemsmanifolds

Let MMM be a smooth manifold modelled on Rn\mathbb R^nRn (without boundary) and let r≥0r\ge 0r≥0 be an integer. Write Diffr(M)\mathrm{Diff}^r(M)Diffr(M) for the set of CrC^rCr diffeomorphisms g ⁣:M→Mg\colon M\to Mg:M→M.

For f∈Diffr(M)f\in\mathrm{Diff}^r(M)f∈Diffr(M), charts (φ,U)(\varphi,U)(φ,U) and (ψ,V)(\psi,V)(ψ,V) of the smooth structure of MMM, a compact set K⊆UK\subseteq UK⊆U with f(K)⊆Vf(K)\subseteq Vf(K)⊆V, and ε>0\varepsilon>0ε>0, the basic neighbourhood Nr(f;φ,ψ,K,ε)\mathcal N^r(f;\varphi,\psi,K,\varepsilon)Nr(f;φ,ψ,K,ε) is the set of g∈Diffr(M)g\in\mathrm{Diff}^r(M)g∈Diffr(M) such that

  1. g(K)⊆Vg(K)\subseteq Vg(K)⊆V, and
  2. for every x∈φ(K)x\in\varphi(K)x∈φ(K) and every 0≤k≤r0\le k\le r0≤k≤r,
∥Dk(ψ∘g∘φ−1)(x)−Dk(ψ∘f∘φ−1)(x)∥<ε,\big\|D^k(\psi\circ g\circ\varphi^{-1})(x)-D^k(\psi\circ f\circ\varphi^{-1})(x)\big\|<\varepsilon ,​Dk(ψ∘g∘φ−1)(x)−Dk(ψ∘f∘φ−1)(x)​<ε,

where DkD^kDk is the kkk-th Fréchet derivative (a kkk-linear map, with the operator norm).

The (weak) CrC^rCr topology on Diffr(M)\mathrm{Diff}^r(M)Diffr(M) is the topology generated by all such basic neighbourhoods. On a compact manifold it coincides with the strong (Whitney) CrC^rCr topology. This is the topology in which "a CrC^rCr-small perturbation of fff" is measured in the closing lemma.

Formalization Note Diffr(M)\mathrm{Diff}^r(M)Diffr(M) is Diffeomorph (𝓡 n) (𝓡 n) M M r. Charts range over the maximal C∞C^\inftyC∞ atlas IsManifold.maximalAtlas (𝓡 n) ∞ M. Local representatives are composed as total functions on Rn\mathbb R^nRn; since φ(K)\varphi(K)φ(K) lies in the open set φ(U)\varphi(U)φ(U) and g(K)⊆Vg(K)\subseteq Vg(K)⊆V, their derivatives at points of φ(K)\varphi(K)φ(K) agree with those of the genuine local representative. The topology is a def (crTopology r) with a scoped instance, so it does not clash with other topologies on diffeomorphism groups.

Definition code
import Mathlib

/-!
# `C^r` diffeomorphisms of a closed manifold and the weak `C^r` topology

Setting for the Prove2Me mission "Closing lemma for `C^r` diffeomorphisms".

* `ClosingLemma.Diff n M r` : the space `Diff^r(M)` of `C^r` diffeomorphisms of a smooth
  manifold `M` modelled on `ℝⁿ` (no boundary).
* `ClosingLemma.crBasicNhd` : Hirsch's basic set `𝒩^r(f; (φ,U), (ψ,V), K, ε)`.
* `ClosingLemma.crTopology` : the weak (compact-open) `C^r` topology, generated by these sets
  (Hirsch, *Differential Topology*, Ch. 2, §1).  For compact `M` it coincides with the strong
  (Whitney) `C^r` topology.
-/

open scoped Manifold ContDiff Topology

namespace ClosingLemma

/-- `Diff^r(M)`: the `C^r` diffeomorphisms of a manifold `M` modelled on `ℝⁿ`
(boundaryless model `𝓡 n`). -/
abbrev Diff (n : ℕ) (M : Type*) [TopologicalSpace M]
    [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] (r : ℕ) :=
  Diffeomorph (𝓡 n) (𝓡 n) M M (r : WithTop ℕ∞)

variable {n : ℕ} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M]

/-- Hirsch's basic set `𝒩^r(f; (φ,U), (ψ,V), K, ε)`: the diffeomorphisms `g` with
`g(K) ⊆ V = ψ.source` whose local representative `ψ ∘ g ∘ φ⁻¹` has all derivatives of order
`0, 1, …, r` within `ε` of those of `ψ ∘ f ∘ φ⁻¹` at every point of `φ(K)`. -/
def crBasicNhd (r : ℕ) (f : Diff n M r)
    (φ ψ : OpenPartialHomeomorph M (EuclideanSpace ℝ (Fin n))) (K : Set M) (ε : ℝ) :
    Set (Diff n M r) :=
  {g | Set.MapsTo g K ψ.source ∧ ∀ x ∈ φ '' K, ∀ k ≤ r,
    ‖iteratedFDeriv ℝ k (ψ ∘ g ∘ φ.symm) x - iteratedFDeriv ℝ k (ψ ∘ f ∘ φ.symm) x‖ < ε}

/-- The admissible basic sets: `φ, ψ` are charts of the smooth structure of `M`,
`K ⊆ φ.source` is compact, `f(K) ⊆ ψ.source`, and `ε > 0`. -/
def crBasicNhds (r : ℕ) : Set (Set (Diff n M r)) :=
  {S | ∃ (f : Diff n M r) (φ ψ : OpenPartialHomeomorph M (EuclideanSpace ℝ (Fin n)))
    (K : Set M) (ε : ℝ),
    φ ∈ IsManifold.maximalAtlas (𝓡 n) ∞ M ∧ ψ ∈ IsManifold.maximalAtlas (𝓡 n) ∞ M ∧
    IsCompact K ∧ K ⊆ φ.source ∧ Set.MapsTo f K ψ.source ∧ 0 < ε ∧
    S = crBasicNhd r f φ ψ K ε}

/-- The weak `C^r` topology on `Diff^r(M)`, generated by the basic sets `crBasicNhds r`. -/
abbrev crTopology (r : ℕ) : TopologicalSpace (Diff n M r) :=
  TopologicalSpace.generateFrom (crBasicNhds r)

scoped instance (r : ℕ) : TopologicalSpace (Diff n M r) := crTopology r

end ClosingLemma
Source
M. W. Hirsch, Differential Topology, Springer GTM 33, Chapter 2, Section 1 (the weak/compact-open C^r topology, basic neighbourhoods N^r(f; (φ,U), (ψ,V), K, ε)); Diff^r(M) as in Open Problem Garden, "Closing Lemma for Diffeomorphism (Dynamical Systems)", posted by Jailton Viana, April 24th, 2013, https://www.openproblemgarden.org/op/closing_lemma_for_diffeomorphism_dynamical_systems (the boxed Conjecture; bibliography: Bonatti–Díaz–Viana, Dynamics beyond uniform hyperbolicity, Encyclopaedia of Mathematical Sciences vol. 102, Springer 2005)
Human review
  • Endorsed by Shuze Chen · Oct 11, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 11, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me