Documentation

Lightlike.PL.CellPolytope

A cell of a slicing as a polytope #

A cell (s, sg) of the slicing of a geometric complex by affine functionals H is a polytope in the affine subspace cellA cut out of the affine span of s by the functionals H i whose sign on the cell is zero. Its closed part is described by finitely many affine functions g k on the whole space, namely the barycentric coordinates of s and the functionals H i with a nonzero sign, and its open part is the set where all of them are negative.

Main results #

def Lightlike.PL.SComplex.cellA {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} (H : ι → E →ᵃ[ℝ] ℝ) (c : CellIdx E ι) :

The affine subspace of a cell: the affine span of its simplex, cut by the functionals that vanish on the cell.

Equations
Instances For
    theorem Lightlike.PL.SComplex.mem_cellA {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} {H : ι → E →ᵃ[ℝ] ℝ} {c : CellIdx E ι} {x : E} :
    x ∈ cellA H c ↔ x ∈ affineSpan ℝ ↑c.1 ∧ ∀ (i : ι), c.2 i = 0 → (H i) x = 0
    noncomputable def Lightlike.PL.SComplex.cellG {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} (H : ι → E →ᵃ[ℝ] ℝ) (c : CellIdx E ι) (w : E → E →ᵃ[ℝ] ℝ) :
    ↥c.1 ⊕ ι → E →ᵃ[ℝ] ℝ

    The facet functions of a cell: minus the barycentric coordinates w, and for each i either a constant -1 (when the sign is zero) or -sign times H i.

    Equations
    Instances For
      theorem Lightlike.PL.SComplex.sign_weak_iff (a : ℝ) (sg : SignType) :
      SignType.sign a = 0 ∨ SignType.sign a = sg ↔ (sg = 0 → a = 0) ∧ (if sg = 0 then -1 else -↑sg * a) ≤ 0
      theorem Lightlike.PL.SComplex.sign_strict_iff (a : ℝ) (sg : SignType) :
      SignType.sign a = sg ↔ (sg = 0 → a = 0) ∧ (if sg = 0 then -1 else -↑sg * a) < 0
      @[simp]
      theorem Lightlike.PL.SComplex.cellG_inl {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} [DecidableEq E] (H : ι → E →ᵃ[ℝ] ℝ) (c : CellIdx E ι) (w : E → E →ᵃ[ℝ] ℝ) (y : ↥c.1) (x : E) :
      (cellG H c w (Sum.inl y)) x = -(w ↑y) x
      theorem Lightlike.PL.SComplex.cellG_inr {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} [DecidableEq E] (H : ι → E →ᵃ[ℝ] ℝ) (c : CellIdx E ι) (w : E → E →ᵃ[ℝ] ℝ) (i : ι) (x : E) :
      (cellG H c w (Sum.inr i)) x = if c.2 i = 0 then -1 else -↑(c.2 i) * (H i) x
      theorem Lightlike.PL.SComplex.sliceHull_eq {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} [DecidableEq E] (H : ι → E →ᵃ[ℝ] ℝ) (c : CellIdx E ι) (w : E → E →ᵃ[ℝ] ℝ) (hw : ∀ (u : E → ℝ), ∑ y ∈ c.1, u y = 1 → ∀ y ∈ c.1, (w y) (∑ z ∈ c.1, u z • z) = u y) :
      sliceHull H c = {x : E | x ∈ cellA H c ∧ ∀ (k : ↥c.1 ⊕ ι), (cellG H c w k) x ≤ 0}

      The closed part of a cell in terms of the facet functions.

      theorem Lightlike.PL.SComplex.cellSet_eq {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} [DecidableEq E] (H : ι → E →ᵃ[ℝ] ℝ) (c : CellIdx E ι) (w : E → E →ᵃ[ℝ] ℝ) (hw : ∀ (u : E → ℝ), ∑ y ∈ c.1, u y = 1 → ∀ y ∈ c.1, (w y) (∑ z ∈ c.1, u z • z) = u y) :
      cellSet (fun (i : ι) => ⇑(H i)) c = {x : E | x ∈ cellA H c ∧ ∀ (k : ↥c.1 ⊕ ι), (cellG H c w k) x < 0}

      The cell in terms of the facet functions: the points of the subspace where every facet function is negative.

      theorem Lightlike.PL.SComplex.exists_facet {E : Type u_1} [AddCommGroup E] [Module ℝ E] {ι : Type u_2} [DecidableEq E] (H : ι → E →ᵃ[ℝ] ℝ) {C D : CellIdx E ι} (hDC : D < C) (w : E → E →ᵃ[ℝ] ℝ) (hw : ∀ (u : E → ℝ), ∑ y ∈ C.1, u y = 1 → ∀ y ∈ C.1, (w y) (∑ z ∈ C.1, u z • z) = u y) :
      ∃ (k : ↥C.1 ⊕ ι), ∀ x ∈ sliceHull H D, (cellG H C w k) x = 0

      A face of a cell, other than the cell, lies in a facet hyperplane: some facet function vanishes on its whole closed part.

      theorem Lightlike.PL.SComplex.card_le_finrank_of_hyperplane {E : Type u_1} [AddCommGroup E] [Module ℝ E] [DecidableEq E] (A : AffineSubspace ℝ E) [FiniteDimensional ℝ ↥A.direction] (g : E →ᵃ[ℝ] ℝ) {q : E} (hqA : q ∈ A) (hq : g q ≠ 0) (s : Finset E) (hs : AffineIndependent ℝ Subtype.val) (hsA : ∀ z ∈ s, z ∈ A) (hsg : ∀ z ∈ s, g z = 0) :

      An affinely independent finite set in the part of a hyperplane inside an affine subspace A has at most dim A points, provided the hyperplane does not contain A.