Documentation

Mathlib.Algebra.Homology.ComplexShapeSigns

Signs in constructions on homological complexes

In this file, we shall introduce various typeclasses which will allow the construction of the total complex of a bicomplex and of the the monoidal category structure on categories of homological complexes (TODO).

The most important definition is that of TotalComplexShape c₁ c₂ c₁₂ given three complex shapes c₁, c₂, c₁₂: it allows the definition of a total complex functor HomologicalComplex₂ C c₁ c₂ ⥤ HomologicalComplex C c₁₂ (at least when suitable coproducts exist).

In particular, we construct an instance of TotalComplexShape c c c when c : ComplexShape I and I is an additive monoid equipped with a group homomorphism ε' : Multiplicative I → ℤˣ satisfying certain properties (see ComplexShape.TensorSigns).

TODO @joelriou: add more classes for the symmetry of the total complex, the associativity, etc.

class TotalComplexShape {I₁ : Type u_1} {I₂ : Type u_2} {I₁₂ : Type u_3} (c₁ : ComplexShape I₁) (c₂ : ComplexShape I₂) (c₁₂ : ComplexShape I₁₂) :
Type (max (max u_1 u_2) u_3)

A total complex shape for three complexes shapes c₁, c₂, c₁₂ on three types I₁, I₂ and I₁₂ consists of the data and properties that will allow the construction of a total complex functor HomologicalComplex₂ C c₁ c₂ ⥤ HomologicalComplex C c₁₂ which sends K to a complex which in degree i₁₂ : I₁₂ consists of the coproduct of the (K.X i₁).X i₂ such that π ⟨i₁, i₂⟩ = i₁₂.

Instances
    @[inline, reducible]
    abbrev ComplexShape.π {I₁ : Type u_1} {I₂ : Type u_2} {I₁₂ : Type u_3} (c₁ : ComplexShape I₁) (c₂ : ComplexShape I₂) (c₁₂ : ComplexShape I₁₂) [TotalComplexShape c₁ c₂ c₁₂] (i : I₁ × I₂) :
    I₁₂

    The map I₁ × I₂ → I₁₂ on indices given by TotalComplexShape c₁ c₂ c₁₂.

    Equations
    Instances For
      @[inline, reducible]
      abbrev ComplexShape.ε₁ {I₁ : Type u_1} {I₂ : Type u_2} {I₁₂ : Type u_3} (c₁ : ComplexShape I₁) (c₂ : ComplexShape I₂) (c₁₂ : ComplexShape I₁₂) [TotalComplexShape c₁ c₂ c₁₂] (i : I₁ × I₂) :

      The sign of the horizontal differential in the total complex.

      Equations
      Instances For
        @[inline, reducible]
        abbrev ComplexShape.ε₂ {I₁ : Type u_1} {I₂ : Type u_2} {I₁₂ : Type u_3} (c₁ : ComplexShape I₁) (c₂ : ComplexShape I₂) (c₁₂ : ComplexShape I₁₂) [TotalComplexShape c₁ c₂ c₁₂] (i : I₁ × I₂) :

        The sign of the vertical differential in the total complex.

        Equations
        Instances For
          theorem ComplexShape.rel_π₁ {I₁ : Type u_1} {I₂ : Type u_2} {I₁₂ : Type u_3} {c₁ : ComplexShape I₁} (c₂ : ComplexShape I₂) (c₁₂ : ComplexShape I₁₂) [TotalComplexShape c₁ c₂ c₁₂] {i₁ : I₁} {i₁' : I₁} (h : c₁.Rel i₁ i₁') (i₂ : I₂) :
          c₁₂.Rel (ComplexShape.π c₁ c₂ c₁₂ (i₁, i₂)) (ComplexShape.π c₁ c₂ c₁₂ (i₁', i₂))
          theorem ComplexShape.next_π₁ {I₁ : Type u_1} {I₂ : Type u_2} {I₁₂ : Type u_3} {c₁ : ComplexShape I₁} (c₂ : ComplexShape I₂) (c₁₂ : ComplexShape I₁₂) [TotalComplexShape c₁ c₂ c₁₂] {i₁ : I₁} {i₁' : I₁} (h : c₁.Rel i₁ i₁') (i₂ : I₂) :
          ComplexShape.next c₁₂ (ComplexShape.π c₁ c₂ c₁₂ (i₁, i₂)) = ComplexShape.π c₁ c₂ c₁₂ (i₁', i₂)
          theorem ComplexShape.rel_π₂ {I₁ : Type u_1} {I₂ : Type u_2} {I₁₂ : Type u_3} (c₁ : ComplexShape I₁) {c₂ : ComplexShape I₂} (c₁₂ : ComplexShape I₁₂) [TotalComplexShape c₁ c₂ c₁₂] (i₁ : I₁) {i₂ : I₂} {i₂' : I₂} (h : c₂.Rel i₂ i₂') :
          c₁₂.Rel (ComplexShape.π c₁ c₂ c₁₂ (i₁, i₂)) (ComplexShape.π c₁ c₂ c₁₂ (i₁, i₂'))
          theorem ComplexShape.next_π₂ {I₁ : Type u_1} {I₂ : Type u_2} {I₁₂ : Type u_3} (c₁ : ComplexShape I₁) {c₂ : ComplexShape I₂} (c₁₂ : ComplexShape I₁₂) [TotalComplexShape c₁ c₂ c₁₂] (i₁ : I₁) {i₂ : I₂} {i₂' : I₂} (h : c₂.Rel i₂ i₂') :
          ComplexShape.next c₁₂ (ComplexShape.π c₁ c₂ c₁₂ (i₁, i₂)) = ComplexShape.π c₁ c₂ c₁₂ (i₁, i₂')
          theorem ComplexShape.ε₂_ε₁ {I₁ : Type u_1} {I₂ : Type u_2} {I₁₂ : Type u_3} {c₁ : ComplexShape I₁} {c₂ : ComplexShape I₂} (c₁₂ : ComplexShape I₁₂) [TotalComplexShape c₁ c₂ c₁₂] {i₁ : I₁} {i₁' : I₁} {i₂ : I₂} {i₂' : I₂} (h₁ : c₁.Rel i₁ i₁') (h₂ : c₂.Rel i₂ i₂') :
          ComplexShape.ε₂ c₁ c₂ c₁₂ (i₁, i₂) * ComplexShape.ε₁ c₁ c₂ c₁₂ (i₁, i₂') = -ComplexShape.ε₁ c₁ c₂ c₁₂ (i₁, i₂) * ComplexShape.ε₂ c₁ c₂ c₁₂ (i₁', i₂)
          class ComplexShape.TensorSigns {I : Type u_4} [AddMonoid I] (c : ComplexShape I) :
          Type u_4

          If I is an additive monoid and c : ComplexShape I, c.TensorSigns contains the data of map ε : I → ℤˣ and properties which allows the construction of a TotalComplexShape c c c.

          Instances
            @[inline, reducible]
            abbrev ComplexShape.ε {I : Type u_4} [AddMonoid I] (c : ComplexShape I) [ComplexShape.TensorSigns c] (i : I) :

            The signs which appear in the vertical differential of the total complex.

            Equations
            Instances For
              theorem ComplexShape.rel_add {I : Type u_4} [AddMonoid I] (c : ComplexShape I) [ComplexShape.TensorSigns c] {p : I} {q : I} (hpq : c.Rel p q) (r : I) :
              c.Rel (p + r) (q + r)
              theorem ComplexShape.add_rel {I : Type u_4} [AddMonoid I] (c : ComplexShape I) [ComplexShape.TensorSigns c] (r : I) {p : I} {q : I} (hpq : c.Rel p q) :
              c.Rel (r + p) (r + q)
              theorem ComplexShape.ε_succ {I : Type u_4} [AddMonoid I] (c : ComplexShape I) [ComplexShape.TensorSigns c] {p : I} {q : I} (hpq : c.Rel p q) :
              theorem ComplexShape.next_add {I : Type u_4} [AddMonoid I] (c : ComplexShape I) [ComplexShape.TensorSigns c] (p : I) (q : I) (hp : c.Rel p (ComplexShape.next c p)) :
              theorem ComplexShape.next_add' {I : Type u_4} [AddMonoid I] (c : ComplexShape I) [ComplexShape.TensorSigns c] (p : I) (q : I) (hq : c.Rel q (ComplexShape.next c q)) :
              @[simp]
              theorem ComplexShape.instTotalComplexShape_π {I : Type u_4} [AddMonoid I] (c : ComplexShape I) [ComplexShape.TensorSigns c] :
              ∀ (x : I × I), TotalComplexShape.π c c c x = match x with | (p, q) => p + q
              @[simp]
              theorem ComplexShape.instTotalComplexShape_ε₂ {I : Type u_4} [AddMonoid I] (c : ComplexShape I) [ComplexShape.TensorSigns c] :
              ∀ (x : I × I), TotalComplexShape.ε₂ c c c x = match x with | (p, snd) => ComplexShape.ε c p
              Equations
              • One or more equations did not get rendered due to their size.
              @[simp]