Documentation

Lightlike.Surfaces.Check

Checking finite chains of 2D moves inside a larger surface #

Many steps of the classification replace a small region of a surface by another one with the same boundary. The region and the replacement are concrete complexes on natural-number labels, and the chain of moves between them is found by computer (scripts/pl/surf_search.py). This file checks such a chain once and for all: checkChain B S X ms runs the moves ms on X, checking each one, and checkChain_sound lifts every checked chain into any surrounding complex A, through any embedding f of the labels.

The labels in B are the boundary labels; f sends the others to vertices outside A. The pairs in S are pairs of boundary labels whose images lie in no triangle of A. A move is accepted only if every edge it flips or creates has a non-boundary endpoint or is a pair of S, and every triangle it creates with three boundary vertices contains such a pair. Then no triangle of A interferes, and the move lifts (Move2 on A ∪ f(K)).

Moves on concrete complexes #

A 2D move on a complex with natural-number labels: subdivide the triangle bcd by x; flip the edge bc (triangles bcd, bce) to de; or remove x, whose triangles are bcx, cdx, bdx, replacing them by bcd.

  • sub (b c d x : ℕ) : Mv
  • flip (b c d e : ℕ) : Mv
  • unsub (b c d x : ℕ) : Mv
Instances For
    def Lightlike.Surfaces.subRes {V : Type u_1} [DecidableEq V] (K : Finset (Finset V)) (b c d x : V) :

    The complex after subdividing bcd by x (as in Move2.sub13).

    Equations
    Instances For
      def Lightlike.Surfaces.flipRes {V : Type u_1} [DecidableEq V] (K : Finset (Finset V)) (b c d e : V) :

      The complex after flipping bc to de (as in Move2.flip22).

      Equations
      Instances For

        The complex before subdividing bcd by x: remove the three triangles at x, add bcd.

        Equations
        Instances For
          def Lightlike.Surfaces.Safe (B : Finset ℕ) (S : List (ℕ × ℕ)) (u v : ℕ) :

          A pair of labels is safe: a non-boundary label, or a listed pair.

          Equations
          Instances For
            @[instance_reducible]
            instance Lightlike.Surfaces.instDecidableSafe (B : Finset ℕ) (S : List (ℕ × ℕ)) (u v : ℕ) :
            Decidable (Safe B S u v)
            Equations
            def Lightlike.Surfaces.OkSub (B : Finset ℕ) (K : Finset (Finset ℕ)) (b c d x : ℕ) :

            The conditions under which a subdivision is accepted.

            Equations
            Instances For
              def Lightlike.Surfaces.OkFlip (B : Finset ℕ) (S : List (ℕ × ℕ)) (K : Finset (Finset ℕ)) (b c d e : ℕ) :

              The conditions under which a flip is accepted.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def Lightlike.Surfaces.OkUnsub (B : Finset ℕ) (S : List (ℕ × ℕ)) (K : Finset (Finset ℕ)) (b c d x : ℕ) :

                The conditions under which a removal is accepted.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  @[instance_reducible]
                  instance Lightlike.Surfaces.instDecidableOkSub (B : Finset ℕ) (K : Finset (Finset ℕ)) (b c d x : ℕ) :
                  Decidable (OkSub B K b c d x)
                  Equations
                  @[instance_reducible]
                  instance Lightlike.Surfaces.instDecidableOkFlip (B : Finset ℕ) (S : List (ℕ × ℕ)) (K : Finset (Finset ℕ)) (b c d e : ℕ) :
                  Decidable (OkFlip B S K b c d e)
                  Equations
                  @[instance_reducible]
                  instance Lightlike.Surfaces.instDecidableOkUnsub (B : Finset ℕ) (S : List (ℕ × ℕ)) (K : Finset (Finset ℕ)) (b c d x : ℕ) :
                  Decidable (OkUnsub B S K b c d x)
                  Equations

                  One checked move: the resulting complex, or none if the move is not accepted.

                  Equations
                  Instances For

                    A checked chain of moves: the final complex, or none if some move is not accepted.

                    Equations
                    Instances For

                      Lifting checked moves #

                      def Lightlike.Surfaces.liftK {V : Type u_1} [DecidableEq V] (f : ℕ ↪ V) (K : Finset (Finset ℕ)) :

                      A concrete complex placed in V by an embedding of the labels.

                      Equations
                      Instances For
                        structure Lightlike.Surfaces.Ctx {V : Type u_1} [DecidableEq V] (A : Finset (Finset V)) (f : ℕ ↪ V) (B : Finset ℕ) (S : List (ℕ × ℕ)) :

                        The context conditions: non-boundary labels go outside the surrounding complex A, and the listed pairs lie in no triangle of A.

                        Instances For
                          theorem Lightlike.Surfaces.Ctx.not_subset {V : Type u_1} [DecidableEq V] {A : Finset (Finset V)} {f : ℕ ↪ V} {B : Finset ℕ} {S : List (ℕ × ℕ)} (hC : Ctx A f B S) {u v : ℕ} (h : Safe B S u v) (t : Finset V) :
                          t ∈ A → ¬{f u, f v} ⊆ t
                          theorem Lightlike.Surfaces.map_tri {V : Type u_1} [DecidableEq V] {f : ℕ ↪ V} (a b c : ℕ) :
                          Finset.map f {a, b, c} = {f a, f b, f c}
                          theorem Lightlike.Surfaces.map_pair {V : Type u_1} [DecidableEq V] {f : ℕ ↪ V} (a b : ℕ) :
                          Finset.map f {a, b} = {f a, f b}
                          theorem Lightlike.Surfaces.Ctx.tri_notMem {V : Type u_1} [DecidableEq V] {A : Finset (Finset V)} {f : ℕ ↪ V} {B : Finset ℕ} {S : List (ℕ × ℕ)} (hC : Ctx A f B S) {a b c : ℕ} (h : Safe B S a b ∨ Safe B S b c ∨ Safe B S a c) :
                          {f a, f b, f c} ∉ A
                          theorem Lightlike.Surfaces.liftK_insert {V : Type u_1} [DecidableEq V] {f : ℕ ↪ V} (K : Finset (Finset ℕ)) (t : Finset ℕ) :
                          liftK f (insert t K) = insert (Finset.map f t) (liftK f K)
                          theorem Lightlike.Surfaces.liftK_erase {V : Type u_1} [DecidableEq V] {f : ℕ ↪ V} (K : Finset (Finset ℕ)) (t : Finset ℕ) :
                          liftK f (K.erase t) = (liftK f K).erase (Finset.map f t)
                          theorem Lightlike.Surfaces.mem_liftK {V : Type u_1} [DecidableEq V] {f : ℕ ↪ V} {K : Finset (Finset ℕ)} {s : Finset V} :
                          s ∈ liftK f K ↔ ∃ t ∈ K, Finset.map f t = s
                          theorem Lightlike.Surfaces.liftK_subRes {V : Type u_1} [DecidableEq V] {f : ℕ ↪ V} (K : Finset (Finset ℕ)) (b c d x : ℕ) :
                          liftK f (subRes K b c d x) = subRes (liftK f K) (f b) (f c) (f d) (f x)
                          theorem Lightlike.Surfaces.liftK_flipRes {V : Type u_1} [DecidableEq V] {f : ℕ ↪ V} (K : Finset (Finset ℕ)) (b c d e : ℕ) :
                          liftK f (flipRes K b c d e) = flipRes (liftK f K) (f b) (f c) (f d) (f e)
                          theorem Lightlike.Surfaces.union_erase_of_notMem {V : Type u_1} [DecidableEq V] {A M : Finset (Finset V)} {t : Finset V} (ht : t ∉ A) :
                          (A ∪ M).erase t = A ∪ M.erase t
                          theorem Lightlike.Surfaces.subRes_union {V : Type u_1} [DecidableEq V] {A M : Finset (Finset V)} {b c d x : V} (h : {b, c, d} ∉ A) :
                          subRes (A ∪ M) b c d x = A ∪ subRes M b c d x
                          theorem Lightlike.Surfaces.flipRes_union {V : Type u_1} [DecidableEq V] {A M : Finset (Finset V)} {b c d e : V} (h₁ : {b, c, d} ∉ A) (h₂ : {b, c, e} ∉ A) :
                          flipRes (A ∪ M) b c d e = A ∪ flipRes M b c d e
                          theorem Lightlike.Surfaces.notMem_verts2_liftK {V : Type u_1} [DecidableEq V] {f : ℕ ↪ V} {K : Finset (Finset ℕ)} {x : ℕ} (hx : x ∉ PR.verts2 K) :
                          f x ∉ PR.verts2 (liftK f K)
                          def Lightlike.Surfaces.Disj {V : Type u_1} (A : Finset (Finset V)) (f : ℕ ↪ V) (K : Finset (Finset ℕ)) :

                          The invariant: no triangle of the region lies in A.

                          Equations
                          Instances For
                            theorem Lightlike.Surfaces.Ctx.map_notMem_of_fresh {V : Type u_1} [DecidableEq V] {A : Finset (Finset V)} {f : ℕ ↪ V} {B : Finset ℕ} {S : List (ℕ × ℕ)} (hC : Ctx A f B S) {t : Finset ℕ} {x : ℕ} (hx : x ∈ t) (hxB : x ∉ B) :
                            Finset.map f t ∉ A
                            theorem Lightlike.Surfaces.lift_sub {V : Type u_1} [DecidableEq V] {A : Finset (Finset V)} {f : ℕ ↪ V} {B : Finset ℕ} {S : List (ℕ × ℕ)} (hC : Ctx A f B S) {K : Finset (Finset ℕ)} (hD : Disj A f K) {b c d x : ℕ} (h : OkSub B K b c d x) :
                            PR.Move2 (A ∪ liftK f K) (A ∪ liftK f (subRes K b c d x)) ∧ Disj A f (subRes K b c d x)

                            A checked subdivision lifts.

                            theorem Lightlike.Surfaces.lift_flip {V : Type u_1} [DecidableEq V] {A : Finset (Finset V)} {f : ℕ ↪ V} {B : Finset ℕ} {S : List (ℕ × ℕ)} (hC : Ctx A f B S) {K : Finset (Finset ℕ)} (hD : Disj A f K) {b c d e : ℕ} (h : OkFlip B S K b c d e) :
                            PR.Move2 (A ∪ liftK f K) (A ∪ liftK f (flipRes K b c d e)) ∧ Disj A f (flipRes K b c d e)

                            A checked flip lifts.

                            theorem Lightlike.Surfaces.lift_unsub {V : Type u_1} [DecidableEq V] {A : Finset (Finset V)} {f : ℕ ↪ V} {B : Finset ℕ} {S : List (ℕ × ℕ)} (hC : Ctx A f B S) {K : Finset (Finset ℕ)} (hD : Disj A f K) {b c d x : ℕ} (h : OkUnsub B S K b c d x) :
                            PR.Move2 (A ∪ liftK f (unsubRes K b c d x)) (A ∪ liftK f K) ∧ Disj A f (unsubRes K b c d x)

                            A checked removal lifts (as the subdivision it undoes).

                            theorem Lightlike.Surfaces.checkChain_sound {V : Type u_1} [DecidableEq V] {A : Finset (Finset V)} {f : ℕ ↪ V} {B : Finset ℕ} {S : List (ℕ × ℕ)} (hC : Ctx A f B S) (ms : List Mv) {X Y : Finset (Finset ℕ)} :
                            Disj A f X → checkChain B S X ms = some Y → Relation.EqvGen PR.Move2 (A ∪ liftK f X) (A ∪ liftK f Y)

                            Soundness of the checker: a chain of moves accepted by checkChain from X to Y is a chain of 2D bistellar moves from A ∪ f(X) to A ∪ f(Y), for every surrounding complex A and embedding f satisfying the context conditions, provided no triangle of f(X) lies in A.