Closed and simple plane curves, signed curvature, area, convexity, vertices
DefinitionDoCarmo_plane_curvesThe vocabulary of do Carmo §1-7, the global theory of plane curves.
A closed plane curve of length is a regular curve whose derivatives of all orders agree at the endpoints of ; equivalently, as formalized here, a smooth -periodic map of unit speed. It is simple when for distinct .
With the rotation by , the signed curvature is (do Carmo §1-5, Remark 1), a vertex is a parameter with , and the curve is convex when for each its whole trace lies in one closed half-plane bounded by the tangent line at .
The area bounded by a positively oriented simple closed curve is taken from do Carmo's equation (1) of §1-7:
Finally an angle function is a smooth with ; the rotation index of the curve is .
import Mathlib
namespace DoCarmoDG
/-- Rotation by `+π/2` in `ℝ²`: `rot90 (a, b) = (-b, a)`. It sends the unit tangent `t` of a
plane curve to the normal `n` for which `{t, n}` has the orientation of the natural basis
(do Carmo §1-5, Remark 1). -/
noncomputable def rot90 (w : EuclideanSpace ℝ (Fin 2)) : EuclideanSpace ℝ (Fin 2) :=
!₂[-w 1, w 0]
/-- A closed plane curve of period `l`, parametrized by arc length (do Carmo §1-7):
`α` is smooth, `l`-periodic — so that `α` and all its derivatives agree at the endpoints of
`[0, l]` — and has unit speed, so that `l` is its length. -/
def IsClosedUnitSpeedCurve (l : ℝ) (α : ℝ → EuclideanSpace ℝ (Fin 2)) : Prop :=
0 < l ∧ ContDiff ℝ (⊤ : ℕ∞) α ∧ (∀ t, α (t + l) = α t) ∧ ∀ t, ‖deriv α t‖ = 1
/-- A simple closed plane curve: a closed curve without further self-intersections
(do Carmo §1-7). -/
def IsSimpleClosedCurve (l : ℝ) (α : ℝ → EuclideanSpace ℝ (Fin 2)) : Prop :=
IsClosedUnitSpeedCurve l α ∧
∀ t₁ ∈ Set.Ico (0 : ℝ) l, ∀ t₂ ∈ Set.Ico (0 : ℝ) l, t₁ ≠ t₂ → α t₁ ≠ α t₂
/-- The signed curvature of a plane curve parametrized by arc length, defined by
`α'' = k · rot90 α'` (do Carmo §1-5, Remark 1). -/
noncomputable def signedCurvature (α : ℝ → EuclideanSpace ℝ (Fin 2)) (s : ℝ) : ℝ :=
inner ℝ (deriv (deriv α) s) (rot90 (deriv α s))
/-- The area bounded by a positively oriented simple closed curve, do Carmo §1-7, Eq. (1):
`A = ½ ∫ (x y' - y x') dt`. -/
noncomputable def signedArea (l : ℝ) (α : ℝ → EuclideanSpace ℝ (Fin 2)) : ℝ :=
(1 / 2) * ∫ t in (0 : ℝ)..l, (α t 0 * deriv α t 1 - α t 1 * deriv α t 0)
/-- A convex plane curve: for every parameter, the whole trace lies in one of the two closed
half-planes determined by the tangent line at that parameter (do Carmo §1-7). -/
def IsConvexPlaneCurve (α : ℝ → EuclideanSpace ℝ (Fin 2)) : Prop :=
∀ t, (∀ u, 0 ≤ inner ℝ (α u - α t) (rot90 (deriv α t))) ∨
(∀ u, inner ℝ (α u - α t) (rot90 (deriv α t)) ≤ 0)
/-- A vertex of a plane curve: a parameter where the derivative of the curvature vanishes
(do Carmo §1-7). -/
def IsVertex (α : ℝ → EuclideanSpace ℝ (Fin 2)) (t : ℝ) : Prop :=
deriv (signedCurvature α) t = 0
/-- An angle function (a differentiable lift of the tangent indicatrix) of a plane curve
parametrized by arc length: `α'(s) = (cos θ(s), sin θ(s))` (do Carmo §1-7). -/
def IsAngleFunction (α : ℝ → EuclideanSpace ℝ (Fin 2)) (theta : ℝ → ℝ) : Prop :=
ContDiff ℝ (⊤ : ℕ∞) theta ∧ ∀ s, deriv α s = !₂[Real.cos (theta s), Real.sin (theta s)]
end DoCarmoDG
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 closed curves in the plane. A curve is a total function , and derivatives are ordinary pointwise derivatives, with the value at any point of non-differentiability; coordinates of a vector are written .
Quarter turn. , a total function of .
Closed unit-speed curve. For a real number and a curve , the property is the conjunction of four clauses: ; is on all of ; for every real ; and for every real . Periodicity is thus imposed globally, not only on , and unit speed likewise.
Simple closed curve. adds to the above that for all in the half-open interval with one has . The endpoint is excluded, so the closing-up is not contradicted.
Signed curvature. , a real number defined for every ; it may be positive, negative or zero, and it is not the norm of .
Signed area. For a real and a curve ,
an ordinary interval integral over (with the usual orientation convention, so the value changes sign if ). No relation to the Lebesgue measure of any region is asserted; this is a definition by a formula, and the value may be negative.
Convexity. states that for every parameter , one of the two alternatives holds: either for all real , or for all real . The alternative may be chosen differently for different , and the inequalities are non-strict, so points of the trace are allowed to lie on the tangent line.
Vertex. means , the derivative of the signed curvature function at ; no second-order condition and no requirement that have an extremum there.
Angle function. states that is a real-valued function on with for every real . Nothing asserts that such a exists, and it is not required to be -periodic.