Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Contact forms on compact submanifolds of Rn\mathbb{R}^nRn, isotopies, pull-backs

Definition
GrayStability_Basic

by Mazecto · Oct 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

contact-geometrydifferential-geometrysymplectic-geometry

Objects for Gray's stability theorem on a closed manifold realized in Rn\mathbb{R}^nRn.

  1. Closed submanifold. For a smooth F:Rn→RcF:\mathbb{R}^n\to\mathbb{R}^cF:Rn→Rc, the set M=F−1(0)M=F^{-1}(0)M=F−1(0) is a compact regular level if it is compact and DF(y)DF(y)DF(y) is surjective for every y∈My\in My∈M. Its tangent space is TyM=ker⁡DF(y)T_yM=\ker DF(y)Ty​M=kerDF(y).
  2. One-forms. A one-form is a map α:Rn→(Rn)∗\alpha:\mathbb{R}^n\to(\mathbb{R}^n)^*α:Rn→(Rn)∗. Its exterior derivative is
dαy(u,v)=Dαy(u)(v)−Dαy(v)(u).d\alpha_y(u,v)=D\alpha_y(u)(v)-D\alpha_y(v)(u).dαy​(u,v)=Dαy​(u)(v)−Dαy​(v)(u).

On TyMT_yMTy​M this is the exterior derivative of the restriction α∣M\alpha|_Mα∣M​. 3. Contact form. α\alphaα is a contact form at y∈My\in My∈M if αy≠0\alpha_y\neq0αy​=0 on TyMT_yMTy​M and dαyd\alpha_ydαy​ is non-degenerate on the hyperplane ξy=TyM∩ker⁡αy\xi_y=T_yM\cap\ker\alpha_yξy​=Ty​M∩kerαy​: every nonzero u∈ξyu\in\xi_yu∈ξy​ has some v∈ξyv\in\xi_yv∈ξy​ with dαy(u,v)≠0d\alpha_y(u,v)\neq0dαy​(u,v)=0. This is the condition α∧(dα)k≠0\alpha\wedge(d\alpha)^k\neq0α∧(dα)k=0 in the form of Geiges' Remark 2.3; the contact structure is ξ=ker⁡α\xi=\ker\alphaξ=kerα, cooriented by α\alphaα. 4. Families. A family αt\alpha_tαt​ is smooth if (t,y)↦αt(y)(t,y)\mapsto\alpha_t(y)(t,y)↦αt​(y) is smooth on R×Rn\mathbb{R}\times\mathbb{R}^nR×Rn. It is a family of contact forms on MMM if each αt\alpha_tαt​, t∈[0,1]t\in[0,1]t∈[0,1], is a contact form at every point of MMM. 5. Isotopy. ψ:R×Rn→Rn\psi:\mathbb{R}\times\mathbb{R}^n\to\mathbb{R}^nψ:R×Rn→Rn is an isotopy of MMM if it is jointly smooth, ψ0=id\psi_0=\mathrm{id}ψ0​=id on MMM, and for every t∈[0,1]t\in[0,1]t∈[0,1] the map ψt\psi_tψt​ sends MMM bijectively onto MMM with Dψt(y)D\psi_t(y)Dψt​(y) injective on TyMT_yMTy​M. 6. Pull-back, time derivative, Lie derivative. (ψ∗α)y(v)=αψ(y)(Dψ(y)v)(\psi^*\alpha)_y(v)=\alpha_{\psi(y)}(D\psi(y)v)(ψ∗α)y​(v)=αψ(y)​(Dψ(y)v); α˙t(y)(v)=∂t(αt(y)(v))\dot\alpha_t(y)(v)=\partial_t\big(\alpha_t(y)(v)\big)α˙t​(y)(v)=∂t​(αt​(y)(v)); and for a vector field XXX,

(LXη)y(v)=Dηy(X(y))(v)+ηy(DX(y)v).(\mathcal{L}_X\eta)_y(v)=D\eta_y(X(y))(v)+\eta_y(DX(y)v).(LX​η)y​(v)=Dηy​(X(y))(v)+ηy​(DX(y)v).

These are the notions in which Theorem 2.20 (Gray stability), its proof, and Lemma 2.19 are stated.

Formalization Note Rn\mathbb{R}^nRn is Fin n → ℝ. Forms are ambient (defined on all of Rn\mathbb{R}^nRn); only their restrictions to TMTMTM enter the statements.

Definition code
import Mathlib.Analysis.Calculus.FDeriv.Basic
import Mathlib.Analysis.Calculus.ContDiff.Defs
import Mathlib.Analysis.Calculus.Deriv.Basic
import Mathlib.Topology.Compactness.Compact

/-!
# Contact forms on compact submanifolds of `ℝⁿ`, isotopies, pull-backs

Objects for Gray's stability theorem in the form of Geiges, *Contact geometry*,
Handbook of Differential Geometry II (2006), arXiv:math/0307242, §2 and §2.2
(Definition 2.1, Remark 2.3, Definition 2.5, Lemma 2.19, Theorem 2.20, Remark 2.21).

The closed manifold `M` is a compact regular level set `F⁻¹(0)` of a smooth map
`F : ℝⁿ → ℝᶜ`, with tangent spaces `T_y M = ker DF(y)`. One-forms on `M` are
restrictions of ambient one-forms `α : ℝⁿ → (ℝⁿ →L ℝ)`; contact structures are
cooriented, `ξ = ker α` (Geiges' standing assumption, §2, p. 4).
-/

namespace GrayStability

noncomputable section

open scoped ContDiff

/-- `ℝⁿ` as `Fin n → ℝ`. -/
abbrev E (n : ℕ) := Fin n → ℝ

/-- A one-form on `ℝⁿ`: a covector at every point. -/
abbrev OneForm (n : ℕ) := E n → (E n →L[ℝ] ℝ)

variable {n c : ℕ}

/-- The level set `M = F⁻¹(0)`. -/
def levelSet (F : E n → (Fin c → ℝ)) : Set (E n) := {y | F y = 0}

/-- `M = F⁻¹(0)` is a closed (compact, boundaryless) smooth submanifold of `ℝⁿ`:
`F` is smooth, `M` is compact, and `DF(y)` is surjective at every `y ∈ M`. -/
def IsCompactRegularLevel (F : E n → (Fin c → ℝ)) : Prop :=
  ContDiff ℝ ∞ F ∧ IsCompact (levelSet F) ∧
    ∀ y ∈ levelSet F, Function.Surjective (fderiv ℝ F y)

/-- The tangent space `T_y M = ker DF(y)`. -/
def tangentSpace (F : E n → (Fin c → ℝ)) (y : E n) : Set (E n) :=
  {v | fderiv ℝ F y v = 0}

/-- The exterior derivative of an ambient one-form:
`dα_y(u, v) = Dα_y(u)(v) - Dα_y(v)(u)`. Its restriction to `T_y M` is the exterior
derivative of `α|_M`. -/
def extDerivOneForm (α : OneForm n) (y u v : E n) : ℝ :=
  fderiv ℝ α y u v - fderiv ℝ α y v u

/-- The contact hyperplane `ξ_y = T_y M ∩ ker α_y`. -/
def contactPlane (F : E n → (Fin c → ℝ)) (α : OneForm n) (y : E n) : Set (E n) :=
  {v | v ∈ tangentSpace F y ∧ α y v = 0}

/-- `α|_M` is a contact form at `y` (Definition 2.1, in the equivalent form of
Remark 2.3): `α_y` does not vanish on `T_y M`, and `dα_y` is non-degenerate on
`ξ_y = T_y M ∩ ker α_y`. -/
def IsContactFormAt (F : E n → (Fin c → ℝ)) (α : OneForm n) (y : E n) : Prop :=
  (∃ v ∈ tangentSpace F y, α y v ≠ 0) ∧
    ∀ u ∈ contactPlane F α y, u ≠ 0 →
      ∃ v ∈ contactPlane F α y, extDerivOneForm α y u v ≠ 0

/-- A smooth family of one-forms: `(t, y) ↦ α_t(y)` is smooth on `ℝ × ℝⁿ`. -/
def IsSmoothFamily (α : ℝ → OneForm n) : Prop :=
  ContDiff ℝ ∞ (fun p : ℝ × E n => α p.1 p.2)

/-- A smooth family of contact forms on `M`, `t ∈ [0, 1]`. -/
def IsContactFamilyOn (F : E n → (Fin c → ℝ)) (α : ℝ → OneForm n) : Prop :=
  IsSmoothFamily α ∧
    ∀ t ∈ Set.Icc (0 : ℝ) 1, ∀ y ∈ levelSet F, IsContactFormAt F (α t) y

/-- An isotopy `(ψ_t)_{t ∈ [0,1]}` of `M`: `(t, y) ↦ ψ_t(y)` is smooth, `ψ_0 = id`
on `M`, and each `ψ_t` maps `M` bijectively onto `M` with injective differential on
`T_y M` (so `ψ_t|_M` is a diffeomorphism of `M`). -/
def IsIsotopyOf (F : E n → (Fin c → ℝ)) (ψ : ℝ → E n → E n) : Prop :=
  ContDiff ℝ ∞ (fun p : ℝ × E n => ψ p.1 p.2) ∧
    (∀ y ∈ levelSet F, ψ 0 y = y) ∧
    ∀ t ∈ Set.Icc (0 : ℝ) 1, Set.BijOn (ψ t) (levelSet F) (levelSet F) ∧
      ∀ y ∈ levelSet F, Set.InjOn (fderiv ℝ (ψ t) y) (tangentSpace F y)

/-- The pull-back `(ψ^* α)_y(v) = α_{ψ(y)}(Dψ_y v)`. -/
def pullback (ψ : E n → E n) (α : OneForm n) (y v : E n) : ℝ :=
  α (ψ y) (fderiv ℝ ψ y v)

/-- The time derivative `α̇_t(y)(v) = ∂/∂t (α_t(y)(v))`. -/
def formTimeDeriv (α : ℝ → OneForm n) (t : ℝ) (y v : E n) : ℝ :=
  deriv (fun s => α s y v) t

/-- The Lie derivative of a one-form along a vector field on `ℝⁿ`:
`(L_X η)_y(v) = Dη_y(X(y))(v) + η_y(DX_y v)`. -/
def lieDerivOneForm (X : E n → E n) (η : OneForm n) (y v : E n) : ℝ :=
  fderiv ℝ η y (X y) v + η y (fderiv ℝ X y v)

end

end GrayStability
Source
Geiges, Contact geometry, Handbook of Differential Geometry Vol. II (2006) 315-382, https://arxiv.org/abs/math/0307242, Section 2 (p. 4, cooriented contact structures; Definition 2.1; Remark 2.3), Definition 2.5, Lemma 2.19, Theorem 2.20
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Ambient conventions. Throughout, n,c∈Nn, c \in \mathbb{N}n,c∈N are arbitrary (including 000). En=RnE_n = \mathbb{R}^nEn​=Rn, realised as functions {0,…,n−1}→R\{0,\dots,n-1\} \to \mathbb{R}{0,…,n−1}→R with the sup norm. A one-form is any map α:Rn→(Rn)∗\alpha : \mathbb{R}^n \to (\mathbb{R}^n)^*α:Rn→(Rn)∗, y↦αyy \mapsto \alpha_yy↦αy​, assigning to each point a continuous linear functional; no continuity, differentiability or smoothness of y↦αyy \mapsto \alpha_yy↦αy​ is built into this type. Wherever a derivative DDD (Fréchet) or dds\frac{d}{ds}dsd​ appears below, it is the total-function derivative: it equals the true derivative where the map is differentiable and is the zero map / zero number where it is not. All definitions below make sense at every point of Rn\mathbb{R}^nRn, not only on a level set. The map FFF is always some F:Rn→RcF : \mathbb{R}^n \to \mathbb{R}^cF:Rn→Rc.

Level set. levelSet(F)={y∈Rn:F(y)=0}\mathrm{levelSet}(F) = \{ y \in \mathbb{R}^n : F(y) = 0 \}levelSet(F)={y∈Rn:F(y)=0}.

Compact regular level. FFF has a compact regular level iff all three hold:

  • FFF is C∞C^\inftyC∞ on all of Rn\mathbb{R}^nRn;
  • F−1(0)F^{-1}(0)F−1(0) is compact;
  • for every y∈F−1(0)y \in F^{-1}(0)y∈F−1(0), the derivative DF(y):Rn→RcDF(y) : \mathbb{R}^n \to \mathbb{R}^cDF(y):Rn→Rc is surjective.

Edge cases: an empty level set satisfies the last two conditions vacuously. If c>nc > nc>n surjectivity is impossible, so the condition forces F−1(0)=∅F^{-1}(0) = \varnothingF−1(0)=∅. If c=0c = 0c=0, R0\mathbb{R}^0R0 is a single point, so F−1(0)=RnF^{-1}(0) = \mathbb{R}^nF−1(0)=Rn, which is compact only when n=0n = 0n=0.

Tangent space. For any y∈Rny \in \mathbb{R}^ny∈Rn, Ty=ker⁡DF(y)={v∈Rn:DF(y) v=0}T_y = \ker DF(y) = \{ v \in \mathbb{R}^n : DF(y)\,v = 0 \}Ty​=kerDF(y)={v∈Rn:DF(y)v=0} (if FFF is not differentiable at yyy this is all of Rn\mathbb{R}^nRn).

Exterior derivative of a one-form. For y,u,v∈Rny,u,v \in \mathbb{R}^ny,u,v∈Rn,

dαy(u,v)=(Dα(y) u)(v)−(Dα(y) v)(u),d\alpha_y(u,v) = \big(D\alpha(y)\,u\big)(v) - \big(D\alpha(y)\,v\big)(u),dαy​(u,v)=(Dα(y)u)(v)−(Dα(y)v)(u),

where Dα(y):Rn→(Rn)∗D\alpha(y) : \mathbb{R}^n \to (\mathbb{R}^n)^*Dα(y):Rn→(Rn)∗ is the derivative of y↦αyy \mapsto \alpha_yy↦αy​. No factor 12\tfrac1221​. If α\alphaα is not differentiable at yyy, then dαy≡0d\alpha_y \equiv 0dαy​≡0.

Contact plane. ξy={v∈Ty:αy(v)=0}\xi_y = \{ v \in T_y : \alpha_y(v) = 0 \}ξy​={v∈Ty​:αy​(v)=0}.

Contact form at a point. α\alphaα is a contact form at yyy (relative to FFF) iff

  1. there exists v∈Tyv \in T_yv∈Ty​ with αy(v)≠0\alpha_y(v) \neq 0αy​(v)=0 (i.e. αy\alpha_yαy​ does not vanish on TyT_yTy​), and
  2. for every u∈ξyu \in \xi_yu∈ξy​ with u≠0u \neq 0u=0 there exists v∈ξyv \in \xi_yv∈ξy​ with dαy(u,v)≠0d\alpha_y(u,v) \neq 0dαy​(u,v)=0 (i.e. dαyd\alpha_ydαy​ restricted to ξy×ξy\xi_y \times \xi_yξy​×ξy​ is nondegenerate).

This is a pointwise condition; it does not require y∈F−1(0)y \in F^{-1}(0)y∈F−1(0). Since dαyd\alpha_ydαy​ is alternating, condition 2 forces dim⁡ξy\dim \xi_ydimξy​ to be even, hence (with condition 1) dim⁡Ty\dim T_ydimTy​ odd. If α\alphaα is not differentiable at yyy, condition 2 holds only when ξy={0}\xi_y = \{0\}ξy​={0}, i.e. dim⁡Ty=1\dim T_y = 1dimTy​=1.

Smooth family. A family (αt)t∈R(\alpha_t)_{t \in \mathbb{R}}(αt​)t∈R​ of one-forms is smooth iff (t,y)↦αt(y)∈(Rn)∗(t,y) \mapsto \alpha_t(y) \in (\mathbb{R}^n)^*(t,y)↦αt​(y)∈(Rn)∗ is C∞C^\inftyC∞ on all of R×Rn\mathbb{R} \times \mathbb{R}^nR×Rn.

Contact family on the level set. (αt)(\alpha_t)(αt​) is a contact family for FFF iff it is a smooth family (as above, globally) and for every t∈[0,1]t \in [0,1]t∈[0,1] and every y∈F−1(0)y \in F^{-1}(0)y∈F−1(0), αt\alpha_tαt​ is a contact form at yyy. Nothing is required for t∉[0,1]t \notin [0,1]t∈/[0,1] beyond smoothness. If F−1(0)=∅F^{-1}(0) = \varnothingF−1(0)=∅, only smoothness is required.

Isotopy of the level set. A family of maps ψt:Rn→Rn\psi_t : \mathbb{R}^n \to \mathbb{R}^nψt​:Rn→Rn (t∈Rt \in \mathbb{R}t∈R) is an isotopy for FFF iff

  • (t,y)↦ψt(y)(t,y) \mapsto \psi_t(y)(t,y)↦ψt​(y) is C∞C^\inftyC∞ on R×Rn\mathbb{R} \times \mathbb{R}^nR×Rn;
  • ψ0(y)=y\psi_0(y) = yψ0​(y)=y for every y∈F−1(0)y \in F^{-1}(0)y∈F−1(0) (only on the level set, not on all of Rn\mathbb{R}^nRn);
  • for every t∈[0,1]t \in [0,1]t∈[0,1]: ψt\psi_tψt​ maps F−1(0)F^{-1}(0)F−1(0) into itself, is injective on it, and maps it onto itself; and for every y∈F−1(0)y \in F^{-1}(0)y∈F−1(0), the linear map Dψt(y)D\psi_t(y)Dψt​(y) is injective on TyT_yTy​.

It is not stated that Dψt(y)D\psi_t(y)Dψt​(y) maps TyT_yTy​ into Tψt(y)T_{\psi_t(y)}Tψt​(y)​; nothing is required for t∉[0,1]t \notin [0,1]t∈/[0,1] other than smoothness.

Pullback. For ψ:Rn→Rn\psi : \mathbb{R}^n \to \mathbb{R}^nψ:Rn→Rn and a one-form α\alphaα,

(ψ∗α)y(v)=αψ(y)(Dψ(y) v)(\psi^*\alpha)_y(v) = \alpha_{\psi(y)}\big(D\psi(y)\,v\big)(ψ∗α)y​(v)=αψ(y)​(Dψ(y)v)

(with Dψ(y)=0D\psi(y) = 0Dψ(y)=0 if ψ\psiψ is not differentiable at yyy).

Time derivative of a family. For a family (αs)(\alpha_s)(αs​), t∈Rt \in \mathbb{R}t∈R, y,v∈Rny, v \in \mathbb{R}^ny,v∈Rn:

α˙t(y)(v)=dds∣s=tαs(y)(v),\dot\alpha_t(y)(v) = \frac{d}{ds}\Big|_{s=t} \alpha_s(y)(v),α˙t​(y)(v)=dsd​​s=t​αs​(y)(v),

equal to 000 if s↦αs(y)(v)s \mapsto \alpha_s(y)(v)s↦αs​(y)(v) is not differentiable at ttt.

Lie derivative of a one-form. For a vector field X:Rn→RnX : \mathbb{R}^n \to \mathbb{R}^nX:Rn→Rn and one-form η\etaη:

(LXη)y(v)=(Dη(y) X(y))(v)+ηy(DX(y) v),(\mathcal{L}_X \eta)_y(v) = \big(D\eta(y)\,X(y)\big)(v) + \eta_y\big(DX(y)\,v\big),(LX​η)y​(v)=(Dη(y)X(y))(v)+ηy​(DX(y)v),

again with the zero-derivative convention where η\etaη or XXX is not differentiable at yyy.

Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Mazecto · Oct 6, 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