Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Arc length, curvature, Frenet trihedron and torsion of a space curve

Definition
DoCarmo_local_theory_curves

by LG · Sep 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

curvesdifferential-geometryfrenet

The vocabulary of do Carmo §1-5, the local theory of curves parametrized by arc length.

A curve α:I→R3\alpha : I \to \mathbb{R}^3α:I→R3 is parametrized by arc length when it is smooth on III and ∣α′(s)∣=1|\alpha'(s)| = 1∣α′(s)∣=1 for all s∈Is \in Is∈I. Its unit tangent is t(s)=α′(s)t(s) = \alpha'(s)t(s)=α′(s) and its curvature is k(s)=∣α′′(s)∣k(s) = |\alpha''(s)|k(s)=∣α′′(s)∣.

At points where k(s)≠0k(s) \neq 0k(s)=0 the normal vector n(s)n(s)n(s) is the unit vector with α′′(s)=k(s) n(s)\alpha''(s) = k(s)\,n(s)α′′(s)=k(s)n(s), and the binormal is b(s)=t(s)∧n(s)b(s) = t(s) \wedge n(s)b(s)=t(s)∧n(s). Since bbb is a unit vector and b′=t∧n′b' = t \wedge n'b′=t∧n′ is orthogonal to ttt, the derivative b′(s)b'(s)b′(s) is a multiple of n(s)n(s)n(s), and the torsion τ(s)\tau(s)τ(s) is defined by b′(s)=τ(s) n(s)b'(s) = \tau(s)\,n(s)b′(s)=τ(s)n(s); equivalently, and as formalized here, τ(s)=⟨b′(s),n(s)⟩\tau(s) = \langle b'(s), n(s)\rangleτ(s)=⟨b′(s),n(s)⟩.

This is do Carmo's sign convention for the torsion; many other authors write −τ-\tau−τ for the same quantity.

The formalization uses total functions R→R3\mathbb{R} \to \mathbb{R}^3R→R3 that are required to be smooth and unit-speed only on III. All theorems in this mission take III to be an open interval (a,b)(a,b)(a,b), so that the ordinary derivative agrees with the derivative along III at every point of III. Where k(s)=0k(s) = 0k(s)=0 the normal, binormal and torsion take junk values, so every statement mentioning them assumes k≠0k \neq 0k=0 explicitly.

Definition code
import Definitions.Def_DoCarmo_vector_product

namespace DoCarmoDG

/-- A curve `α : I → ℝ³` parametrized by arc length: `α` is smooth on `I` and its velocity
has unit length at every point of `I`.  do Carmo, §1-3 and §1-5.
All statements below use an **open** interval `I`, so that `deriv` is the honest derivative
at every point of `I`. -/
def IsArcLengthCurve (I : Set ℝ) (α : ℝ → EuclideanSpace ℝ (Fin 3)) : Prop :=
  ContDiffOn ℝ (⊤ : ℕ∞) α I ∧ ∀ s ∈ I, ‖deriv α s‖ = 1

/-- The unit tangent vector `t(s) = α'(s)` of a curve parametrized by arc length, do Carmo §1-5. -/
noncomputable def tangent (α : ℝ → EuclideanSpace ℝ (Fin 3)) : ℝ → EuclideanSpace ℝ (Fin 3) :=
  deriv α

/-- The curvature `k(s) = |α''(s)|` of a curve parametrized by arc length, do Carmo §1-5. -/
noncomputable def curvature (α : ℝ → EuclideanSpace ℝ (Fin 3)) (s : ℝ) : ℝ :=
  ‖deriv (deriv α) s‖

/-- The normal vector `n(s)`, the unit vector in the direction of `α''(s)`, defined by
`α''(s) = k(s) n(s)` at points where `k(s) ≠ 0`, do Carmo §1-5. -/
noncomputable def normal (α : ℝ → EuclideanSpace ℝ (Fin 3)) (s : ℝ) : EuclideanSpace ℝ (Fin 3) :=
  (curvature α s)⁻¹ • deriv (deriv α) s

/-- The binormal vector `b(s) = t(s) ∧ n(s)`, do Carmo §1-5. -/
noncomputable def binormal (α : ℝ → EuclideanSpace ℝ (Fin 3)) (s : ℝ) :
    EuclideanSpace ℝ (Fin 3) :=
  cross (tangent α s) (normal α s)

/-- The torsion `τ(s)`, defined by `b'(s) = τ(s) n(s)`, do Carmo §1-5.
(do Carmo's sign convention: many authors write `-τ` for this quantity.) -/
noncomputable def torsion (α : ℝ → EuclideanSpace ℝ (Fin 3)) (s : ℝ) : ℝ :=
  inner ℝ (deriv (binormal α) s) (normal α s)

end DoCarmoDG
Source
Manfredo P. do Carmo, Differential Geometry of Curves and Surfaces, 2nd ed., Dover, 2016, Chapter 1, Section 1-5 (pp. 17-22)
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic)

Provenance note — this read-back is NOT blind. It was written by the same agent that drafted this Lean statement, at the explicit instruction of the mission's human owner, and not by an independent auditor with fresh context. It is therefore self-testimony, not independent testimony, and a reviewer must not treat it as a second opinion; an independent read-back should be obtained before this item is relied upon.

This file fixes the vocabulary for curves in R3\mathbb{R}^3R3. Throughout, a "curve" is a total function α:R→R3\alpha : \mathbb{R} \to \mathbb{R}^3α:R→R3 (defined at every real number, not just on an interval), and all derivatives are the ordinary derivative of such a function, taken pointwise: α′\alpha' α′ denotes the function s↦α′(s)s \mapsto \alpha'(s)s↦α′(s), whose value is 000 by convention at any point where α\alphaα is not differentiable, and α′′=(α′)′\alpha'' = (\alpha')'α′′=(α′)′ is the derivative of that function, again with value 000 at points of non-differentiability.

Arc-length parametrization. For a set I⊆RI \subseteq \mathbb{R}I⊆R and a curve α\alphaα, the property IsArcLengthCurve(I,α)\mathrm{IsArcLengthCurve}(I,\alpha)IsArcLengthCurve(I,α) is the conjunction of two clauses:

  • α\alphaα is C∞C^\inftyC∞ on III in the sense of differentiability relative to the set III; and
  • ∥α′(s)∥=1\lVert \alpha'(s) \rVert = 1∥α′(s)∥=1 for every s∈Is \in Is∈I, where α′\alpha'α′ is the ordinary derivative described above.

Nothing forces III to be an interval, to be open, or to be nonempty: for I=∅I = \varnothingI=∅ both clauses hold trivially, so every curve is an arc-length curve on the empty set. For a set III that is not open, the relative C∞C^\inftyC∞ condition and the ordinary derivative α′\alpha'α′ are logically independent conditions, and the second clause constrains the ordinary derivative.

Tangent. t=α′t = \alpha't=α′, the ordinary derivative function of α\alphaα, defined at every real number.

Curvature. k(s)=∥α′′(s)∥k(s) = \lVert \alpha''(s) \rVertk(s)=∥α′′(s)∥, a non-negative real number defined for every real sss (with the junk value 000 wherever the relevant derivatives do not exist).

Normal. n(s)=k(s)−1 α′′(s)n(s) = k(s)^{-1}\,\alpha''(s)n(s)=k(s)−1α′′(s). Because division by zero yields zero in this setting, at any point where k(s)=0k(s) = 0k(s)=0 one gets n(s)=0n(s) = 0n(s)=0; thus n(s)n(s)n(s) is a unit vector only where k(s)≠0k(s) \neq 0k(s)=0, and is the zero vector otherwise.

Binormal. b(s)=cross(t(s),n(s))b(s) = \mathrm{cross}(t(s), n(s))b(s)=cross(t(s),n(s)), the coordinatewise cross product

cross(u,v)=(u1v2−u2v1, u2v0−u0v2, u0v1−u1v0)\mathrm{cross}(u,v) = (u_1v_2-u_2v_1,\ u_2v_0-u_0v_2,\ u_0v_1-u_1v_0)cross(u,v)=(u1​v2​−u2​v1​, u2​v0​−u0​v2​, u0​v1​−u1​v0​)

applied to the tangent and normal at sss. Where k(s)=0k(s)=0k(s)=0 this is the zero vector.

Torsion. τ(s)=⟨b′(s),n(s)⟩\tau(s) = \langle b'(s), n(s)\rangleτ(s)=⟨b′(s),n(s)⟩, the real inner product of the ordinary derivative of the binormal function at sss with the normal vector at sss. This is a total function of sss; no hypothesis relating b′b'b′ to nnn is imposed by the definition, so τ(s)\tau(s)τ(s) is the component of b′(s)b'(s)b′(s) along n(s)n(s)n(s) whether or not b′(s)b'(s)b′(s) happens to be parallel to n(s)n(s)n(s), and τ(s)=0\tau(s) = 0τ(s)=0 at every point where k(s)=0k(s) = 0k(s)=0.

No smoothness, regularity, or positivity hypothesis is attached to any of these five definitions; they are total functions of α\alphaα and sss.

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