Documentation

LeanPool.RupertMinimality.Minimality.Polygon

Polygon #

Strictly convex polygons with cyclically indexed corners #

IsCcwPolygon p (p : ZMod k → ℝ²): every corner lies strictly to the left of every directed edge not containing it. Facts used by Theorem 7.3:

The normal cone of S at p.

Equations
Instances For

    p lists the corners of a strictly convex polygon counterclockwise: every corner lies strictly to the left of every directed edge not containing it.

    Equations
    Instances For

      Outward normal of the edge from a to b of a counterclockwise polygon.

      Equations
      Instances For
        theorem RupertMinimality.Minimality.zmod_add_ne {k a b : ℕ} (ha : a < k) (hb : b < k) (hab : a ≠ b) (i : ZMod k) :
        i + ↑a ≠ i + ↑b
        theorem RupertMinimality.Minimality.zmod_natCast_pred {k : ℕ} (hk : 1 ≤ k) :
        ↑(k - 1) = -1
        theorem RupertMinimality.Minimality.zmod_ne_add_one {k : ℕ} (hk : 2 ≤ k) (i : ZMod k) :
        i ≠ i + 1
        theorem RupertMinimality.Minimality.zmod_sub_one_ne_add_one {k : ℕ} (hk : 3 ≤ k) (i : ZMod k) :
        i - 1 ≠ i + 1

        cross2 a b • w = cross2 a w • b - cross2 b w • a in the plane.

        theorem RupertMinimality.Minimality.IsCcwPolygon.cross2_edge_pos {k : ℕ} {p : ZMod k → ℝ²} (hp : IsCcwPolygon p) (i : ZMod k) :
        0 < cross2 (p i - p (i - 1)) (p (i + 1) - p i)

        Consecutive edges turn strictly left.

        theorem RupertMinimality.Minimality.IsCcwPolygon.lt_of_localMax {k : ℕ} {p : ZMod k → ℝ²} (hp : IsCcwPolygon p) {ν : ℝ²} (hν : ν ≠ 0) {s : ZMod k} (h1 : 0 ≤ inner ℝ ν (p s - p (s - 1))) (h2 : inner ℝ ν (p (s + 1) - p s) ≤ 0) {j : ZMod k} (hj1 : j ≠ s - 1) (hj2 : j ≠ s) (hj3 : j ≠ s + 1) :
        inner ℝ ν (p j) < inner ℝ ν (p s)

        A weak local maximum of ⟪ν, ·⟫ along the corner cycle is a strict global maximum, except at its two neighbours.

        theorem RupertMinimality.Minimality.IsCcwPolygon.ne_add_natCast {k s : ℕ} (hs0 : 0 < s) (hsk : s < k) (B : ZMod k) :
        B ≠ B + ↑s
        theorem RupertMinimality.Minimality.IsCcwPolygon.pattern_from_max {k : ℕ} {p : ZMod k → ℝ²} (hp : IsCcwPolygon p) (ν : ℝ²) (B : ZMod k) (hB : ∀ (i : ZMod k), inner ℝ ν (p i) ≤ inner ℝ ν (p B)) :
        ∃ t ≤ k, (∀ n < t, inner ℝ ν (p (B + ↑(n + 1)) - p (B + ↑n)) ≤ 0) ∧ ∀ (n : ℕ), t ≤ n → n < k → 0 ≤ inner ℝ ν (p (B + ↑(n + 1)) - p (B + ↑n))

        Increments from a maximising corner. If p B maximises ⟪ν, ·⟫, the increments of ⟪ν, p (B + n)⟫ are ≤ 0 for n < t and ≥ 0 for t ≤ n < k.

        theorem RupertMinimality.Minimality.IsCcwPolygon.normalCone_decomp {k : ℕ} {p : ZMod k → ℝ²} (hp : IsCcwPolygon p) (i : ZMod k) {f : ℝ²} (hf : f ∈ normalConeAt ((convexHull ℝ) (Set.range p)) (p i)) :
        ∃ (a : ℝ) (b : ℝ), 0 ≤ a ∧ 0 ≤ b ∧ f = a • outNormal (p (i - 1)) (p i) + b • outNormal (p i) (p (i + 1))

        The normal cone at a corner is spanned by the outward normals of its two edges.

        theorem RupertMinimality.Minimality.IsCcwPolygon.max_adjacent {k : ℕ} {p : ZMod k → ℝ²} (hp : IsCcwPolygon p) {e : ℝ²} (he : e ≠ 0) {i j : ZMod k} (hi : ∀ (l : ZMod k), inner ℝ e (p l) ≤ inner ℝ e (p i)) (hj : inner ℝ e (p j) = inner ℝ e (p i)) :
        j = i - 1 ∨ j = i ∨ j = i + 1

        Maximisers of a nonzero linear functional among the corners are pairwise adjacent.

        theorem RupertMinimality.Minimality.IsCcwPolygon.not_three_max {k : ℕ} {p : ZMod k → ℝ²} (hp : IsCcwPolygon p) {e : ℝ²} (he : e ≠ 0) (i : ZMod k) (h1 : inner ℝ e (p (i - 1)) = inner ℝ e (p i)) (h2 : inner ℝ e (p (i + 1)) = inner ℝ e (p i)) :

        Three consecutive corners cannot all maximise a nonzero linear functional.