Documentation

Lightlike.Surfaces.Basic

Closed combinatorial surfaces and their orientations #

A closed combinatorial surface (IsSurface) is a nonempty finite set of triangles in which every edge lies in exactly two triangles, every vertex link is connected (with closedness, a cycle), and the 1-skeleton is connected. These are the intrinsic conditions of IsSurfaceSphere (Lightlike/PonzanoRegge/SphereConverse.lean) without the Euler characteristic.

An orientation (IsOrientation) is a fundamental class: an alternating function o of ordered triples of vertices, equal to ±1 on the orderings of each triangle and 0 elsewhere, whose boundary vanishes, ∑_w o u v w = 0 for all u, v. On a closed surface this says exactly that the two triangles at each edge induce opposite directions on it.

Closed surfaces #

structure Lightlike.Surfaces.IsSurface {V : Type u_1} [DecidableEq V] (L : Finset (Finset V)) :

A closed combinatorial surface: a nonempty set of triangles, every edge in exactly two of them, every vertex link connected, and the 1-skeleton connected.

Instances For

    The two complexes of a 2D move are nonempty.

    A 2D bistellar move keeps closed surfaces, in both directions.

    Complexes related by 2D bistellar moves are surfaces together.

    An intrinsic triangulated 2-sphere is a closed surface.

    The closed surfaces with Euler characteristic 2 are the intrinsic 2-spheres.

    Oriented triangles #

    def Lightlike.Surfaces.ind {V : Type u_1} [DecidableEq V] (p q r x y z : V) :

    The indicator of the ordered triple (p, q, r).

    Equations
    Instances For
      def Lightlike.Surfaces.otri {V : Type u_1} [DecidableEq V] (a b c x y z : V) :

      The oriented triangle (a, b, c) as an alternating function of ordered triples: 1 on the rotations of (a, b, c), -1 on those of (b, a, c).

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Lightlike.Surfaces.edir {V : Type u_1} [DecidableEq V] (p q u v : V) :

        The directed edge (p, q) as an antisymmetric function of ordered pairs.

        Equations
        Instances For
          theorem Lightlike.Surfaces.ind_rot {V : Type u_1} [DecidableEq V] (p q r x y z : V) :
          ind p q r y z x = ind r p q x y z
          theorem Lightlike.Surfaces.ind_swap {V : Type u_1} [DecidableEq V] (p q r x y z : V) :
          ind p q r y x z = ind q p r x y z
          theorem Lightlike.Surfaces.otri_rot {V : Type u_1} [DecidableEq V] (a b c x y z : V) :
          otri a b c y z x = otri a b c x y z
          theorem Lightlike.Surfaces.otri_swap {V : Type u_1} [DecidableEq V] (a b c x y z : V) :
          otri a b c y x z = -otri a b c x y z
          theorem Lightlike.Surfaces.edir_swap {V : Type u_1} [DecidableEq V] (p q u v : V) :
          edir q p u v = -edir p q u v
          theorem Lightlike.Surfaces.sum_ind {V : Type u_1} [DecidableEq V] {S : Finset V} (p q r u v : V) :
          ∑ w ∈ S, ind p q r u v w = if u = p ∧ v = q ∧ r ∈ S then 1 else 0
          theorem Lightlike.Surfaces.sum_otri {V : Type u_1} [DecidableEq V] {S : Finset V} {a b c : V} (ha : a ∈ S) (hb : b ∈ S) (hc : c ∈ S) (u v : V) :
          ∑ w ∈ S, otri a b c u v w = edir a b u v + edir b c u v + edir c a u v

          The boundary of an oriented triangle: its three directed edges.

          theorem Lightlike.Surfaces.otri_eq_zero {V : Type u_1} [DecidableEq V] {a b c x y z : V} (h : {x, y, z} ≠ {a, b, c}) :
          otri a b c x y z = 0

          An oriented triangle vanishes off its own vertex set.

          theorem Lightlike.Surfaces.eq_otri_mul {V : Type u_1} [DecidableEq V] {o : V → V → V → ℤ} (hrot : ∀ (x y z : V), o y z x = o x y z) (hswap : ∀ (x y z : V), o y x z = -o x y z) {a b c x y z : V} (hab : a ≠ b) (hac : a ≠ c) (hbc : b ≠ c) (h : {x, y, z} = {a, b, c}) :
          o x y z = otri a b c x y z * o a b c

          An alternating function on the orderings of a triangle is determined by one value.

          Orientations #

          structure Lightlike.Surfaces.IsOrientation {V : Type u_1} [DecidableEq V] (L : Finset (Finset V)) (o : V → V → V → ℤ) :

          An orientation of L: an alternating function of ordered triples, ±1 on the orderings of every triangle of L and 0 off L, with zero boundary.

          • rot (x y z : V) : o y z x = o x y z
          • swap (x y z : V) : o y x z = -o x y z
          • supp (x y z : V) : o x y z ≠ 0 → {x, y, z} ∈ L
          • unit (x y z : V) : {x, y, z} ∈ L → o x y z = 1 ∨ o x y z = -1
          • cycle (u v : V) : ∑ w ∈ PR.verts2 L, o u v w = 0
          Instances For

            L is orientable: it has an orientation.

            Equations
            Instances For
              theorem Lightlike.Surfaces.IsOrientation.eq_zero_of_notMem {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {o : V → V → V → ℤ} (ho : IsOrientation L o) {x y z : V} (h : {x, y, z} ∉ L) :
              o x y z = 0
              theorem Lightlike.Surfaces.IsOrientation.eq_zero_of_notMem_verts {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {o : V → V → V → ℤ} (ho : IsOrientation L o) {x y z : V} (hz : z ∉ PR.verts2 L) :
              o x y z = 0
              theorem Lightlike.Surfaces.IsOrientation.perm {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {o : V → V → V → ℤ} (ho : IsOrientation L o) {a b c x y z : V} (hab : a ≠ b) (hac : a ≠ c) (hbc : b ≠ c) (h : {x, y, z} = {a, b, c}) :
              o x y z = otri a b c x y z * o a b c
              theorem Lightlike.Surfaces.IsOrientation.swap23 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {o : V → V → V → ℤ} (ho : IsOrientation L o) (x y z : V) :
              o x z y = -o x y z
              theorem Lightlike.Surfaces.IsOrientation.pair {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {o : V → V → V → ℤ} (ho : IsOrientation L o) {u v p q : V} (hpq : p ≠ q) (hp : p ∈ PR.verts2 L) (hq : q ∈ PR.verts2 L) (h : ∀ (w : V), {u, v, w} ∈ L → w = p ∨ w = q) :
              o u v p + o u v q = 0

              At an edge uv whose only triangles are uvp and uvq, the two values cancel.

              theorem Lightlike.Surfaces.otri_mul_unit {V : Type u_1} [DecidableEq V] {a b c x y z : V} {s : ℤ} (hab : a ≠ b) (hac : a ≠ c) (hbc : b ≠ c) (h : {x, y, z} = {a, b, c}) (hs : s = 1 ∨ s = -1) :
              s * otri a b c x y z = 1 ∨ s * otri a b c x y z = -1

              Values on orderings of a triangle: ±1 times ±1.

              theorem Lightlike.Surfaces.ne_tri {V : Type u_1} [DecidableEq V] {p q r a b c : V} (y : V) (hy : y = a ∨ y = b ∨ y = c) (hy' : y ≠ p ∧ y ≠ q ∧ y ≠ r) :
              {p, q, r} ≠ {a, b, c}

              Two triangles with a vertex that only one of them contains are different.

              theorem Lightlike.Surfaces.notMem_of_notMem_verts {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {t : Finset V} {x : V} (ht : t ∈ L) (hx : x ∉ PR.verts2 L) :
              x ∉ t

              A triangle of L does not contain a vertex outside L.

              theorem Lightlike.Surfaces.mem_verts2_of_mem {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {a b c : V} (h : {a, b, c} ∈ L) :
              theorem Lightlike.Surfaces.sum_verts_insert {V : Type u_1} [DecidableEq V] {S : Finset V} {f : V → ℤ} {x : V} (hx : x ∉ S) (hfx : f x = 0) :
              ∑ w ∈ insert x S, f w = ∑ w ∈ S, f w

              Summing over a set with one more point where the function vanishes.

              Subdividing a triangle #

              theorem Lightlike.Surfaces.isOrientation_sub13 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d x : V} {o : V → V → V → ℤ} (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) (hτ : {b, c, d} ∈ L) (hx : x ∉ PR.verts2 L) (ho : IsOrientation L o) :
              IsOrientation (insert {b, c, x} (insert {c, d, x} (insert {b, d, x} (L.erase {b, c, d})))) fun (p q r : V) => o p q r + o b c d * (otri b c x p q r + otri c d x p q r + otri d b x p q r - otri b c d p q r)

              An orientation after subdividing bcd by x: the old one plus o(b,c,d) times the boundary-free chain bcx + cdx + dbx − bcd.

              theorem Lightlike.Surfaces.isOrientation_of_sub13 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d x : V} {o : V → V → V → ℤ} (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) (hτ : {b, c, d} ∈ L) (hx : x ∉ PR.verts2 L) (ho : IsOrientation (insert {b, c, x} (insert {c, d, x} (insert {b, d, x} (L.erase {b, c, d})))) o) :
              IsOrientation L fun (p q r : V) => o p q r + o b c x * (otri b c d p q r - otri b c x p q r - otri c d x p q r - otri d b x p q r)

              An orientation before subdividing bcd by x: the reverse of isOrientation_sub13.

              Flipping an edge #

              theorem Lightlike.Surfaces.isOrientation_flip22 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d e : V} {o : V → V → V → ℤ} (hbc : b ≠ c) (hbd : b ≠ d) (hbe : b ≠ e) (hcd : c ≠ d) (hce : c ≠ e) (hde : d ≠ e) (h₁ : {b, c, d} ∈ L) (h₂ : {b, c, e} ∈ L) (hstar : ∀ τ ∈ L, {b, c} ⊆ τ → τ = {b, c, d} ∨ τ = {b, c, e}) (hfresh : ∀ τ ∈ L, ¬{d, e} ⊆ τ) (ho : IsOrientation L o) :
              IsOrientation (insert {b, d, e} (insert {c, d, e} ((L.erase {b, c, d}).erase {b, c, e}))) fun (p q r : V) => o p q r + o b c d * (otri d b e p q r + otri c d e p q r - otri b c d p q r - otri c b e p q r)

              An orientation after flipping bc to de: the old one plus o(b,c,d) times the boundary-free chain dbe + cde − bcd − cbe.

              theorem Lightlike.Surfaces.isOrientation_of_flip22 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d e : V} {o : V → V → V → ℤ} (hbc : b ≠ c) (hbd : b ≠ d) (hbe : b ≠ e) (hcd : c ≠ d) (hce : c ≠ e) (hde : d ≠ e) (h₁ : {b, c, d} ∈ L) (h₂ : {b, c, e} ∈ L) (hfresh : ∀ τ ∈ L, ¬{d, e} ⊆ τ) (ho : IsOrientation (insert {b, d, e} (insert {c, d, e} ((L.erase {b, c, d}).erase {b, c, e}))) o) :
              IsOrientation L fun (p q r : V) => o p q r - o d b e * (otri d b e p q r + otri c d e p q r - otri b c d p q r - otri c b e p q r)

              An orientation before flipping bc to de: the reverse of isOrientation_flip22.

              A 2D bistellar move keeps orientability, in both directions.

              The Euler characteristic is an invariant of chains of 2D bistellar moves.

              Complexes related by 2D bistellar moves are orientable together.