Documentation

LeanPool.RegtsSevenster.RS.Novel.Skein.PartialCloseTensor

Partial closure of a tensor #

partialClose z (X' ⊗ z') glues z's ends onto the z-block of the tensor — which is exactly z''s boundary. The result is X' sitting untouched next to the full closure of z against z':

partialClose z (X' ⊗ z') ≃ X' ⊔ pairClose z z'.

This is the engine of the trace multiplicativity (Lemma 3.5(b)): with X' := strandBundle a, z' := strandBundle b and strandBundleTensor, the trace of a tensor splits.

This file: the three-summand shuffle, the ground computation (the z-gluing pairs localize to the z, z' summands), and the inner-pair identification.

def RS.sumShuffleEquiv (α β γ : Type) :
β ⊕ α ⊕ γ ≃ α ⊕ β ⊕ γ

The three-summand shuffle: pull the middle summand out front.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    noncomputable def RS.disjUnionShuffle {α β γ : Type} (W₁ : Fragment α) (W₂ : Fragment β) (W₃ : Fragment γ) :
    (W₁.disjUnion (W₂.disjUnion W₃)).Equiv ((W₂.disjUnion (W₁.disjUnion W₃)).relabel (sumShuffleEquiv α β γ))

    The disjoint union shuffles: the middle factor pulls out front, up to the shuffle relabelling.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      The localized inner pairs #

      def RS.innerClosePairs (u v : ℕ) :
      List ((Fin (u + v) ⊕ Fin (u + v)) × (Fin (u + v) ⊕ Fin (u + v)))

      The closure pairs of z against z', over the pair of (u + v)-boundaries: high block, then low block.

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        The ground computation: peeling the interleave #

        Peeling the interleave from the z-gluing pairs localizes them to the z, z' summands.

        The inner closure, normalized #

        noncomputable def RS.innerCloseLabel (u v : ℕ) :
        Fin (u + v) ⊕ Fin (u + v) ≃ Fin (0 + (u + v)) ⊕ Fin (u + v + 0)

        The closure label of the inner pair: the two closure casts.

        Equations
        Instances For

          The transported closure pairs of the inner closure are the inner pairs.

          The inner pairs are well-formed.

          noncomputable def RS.innerQs (u v : ℕ) :
          List ((Fin (u + v) ⊕ Fin (u + v)) × (Fin (u + v) ⊕ Fin (u + v)))

          The transported inner closure pairs.

          Equations
          Instances For
            noncomputable def RS.innerLabel (u v : ℕ) :

            The composed label identification of the inner closure.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              noncomputable def RS.innerNormal {u v : ℕ} (z z' : Fragment (Fin (u + v))) :

              The inner closure, normalized: the closure of z against z' is iterated gluing of the inner pairs over z ⊔ z'.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For

                The main chain #

                noncomputable def RS.pcTensorClose (s t : ℕ) :
                Fin (s + t) ⊕ Fin (0 + 0) ≃ Fin (s + t)

                The clean label of the partial closure of a tensor.

                Equations
                Instances For
                  noncomputable def RS.pcTensorPeel (s t u v : ℕ) :
                  Fin (u + v) ⊕ Fin (s + t) ⊕ Fin (u + v) ≃ Fin (u + v) ⊕ Fin (s + u + (t + v))

                  The interleave peel of the z-gluing ambient.

                  Equations
                  Instances For
                    noncomputable def RS.pcTensorQs (s t u v : ℕ) :
                    List ((Fin (u + v) ⊕ Fin (s + t) ⊕ Fin (u + v)) × (Fin (u + v) ⊕ Fin (s + t) ⊕ Fin (u + v)))

                    The peeled z-gluing pairs.

                    Equations
                    Instances For
                      theorem RS.pcTensorPairs_wf (s t u v : ℕ) :

                      The pairs pulled back through the tensor peel are well formed.

                      noncomputable def RS.pcTensorLabel (s t u v : ℕ) :
                      Fin (s + t) ⊕ Fin (0 + 0) ≃ Fin (s + t)

                      The composed label identification of the partial closure of a tensor.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        noncomputable def RS.pcTensorNormal {s t u v : ℕ} (z : Fragment (Fin (u + v))) (X' : Fragment (Fin (s + t))) (z' : Fragment (Fin (u + v))) :

                        The partial closure of a tensor, normalized: X' next to the inner closure, up to the composed label.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          The label meet #

                          theorem RS.pcSurvEquiv_val_low (s t u v : ℕ) (b : Fin (s + u + (t + v))) (hsurv : ∀ p ∈ zClosePairs s t u v, Sum.inr b ≠ p.1 ∧ Sum.inr b ≠ p.2) (hb : ↑b < s) :
                          (pcSurvEquiv s t u v) ⟨Sum.inr b, hsurv⟩ = ⟨↑b, ⋯⟩

                          The forward survivor identification on low labels.

                          theorem RS.pcSurvEquiv_val_high (s t u v : ℕ) (b : Fin (s + u + (t + v))) (hsurv : ∀ p ∈ zClosePairs s t u v, Sum.inr b ≠ p.1 ∧ Sum.inr b ≠ p.2) (hb : ¬↑b < s) (h1 : s + u ≤ ↑b) (h2 : ↑b < s + u + t) :
                          (pcSurvEquiv s t u v) ⟨Sum.inr b, hsurv⟩ = ⟨s + (↑b - (s + u)), ⋯⟩

                          The forward survivor identification on high labels.

                          theorem RS.pcTensorLabel_eq (s t u v : ℕ) :

                          The composed label is the clean label: the live value chase on the surviving x-labels.

                          noncomputable def RS.partialCloseTensor {s t u v : ℕ} (z : Fragment (Fin (u + v))) (X' : Fragment (Fin (s + t))) (z' : Fragment (Fin (u + v))) :

                          The partial closure of a tensor: X' unscathed next to the full closure of z against z'.

                          Equations
                          Instances For