Documentation

Lightlike.PL.Convex

Convexity of open simplices and signs of affine functionals #

The open simplex of a finite set is convex. An affine functional that takes both signs on an open simplex vanishes somewhere on it, so the signs a functional takes on an open simplex are either one of {0}, {+}, {-} or all three of {-, 0, +} (when the simplex is cut). This dichotomy is what makes the slicing induction work cell by cell.

The open simplex of a finite set is convex.

theorem Lightlike.PL.exists_zero_openHull {E : Type u_1} [AddCommGroup E] [Module ℝ E] {s : Finset E} (h : E →ᵃ[ℝ] ℝ) {x y : E} (hx : x ∈ openHull s) (hy : y ∈ openHull s) (hxp : 0 < h x) (hyn : h y < 0) :
∃ z ∈ openHull s, h z = 0

An affine functional taking opposite signs at two points of an open simplex vanishes at a point of that open simplex.

def Lightlike.PL.Cuts {E : Type u_1} [AddCommGroup E] [Module ℝ E] (h : E →ᵃ[ℝ] ℝ) (s : Finset E) :

A functional cuts the open simplex of s when it takes both signs on it.

Equations
Instances For
    theorem Lightlike.PL.Cuts.exists_zero {E : Type u_1} [AddCommGroup E] [Module ℝ E] {s : Finset E} {h : E →ᵃ[ℝ] ℝ} (hc : Cuts h s) :
    ∃ z ∈ openHull s, h z = 0

    The sign dichotomy. A functional that cuts an open simplex also vanishes at a point of it; otherwise it has one strict sign (or vanishes) on the whole simplex.

    theorem Lightlike.PL.not_cuts_iff {E : Type u_1} [AddCommGroup E] [Module ℝ E] {s : Finset E} {h : E →ᵃ[ℝ] ℝ} :
    ¬Cuts h s ↔ (∀ x ∈ openHull s, 0 ≤ h x) ∨ ∀ x ∈ openHull s, h x ≤ 0

    A functional that does not cut an open simplex has a constant sign condition on it: it is nonnegative everywhere or nonpositive everywhere there.

    Segments into a cell #

    theorem Lightlike.PL.aff_combo {E : Type u_1} [AddCommGroup E] [Module ℝ E] (h : E →ᵃ[ℝ] ℝ) (p x : E) (t : ℝ) :
    h (t • p + (1 - t) • x) = t * h p + (1 - t) * h x

    An affine functional on a convex combination.

    theorem Lightlike.PL.exists_neg_of_zero_pos {E : Type u_1} [AddCommGroup E] [Module ℝ E] {s : Finset E} (h : E →ᵃ[ℝ] ℝ) {z y : E} (hz : z ∈ openHull s) (hy : y ∈ openHull s) (hz0 : h z = 0) (hy0 : 0 < h y) :
    ∃ u ∈ openHull s, h u < 0

    Going through a zero of an affine functional in the direction away from a point where it is positive reaches a point of the same open simplex where it is negative.

    theorem Lightlike.PL.sign_const_of_not_cuts {E : Type u_1} [AddCommGroup E] [Module ℝ E] {s : Finset E} {h : E →ᵃ[ℝ] ℝ} (hc : ¬Cuts h s) :
    ∃ (e : SignType), ∀ x ∈ openHull s, SignType.sign (h x) = e

    Constant sign. If a functional does not cut an open simplex, its sign is constant on it.

    Relatively open convex sets #

    def Lightlike.PL.Spread {E : Type u_1} [AddCommGroup E] [Module ℝ E] (C : Set E) :

    A set is spread when from any two of its points one can move a little further away from the second through the first and stay in the set: it is open in its own affine span.

    Equations
    Instances For

      Open simplices are spread.

      theorem Lightlike.PL.Spread.inter {E : Type u_1} [AddCommGroup E] [Module ℝ E] {C D : Set E} (hC : Spread C) (hD : Spread D) :
      Spread (C ∩ D)

      The intersection of two spread sets is spread.

      Pushing the real number a further away from b along the line through them keeps its sign for small steps, when a and b have the same sign.

      theorem Lightlike.PL.spread_signs {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} [Finite ι] (H : ι → E →ᵃ[ℝ] ℝ) (s : ι → SignType) :
      Spread {x : E | ∀ (i : ι), SignType.sign ((H i) x) = s i}

      A set of points where every functional of a finite family has a prescribed sign is spread.

      theorem Lightlike.PL.sign_combo {a b t : ℝ} (hab : SignType.sign a = SignType.sign b) (ht0 : 0 ≤ t) (ht1 : t ≤ 1) :
      SignType.sign (t * a + (1 - t) * b) = SignType.sign a

      Convex combinations of two reals of the same sign have that sign.

      theorem Lightlike.PL.convex_signs {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} (H : ι → E →ᵃ[ℝ] ℝ) (s : ι → SignType) :
      Convex ℝ {x : E | ∀ (i : ι), SignType.sign ((H i) x) = s i}

      A set of points where every functional of a family has a prescribed sign is convex.

      theorem Lightlike.PL.exists_zero_of_convex {E : Type u_1} [AddCommGroup E] [Module ℝ E] {C : Set E} (hC : Convex ℝ C) (h : E →ᵃ[ℝ] ℝ) {x y : E} (hx : x ∈ C) (hy : y ∈ C) (hxp : 0 < h x) (hyn : h y < 0) :
      ∃ z ∈ C, h z = 0

      A convex set on which an affine functional takes both signs contains a zero of it.

      theorem Lightlike.PL.sign_dichotomy {E : Type u_1} [AddCommGroup E] [Module ℝ E] {C : Set E} (hC : Convex ℝ C) (hS : Spread C) (h : E →ᵃ[ℝ] ℝ) :
      (∃ (e : SignType), ∀ x ∈ C, SignType.sign (h x) = e) ∨ (∃ x ∈ C, 0 < h x) ∧ (∃ z ∈ C, h z = 0) ∧ ∃ y ∈ C, h y < 0

      Sign dichotomy on a convex spread set. An affine functional has either a constant sign on it, or takes the values > 0, = 0 and < 0 somewhere on it.

      theorem Lightlike.PL.sign_eq_of_segment {a b : ℝ} (H : ∀ (t : ℝ), 0 < t → t ≤ 1 → SignType.sign (t * a + (1 - t) * b) = SignType.sign a) :

      If the points t a + (1 - t) b, 0 < t ≤ 1, all have the sign of a, then b is zero or has the sign of a.

      theorem Lightlike.PL.SComplex.orderComplex_map_on {P : Type u_2} {Q : Type u_3} [PartialOrder P] [DecidableEq P] [PartialOrder Q] [DecidableEq Q] (f : P ↪ Q) {S : Finset P} (hf : ∀ a ∈ S, ∀ b ∈ S, f a ≤ f b ↔ a ≤ b) :

      The order complex of the image of a set under a map that is an order embedding on the set.

      theorem Lightlike.PL.SComplex.segment_mem_cell {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} {H : ι → E →ᵃ[ℝ] ℝ} {c' c : CellIdx E ι} (hle : c' ≤ c) {x p : E} (hx : x ∈ cellSet (fun (i : ι) => ⇑(H i)) c') (hp : p ∈ cellSet (fun (i : ι) => ⇑(H i)) c) {t : ℝ} (ht0 : 0 < t) (ht1 : t ≤ 1) :
      t • p + (1 - t) • x ∈ cellSet (fun (i : ι) => ⇑(H i)) c

      Closure facts by segments. If c' ≤ c in the cell order, x lies in the cell c' and p in the cell c, then the half-open segment from x to p lies in the cell c (all but the endpoint x).

      Adding one functional #

      def Lightlike.PL.SComplex.extH {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} (H : ι → E →ᵃ[ℝ] ℝ) (h : E →ᵃ[ℝ] ℝ) :
      ι ⊕ Unit → E → ℝ

      The family H with one more functional h adjoined (indexed by ι ⊕ Unit).

      Equations
      Instances For
        def Lightlike.PL.SComplex.extSign {ι : Type u_2} (s : ι → SignType) (e : SignType) :

        The sign pattern s extended by the sign e for the new functional.

        Equations
        Instances For
          theorem Lightlike.PL.SComplex.cellSet_ext_subset {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} (H : ι → E →ᵃ[ℝ] ℝ) (h : E →ᵃ[ℝ] ℝ) (σ : Finset E) (s : ι → SignType) (e : SignType) :
          cellSet (extH H h) (σ, extSign s e) ⊆ cellSet (fun (i : ι) => ⇑(H i)) (σ, s)

          A cell of the extended family lies in the cell of the old family with the new sign dropped.

          theorem Lightlike.PL.SComplex.exists_cellSet_ext_eq {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} {H : ι → E →ᵃ[ℝ] ℝ} {h : E →ᵃ[ℝ] ℝ} {σ : Finset E} (hc : ¬Cuts h σ) (s : ι → SignType) :
          ∃ (e : SignType), cellSet (extH H h) (σ, extSign s e) = cellSet (fun (i : ι) => ⇑(H i)) (σ, s)

          Uncut cells keep their cell. If h does not cut the open simplex of σ, it has a constant sign e there, and the cell of the extended family with sign e is exactly the old cell.

          theorem Lightlike.PL.SComplex.convex_cellSet {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} (H : ι → E →ᵃ[ℝ] ℝ) (c : CellIdx E ι) :
          Convex ℝ (cellSet (fun (i : ι) => ⇑(H i)) c)

          A cell is convex.

          theorem Lightlike.PL.SComplex.spread_cellSet {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} [Finite ι] (H : ι → E →ᵃ[ℝ] ℝ) (c : CellIdx E ι) :
          Spread (cellSet (fun (i : ι) => ⇑(H i)) c)

          A cell is spread (open in its affine span).

          theorem Lightlike.PL.SComplex.cell_sign_dichotomy {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} [Finite ι] (H : ι → E →ᵃ[ℝ] ℝ) (c : CellIdx E ι) (h : E →ᵃ[ℝ] ℝ) :
          (∃ (e : SignType), ∀ x ∈ cellSet (fun (i : ι) => ⇑(H i)) c, SignType.sign (h x) = e) ∨ (∃ x ∈ cellSet (fun (i : ι) => ⇑(H i)) c, 0 < h x) ∧ (∃ z ∈ cellSet (fun (i : ι) => ⇑(H i)) c, h z = 0) ∧ ∃ y ∈ cellSet (fun (i : ι) => ⇑(H i)) c, h y < 0

          Sign dichotomy on a cell. A new functional has constant sign on a cell, or takes all three signs on it.

          theorem Lightlike.PL.SComplex.extSign_eq {ι : Type u_2} (s' : ι ⊕ Unit → SignType) :
          s' = extSign (s' ∘ Sum.inl) (s' (Sum.inr ()))

          The sign pattern of the extended family is the old one together with the new sign.

          theorem Lightlike.PL.SComplex.mem_cellSet_ext {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} {H : ι → E →ᵃ[ℝ] ℝ} {h : E →ᵃ[ℝ] ℝ} {σ : Finset E} {s : ι → SignType} {e : SignType} {x : E} :
          x ∈ cellSet (extH H h) (σ, extSign s e) ↔ x ∈ cellSet (fun (i : ι) => ⇑(H i)) (σ, s) ∧ SignType.sign (h x) = e

          A point lies in the cell of the extended family exactly when it lies in the old cell and h has the new sign there.

          @[reducible, inline]
          abbrev Lightlike.PL.SComplex.mkCell {E : Type u_1} {ι : Type u_2} (σ : Finset E) (s : ι → SignType) :
          CellIdx E ι

          The cell index with face σ and sign pattern s.

          Equations
          Instances For
            theorem Lightlike.PL.SComplex.ext_cell_mem_iff_const {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} [DecidableEq E] [Fintype ι] [DecidableEq ι] {K : SComplex E} {H : ι → E →ᵃ[ℝ] ℝ} {h : E →ᵃ[ℝ] ℝ} {σ : Finset E} {s : ι → SignType} {e : SignType} (hσ : σ ∈ K) (hne : (cellSet (fun (i : ι) => ⇑(H i)) (σ, s)).Nonempty) (hconst : ∀ x ∈ cellSet (fun (i : ι) => ⇑(H i)) (σ, s), SignType.sign (h x) = e) (e' : SignType) :
            mkCell σ (extSign s e') ∈ K.cells (extH H h) ↔ e' = e

            Cells after adding a functional, constant case. If h has constant sign e on the nonempty cell (σ, s), exactly the extension by e is a cell of the extended family.

            theorem Lightlike.PL.SComplex.ext_cell_mem_of_cut {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} [DecidableEq E] [Fintype ι] [DecidableEq ι] {K : SComplex E} {H : ι → E →ᵃ[ℝ] ℝ} {h : E →ᵃ[ℝ] ℝ} {σ : Finset E} {s : ι → SignType} (hσ : σ ∈ K) (hp : ∃ x ∈ cellSet (fun (i : ι) => ⇑(H i)) (σ, s), 0 < h x) (hz : ∃ x ∈ cellSet (fun (i : ι) => ⇑(H i)) (σ, s), h x = 0) (hn : ∃ x ∈ cellSet (fun (i : ι) => ⇑(H i)) (σ, s), h x < 0) (e : SignType) :
            mkCell σ (extSign s e) ∈ K.cells (extH H h)

            Cells after adding a functional, cut case. If h takes all three signs on the cell (σ, s), each of the three extensions is a cell of the extended family.

            theorem Lightlike.PL.SComplex.restrict_mem_cells {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} [DecidableEq E] [Fintype ι] [DecidableEq ι] {K : SComplex E} {H : ι → E →ᵃ[ℝ] ℝ} {h : E →ᵃ[ℝ] ℝ} {σ : Finset E} {s : ι → SignType} {e : SignType} (hc : mkCell σ (extSign s e) ∈ K.cells (extH H h)) :
            mkCell σ s ∈ K.cells fun (i : ι) => ⇑(H i)

            Every cell of the extended family comes from an old cell.

            theorem Lightlike.PL.SComplex.sign_face_of_const {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} {H : ι → E →ᵃ[ℝ] ℝ} {h : E →ᵃ[ℝ] ℝ} {c' c : CellIdx E ι} (hle : c' ≤ c) {x p : E} (hx : x ∈ cellSet (fun (i : ι) => ⇑(H i)) c') (hp : p ∈ cellSet (fun (i : ι) => ⇑(H i)) c) {e : SignType} (hconst : ∀ q ∈ cellSet (fun (i : ι) => ⇑(H i)) c, SignType.sign (h q) = e) :

            Signs on a face of a cell with constant sign. If h has constant sign on the cell c, a point of a cell c' below c has h-sign zero or equal to that sign.

            theorem Lightlike.PL.SComplex.mkCell_ext_le {E : Type u_1} {ι : Type u_2} {σ' σ : Finset E} {s' s : ι → SignType} {e' e : SignType} :
            mkCell σ' (extSign s' e') ≤ mkCell σ (extSign s e) ↔ mkCell σ' s' ≤ mkCell σ s ∧ (e' = 0 ∨ e' = e)

            Closure order of the extended cells. One extended cell lies below another exactly when the old cells are ordered and the new sign is zero or agrees.

            theorem Lightlike.PL.SComplex.mkCell_le_of_ext_le {E : Type u_1} {ι : Type u_2} {σ' σ : Finset E} {s' s : ι → SignType} {e' e : SignType} (h : mkCell σ' (extSign s' e') ≤ mkCell σ (extSign s e)) :
            mkCell σ' s' ≤ mkCell σ s

            Dropping the new sign is monotone.

            def Lightlike.PL.SComplex.extEmb {E : Type u_1} {ι : Type u_2} (e : CellIdx E ι → SignType) :
            CellIdx E ι ↪ CellIdx E (ι ⊕ Unit)

            Extending the sign pattern by a function of the cell is injective.

            Equations
            Instances For
              theorem Lightlike.PL.SComplex.sliceComplex_ext_of_const {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} [DecidableEq E] [Fintype ι] [DecidableEq ι] {K : SComplex E} {H : ι → E →ᵃ[ℝ] ℝ} {h : E →ᵃ[ℝ] ℝ} (hreg : ∀ c ∈ K.cells fun (i : ι) => ⇑(H i), ∃ (e : SignType), ∀ x ∈ cellSet (fun (i : ι) => ⇑(H i)) c, SignType.sign (h x) = e) :
              ∃ (φ : CellIdx E ι ↪ CellIdx E (ι ⊕ Unit)), K.sliceComplex (extH H h) = (K.sliceComplex fun (i : ι) => ⇑(H i)).map φ

              Slicing by a functional that cuts no cell. If the new functional h has constant sign on every cell of K and H, the slicing of K by H and h is the slicing by H, with the cells renamed by adjoining that sign.