Documentation

Lightlike.PonzanoRegge.SphereInvariants

Invariants of combinatorial 2-spheres #

IsSphere2 defines combinatorial 2-spheres by 2-dimensional bistellar moves from the boundary of a tetrahedron. This file proves that every such complex has the properties of a triangulated 2-sphere that can be read off combinatorially:

Each property holds for the boundary of a tetrahedron and is preserved by both moves in both directions: subdividing a triangle adds one vertex, three edges and two triangles; flipping an edge replaces one edge by another.

These are the conditions that, by the classification of surfaces, characterise the 2-sphere among closed connected surfaces; the remaining surface condition (the link of each vertex is a single cycle) and the converse (every triangulated 2-sphere is reached by bistellar moves, a theorem of Steinitz and Wagner) are not formalised. The invariants give strong rejection tests: a complex with Euler characteristic other than 2 (two spheres glued at a vertex, a torus, a disk) is not a combinatorial 2-sphere.

def Lightlike.PR.edges2 {V : Type u_1} [DecidableEq V] (L : Finset (Finset V)) :

The edges of a 2-complex: the 2-element subsets of its triangles.

Equations
Instances For
    theorem Lightlike.PR.mem_edges2 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {e : Finset V} :
    e ∈ edges2 L ↔ ∃ τ ∈ L, e ⊆ τ ∧ e.card = 2
    theorem Lightlike.PR.pair_of_sub3 {V : Type u_1} [DecidableEq V] {e : Finset V} {p q r : V} (he : e ⊆ {p, q, r}) (hc : e.card = 2) :
    e = {p, q} ∨ e = {p, r} ∨ e = {q, r}

    A 2-element subset of {p, q, r} is one of its three edges.

    theorem Lightlike.PR.mem_verts2_of_sub {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {e τ : Finset V} {y : V} (hτ : τ ∈ L) (he : e ⊆ τ) (hy : y ∈ e) :

    Subdividing a triangle #

    theorem Lightlike.PR.sub13_fresh {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d x : V} (hτ : {b, c, d} ∈ L) (hx : x ∉ verts2 L) :
    x ≠ b ∧ x ≠ c ∧ x ≠ d
    theorem Lightlike.PR.verts2_sub13 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d x : V} (hτ : {b, c, d} ∈ L) :
    verts2 (insert {b, c, x} (insert {c, d, x} (insert {b, d, x} (L.erase {b, c, d})))) = insert x (verts2 L)

    Subdividing a triangle adds the new vertex.

    theorem Lightlike.PR.edges2_sub13 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d x : V} (hτ : {b, c, d} ∈ L) (hx : x ∉ verts2 L) :
    edges2 (insert {b, c, x} (insert {c, d, x} (insert {b, d, x} (L.erase {b, c, d})))) = insert {b, x} (insert {c, x} (insert {d, x} (edges2 L)))

    Subdividing a triangle adds the three edges through the new vertex.

    theorem Lightlike.PR.card_edges2_sub13 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d x : V} (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) (hτ : {b, c, d} ∈ L) (hx : x ∉ verts2 L) :
    (edges2 (insert {b, c, x} (insert {c, d, x} (insert {b, d, x} (L.erase {b, c, d}))))).card = (edges2 L).card + 3
    theorem Lightlike.PR.card_sub13 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d x : V} (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) (hτ : {b, c, d} ∈ L) (hx : x ∉ verts2 L) :
    (insert {b, c, x} (insert {c, d, x} (insert {b, d, x} (L.erase {b, c, d})))).card = L.card + 2

    Flipping an edge #

    theorem Lightlike.PR.verts2_flip22 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d e : V} (h₁ : {b, c, d} ∈ L) (h₂ : {b, c, e} ∈ L) :
    verts2 (insert {b, d, e} (insert {c, d, e} ((L.erase {b, c, d}).erase {b, c, e}))) = verts2 L

    Flipping an edge keeps the vertices.

    theorem Lightlike.PR.edges2_flip22 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d e : 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}) :
    edges2 (insert {b, d, e} (insert {c, d, e} ((L.erase {b, c, d}).erase {b, c, e}))) = insert {d, e} ((edges2 L).erase {b, c})

    Flipping an edge replaces the edge bc by de.

    theorem Lightlike.PR.card_edges2_flip22 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d e : 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} ⊆ τ) :
    (edges2 (insert {b, d, e} (insert {c, d, e} ((L.erase {b, c, d}).erase {b, c, e})))).card = (edges2 L).card
    theorem Lightlike.PR.card_flip22 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d e : V} (hde : d ≠ e) (hbd : b ≠ d) (hbe : b ≠ e) (hbc : b ≠ c) (hcd : c ≠ d) (h₁ : {b, c, d} ∈ L) (h₂ : {b, c, e} ∈ L) (hfresh : ∀ τ ∈ L, ¬{d, e} ⊆ τ) :
    (insert {b, d, e} (insert {c, d, e} ((L.erase {b, c, d}).erase {b, c, e}))).card = L.card

    Euler characteristic #

    def Lightlike.PR.euler2 {V : Type u_1} [DecidableEq V] (L : Finset (Finset V)) :

    The Euler characteristic #vertices - #edges + #triangles of a 2-complex.

    Equations
    Instances For
      theorem Lightlike.PR.Move2.euler2_eq {V : Type u_1} [DecidableEq V] {L L' : Finset (Finset V)} (h : Move2 L L') :

      A 2-dimensional move keeps the Euler characteristic.

      theorem Lightlike.PR.ne_of_mem_notMem {V : Type u_1} {s t : Finset V} {y : V} (hy : y ∈ s) (hy' : y ∉ t) :
      s ≠ t

      Two sets differ if one contains an element the other lacks.

      theorem Lightlike.PR.card_bdry {V : Type u_1} [DecidableEq V] {a b c d : V} (hab : a ≠ b) (hac : a ≠ c) (had : a ≠ d) (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) :
      (bdry a b c d).card = 4
      theorem Lightlike.PR.card_verts2_bdry {V : Type u_1} [DecidableEq V] {a b c d : V} (hab : a ≠ b) (hac : a ≠ c) (had : a ≠ d) (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) :
      (verts2 (bdry a b c d)).card = 4
      theorem Lightlike.PR.card_edges2_bdry {V : Type u_1} [DecidableEq V] {a b c d : V} (hab : a ≠ b) (hac : a ≠ c) (had : a ≠ d) (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) :
      (edges2 (bdry a b c d)).card = 6
      theorem Lightlike.PR.euler2_bdry {V : Type u_1} [DecidableEq V] {a b c d : V} (hab : a ≠ b) (hac : a ≠ c) (had : a ≠ d) (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) :
      euler2 (bdry a b c d) = 2

      The boundary of a tetrahedron has Euler characteristic 4 - 6 + 4 = 2.

      theorem Lightlike.PR.IsSphere2.euler {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} (hL : IsSphere2 L) :
      euler2 L = 2

      A combinatorial 2-sphere has Euler characteristic 2.

      theorem Lightlike.PR.mem_verts2_bdry {V : Type u_1} [DecidableEq V] {a b c d w : V} (hw : w ∈ verts2 (bdry a b c d)) :
      w = a ∨ w = b ∨ w = c ∨ w = d

      The vertices of the boundary of a tetrahedron are its four corners.

      Connectivity #

      The 1-skeleton of L is connected: any two vertices are joined by a path of edges.

      Equations
      Instances For
        theorem Lightlike.PR.pair_mem_edges2 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {τ : Finset V} {u w : V} (hτ : τ ∈ L) (hu : u ∈ τ) (hw : w ∈ τ) (huw : u ≠ w) :
        theorem Lightlike.PR.connected_sub13 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d x : V} (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) (hτ : {b, c, d} ∈ L) (hx : x ∉ verts2 L) :

        Subdividing a triangle keeps the 1-skeleton connected, in both directions.

        theorem Lightlike.PR.connected_flip22 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d e : 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}) :

        Flipping an edge keeps the 1-skeleton connected, in both directions.

        A 2-dimensional move keeps the 1-skeleton connected, in both directions.

        A combinatorial 2-sphere is connected.

        Closedness: every edge lies in exactly two triangles #

        Every edge of L lies in exactly two triangles (L is a closed pseudo-surface).

        Equations
        Instances For
          theorem Lightlike.PR.card_filter_insert_of_notMem {V : Type u_1} [DecidableEq V] {s : Finset (Finset V)} {a : Finset V} (ha : a ∉ s) (f : Finset V) :
          {x ∈ insert a s | f ⊆ x}.card = {x ∈ s | f ⊆ x}.card + if f ⊆ a then 1 else 0
          theorem Lightlike.PR.card_filter_erase_of_mem {V : Type u_1} [DecidableEq V] {s : Finset (Finset V)} {a : Finset V} (ha : a ∈ s) (f : Finset V) :
          ({x ∈ s.erase a | f ⊆ x}.card + if f ⊆ a then 1 else 0) = {x ∈ s | f ⊆ x}.card
          theorem Lightlike.PR.not_sub_of_notMem {V : Type u_1} {f t : Finset V} {y : V} (hy : y ∈ f) (hy' : y ∉ t) :
          ¬f ⊆ t
          theorem Lightlike.PR.closed_sub13 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d x : V} (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) (hτ : {b, c, d} ∈ L) (hx : x ∉ verts2 L) :
          IsClosed2 L ↔ IsClosed2 (insert {b, c, x} (insert {c, d, x} (insert {b, d, x} (L.erase {b, c, d}))))

          Subdividing a triangle keeps every edge in exactly two triangles, in both directions.

          theorem Lightlike.PR.closed_flip22 {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} {b c d e : 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} ⊆ τ) :
          IsClosed2 L ↔ IsClosed2 (insert {b, d, e} (insert {c, d, e} ((L.erase {b, c, d}).erase {b, c, e})))

          Flipping an edge keeps every edge in exactly two triangles, in both directions.

          theorem Lightlike.PR.Move2.closed_iff {V : Type u_1} [DecidableEq V] {L L' : Finset (Finset V)} (h : Move2 L L') :

          A 2-dimensional move keeps every edge in exactly two triangles, in both directions.

          theorem Lightlike.PR.closed_bdry {V : Type u_1} [DecidableEq V] {a b c d : V} (hab : a ≠ b) (hac : a ≠ c) (had : a ≠ d) (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) :
          IsClosed2 (bdry a b c d)

          In the boundary of a tetrahedron every edge lies in exactly two triangles.

          theorem Lightlike.PR.IsSphere2.closed {V : Type u_1} [DecidableEq V] {L : Finset (Finset V)} (hL : IsSphere2 L) :

          In a combinatorial 2-sphere every edge lies in exactly two triangles.

          Summary: a combinatorial 2-sphere is a connected closed pseudo-surface with Euler characteristic 2.