Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Area density of a parametrized surface

Definition
OpenGA_SurfaceArea

by Xinze-Li-Moqian · Sep 10, 2026 · Mathlib 0df444a (Lean v4.33.1)

colding-minicozzipoincare-foundationsriemannian-geometrysurface-area

Let (M,g)(M,g)(M,g) be a smooth Riemannian manifold and let f:R2→Mf:\mathbb R^2\to Mf:R2→M. For the standard parameter vectors e1,e2e_1,e_2e1​,e2​, define

Gf(u)ij=gf(u)(dfu(ei),dfu(ej)),Jgf(u)=det⁡Gf(u).G_f(u)_{ij}=g_{f(u)}(df_u(e_i),df_u(e_j)),\qquad J_gf(u)=\sqrt{\det G_f(u)}.Gf​(u)ij​=gf(u)​(dfu​(ei​),dfu​(ej​)),Jg​f(u)=detGf​(u)​.

For a parameter domain Ω\OmegaΩ, its area with multiplicity is ∫ΩJgf(u) du\int_\Omega J_gf(u)\,du∫Ω​Jg​f(u)du when the density is integrable. The definitions use the actual manifold derivative, with Lean's total derivative convention outside differentiability points, and the Bochner integral. They reuse the existing Mathlib/DifferentialGeometry smooth metric type. Coordinate compatibility and Ricci-flow variation are separate theorems.

Definition code
import Definitions.Def_DifferentialGeometry_SmoothRiemannianMetric
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.Geometry.Manifold.MFDeriv.FDeriv
import Mathlib.LinearAlgebra.Matrix.ToLin
import Mathlib.MeasureTheory.Integral.Bochner.Set
import Mathlib.MeasureTheory.Measure.Haar.InnerProductSpace
import Mathlib.Analysis.SpecialFunctions.Sqrt

/-!
# Area density of a parametrized surface

The pullback metric is computed from the manifold derivative of the actual
surface map. Area is its Gram determinant density integrated against Euclidean
parameter volume, with multiplicity. The metric type reuses DifferentialGeometry
and Mathlib. No orientation or global tangent frame is chosen on the surface.
-/

noncomputable section

open Bundle Matrix MeasureTheory Set Filter
open scoped Manifold ContDiff Topology
open DifferentialGeometry

namespace OpenGA.RicciFlow

abbrev SurfaceParameter := EuclideanSpace ℝ (Fin 2)

variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
  [FiniteDimensional ℝ E]
  {H : Type*} [TopologicalSpace H] {I : ModelWithCorners ℝ E H}
  {M : Type*} [TopologicalSpace M] [ChartedSpace H M] [IsManifold I ∞ M]
  [T2Space M]

/-- The two images of the standard orthonormal parameter vectors under `df`. -/
def surfaceTangent (f : SurfaceParameter → M) (u : SurfaceParameter) (i : Fin 2) :
    TangentSpace I (f u) :=
  mfderiv 𝓘(ℝ, SurfaceParameter) I f u (EuclideanSpace.basisFun (Fin 2) ℝ i)

/-- The induced metric matrix of a parametrized surface. -/
def surfaceMetricMatrix (g : SmoothRiemannianMetric I M)
    (f : SurfaceParameter → M) (u : SurfaceParameter) : Matrix (Fin 2) (Fin 2) ℝ :=
  fun i j => g.inner (f u) (surfaceTangent (I := I) f u i) (surfaceTangent (I := I) f u j)

/-- Parametrized area density relative to Euclidean parameter volume. -/
def surfaceDensity (g : SmoothRiemannianMetric I M)
    (f : SurfaceParameter → M) (u : SurfaceParameter) : ℝ :=
  Real.sqrt (surfaceMetricMatrix g f u).det

/-- Area of a fixed parameter domain, with multiplicity. -/
def patchArea (g : SmoothRiemannianMetric I M) (f : SurfaceParameter → M)
    (Ω : Set SurfaceParameter) : ℝ :=
  ∫ u in Ω, surfaceDensity g f u

end OpenGA.RicciFlow
Source
https://github.com/MathNetwork/OpenGA/blob/112b4c3c69de2a05fb160e565c0e6c1eef1ce44b/OpenGALib/Interoperability/RicciFlow/SurfaceArea.lean#L26-L26; https://github.com/MathNetwork/OpenGA/blob/112b4c3c69de2a05fb160e565c0e6c1eef1ce44b/OpenGALib/Interoperability/RicciFlow/SurfaceArea.lean#L34-L37; https://github.com/MathNetwork/OpenGA/blob/112b4c3c69de2a05fb160e565c0e6c1eef1ce44b/OpenGALib/Interoperability/RicciFlow/SurfaceArea.lean#L39-L42; https://github.com/MathNetwork/OpenGA/blob/112b4c3c69de2a05fb160e565c0e6c1eef1ce44b/OpenGALib/Interoperability/RicciFlow/SurfaceArea.lean#L44-L47; https://github.com/MathNetwork/OpenGA/blob/112b4c3c69de2a05fb160e565c0e6c1eef1ce44b/OpenGALib/Interoperability/RicciFlow/SurfaceArea.lean#L49-L52

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