Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§4.6, p. 61 — the mesh metric ℓ_uv = ‖x_u − x_v‖ satisfies the triangle inequality on every face

Proved
GeomDL.Cotangent.edge_length_triangle_inequality

by mikedeng1 · Oct 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

geometric-deep-learningmetricp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1triangular-mesh

Let F\mathcal FF be the faces of a manifold triangular mesh whose nodes are embedded by x1,…,xn\mathbf x_1,\dots,\mathbf x_nx1​,…,xn​ in a Euclidean space, and let ℓuv=∥xu−xv∥\ell_{uv} = \|\mathbf x_u - \mathbf x_v\|ℓuv​=∥xu​−xv​∥ be the induced metric. For every face (u,v,q)∈F(u,v,q) \in \mathcal F(u,v,q)∈F, every combination of its edges satisfies the triangle inequality:

ℓuv≤ℓuq+ℓvq,ℓuq≤ℓuv+ℓqv,ℓvq≤ℓvu+ℓqu.\ell_{uv} \le \ell_{uq} + \ell_{vq}, \qquad \ell_{uq} \le \ell_{uv} + \ell_{qv}, \qquad \ell_{vq} \le \ell_{vu} + \ell_{qu}.ℓuv​≤ℓuq​+ℓvq​,ℓuq​≤ℓuv​+ℓqv​,ℓvq​≤ℓvu​+ℓqu​.

This is what makes ℓ\ellℓ a metric on the mesh, so that a property expressed solely in terms of ℓ\ellℓ is called intrinsic.

Preamble
import Mathlib
import Definitions.Def_GeomDL_Cotangent_Defs

open EuclideanGeometry
Formal statement
namespace GeomDL.Cotangent

variable {V P : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [MetricSpace P]
  [NormedAddTorsor V P]

/-- §4.6, p. 61: the metric `ℓ_uv = ‖x_u − x_v‖` induced by the embedding satisfies the
    triangle inequality on every face `(u, v, q) ∈ F` of a manifold mesh, for every
    combination of its edges. -/
    theorem edge_length_triangle_inequality {n : ℕ} (M : TriMesh n) (x : Fin n → P)
        (hmesh : IsManifoldMesh M) {u v q : Fin n} (hF : (u, v, q) ∈ M.faces) :
    edgeLength x u v ≤ edgeLength x u q + edgeLength x v q ∧
    edgeLength x u q ≤ edgeLength x u v + edgeLength x q v ∧
    edgeLength x v q ≤ edgeLength x v u + edgeLength x q u := by sorry

end GeomDL.Cotangent
Source
Bronstein et al., Geometric Deep Learning (arXiv:2104.13478v2), §4.6, p. 61, "A metric defined in this way automatically satisfies properties such as the triangle inequality"
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 21, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me