Documentation

Lightlike.FourD.Orientation

Orientation of 4-complexes #

Orientations are handled as in ordered simplicial homology: the vertex type carries a linear order, and a simplex s (a vertex set) stands for the oriented simplex with its vertices in increasing order. An orientation of a 4-complex is then a sign ±1 for each 4-simplex.

Chains and the boundary operator (every dimension) #

Orientations of 4-complexes #

Main results #

Incidence signs #

def Lightlike.FourD.pos {V : Type u_1} [LinearOrder V] (s : Finset V) (v : V) :

The position of v among the vertices of s: the number of vertices of s below v.

Equations
Instances For
    def Lightlike.FourD.inc {V : Type u_1} [LinearOrder V] (s : Finset V) (v : V) :

    The sign (-1)^(pos s v) of the face s \ {v} in the boundary of the simplex s.

    Equations
    Instances For
      theorem Lightlike.FourD.inc_eq_one_or {V : Type u_1} [LinearOrder V] (s : Finset V) (v : V) :
      inc s v = 1 ∨ inc s v = -1
      theorem Lightlike.FourD.inc_mul_self {V : Type u_1} [LinearOrder V] (s : Finset V) (v : V) :
      inc s v * inc s v = 1
      theorem Lightlike.FourD.pos_erase_of_lt {V : Type u_1} [LinearOrder V] {s : Finset V} {v w : V} (h : w < v) :
      pos (s.erase v) w = pos s w
      theorem Lightlike.FourD.pos_erase_of_gt {V : Type u_1} [LinearOrder V] {s : Finset V} {v w : V} (hv : v ∈ s) (h : v < w) :
      pos (s.erase v) w + 1 = pos s w
      theorem Lightlike.FourD.pos_insert_of_lt {V : Type u_1} [LinearOrder V] {s : Finset V} {a v : V} (ha : a ∉ s) (h : a < v) :
      pos (insert a s) v = pos s v + 1
      theorem Lightlike.FourD.pos_insert_of_gt {V : Type u_1} [LinearOrder V] {s : Finset V} {a v : V} (h : v < a) :
      pos (insert a s) v = pos s v
      theorem Lightlike.FourD.inc_erase_of_lt {V : Type u_1} [LinearOrder V] {s : Finset V} {v w : V} (h : w < v) :
      inc (s.erase v) w = inc s w
      theorem Lightlike.FourD.inc_erase_of_gt {V : Type u_1} [LinearOrder V] {s : Finset V} {v w : V} (hv : v ∈ s) (h : v < w) :
      inc (s.erase v) w = -inc s w
      theorem Lightlike.FourD.inc_insert_of_lt {V : Type u_1} [LinearOrder V] {s : Finset V} {a v : V} (ha : a ∉ s) (h : a < v) :
      inc (insert a s) v = -inc s v
      theorem Lightlike.FourD.inc_insert_of_gt {V : Type u_1} [LinearOrder V] {s : Finset V} {a v : V} (h : v < a) :
      inc (insert a s) v = inc s v
      theorem Lightlike.FourD.inc_insert_self {V : Type u_1} [LinearOrder V] {s : Finset V} {a : V} :
      inc (insert a s) a = inc s a
      theorem Lightlike.FourD.inc_mul_inc_erase {V : Type u_1} [LinearOrder V] {s : Finset V} {v w : V} (hv : v ∈ s) (hw : w ∈ s) (hvw : v ≠ w) :
      inc s v * inc (s.erase v) w = -(inc s w * inc (s.erase w) v)

      The sign identity behind ∂ ∘ ∂ = 0: removing v and then w from s gives the opposite sign to removing w and then v.

      Chains and the boundary operator #

      @[reducible, inline]
      abbrev Lightlike.FourD.Chain (V : Type u_2) :
      Type u_2

      Integer chains: finite formal combinations of vertex sets, each standing for the simplex with its vertices in increasing order.

      Equations
      Instances For
        noncomputable def Lightlike.FourD.bdSimplex {V : Type u_1} [LinearOrder V] (s : Finset V) :

        The boundary of the simplex s: Σ_{v ∈ s} inc s v • [s \ {v}].

        Equations
        Instances For
          noncomputable def Lightlike.FourD.bd {V : Type u_1} [LinearOrder V] :

          The boundary operator on chains.

          Equations
          Instances For
            theorem Lightlike.FourD.bd_single {V : Type u_1} [LinearOrder V] (s : Finset V) (c : ℤ) :
            theorem Lightlike.FourD.sum_sum_erase_antisymm {V : Type u_1} [LinearOrder V] {s : Finset V} (F : V → V → Chain V) (hF : ∀ v ∈ s, ∀ w ∈ s, v ≠ w → F w v = -F v w) :
            ∑ v ∈ s, ∑ w ∈ s.erase v, F v w = 0

            A double sum Σ_{v ∈ s} Σ_{w ∈ s, w ≠ v} F v w of chains vanishes when F is antisymmetric.

            theorem Lightlike.FourD.bd_bdSimplex {V : Type u_1} [LinearOrder V] (s : Finset V) :
            bd (bdSimplex s) = 0

            ∂∂[s] = 0 for a single simplex.

            theorem Lightlike.FourD.bd_bd {V : Type u_1} [LinearOrder V] (c : Chain V) :
            bd (bd c) = 0

            ∂ ∘ ∂ = 0.

            Cones and oriented simplices for arbitrary vertex orderings #

            noncomputable def Lightlike.FourD.coneSimplex {V : Type u_1} [LinearOrder V] (a : V) (s : Finset V) :

            The cone with apex a on the simplex s: the simplex s ∪ {a}, with the sign that puts a first, and 0 if a ∈ s.

            Equations
            Instances For
              noncomputable def Lightlike.FourD.cone {V : Type u_1} [LinearOrder V] (a : V) :

              The cone with apex a, as a linear map on chains.

              Equations
              Instances For
                theorem Lightlike.FourD.cone_single {V : Type u_1} [LinearOrder V] (a : V) (s : Finset V) (c : ℤ) :
                theorem Lightlike.FourD.bd_cone_single {V : Type u_1} [LinearOrder V] {a : V} {s : Finset V} (ha : a ∉ s) :

                The cone identity ∂(a * x) = x - a * ∂x for a simplex x not containing a.

                theorem Lightlike.FourD.bd_cone_smul {V : Type u_1} [LinearOrder V] {a : V} {s : Finset V} (ha : a ∉ s) (c : ℤ) :
                bd ((cone a) (c • Finsupp.single s 1)) = c • Finsupp.single s 1 - (cone a) (bd (c • Finsupp.single s 1))

                The cone identity for multiples of a simplex not containing a.

                noncomputable def Lightlike.FourD.osimp {V : Type u_1} [LinearOrder V] :
                List V → Chain V

                The oriented simplex [v₀, …, vₖ] for a list of vertices: the iterated cone v₀ * (v₁ * ⋯ (vₖ * [∅])).

                Equations
                Instances For
                  theorem Lightlike.FourD.osimp_eq {V : Type u_1} [LinearOrder V] {l : List V} (hl : l.Nodup) :
                  ∃ (c : ℤ), (c = 1 ∨ c = -1) ∧ osimp l = c • Finsupp.single l.toFinset 1

                  For distinct vertices, [v₀, …, vₖ] is ±1 times the simplex {v₀, …, vₖ}.

                  theorem Lightlike.FourD.bd_osimp {V : Type u_1} [LinearOrder V] {l : List V} (hl : l.Nodup) :
                  bd (osimp l) = ∑ i : Fin l.length, (-1) ^ ↑i • osimp (l.eraseIdx ↑i)

                  The textbook boundary formula ∂[v₀, …, vₖ] = Σᵢ (-1)^i [v₀, …, v̂ᵢ, …, vₖ], for every list of distinct vertices.

                  theorem Lightlike.FourD.osimp_sort {V : Type u_1} [LinearOrder V] (s : Finset V) :
                  osimp (s.sort fun (x1 x2 : V) => x1 ≤ x2) = Finsupp.single s 1

                  The basis chain [s] is the oriented simplex with the vertices of s in increasing order.

                  theorem Lightlike.FourD.osimp_swap {V : Type u_1} [LinearOrder V] {a b : V} {l : List V} (hl : (a :: b :: l).Nodup) :
                  osimp (a :: b :: l) = -osimp (b :: a :: l)

                  Exchanging the first two vertices reverses the orientation.

                  theorem Lightlike.FourD.osimp_swap_append {V : Type u_1} [LinearOrder V] {a b : V} (p : List V) {q : List V} (hl : (p ++ a :: b :: q).Nodup) :
                  osimp (p ++ a :: b :: q) = -osimp (p ++ b :: a :: q)

                  Exchanging two neighbouring vertices anywhere reverses the orientation. Since such transpositions generate all permutations and osimp_sort fixes the increasing order, [v₀, …, vₖ] is the sign of the sorting permutation times [{v₀, …, vₖ}]: the definition of oriented simplices as classes of vertex orderings.

                  Incidence numbers and fundamental chains #

                  theorem Lightlike.FourD.exists_eq_erase {V : Type u_1} [LinearOrder V] {s t : Finset V} (hts : t ⊆ s) (hc : s.card = t.card + 1) :
                  ∃ v ∈ s, t = s.erase v

                  A face t ⊆ s with one vertex less is s \ {v} for a vertex v of s.

                  The faces of S with one vertex less are the sets S \ {v}.

                  def Lightlike.FourD.relSign {V : Type u_1} [LinearOrder V] (s t : Finset V) :

                  The incidence number [s : t] of a simplex s and a face t with one vertex less: the sign inc s v of the vertex v of s that is not in t.

                  Equations
                  Instances For
                    theorem Lightlike.FourD.relSign_erase {V : Type u_1} [LinearOrder V] {s : Finset V} {v : V} (hv : v ∈ s) :
                    relSign s (s.erase v) = inc s v
                    theorem Lightlike.FourD.relSign_eq_one_or {V : Type u_1} [LinearOrder V] {s t : Finset V} (hts : t ⊆ s) (hc : s.card = t.card + 1) :
                    relSign s t = 1 ∨ relSign s t = -1
                    theorem Lightlike.FourD.bdSimplex_apply {V : Type u_1} [LinearOrder V] (s t : Finset V) :
                    (bdSimplex s) t = if t ⊆ s ∧ s.card = t.card + 1 then relSign s t else 0

                    The coefficient of t in ∂[s] is [s : t] if t is a face of s with one vertex less, and 0 otherwise.

                    noncomputable def Lightlike.FourD.fundChain {V : Type u_1} (F : Finset (Finset V)) (o : Finset V → ℤ) :

                    The fundamental chain Σ_{s ∈ F} o s • [s] of a family of simplices with signs o.

                    Equations
                    Instances For
                      theorem Lightlike.FourD.bd_fundChain_apply {V : Type u_1} [LinearOrder V] (F : Finset (Finset V)) (o : Finset V → ℤ) (t : Finset V) :
                      (bd (fundChain F o)) t = ∑ s ∈ F, o s * (bdSimplex s) t
                      theorem Lightlike.FourD.Complex4.bd_fundChain_apply_tet {V : Type u_1} [LinearOrder V] (K : Complex4 V) (o : Finset V → ℤ) {t : Finset V} (ht : t.card = 4) :
                      (bd (fundChain K.simps o)) t = ∑ s ∈ K.star t, o s * relSign s t

                      The coefficient of a tetrahedron t in the boundary of the fundamental chain of K: Σ_{s ∋ t} o s • [s : t].

                      theorem Lightlike.FourD.Complex4.bd_fundChain_apply_of_notMem {V : Type u_1} [LinearOrder V] (K : Complex4 V) (o : Finset V → ℤ) {t : Finset V} (ht : t ∉ K.tets) :
                      (bd (fundChain K.simps o)) t = 0

                      Only tetrahedra of K occur in the boundary of its fundamental chain.

                      Orientations #

                      structure Lightlike.FourD.Complex4.IsOrientation {V : Type u_1} [LinearOrder V] (K : Complex4 V) (o : Finset V → ℤ) :

                      An orientation of a 4-complex: a sign o s = ±1 for every 4-simplex (the orientation of s relative to the increasing order of its vertices) such that two distinct 4-simplices sharing a tetrahedron t induce opposite orientations on t.

                      Instances For

                        K has an orientation.

                        Equations
                        Instances For
                          theorem Lightlike.FourD.Complex4.IsOrientation.sign_mul {V : Type u_1} [LinearOrder V] {K : Complex4 V} {o : Finset V → ℤ} (ho : K.IsOrientation o) {s t : Finset V} (hs : s ∈ K.simps) (hts : t ⊆ s) (ht : t.card = 4) :
                          o s * relSign s t = 1 ∨ o s * relSign s t = -1

                          An orientable complex is a pseudo-manifold: three 4-simplices around one tetrahedron cannot induce pairwise opposite orientations on it.

                          theorem Lightlike.FourD.Complex4.isOrientation_iff {V : Type u_1} [LinearOrder V] {K : Complex4 V} {o : Finset V → ℤ} :
                          K.IsOrientation o ↔ (∀ s ∈ K.simps, o s = 1 ∨ o s = -1) ∧ K.IsPseudo4 ∧ ∀ t ∈ K.tets, (K.star t).card = 2 → (bd (fundChain K.simps o)) t = 0

                          Orientations through the boundary operator: o is an orientation exactly when it takes the values ±1, K is a pseudo-manifold, and the boundary of the fundamental chain vanishes on every interior tetrahedron.

                          theorem Lightlike.FourD.Complex4.isOrientation_iff_of_closed {V : Type u_1} [LinearOrder V] {K : Complex4 V} {o : Finset V → ℤ} (hK : K.IsClosed4) :
                          K.IsOrientation o ↔ (∀ s ∈ K.simps, o s = 1 ∨ o s = -1) ∧ bd (fundChain K.simps o) = 0

                          For a closed complex, an orientation is a fundamental cycle: signs ±1 whose chain has zero boundary.

                          def Lightlike.FourD.Complex4.bdryOrient {V : Type u_1} [LinearOrder V] (K : Complex4 V) (o : Finset V → ℤ) (t : Finset V) :

                          The orientation induced on the boundary tetrahedra: t gets Σ_{s ∋ t} o s • [s : t].

                          Equations
                          Instances For

                            The boundary of an oriented complex: the boundary of its fundamental chain is the fundamental chain of the boundary tetrahedra with the induced orientation.

                            The induced orientation of the boundary is a cycle.

                            The boundary of a 5-simplex is orientable: s ↦ [S : s] is an orientation, whose fundamental cycle is ∂[S].

                            theorem Lightlike.FourD.Complex4.IsOrientation.move {V : Type u_1} [LinearOrder V] {K : Complex4 V} {o : Finset V → ℤ} (ho : K.IsOrientation o) {σ τ : Finset V} (h : K.IsMove σ τ) :

                            Pachner moves preserve orientations. The new 4-simplices (σ ∪ τ) \ {u} get the orientation that makes the fundamental chain change by a multiple of ∂[σ ∪ τ], which has no boundary.

                            Pachner moves preserve orientability, in both directions.