Documentation

Lightlike.Surfaces.Tube

Moving the far end of a tube, and closing a handle #

This file turns the checked chains of Chains.lean into statements about an arbitrary closed surface. A tube tube c₀ c₁ c₂ p q r is a triangulated annulus with one boundary triangle {c₀, c₁, c₂} and the other {p, q, r}; the vertices cᵢ are new.

The vertex set V is arbitrary and the moves are bistellar moves of Move2.

theorem Lightlike.Surfaces.union_insert_of_mem {V : Type u_1} [DecidableEq V] {R U T : Finset (Finset V)} {e : Finset V} (he : e ∈ R) :
R.erase e ∪ U ∪ insert e T = R ∪ U ∪ T
theorem Lightlike.Surfaces.union_insert_swap {V : Type u_1} [DecidableEq V] (R U T : Finset (Finset V)) (x : Finset V) :
R ∪ U ∪ insert x T = insert x R ∪ U ∪ T
theorem Lightlike.Surfaces.insert_erase_erase {V : Type u_1} [DecidableEq V] {M : Finset (Finset V)} {e e' : Finset V} (he : e ∈ M) (hne : e ≠ e') :
insert e ((M.erase e).erase e') = M.erase e'
theorem Lightlike.Surfaces.nodup_3_4 {V : Type u_1} {C W : Finset V} {c₀ c₁ c₂ p q r s : V} (h0 : c₀ ∈ C) (h1 : c₁ ∈ C) (h2 : c₂ ∈ C) (h01 : c₀ ≠ c₁) (h02 : c₀ ≠ c₂) (h12 : c₁ ≠ c₂) (hp : p ∈ W) (hq : q ∈ W) (hr : r ∈ W) (hs : s ∈ W) (hpq : p ≠ q) (hpr : p ≠ r) (hps : p ≠ s) (hqr : q ≠ r) (hqs : q ≠ s) (hrs : r ≠ s) (hCW : ∀ c ∈ C, c ∉ W) :
[c₀, c₁, c₂, p, q, r, s].Nodup
theorem Lightlike.Surfaces.tube_slide {V : Type u_1} [DecidableEq V] [Infinite V] {R U : Finset (Finset V)} {C W : Finset V} {c₀ c₁ c₂ p q r s : V} (h0 : c₀ ∈ C) (h1 : c₁ ∈ C) (h2 : c₂ ∈ C) (h01 : c₀ ≠ c₁) (h02 : c₀ ≠ c₂) (h12 : c₁ ≠ c₂) (hp : p ∈ W) (hq : q ∈ W) (hr : r ∈ W) (hs : s ∈ W) (hpq : p ≠ q) (hpr : p ≠ r) (hps : p ≠ s) (hqr : q ≠ r) (hqs : q ≠ s) (hrs : r ≠ s) (hCW : ∀ c ∈ C, c ∉ W) (hCR : ∀ c ∈ C, c ∉ PR.verts2 R) (hUC : ∀ t ∈ U, ∀ c ∈ C, c ∈ t → ∀ x ∈ W, x ∉ t) (he : {q, r, s} ∈ R) (hR : ∀ t ∈ R, {q, r} ⊆ t → t = {q, r, s}) (hU : ∀ t ∈ U, ¬{q, r} ⊆ t) :
Relation.EqvGen PR.Move2 (R ∪ U ∪ tube c₀ c₁ c₂ p q r) (insert {p, q, r} (R.erase {q, r, s}) ∪ U ∪ tube c₀ c₁ c₂ q s r)

Sliding the far end of a tube across an edge. The tube tube c₀ c₁ c₂ p q r is glued to the rest R ∪ U along {p, q, r}; {q, r, s} is the other triangle of R at the edge {q, r}. The new vertices cᵢ (in C) are not vertices of R, and a triangle of U never contains both a new vertex and a vertex of W ⊇ {p, q, r, s}. Then 2D moves replace the end {p, q, r} by {q, s, r}, restoring {p, q, r} to R and removing {q, r, s}.

Walking the far end of a tube #

def Lightlike.Surfaces.wst {V : Type u_1} [DecidableEq V] (L' U : Finset (Finset V)) (σ : Finset V) (c₀ c₁ c₂ p q r : V) :

A walk state: the surface L' without its triangles σ and {p, q, r}, the rest U of a tube system starting at σ, and a last tube from {c₀, c₁, c₂} ending at {p, q, r}.

Equations
Instances For
    theorem Lightlike.Surfaces.tri_rot {V : Type u_1} [DecidableEq V] (a b c : V) :
    {a, b, c} = {b, c, a}
    theorem Lightlike.Surfaces.wst_rot {V : Type u_1} [DecidableEq V] (L' U : Finset (Finset V)) (σ : Finset V) (c₀ c₁ c₂ p q r : V) :
    wst L' U σ c₀ c₁ c₂ p q r = wst L' U σ c₁ c₂ c₀ q r p
    structure Lightlike.Surfaces.WalkCtx {V : Type u_1} [DecidableEq V] (L' U : Finset (Finset V)) (σ C : Finset V) :

    The conditions for walking: L' is a surface containing σ; the vertices in C are new; a triangle of U with a vertex in C has no vertex of L', and the only vertices of L' in triangles of U are those of σ.

    Instances For
      theorem Lightlike.Surfaces.walk_qr {V : Type u_1} [DecidableEq V] [Infinite V] {L' U : Finset (Finset V)} {σ C : Finset V} (W : WalkCtx L' U σ C) {c₀ c₁ c₂ p q r s : V} (h0 : c₀ ∈ C) (h1 : c₁ ∈ C) (h2 : c₂ ∈ C) (h01 : c₀ ≠ c₁) (h02 : c₀ ≠ c₂) (h12 : c₁ ≠ c₂) (hρ : {p, q, r} ∈ L') (hρσ : {p, q, r} ≠ σ) (hρ' : {q, r, s} ∈ L') (hρ'σ : {q, r, s} ≠ σ) (hps : p ≠ s) :
      Relation.EqvGen PR.Move2 (wst L' U σ c₀ c₁ c₂ p q r) (wst L' U σ c₀ c₁ c₂ q s r)

      One step of the walk across the edge {q, r} from {p, q, r} to {q, r, s}.

      theorem Lightlike.Surfaces.adj_cases {V : Type u_1} [DecidableEq V] {M : Finset (Finset V)} (hT : PR.IsTri2 M) {p q r : V} {ρ' : Finset V} (h : DAdj M {p, q, r} ρ') :
      ∃ (z : V), ρ' = {q, r, z} ∧ z ≠ p ∨ ρ' = {r, p, z} ∧ z ≠ q ∨ ρ' = {p, q, z} ∧ z ≠ r

      The three ways a triangle ρ' can be adjacent to {p, q, r}.

      theorem Lightlike.Surfaces.walk_step {V : Type u_1} [DecidableEq V] [Infinite V] {L' U : Finset (Finset V)} {σ C : Finset V} (W : WalkCtx L' U σ C) {c₀ c₁ c₂ p q r : V} (h0 : c₀ ∈ C) (h1 : c₁ ∈ C) (h2 : c₂ ∈ C) (h01 : c₀ ≠ c₁) (h02 : c₀ ≠ c₂) (h12 : c₁ ≠ c₂) (hρσ : {p, q, r} ≠ σ) {ρ' : Finset V} (hadj : DAdj L' {p, q, r} ρ') (hρ'σ : ρ' ≠ σ) :
      ∃ (p' : V) (q' : V) (r' : V), ρ' = {p', q', r'} ∧ Relation.EqvGen PR.Move2 (wst L' U σ c₀ c₁ c₂ p q r) (wst L' U σ c₀ c₁ c₂ p' q' r')

      One step of the walk to any triangle ρ' ≠ σ adjacent to the current end.

      theorem Lightlike.Surfaces.walk {V : Type u_1} [DecidableEq V] [Infinite V] {L' U : Finset (Finset V)} {σ C : Finset V} (W : WalkCtx L' U σ C) {c₀ c₁ c₂ : V} (h0 : c₀ ∈ C) (h1 : c₁ ∈ C) (h2 : c₂ ∈ C) (h01 : c₀ ≠ c₁) (h02 : c₀ ≠ c₂) (h12 : c₁ ≠ c₂) {ρ ρ' : Finset V} (hpath : Relation.ReflTransGen (fun (a b : Finset V) => DAdj L' a b ∧ a ≠ σ ∧ b ≠ σ) ρ ρ') {p q r : V} (hρ : ρ = {p, q, r}) :
      ∃ (p' : V) (q' : V) (r' : V), ρ' = {p', q', r'} ∧ Relation.EqvGen PR.Move2 (wst L' U σ c₀ c₁ c₂ p q r) (wst L' U σ c₀ c₁ c₂ p' q' r')

      The walk. Along a dual path avoiding σ, the far end of the last tube moves from {p, q, r} to the end of the path.

      Closing the tube #

      theorem Lightlike.Surfaces.finX_fresh (o₀ o₁ o₂ : ℕ) (t : Finset ℕ) :
      t ∈ finX o₀ o₁ o₂ → ∃ n ∈ t, n ∉ {0, 1, 2, 9}

      Every triangle of a three-ring tube has a vertex among 3, …, 8.

      The relabelling π of a closing chain fixes 0, 1, 2 and sends the other vertices of the piece P away from the labels 0, 1, 2, 9 of the surrounding surface.

      Equations
      Instances For
        theorem Lightlike.Surfaces.fok_019 :
        FinOK T9 (tabE [0, 1, 2, 3, 4, 5, 6, 8, 7] 0 ⋯)
        theorem Lightlike.Surfaces.fok_190 :
        FinOK T9 (tabE [0, 1, 2, 6, 3, 5, 4, 8, 7] 0 ⋯)
        theorem Lightlike.Surfaces.fok_901 :
        FinOK T9 (tabE [0, 1, 2, 8, 4, 3, 7, 6, 5] 0 ⋯)
        theorem Lightlike.Surfaces.fok_091 :
        FinOK KB (tabE [0, 1, 2, 5, 4, 7, 3, 6, 8] 0 ⋯)
        theorem Lightlike.Surfaces.fok_109 :
        FinOK KB (tabE [0, 1, 2, 5, 4, 8, 3, 7, 6] 0 ⋯)
        theorem Lightlike.Surfaces.final_gen {V : Type u_1} [DecidableEq V] [Infinite V] {L' : Finset (Finset V)} (hS : IsSurface L') {a₀ a₁ a₂ w b₀ b₁ b₂ c₀ c₁ c₂ p q r : V} (hσ : {a₀, a₁, a₂} ∈ L') (he : {a₀, a₁, w} ∈ L') (hw : w ≠ a₂) (hb₀ : b₀ ∉ PR.verts2 L') (hb₁ : b₁ ∉ PR.verts2 L') (hb₂ : b₂ ∉ PR.verts2 L') (hc₀ : c₀ ∉ PR.verts2 L') (hc₁ : c₁ ∉ PR.verts2 L') (hc₂ : c₂ ∉ PR.verts2 L') (hbc : [b₀, b₁, b₂, c₀, c₁, c₂].Nodup) (hpqr : {p, q, r} = {a₀, a₁, w}) {P : Finset (Finset ℕ)} {π : ℕ ↪ ℕ} {o₀ o₁ o₂ : ℕ} {ms : List Mv} (hchain : checkChain {0, 1, 2, 9} [(0, 1)] (finX o₀ o₁ o₂) ms = some (insert {0, 1, 9} (liftK π (P.erase {0, 1, 2})))) (hF : ∀ (F : ℕ → V), F 0 = a₀ → F 1 = a₁ → F 9 = w → F o₀ = p ∧ F o₁ = q ∧ F o₂ = r) (hP0 : {0, 1, 2} ∈ P) (hok : FinOK P π) :
        ∃ (h : ℕ ↪ V), IsGlue L' {a₀, a₁, a₂} P {0, 1, 2} h ∧ Relation.EqvGen PR.Move2 (wst L' (tube a₀ a₁ a₂ b₀ b₁ b₂ ∪ tube b₀ b₁ b₂ c₀ c₁ c₂) {a₀, a₁, a₂} c₀ c₁ c₂ p q r) (csum L' {a₀, a₁, a₂} P {0, 1, 2} h)

        Closing a tube at a neighbour of its start. The tube system runs from σ = {a₀, a₁, a₂} through new triangles {b₀, b₁, b₂} and {c₀, c₁, c₂} to {p, q, r} = {a₀, a₁, w}, a triangle adjacent to σ along {a₀, a₁}. A checked closing chain turns it into the connected sum of L' with the piece P at σ.

        theorem Lightlike.Surfaces.final_edge {V : Type u_1} [DecidableEq V] [Infinite V] {L' : Finset (Finset V)} (hS : IsSurface L') {a₀ a₁ a₂ w b₀ b₁ b₂ c₀ c₁ c₂ p q r : V} (hσ : {a₀, a₁, a₂} ∈ L') (he : {a₀, a₁, w} ∈ L') (hw : w ≠ a₂) (hb₀ : b₀ ∉ PR.verts2 L') (hb₁ : b₁ ∉ PR.verts2 L') (hb₂ : b₂ ∉ PR.verts2 L') (hc₀ : c₀ ∉ PR.verts2 L') (hc₁ : c₁ ∉ PR.verts2 L') (hc₂ : c₂ ∉ PR.verts2 L') (hbc : [b₀, b₁, b₂, c₀, c₁, c₂].Nodup) (hpqr : {p, q, r} = {a₀, a₁, w}) :
        (∃ (h : ℕ ↪ V), IsGlue L' {a₀, a₁, a₂} T9 {0, 1, 2} h ∧ Relation.EqvGen PR.Move2 (wst L' (tube a₀ a₁ a₂ b₀ b₁ b₂ ∪ tube b₀ b₁ b₂ c₀ c₁ c₂) {a₀, a₁, a₂} c₀ c₁ c₂ p q r) (csum L' {a₀, a₁, a₂} T9 {0, 1, 2} h)) ∨ ∃ (h : ℕ ↪ V), IsGlue L' {a₀, a₁, a₂} KB {0, 1, 2} h ∧ Relation.EqvGen PR.Move2 (wst L' (tube a₀ a₁ a₂ b₀ b₁ b₂ ∪ tube b₀ b₁ b₂ c₀ c₁ c₂) {a₀, a₁, a₂} c₀ c₁ c₂ p q r) (csum L' {a₀, a₁, a₂} KB {0, 1, 2} h)

        Closing a tube along any edge order. As final_gen, for each of the six orders in which the end {p, q, r} of the tube system can list the triangle {a₀, a₁, w}: the result is a connected sum with the torus piece T9 or with the Klein bottle piece KB.

        The Klein bottle piece as two projective planes #

        theorem Lightlike.Surfaces.e134_KB (n : ℕ) :
        n ∈ PR.verts2 P6 → n ∉ {0, 1, 2} → e134 n ∈ PR.verts2 KB ∧ e134 n ∉ {0, 1, 2} ∧ e134 n ∉ PR.verts2 P6
        theorem Lightlike.Surfaces.twist_of_KB {V : Type u_1} [DecidableEq V] {L' : Finset (Finset V)} {σ : Finset V} {h : ℕ ↪ V} (hg : IsGlue L' σ KB {0, 1, 2} h) :
        IsGlue L' σ P6 {0, 1, 2} h ∧ IsGlue (csum L' σ P6 {0, 1, 2} h) (Finset.map h {1, 3, 4}) P6 {0, 1, 2} (e134.trans h) ∧ csum L' σ KB {0, 1, 2} h = csum (csum L' σ P6 {0, 1, 2} h) (Finset.map h {1, 3, 4}) P6 {0, 1, 2} (e134.trans h)

        A Klein bottle summand is two projective-plane summands. Gluing KB at σ is the same complex as gluing P6 at σ and then a second P6 at the image of its triangle 134; both gluings are valid.

        Closing the tube next to its start #

        theorem Lightlike.Surfaces.close_at {V : Type u_1} [DecidableEq V] [Infinite V] {L' : Finset (Finset V)} (hS : IsSurface L') {a₀ a₁ a₂ b₀ b₁ b₂ c₀ c₁ c₂ p q r : V} (hσ : {a₀, a₁, a₂} ∈ L') (he : {p, q, r} ∈ L') (hne : {p, q, r} ≠ {a₀, a₁, a₂}) (h0 : a₀ ∈ {p, q, r}) (h1 : a₁ ∈ {p, q, r}) (hb₀ : b₀ ∉ PR.verts2 L') (hb₁ : b₁ ∉ PR.verts2 L') (hb₂ : b₂ ∉ PR.verts2 L') (hc₀ : c₀ ∉ PR.verts2 L') (hc₁ : c₁ ∉ PR.verts2 L') (hc₂ : c₂ ∉ PR.verts2 L') (hbc : [b₀, b₁, b₂, c₀, c₁, c₂].Nodup) :
        (∃ (h : ℕ ↪ V), IsGlue L' {a₀, a₁, a₂} T9 {0, 1, 2} h ∧ Relation.EqvGen PR.Move2 (wst L' (tube a₀ a₁ a₂ b₀ b₁ b₂ ∪ tube b₀ b₁ b₂ c₀ c₁ c₂) {a₀, a₁, a₂} c₀ c₁ c₂ p q r) (csum L' {a₀, a₁, a₂} T9 {0, 1, 2} h)) ∨ ∃ (h : ℕ ↪ V), IsGlue L' {a₀, a₁, a₂} KB {0, 1, 2} h ∧ Relation.EqvGen PR.Move2 (wst L' (tube a₀ a₁ a₂ b₀ b₁ b₂ ∪ tube b₀ b₁ b₂ c₀ c₁ c₂) {a₀, a₁, a₂} c₀ c₁ c₂ p q r) (csum L' {a₀, a₁, a₂} KB {0, 1, 2} h)

        Closing at an adjacent triangle. If the end {p, q, r} of the tube system is a triangle of L' other than σ = {a₀, a₁, a₂} that contains a₀ and a₁, the tube system closes up into a connected sum with T9 or KB at σ.

        L is related by moves to a connected sum L' # T9 or L' # KB at some triangle σ of a closed surface L' with Euler characteristic larger by two: L has a handle.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem Lightlike.Surfaces.handleOf_of {V : Type u_1} [DecidableEq V] {L L' X : Finset (Finset V)} {σ : Finset V} (hS : IsSurface L') (hχ : PR.euler2 L' = PR.euler2 L + 2) (hE : Relation.EqvGen PR.Move2 L X) (hR : (∃ (h : ℕ ↪ V), IsGlue L' σ T9 {0, 1, 2} h ∧ Relation.EqvGen PR.Move2 X (csum L' σ T9 {0, 1, 2} h)) ∨ ∃ (h : ℕ ↪ V), IsGlue L' σ KB {0, 1, 2} h ∧ Relation.EqvGen PR.Move2 X (csum L' σ KB {0, 1, 2} h)) :
          theorem Lightlike.Surfaces.safe_of_edge {V : Type u_1} [DecidableEq V] {K : Finset (Finset ℕ)} {A : Finset (Finset V)} {g : ℕ ↪ V} (hS : IsSurface (A ∪ liftK g K)) (hd : Disjoint A (liftK g K)) {a b x y : ℕ} (hx : {a, b, x} ∈ K) (hy : {a, b, y} ∈ K) (hxy : x ≠ y) (t : Finset V) :
          t ∈ A → ¬{g a, g b} ⊆ t

          An edge ab of a template K that lies in two of its triangles lies in no triangle of the rest A of the surface A ∪ liftK g K.

          theorem Lightlike.Surfaces.erase_erase_pair {V : Type u_1} [DecidableEq V] {A : Finset (Finset V)} {s t : Finset V} (hs : s ∉ A) (ht : t ∉ A) :
          ((A ∪ {s, t}).erase s).erase t = A

          The first two tubes of the layered tube, from 012 through 678 to 9 10 11.

          Equations
          Instances For
            theorem Lightlike.Surfaces.U₀_c (t : Finset ℕ) :
            t ∈ U₀ → ∀ c ∈ {9, 10, 11}, c ∈ t → ∀ x ∈ t, 6 ≤ x
            theorem Lightlike.Surfaces.U₀_e (t : Finset ℕ) :
            t ∈ U₀ → ∀ x ∈ t, 6 ≤ x ∨ x ∈ {0, 1, 2}
            theorem Lightlike.Surfaces.handle_of_cut {V : Type u_1} [DecidableEq V] [Infinite V] {L A : Finset (Finset V)} {g : ℕ ↪ V} (hS : IsSurface L) (hc : CutTo L cutTube cutEnds [(0, 4), (1, 5), (2, 3)] 2 A g) :

            A two-sided cut gives a handle. After a two-sided cut along a 3-cycle, the tube is lengthened by two layers, its far end walks along a dual path to a neighbour of its start, and the closing chain turns the result into a connected sum of the cut surface with T9 or KB.

            A one-sided cut gives a crosscap #

            theorem Lightlike.Surfaces.cc_e (n : ℕ) :
            n ∈ PR.verts2 P6 → n ∉ {0, 1, 2} → 6 ≤ (tabE [3, 2, 0] 3 ⋯) n
            theorem Lightlike.Surfaces.cc_012 :
            (tabE [3, 2, 0] 3 ⋯) 0 = 3 ∧ (tabE [3, 2, 0] 3 ⋯) 1 = 2 ∧ (tabE [3, 2, 0] 3 ⋯) 2 = 0

            L is related by moves to a connected sum L' # P6 at some triangle σ of a closed surface L' with Euler characteristic larger by one: L has a crosscap.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem Lightlike.Surfaces.crosscap_of_cut {V : Type u_1} [DecidableEq V] [Infinite V] {L A : Finset (Finset V)} {g : ℕ ↪ V} (hS : IsSurface L) (hc : CutTo L cutBand cutCap [(3, 2), (3, 1)] 1 A g) :

              A one-sided cut gives a crosscap. After a one-sided cut along a 3-cycle, the checked crosscap chain turns the Möbius band into a projective-plane piece P6 glued to the capped surface.