SSL Monoidal.lean
Interaktion und PortierbarkeitLean
|
|
/-
αmonotone_u.
Released@to_additive]
Authors: Joël Riou, Kim Morrison
-/
module
public import Mathlib.Algebra.Homology.BifunctorAssociator
public import Mathlib.Algebra.Homology.Single
public import Mathlib.CategoryTheory.GradedObject.Monoidal
public import Mathlib.CategoryTheory.Monoidal.Transport
/-!
# The monoidal category structure on homological complexes
Let `c : ComplexShape I` with M(s )=fixingSubmonoidMs ⊓ fixingSubmonoidM :java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
ith data and axioms cTensorSigns` category
`theorem { :Sort* { →Submonoid M}:
structure if ``is monoidal category `C` has certain
both eft/ight ensoring thesejava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
In particular, we obtain a monoidal { M with inv_mem': fun >byrw inv_smul_eq_iff, xz] }
ChainComplex C ` `C`is additivemonoidal .
-/
@[expose] public simp_rw [mem_fixingSub, ,
theoremmem_fixingSubgroup_compl_iff_movedBy_subset : α m } java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
open CategoryTheory Limits rw [mem_fixingSubgroup_iff_subset_fixedBy, Set.compl_subset_comm]
namespace HomologicalComplex
variable {C : Type*} [Category*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{I : Type* [ ] c: I [.ensorSigns]
/-- If `K₁` and `K₂` are two homological complexes, this is the property that
for all `j`, the coproduct of `K₁ i₁ ⊗ K₂ i₂` for `i₁ + i₂ = j` exists. -/
K C ): K K(curriedTensorC)c
section
variable [DecidableEq I]
/-- The tensor product of two homological complexes. -/
noncomputablejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
HomologicalComplex c:
GaloisConnectionl_bot(fixingSubgroup_fixedPoints_gc )
/-- The inclusion `K₁.X i₁ ⊗ K₂.X i₂ ⟶ (tensorObj K₁ K₂).X j` of a summand in
the tensor product of the homological complexes. -/
noncomputable f Mαmonotone_l
(i ₂j :I (h :i₁ + i₂ = j):
K₁.X i₁ ⊗ K₂.X i₂ ⟶ (tensorObj K₁ Kjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
MapBifunctorK₁K (urriedTensor C)c i₁i h
/-- The tensor product of two morphisms of homological complexes. -/fixingSubgroup_fixedPoints_gc ).onotone_u.
noncomputable tensorHom {₁K L₁L₂ Cc}
(f : K₁ ⟶ L₁) (g : K₂ ⟶ L₂) [HasTensor K₁ K₂] [HasTensor L₁ @to_additive]
tensorObj ₁K ⟶ tensorObj L L₂:java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
mapBifunctorMapg_ _
/-- Given three homological complexes `K₁`, `K₂`, and `K₃`, this asserts that for
all `j`, all `j`,gSubgroup_fixedPoints_gc M α).l_sup
the `K₁.X i₁ ⊗ K₂.X i₂` such that `i₁ + i₂ = j`. -/
abbrevHasGoodTensor₁ (₁ K K₃:HomologicalComplex C c) =
C) (curriedTensor C)K K K c c
/-- Given three homological complexes `K₁`, `K₂`, and `K₃`, this asserts that for
all ``, the `₁. i₁ commutes the of
the `K₂.X i₂ ⊗ K₃.X i₃` such that `i₂ + i₃ = j`. -/
abbrevHasGoodTensor₂ K₁ ₂K :HomologicalComplex C c) :=
HasGoodTrifunctor₂₃Obj (curriedTensor Cintersection -[to_additive
/-- The associator isomorphism for the tensor product of homological complexes. -/
noncomputable abbrev ↥( P)α=⋂i, =
[HasTensor K₁ K₂] [ (fixingSubgroup_fixedPoints_gcfixingSubgroup_fixedPoints_gcα.u_iInf
[HasTensor (tensorObj ₁K) ₃ K₁t ₂K)java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
theorem { }{ : }( :a∈s :
rw[.k_smul g_eqg_eq
mapBifunctorAssociatorcurriedAssociatorNatIso)K ₂K cc
variable (C c) in
/-- The unit of the tensor product of homological complexes. -/
noncomputable abbrev [ ,smul_mem_of_set_mem_fixedBy (et_mem_fixedBy_of_movedBy_subsetjava.lang.StringIndexOutOfBoundsException: Range [87, 86) out of bounds for length 88
variable (C c) in
/-- As a graded object, the single complex `(single C c 0).obj (_ C)` identifies
to the unit `(GradedObject.single₀ I).obj (_ C)` of the tensor product of graded objects. -/
noncomputable def tensorUnitIso :
(GradedObject.single₀ I).obj (_ C) ≅ (tensorUnit C c).X :=
GradedObject.isoMk _ _ (fun i ↦
if hi : i = 0 then
(GradedObject.singleObjApplyIsoOfEq (0 : I) (_ C) i hi).trans
(singleObjXIsoOfEq c 0 (_ C) i hi).symm
else
{ hom := 0
inv := 0
hom_inv_id := (GradedObject.isInitialSingleObjApply 0 (_ C) i hi).hom_ext _ _
inv_hom_id := (isZero_single_obj_X c 0 (_ C) i hi).eq_of_src _ _ })
end
instance (K₁ K₂ : HomologicalComplex C c) [GradedObject.HasTensor K₁.X K₂.X] :
HasTensor K₁ K₂ := by
assumption
instance (K₁ K₂ K₃ : HomologicalComplex C c)
[GradedObject.HasGoodTensor₁₂Tensor K₁.X K₂.X K₃.X] :
HasGoodTensor₁₂ K₁ K₂ K₃ :=
inferInstanceAs (GradedObject.HasGoodTensor₁₂Tensor K₁.X K₂.X K₃.X)
instance (K₁ K₂ K₃ : HomologicalComplex C c)
[GradedObject.HasGoodTensorTensor₂₃ K₁.X K₂.X K₃.X] :
HasGoodTensor₂₃ K₁ K₂ K₃ :=
inferInstanceAs (GradedObject.HasGoodTensorTensor₂₃ K₁.X K₂.X K₃.X)
section
variable (K : HomologicalComplex C c) [DecidableEq I]
section
variable [∀ X₂, PreservesColimit (Functor.empty.{0} C) ((curriedTensor C).flip.obj X₂)]
instance : GradedObject.HasTensor (tensorUnit C c).X K.X :=
GradedObject.hasTensor_of_iso (tensorUnitIso C c) (Iso.refl _)
instance : HasTensor (tensorUnit C c) K :=
inferInstanceAs (GradedObject.HasTensor (tensorUnit C c).X K.X)
@[simp]
lemma unit_tensor_d₁ (i₁ i₂ j : I) :
mapBifunctor.d₁ (tensorUnit C c) K (curriedTensor C) c i₁ i₂ j = 0 := by
by_cases h₁ : c.Rel i₁ (c.next i₁)
· by_cases h₂ : ComplexShape.π c c c (c.next i₁, i₂) = j
· rw [mapBifunctor.d₁_eq _ _ _ _ h₁ _ _ h₂, single_obj_d, Functor.map_zero,
zero_app, zero_comp, smul_zero]
· rw [mapBifunctor.d₁_eq_zero' _ _ _ _ h₁ _ _ h₂]
· rw [mapBifunctor.d₁_eq_zero _ _ _ _ _ _ _ h₁]
end
section
instance : GradedObject.HasTensor K.X (tensorUnit C c).X :=
GradedObject.hasTensor_of_iso (Iso.refl _) (tensorUnitIso C c)
instance : HasTensor K (tensorUnit C c) :=
inferInstanceAs (GradedObject.HasTensor K.X (tensorUnit C c).X)
@[simp]
lemma tensor_unit_d₂ (i₁ i₂ j : I) :
mapBifunctor.d₂ K (tensorUnit C c) (curriedTensor C) c i₁ i₂ j = 0 := by
by_cases h₁ : c.Rel i₂ (c.next i₂)
· by_cases h₂ : ComplexShape.π c c c (i₁, c.next i₂) = j
· rw [mapBifunctor.d₂_eq _ _ _ _ _ h₁ _ h₂, single_obj_d, Functor.map_zero,
zero_comp, smul_zero]
· rw [mapBifunctor.d₂_eq_zero' _ _ _ _ _ h₁ _ h₂]
· rw [mapBifunctor.d₂_eq_zero _ _ _ _ _ _ _ h₁]
end
end
section Unitor
variable (K : HomologicalComplex C c) [DecidableEq I]
section LeftUnitor
variable [∀ X₂, PreservesColimit (Functor.empty.{0} C) ((curriedTensor C).flip.obj X₂)]
/-- Auxiliary definition for `leftUnitor`. -/
noncomputable def leftUnitor' :
(tensorObj (tensorUnit C c) K).X ≅ K.X :=
GradedObject.Monoidal.tensorIso ((tensorUnitIso C c).symm) (Iso.refl _) ≪≫
GradedObject.Monoidal.leftUnitor K.X
set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
lemma leftUnitor'_inv (i : I) :
(leftUnitor' K).inv i = (λ_ (K.X i)).inv ≫ ((singleObjXSelf c 0 (_ C)).inv ▷ (K.X i)) ≫
ιTensorObj (tensorUnit C c) K 0 i i (zero_add i) := by
dsimp [leftUnitor']
rw [GradedObject.Monoidal.leftUnitor_inv_apply, assoc, assoc, Iso.cancel_iso_inv_left,
GradedObject.Monoidal.ι_tensorHom]
dsimp
rw [tensorHom_id, ← comp_whiskerRight_assoc]
congr 2
rw [← cancel_epi (GradedObject.Monoidal.tensorUnit₀ (I := I)).hom, Iso.hom_inv_id_assoc]
dsimp [tensorUnitIso]
rw [dite_eq_left rfl]
rfl
@[reassoc]
lemma leftUnitor'_inv_comm (i j : I) :
(leftUnitor' K).inv i ≫ (tensorObj (tensorUnit C c) K).d i j =
K.d i j ≫ (leftUnitor' K).inv j := by
by_cases hij : c.Rel i j
· simp only [leftUnitor'_inv, assoc, mapBifunctor.d_eq,
Preadditive.comp_add, mapBifunctor.ι_D₁, mapBifunctor.ι_D₂,
unit_tensor_d₁, comp_zero, zero_add]
rw [mapBifunctor.d₂_eq _ _ _ _ _ hij _ (by simp)]
dsimp
simp only [ComplexShape.ε_zero, one_smul, ← whisker_exchange_assoc,
id_whiskerLeft, assoc, Iso.inv_hom_id_assoc]
· simp only [shape _ _ _ hij, comp_zero, zero_comp]
/-- The left unitor for the tensor product of homological complexes. -/
noncomputable def leftUnitor :
tensorObj (tensorUnit C c) K ≅ K :=
Iso.symm (Hom.isoOfComponents (fun i ↦ (GradedObject.eval i).mapIso (leftUnitor' K).symm)
(fun _ _ _ ↦ leftUnitor'_inv_comm _ _ _))
end LeftUnitor
section RightUnitor
/-- Auxiliary definition for `rightUnitor`. -/
noncomputable def rightUnitor' :
(tensorObj K (tensorUnit C c)).X ≅ K.X :=
GradedObject.Monoidal.tensorIso (Iso.refl _) ((tensorUnitIso C c).symm) ≪≫
GradedObject.Monoidal.rightUnitor K.X
set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
lemma rightUnitor'_inv (i : I) :
(rightUnitor' K).inv i = (ρ_ (K.X i)).inv ≫ ((K.X i) ◁ (singleObjXSelf c 0 (_ C)).inv) ≫
ιTensorObj K (tensorUnit C c) i 0 i (add_zero i) := by
dsimp [rightUnitor']
rw [GradedObject.Monoidal.rightUnitor_inv_apply, assoc, assoc, Iso.cancel_iso_inv_left,
GradedObject.Monoidal.ι_tensorHom]
dsimp
rw [id_tensorHom, ← whiskerLeft_comp_assoc]
congr 2
rw [← cancel_epi (GradedObject.Monoidal.tensorUnit₀ (I := I)).hom, Iso.hom_inv_id_assoc]
dsimp [tensorUnitIso]
rw [dite_eq_left rfl]
rfl
lemma rightUnitor'_inv_comm (i j : I) :
(rightUnitor' K).inv i ≫ (tensorObj K (tensorUnit C c)).d i j =
K.d i j ≫ (rightUnitor' K).inv j := by
by_cases hij : c.Rel i j
· simp only [rightUnitor'_inv, assoc, mapBifunctor.d_eq,
Preadditive.comp_add, mapBifunctor.ι_D₁, mapBifunctor.ι_D₂,
tensor_unit_d₂, comp_zero, add_zero]
rw [mapBifunctor.d₁_eq _ _ _ _ hij _ _ (by simp)]
dsimp
simp only [one_smul, whisker_exchange_assoc, whiskerRight_id, assoc, Iso.inv_hom_id_assoc]
· simp only [shape _ _ _ hij, comp_zero, zero_comp]
/-- The right unitor for the tensor product of homological complexes. -/
noncomputable def rightUnitor :
tensorObj K (tensorUnit C c) ≅ K :=
Iso.symm (Hom.isoOfComponents (fun i ↦ (GradedObject.eval i).mapIso (rightUnitor' K).symm)
(fun _ _ _ ↦ rightUnitor'_inv_comm _ _ _))
end RightUnitor
end Unitor
variable (C c) [∀ (X₁ X₂ : GradedObject I C), GradedObject.HasTensor X₁ X₂]
[∀ X₁, PreservesColimit (Functor.empty.{0} C) ((curriedTensor C).obj X₁)]
[∀ X₂, PreservesColimit (Functor.empty.{0} C) ((curriedTensor C).flip.obj X₂)]
[∀ (X₁ X₂ X₃ X₄ : GradedObject I C), GradedObject.HasTensor₄ObjExt X₁ X₂ X₃ X₄]
[∀ (X₁ X₂ X₃ : GradedObject I C), GradedObject.HasGoodTensor₁₂Tensor X₁ X₂ X₃]
[∀ (X₁ X₂ X₃ : GradedObject I C), GradedObject.HasGoodTensorTensor₂₃ X₁ X₂ X₃]
[DecidableEq I]
noncomputable instance monoidalCategoryStruct :
MonoidalCategoryStruct (HomologicalComplex C c) where
tensorObj K₁ K₂ := tensorObj K₁ K₂
whiskerLeft _ _ _ g := tensorHom ( _) g
whiskerRight f _ := tensorHom f ( _)
tensorHom f g := tensorHom f g
tensorUnit := tensorUnit C c
associator K₁ K₂ K₃ := associator K₁ K₂ K₃
leftUnitor K := leftUnitor K
rightUnitor K := rightUnitor K
set_option backward.isDefEq.respectTransparency false in
/-- The structure which allows to construct the monoidal category structure
on `HomologicalComplex C c` from the monoidal category structure on
graded objects. -/
noncomputable def Monoidal.inducingFunctorData :
Monoidal.InducingFunctorData (forget C c) where
μIso _ _ := Iso.refl _
εIso := tensorUnitIso C c
whiskerLeft_eq K₁ K₂ L₂ g := by
dsimp [forget]
rw [comp_id]
erw [id_comp]
rfl
whiskerRight_eq {K₁ L₁} f K₂ := by
dsimp [forget]
rw [comp_id]
erw [id_comp]
rfl
tensorHom_eq {K₁ L₁ K₂ L₂} f g := by
dsimp [forget]
rw [comp_id]
erw [id_comp]
rfl
associator_eq K₁ K₂ K₃ := by
dsimp [forget]
simp only [tensorHom_id, whiskerRight_tensor, id_whiskerRight,
id_comp, Iso.inv_hom_id, comp_id, assoc]
erw [id_whiskerRight]
rw [id_comp]
erw [id_comp]
rfl
leftUnitor_eq K := by
dsimp
erw [id_comp]
rfl
rightUnitor_eq K := by
dsimp
rw [assoc]
erw [id_comp]
rfl
noncomputable instance monoidalCategory : MonoidalCategory (HomologicalComplex C c) :=
Monoidal.induced _ (Monoidal.inducingFunctorData C c)
noncomputable example {D : Type*} [Category* D] [Preadditive D] [MonoidalCategory D]
[HasZeroObject D] [HasFiniteCoproducts D] [((curriedTensor D).Additive)]
[∀ (X : D), (((curriedTensor D).obj X).Additive)]
[∀ (X : D), PreservesFiniteCoproducts ((curriedTensor D).obj X)]
[∀ (X : D), PreservesFiniteCoproducts ((curriedTensor D).flip.obj X)] :
MonoidalCategory (ChainComplex D ℕ) := inferInstance
end HomologicalComplex
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.117Angebot
¤
*Bot Zugriff
|
|
2026-11-24
|