Documentation

LeanPool.LeanModularForms.GeneralizedResidueTheory.ArcCalculus

Arc Calculus #

General-purpose API for unit circle arc parameterizations and their properties. Used for computing winding numbers, distances, and derivatives along circular arcs.

Main definitions #

Main results #

noncomputable def ArcCalculus.unitArc (θ₁ θ₂ a b t : ) :

Unit circle arc from angle θ₁ to θ₂, linearly parameterized on [a,b].

Equations
Instances For
    theorem ArcCalculus.unitArc_norm (θ₁ θ₂ a b t : ) :
    unitArc θ₁ θ₂ a b t = 1

    Points on the unit arc have norm 1.

    theorem ArcCalculus.unitArc_at_start (θ₁ θ₂ a b : ) :
    unitArc θ₁ θ₂ a b a = Complex.exp (θ₁ * Complex.I)

    The arc starts at exp(iθ₁).

    theorem ArcCalculus.unitArc_at_end (θ₁ θ₂ a b : ) (hab : a b) :
    unitArc θ₁ θ₂ a b b = Complex.exp (θ₂ * Complex.I)

    The arc ends at exp(iθ₂).

    theorem ArcCalculus.unitArc_continuous (θ₁ θ₂ a b : ) :
    Continuous (unitArc θ₁ θ₂ a b)

    The unit arc is continuous.

    theorem ArcCalculus.unitArc_hasDerivAt (θ₁ θ₂ a b t : ) (hab : a < b) :
    HasDerivAt (unitArc θ₁ θ₂ a b) (unitArc θ₁ θ₂ a b t * (↑((θ₂ - θ₁) / (b - a)) * Complex.I)) t

    Derivative of the unit arc.

    theorem ArcCalculus.exp_sub_norm_sq (θ₁ θ₂ : ) :
    Complex.exp (θ₁ * Complex.I) - Complex.exp (θ₂ * Complex.I) ^ 2 = 2 - 2 * Real.cos (θ₁ - θ₂)

    Key distance formula: squared norm of difference of two points on the unit circle.

    sin is positive on the open interval (0, π).

    theorem ArcCalculus.abs_cos_le_half_of_mem_Icc {θ : } ( : θ Set.Icc (Real.pi / 3) (2 * Real.pi / 3)) :
    |Real.cos θ| 1 / 2

    |cos θ| ≤ 1/2 for θ ∈ [π/3, 2π/3].