roseking commited on
Commit
2c7d975
·
verified ·
1 Parent(s): d7f9a33

Add lean source and binary files (part 6)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. lean/OAI/Algebra/AuslanderReiten/Fibers/ConcreteFiberEvaluation.lean +86 -0
  2. lean/OAI/Algebra/AuslanderReiten/Fibers/ConcreteFiberHomCoordinates.lean +65 -0
  3. lean/OAI/Algebra/AuslanderReiten/Fibers/ConcreteFiberHomotopy.lean +77 -0
  4. lean/OAI/Algebra/AuslanderReiten/Fibers/ConcreteFiberProfile.lean +68 -0
  5. lean/OAI/Algebra/AuslanderReiten/Fibers/ConcreteFiberRow.lean +70 -0
  6. lean/OAI/Algebra/AuslanderReiten/Fibers/ConcreteFiberTriangle.lean +50 -0
  7. lean/OAI/Algebra/AuslanderReiten/Fibers/ExplicitBimoduleFiber.lean +74 -0
  8. lean/OAI/Algebra/AuslanderReiten/Fibers/ExplicitBimoduleProjective.lean +26 -0
  9. lean/OAI/Algebra/AuslanderReiten/Fibers/FiberBranchConsequences.lean +110 -0
  10. lean/OAI/Algebra/AuslanderReiten/Fibers/FiberDiagonalGenerator.lean +53 -0
  11. lean/OAI/Algebra/AuslanderReiten/Fibers/FiberEvaluationMap.lean +30 -0
  12. lean/OAI/Algebra/AuslanderReiten/Fibers/FiberExactness.lean +43 -0
  13. lean/OAI/Algebra/AuslanderReiten/Fibers/FiberFullHomCoordinates.lean +50 -0
  14. lean/OAI/Algebra/AuslanderReiten/Fibers/FiberProductCoordinates.lean +44 -0
  15. lean/OAI/Algebra/AuslanderReiten/Fibers/FiberProjectionProfile.lean +75 -0
  16. lean/OAI/Algebra/AuslanderReiten/Fibers/FiberProjectionZero.lean +87 -0
  17. lean/OAI/Algebra/AuslanderReiten/Fibers/FiberSequenceCoordinates.lean +49 -0
  18. lean/OAI/Algebra/AuslanderReiten/Fibers/FiniteEvaluatedFiber.lean +115 -0
  19. lean/OAI/Algebra/AuslanderReiten/Fibers/FiniteFiberComponents.lean +74 -0
  20. lean/OAI/Algebra/AuslanderReiten/Fibers/FiniteFiberSides.lean +99 -0
  21. lean/OAI/Algebra/AuslanderReiten/Fibers/FiniteModuleFiber.lean +96 -0
  22. lean/OAI/Algebra/AuslanderReiten/Fibers/TensorFiberCoordinateIso.lean +28 -0
  23. lean/OAI/Algebra/AuslanderReiten/HomComplex/FiniteFullHomExt.lean +45 -0
  24. lean/OAI/Algebra/AuslanderReiten/HomComplex/FiniteFullHomZero.lean +107 -0
  25. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullCochainProducts.lean +79 -0
  26. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullCochainTail.lean +73 -0
  27. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomAugmentedExt.lean +30 -0
  28. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomComparison.lean +57 -0
  29. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomComposition.lean +53 -0
  30. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomCompositionLinear.lean +39 -0
  31. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomCompositionSquare.lean +28 -0
  32. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomDegreeProducts.lean +47 -0
  33. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomDuality.lean +39 -0
  34. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomExt.lean +49 -0
  35. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomFunctor.lean +123 -0
  36. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomHomotopyMaps.lean +60 -0
  37. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomLinear.lean +90 -0
  38. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomMap.lean +49 -0
  39. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomMapLinear.lean +85 -0
  40. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomNaturality.lean +86 -0
  41. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomPairing.lean +83 -0
  42. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomPlainZero.lean +41 -0
  43. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomProductCoordinate.lean +26 -0
  44. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomProductLinear.lean +71 -0
  45. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomProductReindex.lean +35 -0
  46. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomProducts.lean +116 -0
  47. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomShift.lean +102 -0
  48. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomShiftedHomotopy.lean +33 -0
  49. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomShiftedIdentity.lean +39 -0
  50. lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomShiftedMaps.lean +38 -0
lean/OAI/Algebra/AuslanderReiten/Fibers/ConcreteFiberEvaluation.lean ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.FiberEvaluationMap
2
+ import OAI.Algebra.AuslanderReiten.Evaluation.TensorTwistEvaluation
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+ namespace ArExplicit.T
8
+ open CategoryTheory CategoryTheory.Pretriangulated
9
+ open scoped TensorProduct
10
+ universe u
11
+ variable {k : Type u} [Field k] [CharP k 2] (q : k) (H₁ H₂ : kˣ)
12
+ local notation "R" => A k q
13
+ local notation "X" => A.simpleFiniteModule q
14
+ local notation "U₁" => twistedFiniteModule (sourceTwist q H₁)
15
+ local notation "U₂" => twistedFiniteModule (sourceTwist q H₂)
16
+ local notation "Y" => fiberTarget q
17
+
18
+ abbrev evaluatedFiber := FiniteLeftModule.evaluated X (finiteFiber q H₁ H₂)
19
+
20
+ abbrev evaluatedMiddle := FiniteLeftModule.evaluated X (FiniteLeftModule.fiberSource U₁ U₂ Y)
21
+
22
+ def evaluatedTwistPairEquiv :
23
+ ((FiniteLeftModule.evaluated X U₁).carrier × (FiniteLeftModule.evaluated X U₂).carrier) ≃ₗ[R]
24
+ ((X).carrier × (X).carrier) :=
25
+ LinearEquiv.prodCongr (evaluatedTwistEquiv q H₁) (evaluatedTwistEquiv q H₂)
26
+
27
+ def middleToSimplePair : (evaluatedMiddle q H₁ H₂).carrier →ₗ[R] ((X).carrier × (X).carrier) :=
28
+ (evaluatedTwistPairEquiv q H₁ H₂).toLinearMap.comp
29
+ (FiniteLeftModule.middlePairMap X U₁ U₂ Y)
30
+
31
+ def middleSimpleStableIso : StableIsomorphism R (evaluatedMiddle q H₁ H₂).carrier
32
+ ((X).carrier × (X).carrier) :=
33
+ (FiniteLeftModule.evaluatedMiddleStableIso X U₁ U₂ Y).trans
34
+ (StableIsomorphism.ofLinearEquiv (evaluatedTwistPairEquiv q H₁ H₂))
35
+
36
+ @[simp] theorem middleSimpleStableIso_hom : (middleSimpleStableIso q H₁ H₂).hom =
37
+ StableHom.classOf R _ _ (middleToSimplePair q H₁ H₂) := by
38
+ change StableHom.comp (StableHom.classOf R _ _ (evaluatedTwistPairEquiv q H₁ H₂).toLinearMap)
39
+ (FiniteLeftModule.evaluatedMiddleStableIso X U₁ U₂ Y).hom = _
40
+ rw [FiniteLeftModule.evaluatedMiddleStableIso_hom, StableHom.comp_classOf]
41
+ rfl
42
+
43
+ def evaluatedRho₁ : (evaluatedFiber q H₁ H₂).carrier →ₗ[R] (X).carrier :=
44
+ (evaluatedTwistEquiv q H₁).toLinearMap.comp
45
+ (FiniteLeftModule.evaluationMap X (rho₁ q H₁ H₂).hom)
46
+
47
+ def evaluatedRho₂ : (evaluatedFiber q H₁ H₂).carrier →ₗ[R] (X).carrier :=
48
+ (evaluatedTwistEquiv q H₂).toLinearMap.comp
49
+ (FiniteLeftModule.evaluationMap X (rho₂ q H₁ H₂).hom)
50
+
51
+ def evaluatedFiberInclusion : (evaluatedFiber q H₁ H₂).carrier →ₗ[R]
52
+ (evaluatedMiddle q H₁ H₂).carrier :=
53
+ FiniteLeftModule.fiberEvaluationInclusion X U₁ U₂ Y
54
+ (normalizedLift q H₁) (normalizedLift q H₂)
55
+
56
+ theorem middleToSimplePair_fiberInclusion :
57
+ (middleToSimplePair q H₁ H₂).comp (evaluatedFiberInclusion q H₁ H₂) =
58
+ (evaluatedRho₁ q H₁ H₂).prod (evaluatedRho₂ q H₁ H₂) := by
59
+ apply BalancedTensor.leftHom_ext (k := k)
60
+ intro m x
61
+ rfl
62
+
63
+ theorem fiberTarget_right_projective : Module.Projective Rᵐᵒᵖ
64
+ (EnvelopingBimodule k R (fiberTarget q).carrier) := by
65
+ let := firstTailModule_right_finite q
66
+ let := firstTailModule_right_projective q
67
+ let := (BimoduleFiber.target_right (firstTailModule q) (AEnvelopingFrobeniusTrace k q)).2
68
+ infer_instance
69
+
70
+ def fiberEvaluationTriangle :
71
+ Triangle (HomotopyCategory (ModuleCat.{u} R) (ComplexShape.up ℤ)) := by
72
+ letI := fiberTarget_right_projective q
73
+ exact FiniteLeftModule.evaluatedFiberTriangle X U₁ U₂ Y
74
+ (normalizedLift q H₁) (normalizedLift q H₂) (AFrobeniusTrace k q)
75
+
76
+ theorem fiberEvaluationTriangle_distinguished : fiberEvaluationTriangle q H₁ H₂ ∈
77
+ distTriang (HomotopyCategory (ModuleCat.{u} R) (ComplexShape.up ℤ)) := by
78
+ let := fiberTarget_right_projective q
79
+ exact FiniteLeftModule.evaluatedFiberTriangle_distinguished X U₁ U₂ Y
80
+ (normalizedLift q H₁) (normalizedLift q H₂) (AFrobeniusTrace k q)
81
+
82
+ end ArExplicit.T
83
+
84
+ end
85
+
86
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/ConcreteFiberHomCoordinates.lean ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.ConcreteFiberHomotopy
2
+ import OAI.Algebra.AuslanderReiten.Coordinates.MappedBiproductHom
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+ namespace ArExplicit.T
8
+ open CategoryTheory CategoryTheory.Limits
9
+ open scoped TensorProduct ModuleCat.Algebra
10
+ universe u
11
+ variable {k : Type u} [Field k] [CharP k 2] (q : k) (H₁ H₂ : kˣ)
12
+ local notation "R" => A k q
13
+ local notation "X" => A.simpleFiniteModule q
14
+ local notation "τ" => AFrobeniusTrace k q
15
+ local notation "HC" => HomotopyCategory (ModuleCat R) (ComplexShape.up ℤ)
16
+ local notation "Q" => HomotopyCategory.quotient (ModuleCat R) (ComplexShape.up ℤ)
17
+ abbrev simpleHomotopyObject := (Q).obj ((X).completeCochain τ)
18
+ local notation "SX" => simpleHomotopyObject q
19
+
20
+ abbrev SimpleHom (n : ℤ) := SX ⟶ (SX)⟦n⟧
21
+ abbrev FiberHom (n : ℤ) := SX ⟶ ((Q).obj ((evaluatedFiber q H₁ H₂).completeCochain τ))⟦n⟧
22
+ abbrev MiddleHom (n : ℤ) := SX ⟶ ((Q).obj ((evaluatedMiddle q H₁ H₂).completeCochain τ))⟦n⟧
23
+
24
+ def middleHomEquiv (n : ℤ) : MiddleHom q H₁ H₂ n ≃ₗ[k]
25
+ (SimpleHom q n × SimpleHom q n) :=
26
+ (Linear.homCongr k (Iso.refl _) ((CategoryTheory.shiftFunctor HC n).mapIso
27
+ (middleProductResolutionIso q H₁ H₂))).trans
28
+ (mappedBiproductHomEquiv k (CategoryTheory.shiftFunctor HC n) SX SX SX)
29
+
30
+ def fiberHomInclusion (n : ℤ) : FiberHom q H₁ H₂ n →ₗ[k] MiddleHom q H₁ H₂ n :=
31
+ Linear.rightComp k SX ((CategoryTheory.shiftFunctor HC n).map
32
+ ((Q).map (FiniteLeftModule.resolutionMap (M := evaluatedFiber q H₁ H₂)
33
+ (N := evaluatedMiddle q H₁ H₂) τ (evaluatedFiberInclusion q H₁ H₂))))
34
+
35
+ def fiberHomRhoPair (n : ℤ) : FiberHom q H₁ H₂ n →ₗ[k]
36
+ (SimpleHom q n × SimpleHom q n) :=
37
+ (Linear.rightComp k SX ((CategoryTheory.shiftFunctor HC n).map
38
+ ((Q).map (FiniteLeftModule.resolutionMap (M := evaluatedFiber q H₁ H₂)
39
+ (N := X) τ (evaluatedRho₁ q H₁ H₂))))).prod
40
+ (Linear.rightComp k SX ((CategoryTheory.shiftFunctor HC n).map
41
+ ((Q).map (FiniteLeftModule.resolutionMap (M := evaluatedFiber q H₁ H₂)
42
+ (N := X) τ (evaluatedRho₂ q H₁ H₂)))))
43
+
44
+ theorem middleHomEquiv_inclusion (n : ℤ) (f : FiberHom q H₁ H₂ n) :
45
+ middleHomEquiv q H₁ H₂ n (fiberHomInclusion q H₁ H₂ n f) =
46
+ fiberHomRhoPair q H₁ H₂ n f := by
47
+ apply Prod.ext
48
+ · simp only [middleHomEquiv, LinearEquiv.trans_apply, mappedBiproductHomEquiv_fst,
49
+ Linear.homCongr_apply, Iso.refl_inv, Category.id_comp, Functor.mapIso_hom,
50
+ fiberHomInclusion, Linear.rightComp_apply, fiberHomRhoPair, LinearMap.prod_apply]
51
+ simp only [Category.assoc, ← Functor.map_comp]
52
+ rw [fiberInclusion_product_fst q H₁ H₂]
53
+ rfl
54
+ · simp only [middleHomEquiv, LinearEquiv.trans_apply, mappedBiproductHomEquiv_snd,
55
+ Linear.homCongr_apply, Iso.refl_inv, Category.id_comp, Functor.mapIso_hom,
56
+ fiberHomInclusion, Linear.rightComp_apply, fiberHomRhoPair, LinearMap.prod_apply]
57
+ simp only [Category.assoc, ← Functor.map_comp]
58
+ rw [fiberInclusion_product_snd q H₁ H₂]
59
+ rfl
60
+
61
+ end ArExplicit.T
62
+
63
+ end
64
+
65
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/ConcreteFiberHomotopy.lean ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.ConcreteFiberEvaluation
2
+ import OAI.Algebra.AuslanderReiten.Resolutions.FiniteResolutionProduct
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+ namespace ArExplicit.T
8
+ open CategoryTheory CategoryTheory.Limits
9
+ open scoped TensorProduct
10
+ universe u
11
+ variable {k : Type u} [Field k] [CharP k 2] (q : k) (H₁ H₂ : kˣ)
12
+ local notation "R" => A k q
13
+ local notation "X" => A.simpleFiniteModule q
14
+ local notation "τ" => AFrobeniusTrace k q
15
+ local notation "Q" => HomotopyCategory.quotient (ModuleCat R) (ComplexShape.up ℤ)
16
+
17
+ def middlePairResolutionIso :
18
+ (Q).obj ((evaluatedMiddle q H₁ H₂).completeCochain τ) ≅
19
+ (Q).obj ((FiniteLeftModule.pairModule X X).completeCochain τ) :=
20
+ FiniteLeftModule.stableResolutionIso (M := evaluatedMiddle q H₁ H₂)
21
+ (N := FiniteLeftModule.pairModule X X) τ (middleSimpleStableIso q H₁ H₂)
22
+
23
+ @[simp] theorem middlePairResolutionIso_hom : (middlePairResolutionIso q H₁ H₂).hom =
24
+ (Q).map (FiniteLeftModule.resolutionMap (M := evaluatedMiddle q H₁ H₂)
25
+ (N := FiniteLeftModule.pairModule X X) τ (middleToSimplePair q H₁ H₂)) :=
26
+ FiniteLeftModule.stableResolutionIso_hom_of_class τ _ _ (middleSimpleStableIso_hom q H₁ H₂)
27
+
28
+ def middleProductResolutionIso :
29
+ (Q).obj ((evaluatedMiddle q H₁ H₂).completeCochain τ) ≅
30
+ ((Q).obj ((X).completeCochain τ) ⊞ (Q).obj ((X).completeCochain τ)) :=
31
+ (middlePairResolutionIso q H₁ H₂).trans (FiniteLeftModule.resolutionPairIso τ X X)
32
+
33
+ theorem fiberInclusion_pairResolution :
34
+ (Q).map (FiniteLeftModule.resolutionMap (M := evaluatedFiber q H₁ H₂)
35
+ (N := evaluatedMiddle q H₁ H₂) τ (evaluatedFiberInclusion q H₁ H₂)) ≫
36
+ (middlePairResolutionIso q H₁ H₂).hom =
37
+ (Q).map (FiniteLeftModule.resolutionMap (M := evaluatedFiber q H₁ H₂)
38
+ (N := FiniteLeftModule.pairModule X X) τ
39
+ ((evaluatedRho₁ q H₁ H₂).prod (evaluatedRho₂ q H₁ H₂))) := by
40
+ erw [middlePairResolutionIso_hom, ← FiniteLeftModule.resolutionMap_comp,
41
+ middleToSimplePair_fiberInclusion]
42
+
43
+ theorem fiberInclusion_product_fst :
44
+ (Q).map (FiniteLeftModule.resolutionMap (M := evaluatedFiber q H₁ H₂)
45
+ (N := evaluatedMiddle q H₁ H₂) τ (evaluatedFiberInclusion q H₁ H₂)) ≫
46
+ (middleProductResolutionIso q H₁ H₂).hom ≫ biprod.fst =
47
+ (Q).map (FiniteLeftModule.resolutionMap (M := evaluatedFiber q H₁ H₂)
48
+ (N := X) τ (evaluatedRho₁ q H₁ H₂)) := by
49
+ simp only [middleProductResolutionIso, Iso.trans_hom, Category.assoc,
50
+ FiniteLeftModule.resolutionPairIso_hom_fst]
51
+ rw [← Category.assoc]
52
+ erw [fiberInclusion_pairResolution q H₁ H₂]
53
+ exact (FiniteLeftModule.resolutionMap_comp (M := evaluatedFiber q H₁ H₂)
54
+ (N := FiniteLeftModule.pairModule X X) (L := X) τ
55
+ ((evaluatedRho₁ q H₁ H₂).prod (evaluatedRho₂ q H₁ H₂))
56
+ (FiniteLeftModule.pairFst X X)).symm
57
+
58
+ theorem fiberInclusion_product_snd :
59
+ (Q).map (FiniteLeftModule.resolutionMap (M := evaluatedFiber q H₁ H₂)
60
+ (N := evaluatedMiddle q H₁ H₂) τ (evaluatedFiberInclusion q H₁ H₂)) ≫
61
+ (middleProductResolutionIso q H₁ H₂).hom ≫ biprod.snd =
62
+ (Q).map (FiniteLeftModule.resolutionMap (M := evaluatedFiber q H₁ H₂)
63
+ (N := X) τ (evaluatedRho₂ q H₁ H₂)) := by
64
+ simp only [middleProductResolutionIso, Iso.trans_hom, Category.assoc,
65
+ FiniteLeftModule.resolutionPairIso_hom_snd]
66
+ rw [← Category.assoc]
67
+ erw [fiberInclusion_pairResolution q H₁ H₂]
68
+ exact (FiniteLeftModule.resolutionMap_comp (M := evaluatedFiber q H₁ H₂)
69
+ (N := FiniteLeftModule.pairModule X X) (L := X) τ
70
+ ((evaluatedRho₁ q H₁ H₂).prod (evaluatedRho₂ q H₁ H₂))
71
+ (FiniteLeftModule.pairSnd X X)).symm
72
+
73
+ end ArExplicit.T
74
+
75
+ end
76
+
77
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/ConcreteFiberProfile.lean ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Coordinates.BranchHomProfile
2
+ import OAI.Algebra.AuslanderReiten.Evaluation.ConcreteBranchDetector
3
+ import OAI.Algebra.AuslanderReiten.Fibers.FiberBranchConsequences
4
+
5
+ namespace OAI
6
+
7
+ noncomputable section
8
+ namespace ArExplicit.T
9
+ open CategoryTheory
10
+ open CochainComplex.HomComplex CompleteComparison
11
+ open scoped TensorProduct ModuleCat.Algebra
12
+ universe u
13
+ variable {k : Type u} [Field k] [CharP k 2] (q : k)
14
+ variable [HasDerivedCategory (ModuleCat.{u} (T k q))]
15
+ variable [HasDerivedCategory (ModuleCat.{u} (A k q))]
16
+ variable (hq : q ≠ 0) (hq1 : 1+q ≠ 0) (h : Resolution.NoPositivePowerOne q)
17
+ variable (H₁ H₂ : kˣ)
18
+ local notation "P₀" => A.simpleComplete q
19
+
20
+ include hq hq1 h
21
+
22
+ theorem normalizedBranches_equal : branchHom q H₁ = branchHom q H₂ :=
23
+ branchHom_common_of_scalarCoordinate q hq1 (branchPlainScalarEquiv q hq hq1 h) H₁ H₂
24
+
25
+ theorem normalizedBranch_ne_zero (H : kˣ) : branchHom q H ≠ 0 :=
26
+ branchHom_ne_zero_of_scalarCoordinate q hq1 (branchPlainScalarEquiv q hq hq1 h) H
27
+
28
+ theorem fiberPositiveRhoPair_bijective (n : ℤ) (hn : 0 < n) :
29
+ Function.Bijective (fiberFullRhoPair q H₁ H₂ n) :=
30
+ fiberFullRhoPair_positive_bijective q H₁ H₂ hq1 (branchZeroScalarEquiv q hq hq1 h)
31
+ (normalizedBranches_equal q hq hq1 h H₁ H₂)
32
+ (normalizedBranch_ne_zero q hq hq1 h H₁)
33
+ (fun a ha => branchHom_subsingleton q hq hq1 h a (by omega) (by omega)) n hn
34
+
35
+ def fiberDiagonalClass : CohomologyClass P₀ (fiberComplete q H₁ H₂) 0 := by
36
+ letI := branchHom_subsingleton q hq hq1 h (-1) (by omega) (by omega)
37
+ exact fiberZeroClassOfBranches q H₁ H₂ hq1 (branchZeroScalarEquiv q hq hq1 h)
38
+ (normalizedBranches_equal q hq hq1 h H₁ H₂)
39
+ (normalizedBranch_ne_zero q hq hq1 h H₁)
40
+
41
+ theorem fiberDiagonalClass_image :
42
+ fiberFullRhoPair q H₁ H₂ 0 (fiberDiagonalClass q hq hq1 h H₁ H₂) =
43
+ (fullHomIdentity P₀, fullHomIdentity P₀) := by
44
+ let := branchHom_subsingleton q hq hq1 h (-1) (by omega) (by omega)
45
+ exact fiberZeroClassOfBranches_image q H₁ H₂ hq1 (branchZeroScalarEquiv q hq hq1 h)
46
+ (normalizedBranches_equal q hq hq1 h H₁ H₂)
47
+ (normalizedBranch_ne_zero q hq hq1 h H₁)
48
+
49
+ theorem fiberDiagonalClass_spans (x : CohomologyClass P₀ (fiberComplete q H₁ H₂) 0) :
50
+ ∃ c : k, x = c • fiberDiagonalClass q hq hq1 h H₁ H₂ := by
51
+ let := branchHom_subsingleton q hq hq1 h (-1) (by omega) (by omega)
52
+ exact fiberZeroClassOfBranches_spans q H₁ H₂ hq1 (branchZeroScalarEquiv q hq hq1 h)
53
+ (normalizedBranches_equal q hq hq1 h H₁ H₂)
54
+ (normalizedBranch_ne_zero q hq hq1 h H₁) x
55
+
56
+ theorem fiberDiagonalClass_ne_zero : fiberDiagonalClass q hq hq1 h H₁ H₂ ≠ 0 := by
57
+ intro hz
58
+ have hp := fiberDiagonalClass_image q hq hq1 h H₁ H₂
59
+ rw [hz, map_zero] at hp
60
+ have hs := congrArg (fun z => A.fullHomZeroScalarEquiv q hq1 z.1) hp
61
+ simp only [Prod.fst_zero, map_zero, fullHomIdentity, A.fullHomZeroScalarEquiv_identity] at hs
62
+ exact zero_ne_one hs
63
+
64
+ end ArExplicit.T
65
+
66
+ end
67
+
68
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/ConcreteFiberRow.lean ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.ConcreteFiberComponentMaps
2
+ import OAI.Algebra.AuslanderReiten.Coordinates.MappedBiproductRow
3
+ import OAI.Algebra.AuslanderReiten.Algebras.SimpleHomScalars
4
+ import OAI.Algebra.AuslanderReiten.Homology.TriangleConnectingProduct
5
+
6
+ namespace OAI
7
+
8
+ noncomputable section
9
+ namespace ArExplicit.T
10
+ open CategoryTheory CategoryTheory.Limits
11
+ open scoped TensorProduct ModuleCat.Algebra
12
+ universe u
13
+ variable {k : Type u} [Field k] [CharP k 2] (q : k) (H₁ H₂ : kˣ)
14
+ local notation "HC" => HomotopyCategory (ModuleCat (A k q)) (ComplexShape.up ℤ)
15
+ local notation "X₀" => simpleHomotopyObject q
16
+ local notation "T₀" => fiberProductTriangle q H₁ H₂
17
+
18
+ def fiberProductMiddleEquiv (n : ℤ) :
19
+ TriangleGradedSequence.Middle T₀ X₀ n ≃ₗ[k] (SimpleHom q n × SimpleHom q n) :=
20
+ mappedBiproductHomEquiv k (CategoryTheory.shiftFunctor HC n) X₀ X₀ X₀
21
+
22
+ def fiberProductMiddleScalarEquiv (hq1 : 1+q ≠ 0) :
23
+ TriangleGradedSequence.Middle T₀ X₀ 0 ≃ₗ[k] k × k :=
24
+ (fiberProductMiddleEquiv q H₁ H₂ 0).trans
25
+ ((simpleZeroScalarEquiv q hq1).prodCongr (simpleZeroScalarEquiv q hq1))
26
+
27
+ def branchZeroHom (H : kˣ) : BranchHom q 0 :=
28
+ branchHom q H ≫ (shiftFunctorZero HC ℤ).inv.app (branchTargetObject q)
29
+
30
+ theorem fiberProductSecond_row (n : ℤ)
31
+ (m : TriangleGradedSequence.Middle T₀ X₀ n) :
32
+ TriangleGradedSequence.second k T₀ X₀ n m =
33
+ (fiberProductMiddleEquiv q H₁ H₂ n m).1 ≫ (branchHom q H₁)⟦n⟧' +
34
+ (fiberProductMiddleEquiv q H₁ H₂ n m).2 ≫ (branchHom q H₂)⟦n⟧' := by
35
+ erw [TriangleGradedSequence.second_eq_shift,
36
+ mappedBiproduct_row k (CategoryTheory.shiftFunctor HC n) X₀ X₀ X₀,
37
+ fiberProductTriangle_inl_second, fiberProductTriangle_inr_second]
38
+ rfl
39
+
40
+ theorem fiberProductSecond_zero (hq1 : 1+q ≠ 0)
41
+ (m : TriangleGradedSequence.Middle T₀ X₀ 0) :
42
+ TriangleGradedSequence.second k T₀ X₀ 0 m =
43
+ (fiberProductMiddleScalarEquiv q H₁ H₂ hq1 m).1 • branchZeroHom q H₁ +
44
+ (fiberProductMiddleScalarEquiv q H₁ H₂ hq1 m).2 • branchZeroHom q H₂ := by
45
+ have h₁ := congrArg (fun v => v ≫ (branchHom q H₁)⟦(0 : ℤ)⟧')
46
+ (simpleHom_eq_scalar_unit q hq1 (fiberProductMiddleEquiv q H₁ H₂ 0 m).1)
47
+ have h₂ := congrArg (fun v => v ≫ (branchHom q H₂)⟦(0 : ℤ)⟧')
48
+ (simpleHom_eq_scalar_unit q hq1 (fiberProductMiddleEquiv q H₁ H₂ 0 m).2)
49
+ refine (fiberProductSecond_row q H₁ H₂ 0 m).trans ((congrArg₂ (· + ·) h₁ h₂).trans ?_)
50
+ rw [Linear.smul_comp, Linear.smul_comp, simpleZeroUnit_postcomp, simpleZeroUnit_postcomp]
51
+ rfl
52
+
53
+ theorem fiberProductSecond_zero_common (hq1 : 1+q ≠ 0)
54
+ (e : BranchHom q 0 ≃ₗ[k] k) (hg : branchHom q H₁ = branchHom q H₂)
55
+ (m : TriangleGradedSequence.Middle T₀ X₀ 0) :
56
+ e (TriangleGradedSequence.second k T₀ X₀ 0 m) =
57
+ e (branchZeroHom q H₁) *
58
+ ((fiberProductMiddleScalarEquiv q H₁ H₂ hq1 m).1 +
59
+ (fiberProductMiddleScalarEquiv q H₁ H₂ hq1 m).2) := by
60
+ have hz : branchZeroHom q H₁ = branchZeroHom q H₂ :=
61
+ congrArg (fun f => f ≫ (shiftFunctorZero HC ℤ).inv.app (branchTargetObject q)) hg
62
+ rw [fiberProductSecond_zero q H₁ H₂ hq1, ← hz, map_add, map_smul, map_smul]
63
+ simp only [smul_eq_mul]
64
+ ring
65
+
66
+ end ArExplicit.T
67
+
68
+ end
69
+
70
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/ConcreteFiberTriangle.lean ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.ConcreteFiberHomotopy
2
+ import OAI.Algebra.AuslanderReiten.Homology.TriangleMiddleTransport
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+ namespace ArExplicit.T
8
+ open CategoryTheory CategoryTheory.Limits CategoryTheory.Pretriangulated
9
+ universe u
10
+ variable {k : Type u} [Field k] [CharP k 2] (q : k) (H₁ H₂ : kˣ)
11
+ local notation "R" => A k q
12
+ local notation "X" => A.simpleFiniteModule q
13
+ local notation "τ" => AFrobeniusTrace k q
14
+ local notation "HC" => HomotopyCategory (ModuleCat R) (ComplexShape.up ℤ)
15
+ local notation "Q" => HomotopyCategory.quotient (ModuleCat R) (ComplexShape.up ℤ)
16
+
17
+ @[simp] theorem fiberEvaluationTriangle_first : (fiberEvaluationTriangle q H₁ H₂).mor₁ =
18
+ (Q).map (FiniteLeftModule.resolutionMap (M := evaluatedFiber q H₁ H₂)
19
+ (N := evaluatedMiddle q H₁ H₂) τ (evaluatedFiberInclusion q H₁ H₂)) := rfl
20
+
21
+ def fiberProductTriangle : Triangle HC :=
22
+ triangleReplaceMiddle (fiberEvaluationTriangle q H₁ H₂) (middleProductResolutionIso q H₁ H₂)
23
+
24
+ def fiberProductTriangleIso : fiberEvaluationTriangle q H₁ H₂ ≅ fiberProductTriangle q H₁ H₂ :=
25
+ triangleReplaceMiddleIso _ _
26
+
27
+ theorem fiberProductTriangle_distinguished : fiberProductTriangle q H₁ H₂ ∈ distTriang HC :=
28
+ triangleReplaceMiddle_distinguished _ _ (fiberEvaluationTriangle_distinguished q H₁ H₂)
29
+
30
+ theorem fiberProductTriangle_first_fst : (fiberProductTriangle q H₁ H₂).mor₁ ≫ biprod.fst =
31
+ (Q).map (FiniteLeftModule.resolutionMap (M := evaluatedFiber q H₁ H₂)
32
+ (N := X) τ (evaluatedRho₁ q H₁ H₂)) := by
33
+ change ((fiberEvaluationTriangle q H₁ H₂).mor₁ ≫
34
+ (middleProductResolutionIso q H₁ H₂).hom) ≫ biprod.fst = _
35
+ erw [fiberEvaluationTriangle_first, Category.assoc]
36
+ exact fiberInclusion_product_fst q H₁ H₂
37
+
38
+ theorem fiberProductTriangle_first_snd : (fiberProductTriangle q H₁ H₂).mor₁ ≫ biprod.snd =
39
+ (Q).map (FiniteLeftModule.resolutionMap (M := evaluatedFiber q H₁ H₂)
40
+ (N := X) τ (evaluatedRho₂ q H₁ H₂)) := by
41
+ change ((fiberEvaluationTriangle q H₁ H₂).mor₁ ≫
42
+ (middleProductResolutionIso q H₁ H₂).hom) ≫ biprod.snd = _
43
+ erw [fiberEvaluationTriangle_first, Category.assoc]
44
+ exact fiberInclusion_product_snd q H₁ H₂
45
+
46
+ end ArExplicit.T
47
+
48
+ end
49
+
50
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/ExplicitBimoduleFiber.lean ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Coordinates.TensorFiniteLift
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ namespace ArExplicit.T
7
+ open CategoryTheory
8
+ open scoped TensorProduct
9
+ universe u
10
+ variable {k : Type u} [Field k] [CharP k 2] (q : k) (H H₁ H₂ : kˣ)
11
+ local notation "R" => A k q
12
+ local notation "Ae" => R ⊗[k] Rᵐᵒᵖ
13
+
14
+ abbrev fiberTarget : FiniteLeftModule k Ae := (firstTailModule q).canonicalCosyzygies 4
15
+
16
+ def normalizedLift : (twistedFiniteModule (sourceTwist q H)).carrier ⟶ (fiberTarget q).carrier :=
17
+ ModuleCat.ofHom (X := (twistedFiniteModule (sourceTwist q H)).carrier)
18
+ (Y := (fiberTarget q).carrier) (((H : k)^2)⁻¹ • finiteLift q H)
19
+
20
+ @[simp] theorem normalizedLift_apply (x : (twistedFiniteModule (sourceTwist q H)).carrier) :
21
+ normalizedLift q H x = ((H : k)^2)⁻¹ • finiteLift q H x := rfl
22
+
23
+ abbrev finiteFiber : FiniteLeftModule k Ae :=
24
+ BimoduleFiber.finiteModule (firstTailModule q) (sourceTwist q H₁) (sourceTwist q H₂)
25
+ (normalizedLift q H₁) (normalizedLift q H₂)
26
+
27
+ abbrev explicitBimodule :=
28
+ BimoduleFiber.bimodule (firstTailModule q) (sourceTwist q H₁) (sourceTwist q H₂)
29
+ (normalizedLift q H₁) (normalizedLift q H₂)
30
+
31
+ def rho₁ : (finiteFiber q H₁ H₂).carrier ⟶ (twistedFiniteModule (sourceTwist q H₁)).carrier :=
32
+ FiniteLeftModule.fiberProjection₁
33
+ (twistedFiniteModule (sourceTwist q H₁)) (twistedFiniteModule (sourceTwist q H₂))
34
+ (fiberTarget q) (normalizedLift q H₁) (normalizedLift q H₂)
35
+
36
+ def rho₂ : (finiteFiber q H₁ H₂).carrier ⟶ (twistedFiniteModule (sourceTwist q H₂)).carrier :=
37
+ FiniteLeftModule.fiberProjection₂
38
+ (twistedFiniteModule (sourceTwist q H₁)) (twistedFiniteModule (sourceTwist q H₂))
39
+ (fiberTarget q) (normalizedLift q H₁) (normalizedLift q H₂)
40
+
41
+ def explicitFiberSequence :=
42
+ FiniteLeftModule.fiberSequence
43
+ (twistedFiniteModule (sourceTwist q H₁)) (twistedFiniteModule (sourceTwist q H₂))
44
+ (fiberTarget q) (normalizedLift q H₁) (normalizedLift q H₂)
45
+
46
+ theorem explicitFiberSequence_shortExact : (explicitFiberSequence q H₁ H₂).ShortExact :=
47
+ FiniteLeftModule.fiberSequence_shortExact
48
+ (twistedFiniteModule (sourceTwist q H₁)) (twistedFiniteModule (sourceTwist q H₂))
49
+ (fiberTarget q) (normalizedLift q H₁) (normalizedLift q H₂)
50
+
51
+ theorem explicitBimodule_finite_k : Module.Finite k (explicitBimodule q H₁ H₂) := by
52
+ infer_instance
53
+
54
+ theorem explicitBimodule_left :
55
+ Module.Finite R (explicitBimodule q H₁ H₂) ∧
56
+ Module.Projective R (explicitBimodule q H₁ H₂) := by
57
+ let := firstTailModule_left_finite q
58
+ let := firstTailModule_left_projective q
59
+ exact BimoduleFiber.left (firstTailModule q) (sourceTwist q H₁) (sourceTwist q H₂)
60
+ (normalizedLift q H₁) (normalizedLift q H₂) (AEnvelopingFrobeniusTrace k q)
61
+
62
+ theorem explicitBimodule_right :
63
+ Module.Finite Rᵐᵒᵖ (explicitBimodule q H₁ H₂) ∧
64
+ Module.Projective Rᵐᵒᵖ (explicitBimodule q H₁ H₂) := by
65
+ let := firstTailModule_right_finite q
66
+ let := firstTailModule_right_projective q
67
+ exact BimoduleFiber.right (firstTailModule q) (sourceTwist q H₁) (sourceTwist q H₂)
68
+ (normalizedLift q H₁) (normalizedLift q H₂) (AEnvelopingFrobeniusTrace k q)
69
+
70
+ end ArExplicit.T
71
+
72
+ end
73
+
74
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/ExplicitBimoduleProjective.lean ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.ExplicitBimoduleFiber
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ namespace ArExplicit.T
7
+ universe u
8
+ variable {k : Type u} [Field k] [CharP k 2] (q : k) (H₁ H₂ : kˣ)
9
+
10
+ instance explicitBimodule_finite_left : Module.Finite (A k q) (explicitBimodule q H₁ H₂) :=
11
+ (explicitBimodule_left q H₁ H₂).1
12
+
13
+ instance explicitBimodule_projective_left : Module.Projective (A k q) (explicitBimodule q H₁ H₂) :=
14
+ (explicitBimodule_left q H₁ H₂).2
15
+
16
+ instance explicitBimodule_finite_right : Module.Finite (A k q)ᵐᵒᵖ (explicitBimodule q H₁ H₂) :=
17
+ (explicitBimodule_right q H₁ H₂).1
18
+
19
+ instance explicitBimodule_projective_right : Module.Projective (A k q)ᵐᵒᵖ (explicitBimodule q H₁ H₂) :=
20
+ (explicitBimodule_right q H₁ H₂).2
21
+
22
+ end ArExplicit.T
23
+
24
+ end
25
+
26
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiberBranchConsequences.lean ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.FiberProductCoordinates
2
+ import OAI.Algebra.AuslanderReiten.Fibers.FiberDiagonalGenerator
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+ namespace ArExplicit.T
8
+ open CategoryTheory
9
+ open CochainComplex.HomComplex CompleteComparison
10
+ open scoped TensorProduct ModuleCat.Algebra
11
+ universe u
12
+ variable {k : Type u} [Field k] [CharP k 2] (q : k) (H₁ H₂ : kˣ)
13
+ local notation "HC" => HomotopyCategory (ModuleCat (A k q)) (ComplexShape.up ℤ)
14
+ local notation "T₀" => fiberProductTriangle q H₁ H₂
15
+ local notation "X₀" => simpleHomotopyObject q
16
+ local notation "P₀" => A.simpleComplete q
17
+
18
+ theorem branchZeroHom_ne_zero (H : kˣ) (hn : branchHom q H ≠ 0) :
19
+ branchZeroHom q H ≠ 0 := by
20
+ intro h
21
+ apply hn
22
+ apply (cancel_mono ((shiftFunctorZero HC ℤ).inv.app (branchTargetObject q))).1
23
+ simpa only [branchZeroHom, Limits.zero_comp] using h
24
+
25
+ variable (hq1 : 1+q ≠ 0) (e : BranchHom q 0 ≃ₗ[k] k)
26
+ variable (hg : branchHom q H₁ = branchHom q H₂) (hn : branchHom q H₁ ≠ 0)
27
+
28
+ include hn in
29
+ theorem branchScalar_ne_zero : e (branchZeroHom q H₁) ≠ 0 := by
30
+ intro hz
31
+ exact branchZeroHom_ne_zero q H₁ hn (e.injective (hz.trans (map_zero e).symm))
32
+
33
+ include hq1 e hg hn
34
+
35
+ theorem fiberSecondZero_surjective :
36
+ Function.Surjective (TriangleGradedSequence.second k T₀ X₀ 0) :=
37
+ TriangleGradedSequence.second_zero_surjective k T₀ X₀
38
+ (fiberProductMiddleScalarEquiv q H₁ H₂ hq1) e
39
+ (e (branchZeroHom q H₁)) (branchScalar_ne_zero q H₁ e hn)
40
+ (fiberProductSecond_zero_common q H₁ H₂ hq1 e hg)
41
+
42
+ theorem fiberFullRhoPair_positive_bijective
43
+ (hpos : ∀ n : ℤ, 0 < n → Subsingleton (BranchHom q n))
44
+ (n : ℤ) (hnpos : 0 < n) :
45
+ Function.Bijective (fiberFullRhoPair q H₁ H₂ n) := by
46
+ apply fiberFullRhoPair_bijective_of_rho
47
+ apply fiberRhoPair_bijective_of_productFirst
48
+ exact TriangleGradedSequence.first_positive_bijective k T₀
49
+ (fiberProductTriangle_distinguished q H₁ H₂) X₀ hpos
50
+ (fiberSecondZero_surjective q H₁ H₂ hq1 e hg hn) n hnpos
51
+
52
+ variable [Subsingleton (BranchHom q (-1))]
53
+ local instance : Subsingleton (TriangleGradedSequence.Top T₀ X₀ (-1)) :=
54
+ inferInstanceAs (Subsingleton (BranchHom q (-1)))
55
+
56
+ def fiberZeroScalarEquivOfBranches : FiberHom q H₁ H₂ 0 ≃ₗ[k] k :=
57
+ TriangleGradedSequence.zeroScalarEquiv k T₀
58
+ (fiberProductTriangle_distinguished q H₁ H₂) X₀
59
+ (fiberProductMiddleScalarEquiv q H₁ H₂ hq1) e
60
+ (e (branchZeroHom q H₁)) (branchScalar_ne_zero q H₁ e hn)
61
+ (fiberProductSecond_zero_common q H₁ H₂ hq1 e hg)
62
+
63
+ def fiberZeroClassOfBranches : CohomologyClass P₀ (fiberComplete q H₁ H₂) 0 :=
64
+ (fiberFullHomEquiv q H₁ H₂ 0).symm
65
+ ((fiberZeroScalarEquivOfBranches q H₁ H₂ hq1 e hg hn).symm 1)
66
+
67
+ omit e hg hn [Subsingleton (BranchHom q (-1))] in
68
+ theorem fiberFullRhoPair_zero_coordinates
69
+ (x : CohomologyClass P₀ (fiberComplete q H₁ H₂) 0) :
70
+ ((A.fullHomZeroScalarEquiv q hq1).prodCongr (A.fullHomZeroScalarEquiv q hq1))
71
+ (fiberFullRhoPair q H₁ H₂ 0 x) =
72
+ fiberProductMiddleScalarEquiv q H₁ H₂ hq1
73
+ (TriangleGradedSequence.first k T₀ X₀ 0 (fiberFullHomEquiv q H₁ H₂ 0 x)) := by
74
+ change _ = ((simpleZeroScalarEquiv q hq1).prodCongr (simpleZeroScalarEquiv q hq1))
75
+ (fiberProductMiddleEquiv q H₁ H₂ 0 _)
76
+ rw [fiberProductFirst_coordinates]
77
+ rfl
78
+
79
+ theorem fiberZeroClassOfBranches_image :
80
+ fiberFullRhoPair q H₁ H₂ 0 (fiberZeroClassOfBranches q H₁ H₂ hq1 e hg hn) =
81
+ (fullHomIdentity P₀, fullHomIdentity P₀) := by
82
+ apply ((A.fullHomZeroScalarEquiv q hq1).prodCongr (A.fullHomZeroScalarEquiv q hq1)).injective
83
+ rw [fiberFullRhoPair_zero_coordinates]
84
+ simp only [LinearEquiv.prodCongr_apply, fullHomIdentity, A.fullHomZeroScalarEquiv_identity]
85
+ rw [fiberZeroClassOfBranches, LinearEquiv.apply_symm_apply]
86
+ change fiberProductMiddleScalarEquiv q H₁ H₂ hq1
87
+ (TriangleGradedSequence.first k T₀ X₀ 0
88
+ ((fiberZeroScalarEquivOfBranches q H₁ H₂ hq1 e hg hn).symm 1)) = (1, 1)
89
+ exact TriangleGradedSequence.diagonalGenerator_image k T₀
90
+ (fiberProductTriangle_distinguished q H₁ H₂) X₀
91
+ (fiberProductMiddleScalarEquiv q H₁ H₂ hq1) e
92
+ (e (branchZeroHom q H₁)) (branchScalar_ne_zero q H₁ e hn)
93
+ (fiberProductSecond_zero_common q H₁ H₂ hq1 e hg)
94
+
95
+ theorem fiberZeroClassOfBranches_spans
96
+ (x : CohomologyClass P₀ (fiberComplete q H₁ H₂) 0) :
97
+ ∃ c : k, x = c • fiberZeroClassOfBranches q H₁ H₂ hq1 e hg hn := by
98
+ let f := (fiberFullHomEquiv q H₁ H₂ 0).trans
99
+ (fiberZeroScalarEquivOfBranches q H₁ H₂ hq1 e hg hn)
100
+ refine ⟨f x, f.injective ?_⟩
101
+ rw [map_smul]
102
+ change f x = f x • f (f.symm 1)
103
+ rw [f.apply_symm_apply]
104
+ exact (mul_one _).symm
105
+
106
+ end ArExplicit.T
107
+
108
+ end
109
+
110
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiberDiagonalGenerator.lean ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.FiberProjectionZero
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ namespace ArExplicit.TriangleGradedSequence
7
+ open CategoryTheory CategoryTheory.Pretriangulated
8
+ universe u v w
9
+ variable (k : Type u) [Field k] [CharP k 2]
10
+ variable {C : Type w} [Category.{v} C] [Preadditive C] [Linear k C]
11
+ variable [Limits.HasZeroObject C] [HasShift C ℤ]
12
+ variable [∀ n : ℤ, (CategoryTheory.shiftFunctor C n).Additive] [Pretriangulated C]
13
+ variable (T : Triangle C) (hT : T ∈ distTriang C) (X : C)
14
+ variable (em : Middle T X 0 ≃ₗ[k] k × k) (et : Top T X 0 ≃ₗ[k] k)
15
+ variable (c : k) (hc : c ≠ 0)
16
+ variable (hrow : ∀ m, et (second k T X 0 m) = c * ((em m).1 + (em m).2))
17
+ variable [Subsingleton (Top T X (-1))]
18
+
19
+ def zeroScalarEquiv : Bottom T X 0 ≃ₗ[k] k :=
20
+ (zeroDiagonalEquiv k T hT X em et c hc hrow).trans (scalarDiagonalEquiv k)
21
+
22
+ def diagonalGenerator : Bottom T X 0 :=
23
+ (zeroScalarEquiv k T hT X em et c hc hrow).symm 1
24
+
25
+ @[simp] theorem zeroScalarEquiv_diagonalGenerator :
26
+ zeroScalarEquiv k T hT X em et c hc hrow (diagonalGenerator k T hT X em et c hc hrow) = 1 :=
27
+ LinearEquiv.apply_symm_apply _ _
28
+
29
+ theorem diagonalGenerator_image :
30
+ em (first k T X 0 (diagonalGenerator k T hT X em et c hc hrow)) = (1,1) := by
31
+ have h := congrArg Subtype.val
32
+ ((zeroDiagonalEquiv k T hT X em et c hc hrow).apply_symm_apply
33
+ ((scalarDiagonalEquiv k).symm 1))
34
+ exact h
35
+
36
+ theorem diagonalGenerator_ne_zero : diagonalGenerator k T hT X em et c hc hrow ≠ 0 := by
37
+ intro hz
38
+ have h := zeroScalarEquiv_diagonalGenerator k T hT X em et c hc hrow
39
+ rw [hz, map_zero] at h
40
+ exact zero_ne_one h
41
+
42
+ theorem eq_scalar_diagonalGenerator (z : Bottom T X 0) :
43
+ z = zeroScalarEquiv k T hT X em et c hc hrow z •
44
+ diagonalGenerator k T hT X em et c hc hrow := by
45
+ apply (zeroScalarEquiv k T hT X em et c hc hrow).injective
46
+ rw [map_smul, zeroScalarEquiv_diagonalGenerator]
47
+ exact (mul_one _).symm
48
+
49
+ end ArExplicit.TriangleGradedSequence
50
+
51
+ end
52
+
53
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiberEvaluationMap.lean ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.FiniteEvaluatedFiber
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ namespace ArExplicit.FiniteLeftModule
7
+ open CategoryTheory
8
+ open scoped TensorProduct
9
+ universe u
10
+ variable {k R : Type u} [Field k] [Ring R] [Algebra k R] [Module.Finite k R]
11
+ variable (X : FiniteLeftModule k R)
12
+ variable (U₁ U₂ Y : FiniteLeftModule k (R ⊗[k] Rᵐᵒᵖ))
13
+ variable (g₁ : U₁.carrier ⟶ Y.carrier) (g₂ : U₂.carrier ⟶ Y.carrier)
14
+
15
+ def fiberEvaluationInclusion : (evaluated X (fiber U₁ U₂ Y g₁ g₂)).carrier →ₗ[R]
16
+ (evaluated X (fiberSource U₁ U₂ Y)).carrier :=
17
+ evaluationMap X (M := fiber U₁ U₂ Y g₁ g₂) (N := fiberSource U₁ U₂ Y)
18
+ (fiberInclusion U₁ U₂ Y g₁ g₂).hom
19
+
20
+ theorem middlePairMap_fiberEvaluationInclusion :
21
+ (middlePairMap X U₁ U₂ Y).comp (fiberEvaluationInclusion X U₁ U₂ Y g₁ g₂) =
22
+ (evaluationMap X (fiberProjection₁ U₁ U₂ Y g₁ g₂).hom).prod
23
+ (evaluationMap X (fiberProjection₂ U₁ U₂ Y g₁ g₂).hom) :=
24
+ middlePairMap_fiberInclusion X U₁ U₂ Y g₁ g₂
25
+
26
+ end ArExplicit.FiniteLeftModule
27
+
28
+ end
29
+
30
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiberExactness.lean ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Mathlib.LinearAlgebra.Prod
2
+
3
+ namespace OAI
4
+
5
+ namespace ArExplicit
6
+
7
+ section Fiber
8
+
9
+ variable {k : Type*} [Ring k]
10
+ variable {B₀ B₁ B₂ C₀ C₁ C₂ : Type*}
11
+ variable [AddCommGroup B₀] [AddCommGroup B₁] [AddCommGroup B₂]
12
+ variable [AddCommGroup C₀] [AddCommGroup C₁] [AddCommGroup C₂]
13
+ variable [Module k B₀] [Module k B₁] [Module k B₂]
14
+ variable [Module k C₀] [Module k C₁] [Module k C₂]
15
+
16
+ theorem fiber_cocycle_is_boundary
17
+ (dB₀ : B₀ →ₗ[k] B₁) (dB₁ : B₁ →ₗ[k] B₂)
18
+ (dC₀ : C₀ →ₗ[k] C₁) (dC₁ : C₁ →ₗ[k] C₂)
19
+ (f₀ : B₀ →ₗ[k] C₁) (f₁ : B₁ →ₗ[k] C₂)
20
+ (hf : ∀ a, f₁ (dB₀ a) = dC₁ (f₀ a))
21
+ (hinj : ∀ b, dB₁ b = 0 → (∃ c, f₁ b = dC₁ c) → ∃ a, dB₀ a = b)
22
+ (hsurj : ∀ c, dC₁ c = 0 → ∃ a, dB₀ a = 0 ∧ ∃ e, f₀ a - dC₀ e = c)
23
+ (b : B₁) (c : C₁) (hb : dB₁ b = 0) (hc : f₁ b = dC₁ c) :
24
+ ∃ a : B₀, ∃ e : C₀, dB₀ a = b ∧ f₀ a - dC₀ e = c := by
25
+ obtain ⟨a, ha⟩ := hinj b hb ⟨c, hc⟩
26
+ have hcycle : dC₁ (c - f₀ a) = 0 := by
27
+ rw [map_sub, ← hf, ha, hc, sub_self]
28
+ obtain ⟨u, hu, e, he⟩ := hsurj (c - f₀ a) hcycle
29
+ refine ⟨a + u, e, ?_, ?_⟩
30
+ · rw [map_add, ha, hu, add_zero]
31
+ · rw [map_add, add_sub_assoc, he, add_sub_cancel]
32
+
33
+ theorem fiber_nonboundary_of_projection
34
+ (dB₀ : B₀ →ₗ[k] B₁) (dC₀ : C₀ →ₗ[k] C₁) (f₀ : B₀ →ₗ[k] C₁)
35
+ (b : B₁) (c : C₁) (hb : ¬ ∃ a, dB₀ a = b) :
36
+ ¬ ∃ a : B₀, ∃ e : C₀, dB₀ a = b ∧ f₀ a - dC₀ e = c := by
37
+ rintro ⟨a, e, ha, he⟩
38
+ exact hb ⟨a, ha⟩
39
+
40
+ end Fiber
41
+ end ArExplicit
42
+
43
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiberFullHomCoordinates.lean ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.ConcreteFiberHomCoordinates
2
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomShiftedMaps
3
+ import OAI.Algebra.AuslanderReiten.HomComplex.TensorFullHomZero
4
+
5
+ namespace OAI
6
+
7
+ noncomputable section
8
+ namespace ArExplicit.T
9
+ open CategoryTheory
10
+ open CochainComplex.HomComplex
11
+ open scoped TensorProduct ModuleCat.Algebra
12
+ universe u
13
+ variable {k : Type u} [Field k] [CharP k 2] (q : k) (H₁ H₂ : kˣ)
14
+ local notation "τ₀" => AFrobeniusTrace k q
15
+ local notation "P₀" => A.simpleComplete q
16
+
17
+ abbrev fiberComplete := (evaluatedFiber q H₁ H₂).completeCochain τ₀
18
+
19
+ def fiberFullHomEquiv (n : ℤ) :
20
+ CohomologyClass P₀ (fiberComplete q H₁ H₂) n ≃ₗ[k] FiberHom q H₁ H₂ n :=
21
+ fullHomShiftedHomotopyEquiv k P₀ (fiberComplete q H₁ H₂) n
22
+
23
+ def simpleFullHomEquiv (n : ℤ) : CohomologyClass P₀ P₀ n ≃ₗ[k] SimpleHom q n :=
24
+ fullHomShiftedHomotopyEquiv k P₀ P₀ n
25
+
26
+ def fiberFullRhoPair (n : ℤ) :
27
+ CohomologyClass P₀ (fiberComplete q H₁ H₂) n →ₗ[k]
28
+ (CohomologyClass P₀ P₀ n × CohomologyClass P₀ P₀ n) :=
29
+ (((simpleFullHomEquiv q n).symm.prodCongr (simpleFullHomEquiv q n).symm).toLinearMap.comp
30
+ (fiberHomRhoPair q H₁ H₂ n)).comp (fiberFullHomEquiv q H₁ H₂ n).toLinearMap
31
+
32
+ theorem fiberFullRhoPair_apply (n : ℤ)
33
+ (x : CohomologyClass P₀ (fiberComplete q H₁ H₂) n) :
34
+ fiberFullRhoPair q H₁ H₂ n x =
35
+ (fullHomPostcomp (FiniteLeftModule.resolutionMap τ₀ (evaluatedRho₁ q H₁ H₂)) n x,
36
+ fullHomPostcomp (FiniteLeftModule.resolutionMap τ₀ (evaluatedRho₂ q H₁ H₂)) n x) := by
37
+ apply ((simpleFullHomEquiv q n).prodCongr (simpleFullHomEquiv q n)).injective
38
+ simp only [fiberFullRhoPair, LinearMap.comp_apply, LinearEquiv.coe_coe,
39
+ LinearEquiv.prodCongr_apply, LinearEquiv.apply_symm_apply]
40
+ apply Prod.ext
41
+ · exact (fullHomShiftedHomotopyEquiv_postcomp k n
42
+ (FiniteLeftModule.resolutionMap τ₀ (evaluatedRho₁ q H₁ H₂)) x).symm
43
+ · exact (fullHomShiftedHomotopyEquiv_postcomp k n
44
+ (FiniteLeftModule.resolutionMap τ₀ (evaluatedRho₂ q H₁ H₂)) x).symm
45
+
46
+ end ArExplicit.T
47
+
48
+ end
49
+
50
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiberProductCoordinates.lean ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.ConcreteFiberRow
2
+ import OAI.Algebra.AuslanderReiten.Fibers.FiberSequenceCoordinates
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+ namespace ArExplicit.T
8
+ open CategoryTheory CategoryTheory.Limits
9
+ open scoped TensorProduct ModuleCat.Algebra
10
+ universe u
11
+ variable {k : Type u} [Field k] [CharP k 2] (q : k) (H₁ H₂ : kˣ)
12
+ local notation "R₀" => A k q
13
+ local notation "X₀" => simpleHomotopyObject q
14
+ local notation "τ₀" => AFrobeniusTrace k q
15
+ local notation "T₀" => fiberProductTriangle q H₁ H₂
16
+ local notation "Q₀" => HomotopyCategory.quotient (ModuleCat R₀) (ComplexShape.up ℤ)
17
+
18
+ theorem fiberProductFirst_coordinates (n : ℤ) (v : FiberHom q H₁ H₂ n) :
19
+ fiberProductMiddleEquiv q H₁ H₂ n
20
+ (TriangleGradedSequence.first k T₀ X₀ n v) = fiberHomRhoPair q H₁ H₂ n v := by
21
+ erw [TriangleGradedSequence.first_eq_shift]
22
+ apply Prod.ext
23
+ · change (v ≫ (T₀).mor₁⟦n⟧') ≫ biprod.fst⟦n⟧' =
24
+ v ≫ ((Q₀).map (FiniteLeftModule.resolutionMap τ₀ (evaluatedRho₁ q H₁ H₂)))⟦n⟧'
25
+ erw [Category.assoc, ← Functor.map_comp, fiberProductTriangle_first_fst]
26
+ · change (v ≫ (T₀).mor₁⟦n⟧') ≫ biprod.snd⟦n⟧' =
27
+ v ≫ ((Q₀).map (FiniteLeftModule.resolutionMap τ₀ (evaluatedRho₂ q H₁ H₂)))⟦n⟧'
28
+ erw [Category.assoc, ← Functor.map_comp, fiberProductTriangle_first_snd]
29
+
30
+ theorem fiberRhoPair_bijective_of_productFirst (n : ℤ)
31
+ (hf : Function.Bijective (TriangleGradedSequence.first k T₀ X₀ n)) :
32
+ Function.Bijective (fiberHomRhoPair q H₁ H₂ n) := by
33
+ have he : (fiberHomRhoPair q H₁ H₂ n : FiberHom q H₁ H₂ n → _) =
34
+ (fiberProductMiddleEquiv q H₁ H₂ n) ∘ (TriangleGradedSequence.first k T₀ X₀ n) := by
35
+ funext v
36
+ exact (fiberProductFirst_coordinates q H₁ H₂ n v).symm
37
+ rw [he]
38
+ exact (fiberProductMiddleEquiv q H₁ H₂ n).bijective.comp hf
39
+
40
+ end ArExplicit.T
41
+
42
+ end
43
+
44
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiberProjectionProfile.lean ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Homology.TriangleGradedSequence
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ namespace ArExplicit.TriangleGradedSequence
7
+ open CategoryTheory CategoryTheory.Pretriangulated
8
+ universe u v w
9
+ variable (k : Type u) [Field k]
10
+ variable {C : Type w} [Category.{v} C] [Preadditive C] [Linear k C]
11
+ variable [Limits.HasZeroObject C] [HasShift C ℤ]
12
+ variable [∀ n : ℤ, (CategoryTheory.shiftFunctor C n).Additive] [Pretriangulated C]
13
+ variable (T : Triangle C) (hT : T ∈ distTriang C) (X : C)
14
+ include hT
15
+
16
+ theorem first_injective_of_previous_surjective (n : ℤ)
17
+ (hs : Function.Surjective (second k T X n)) :
18
+ Function.Injective (first k T X (n+1)) := by
19
+ have hc : connecting k T X n = 0 := by
20
+ apply LinearMap.ext
21
+ intro x
22
+ have hx : x ∈ LinearMap.range (second k T X n) := hs x
23
+ rw [exact_top k T X hT n] at hx
24
+ exact hx
25
+ rw [← LinearMap.ker_eq_bot, ← exact_next k T X hT n, hc, LinearMap.range_zero]
26
+
27
+ theorem first_surjective_of_top_subsingleton (n : ℤ) [Subsingleton (Top T X n)] :
28
+ Function.Surjective (first k T X n) := by
29
+ rw [← LinearMap.range_eq_top, exact_middle k T X hT n]
30
+ apply top_unique
31
+ intro x _
32
+ exact Subsingleton.elim _ _
33
+
34
+ omit hT [Limits.HasZeroObject C] [Pretriangulated C] in
35
+
36
+ theorem second_surjective_of_top_subsingleton (n : ℤ) [Subsingleton (Top T X n)] :
37
+ Function.Surjective (second k T X n) := by
38
+ intro y
39
+ exact ⟨0, Subsingleton.elim _ _⟩
40
+
41
+ theorem first_positive_bijective
42
+ (hpos : ∀ n : ℤ, 0 < n → Subsingleton (Top T X n))
43
+ (hs₀ : Function.Surjective (second k T X 0)) (n : ℤ) (hn : 0 < n) :
44
+ Function.Bijective (first k T X n) := by
45
+ constructor
46
+ · have hs : Function.Surjective (second k T X (n-1)) := by
47
+ by_cases h1 : n = 1
48
+ · subst n
49
+ exact hs₀
50
+ · let := hpos (n-1) (by omega)
51
+ exact second_surjective_of_top_subsingleton k T X (n-1)
52
+ generalize hm : n - 1 = m at hs
53
+ have he : n = m + 1 := by omega
54
+ subst n
55
+ exact first_injective_of_previous_surjective k T hT X m hs
56
+ · let := hpos n hn
57
+ exact first_surjective_of_top_subsingleton k T hT X n
58
+
59
+ def firstPositiveEquiv
60
+ (hpos : ∀ n : ℤ, 0 < n → Subsingleton (Top T X n))
61
+ (hs₀ : Function.Surjective (second k T X 0)) (n : ℤ) (hn : 0 < n) :
62
+ Bottom T X n ≃ₗ[k] Middle T X n :=
63
+ LinearEquiv.ofBijective (first k T X n) (first_positive_bijective k T hT X hpos hs₀ n hn)
64
+
65
+ theorem first_zero_injective [Subsingleton (Top T X (-1))] :
66
+ Function.Injective (first k T X 0) := by
67
+ have hinj := first_injective_of_previous_surjective k T hT X (-1)
68
+ (second_surjective_of_top_subsingleton k T X (-1))
69
+ exact hinj
70
+
71
+ end ArExplicit.TriangleGradedSequence
72
+
73
+ end
74
+
75
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiberProjectionZero.lean ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.FiberProjectionProfile
2
+ import OAI.Algebra.AuslanderReiten.Coordinates.TwoTwistLinear
3
+ import Mathlib.Algebra.CharP.Two
4
+
5
+ namespace OAI
6
+
7
+ noncomputable section
8
+ namespace ArExplicit.TriangleGradedSequence
9
+ open CategoryTheory CategoryTheory.Pretriangulated
10
+ universe u v w
11
+ variable (k : Type u) [Field k] [CharP k 2]
12
+ variable {C : Type w} [Category.{v} C] [Preadditive C] [Linear k C]
13
+ variable [Limits.HasZeroObject C] [HasShift C ℤ]
14
+ variable [∀ n : ℤ, (CategoryTheory.shiftFunctor C n).Additive] [Pretriangulated C]
15
+ variable (T : Triangle C) (hT : T ∈ distTriang C) (X : C)
16
+ variable (em : Middle T X 0 ≃ₗ[k] k × k) (et : Top T X 0 ≃ₗ[k] k)
17
+ variable (c : k) (hc : c ≠ 0)
18
+ variable (hrow : ∀ m, et (second k T X 0 m) = c * ((em m).1 + (em m).2))
19
+
20
+ include hc hrow in
21
+ omit [CharP k 2] [Limits.HasZeroObject C] [Pretriangulated C] in
22
+ theorem second_zero_surjective : Function.Surjective (second k T X 0) := by
23
+ intro y
24
+ refine ⟨em.symm (c⁻¹ * et y, 0), et.injective ?_⟩
25
+ rw [hrow, em.apply_symm_apply, add_zero, ← mul_assoc, mul_inv_cancel₀ hc, one_mul]
26
+
27
+ include hT hc hrow in
28
+
29
+ theorem first_zero_diagonal (x : Bottom T X 0) :
30
+ (em (first k T X 0 x)).1 = (em (first k T X 0 x)).2 := by
31
+ have hz : second k T X 0 (first k T X 0 x) = 0 := by
32
+ have hmem := LinearMap.mem_range_self (first k T X 0) x
33
+ rw [exact_middle k T X hT 0] at hmem
34
+ exact hmem
35
+ have h := hrow (first k T X 0 x)
36
+ rw [hz, map_zero] at h
37
+ exact CharTwo.add_eq_zero.mp ((mul_eq_zero.mp h.symm).resolve_left hc)
38
+
39
+ def zeroDiagonalProjection : Bottom T X 0 →ₗ[k] diagonalSubmodule (k := k) (V := k) :=
40
+ (em.toLinearMap.comp (first k T X 0)).codRestrict _
41
+ (first_zero_diagonal k T hT X em et c hc hrow)
42
+
43
+ variable [Subsingleton (Top T X (-1))]
44
+
45
+ theorem zeroDiagonalProjection_bijective :
46
+ Function.Bijective (zeroDiagonalProjection k T hT X em et c hc hrow) := by
47
+ constructor
48
+ · intro x y h
49
+ apply first_zero_injective k T hT X
50
+ apply em.injective
51
+ exact congrArg Subtype.val h
52
+ · intro z
53
+ have hz : second k T X 0 (em.symm z.val) = 0 := by
54
+ apply et.injective
55
+ rw [hrow, em.apply_symm_apply, map_zero]
56
+ rw [CharTwo.add_eq_zero.mpr z.property, mul_zero]
57
+ have hm : em.symm z.val ∈ LinearMap.range (first k T X 0) := by
58
+ rw [exact_middle k T X hT 0]
59
+ exact hz
60
+ obtain ⟨x, hx⟩ := hm
61
+ refine ⟨x, Subtype.ext ?_⟩
62
+ change em (first k T X 0 x) = z.val
63
+ rw [hx, em.apply_symm_apply]
64
+
65
+ def zeroDiagonalEquiv : Bottom T X 0 ≃ₗ[k] diagonalSubmodule (k := k) (V := k) :=
66
+ LinearEquiv.ofBijective (zeroDiagonalProjection k T hT X em et c hc hrow)
67
+ (zeroDiagonalProjection_bijective k T hT X em et c hc hrow)
68
+
69
+ end ArExplicit.TriangleGradedSequence
70
+
71
+ namespace ArExplicit
72
+ universe u
73
+ variable (k : Type u) [Field k]
74
+
75
+ def scalarDiagonalEquiv : diagonalSubmodule (k := k) (V := k) ≃ₗ[k] k where
76
+ toFun z := z.val.1
77
+ invFun a := ⟨(a,a), rfl⟩
78
+ left_inv z := Subtype.ext (Prod.ext rfl z.property)
79
+ right_inv _ := rfl
80
+ map_add' _ _ := rfl
81
+ map_smul' _ _ := rfl
82
+
83
+ end ArExplicit
84
+
85
+ end
86
+
87
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiberSequenceCoordinates.lean ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.ConcreteFiberTriangle
2
+ import OAI.Algebra.AuslanderReiten.Fibers.FiberFullHomCoordinates
3
+ import OAI.Algebra.AuslanderReiten.Homology.TriangleConnectingProduct
4
+
5
+ namespace OAI
6
+
7
+ noncomputable section
8
+ namespace ArExplicit.T
9
+ open CategoryTheory
10
+ open CochainComplex.HomComplex
11
+ open scoped TensorProduct ModuleCat.Algebra
12
+ universe u
13
+ variable {k : Type u} [Field k] [CharP k 2] (q : k) (H₁ H₂ : kˣ)
14
+
15
+ theorem fiberSequenceFirst (n : ℤ) (v : FiberHom q H₁ H₂ n) :
16
+ TriangleGradedSequence.first k (fiberEvaluationTriangle q H₁ H₂)
17
+ (simpleHomotopyObject q) n v = fiberHomInclusion q H₁ H₂ n v := by
18
+ erw [TriangleGradedSequence.first_eq_shift, fiberEvaluationTriangle_first]
19
+ rfl
20
+
21
+ theorem fiberRhoPair_eq_first (n : ℤ) (v : FiberHom q H₁ H₂ n) :
22
+ fiberHomRhoPair q H₁ H₂ n v = middleHomEquiv q H₁ H₂ n
23
+ (TriangleGradedSequence.first k (fiberEvaluationTriangle q H₁ H₂)
24
+ (simpleHomotopyObject q) n v) := by
25
+ rw [fiberSequenceFirst]
26
+ exact (middleHomEquiv_inclusion q H₁ H₂ n v).symm
27
+
28
+ theorem fiberRhoPair_bijective_of_first (n : ℤ)
29
+ (hf : Function.Bijective (TriangleGradedSequence.first k
30
+ (fiberEvaluationTriangle q H₁ H₂) (simpleHomotopyObject q) n)) :
31
+ Function.Bijective (fiberHomRhoPair q H₁ H₂ n) := by
32
+ have hmap : (fiberHomRhoPair q H₁ H₂ n : FiberHom q H₁ H₂ n → _) =
33
+ (middleHomEquiv q H₁ H₂ n) ∘
34
+ (TriangleGradedSequence.first k (fiberEvaluationTriangle q H₁ H₂)
35
+ (simpleHomotopyObject q) n) := funext (fiberRhoPair_eq_first q H₁ H₂ n)
36
+ rw [hmap]
37
+ exact (middleHomEquiv q H₁ H₂ n).bijective.comp hf
38
+
39
+ theorem fiberFullRhoPair_bijective_of_rho (n : ℤ)
40
+ (hf : Function.Bijective (fiberHomRhoPair q H₁ H₂ n)) :
41
+ Function.Bijective (fiberFullRhoPair q H₁ H₂ n) :=
42
+ ((simpleFullHomEquiv q n).symm.prodCongr (simpleFullHomEquiv q n).symm).bijective.comp
43
+ (hf.comp (fiberFullHomEquiv q H₁ H₂ n).bijective)
44
+
45
+ end ArExplicit.T
46
+
47
+ end
48
+
49
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiniteEvaluatedFiber.lean ADDED
@@ -0,0 +1,115 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Modules.FiniteModuleEvaluation
2
+ import OAI.Algebra.AuslanderReiten.Fibers.FiniteFiberSides
3
+ import OAI.Algebra.AuslanderReiten.Stable.StableProjectiveSummand
4
+ import OAI.Algebra.AuslanderReiten.Tensor.EnvelopingBalancedProduct
5
+
6
+ namespace OAI
7
+
8
+ noncomputable section
9
+ namespace ArExplicit.FiniteLeftModule
10
+ open CategoryTheory CategoryTheory.Pretriangulated
11
+ open scoped TensorProduct
12
+ universe u
13
+ variable {k S : Type u} [Field k] [Ring S] [Algebra k S] [Module.Finite k S]
14
+
15
+ def pairModule (U V : FiniteLeftModule k S) : FiniteLeftModule k S where
16
+ carrier := ModuleCat.of S (U.carrier × V.carrier)
17
+ scalar := inferInstance
18
+ tower := inferInstance
19
+ finite := inferInstance
20
+
21
+ variable (U V Y : FiniteLeftModule k S)
22
+
23
+ def fiberReassociate : (fiberSource U V Y).carrier ≃ₗ[S]
24
+ ((pairModule U V).carrier × Y.canonicalFreeCover.carrier) where
25
+ toFun z := ((z.1, z.2.1), z.2.2)
26
+ invFun z := (z.1.1, z.1.2, z.2)
27
+ left_inv _ := rfl
28
+ right_inv _ := rfl
29
+ map_add' _ _ := rfl
30
+ map_smul' _ _ := rfl
31
+
32
+ def fiberPairProjection : (fiberSource U V Y).carrier →ₗ[S] (pairModule U V).carrier :=
33
+ (LinearMap.fst S U.carrier (V.carrier × Y.canonicalFreeCover.carrier)).prod
34
+ ((LinearMap.fst S V.carrier Y.canonicalFreeCover.carrier).comp
35
+ (LinearMap.snd S U.carrier (V.carrier × Y.canonicalFreeCover.carrier)))
36
+
37
+ def fiberPairStableIso : StableIsomorphism S (fiberSource U V Y).carrier (pairModule U V).carrier := by
38
+ letI := Y.canonicalFreeCover_projective
39
+ letI := Y.canonicalFreeCover_finite
40
+ exact (StableIsomorphism.ofLinearEquiv (fiberReassociate U V Y)).trans
41
+ (StableIsomorphism.dropRight (R := S))
42
+
43
+ @[simp] theorem fiberPairStableIso_hom : (fiberPairStableIso U V Y).hom =
44
+ StableHom.classOf S _ _ (fiberPairProjection U V Y) := by
45
+ change StableHom.comp (StableHom.classOf S _ _ (LinearMap.fst S _ _))
46
+ (StableHom.classOf S _ _ (fiberReassociate U V Y).toLinearMap) = _
47
+ rw [StableHom.comp_classOf]
48
+ rfl
49
+
50
+ section Evaluation
51
+ variable {R : Type u} [Ring R] [Algebra k R] [Module.Finite k R]
52
+ variable (X : FiniteLeftModule k R)
53
+ variable (U₁ U₂ Y₀ : FiniteLeftModule k (R ⊗[k] Rᵐᵒᵖ))
54
+
55
+ def evaluatedPairEquiv : (evaluated X (pairModule U₁ U₂)).carrier ≃ₗ[R]
56
+ ((evaluated X U₁).carrier × (evaluated X U₂).carrier) :=
57
+ EnvelopingBimodule.tensorProdEquiv U₁.carrier U₂.carrier X.carrier
58
+
59
+ def middlePairMap : (evaluated X (fiberSource U₁ U₂ Y₀)).carrier →ₗ[R]
60
+ ((evaluated X U₁).carrier × (evaluated X U₂).carrier) :=
61
+ (evaluatedPairEquiv X U₁ U₂).toLinearMap.comp
62
+ (evaluationMap X (fiberPairProjection U₁ U₂ Y₀))
63
+
64
+ def evaluatedMiddleStableIso : StableIsomorphism R
65
+ (evaluated X (fiberSource U₁ U₂ Y₀)).carrier
66
+ ((evaluated X U₁).carrier × (evaluated X U₂).carrier) :=
67
+ (evaluationStableIso X (fiberPairStableIso U₁ U₂ Y₀)).trans
68
+ (StableIsomorphism.ofLinearEquiv (evaluatedPairEquiv X U₁ U₂))
69
+
70
+ @[simp] theorem evaluatedMiddleStableIso_hom : (evaluatedMiddleStableIso X U₁ U₂ Y₀).hom =
71
+ StableHom.classOf R _ _ (middlePairMap X U₁ U₂ Y₀) := by
72
+ change StableHom.comp (StableHom.classOf R _ _ (evaluatedPairEquiv X U₁ U₂).toLinearMap)
73
+ (EnvelopingBimodule.stableEvaluation X.carrier (fiberPairStableIso U₁ U₂ Y₀).hom) = _
74
+ rw [fiberPairStableIso_hom, EnvelopingBimodule.stableEvaluation_classOf]
75
+ erw [StableHom.comp_classOf]
76
+
77
+ variable (g₁ : U₁.carrier ⟶ Y₀.carrier) (g₂ : U₂.carrier ⟶ Y₀.carrier)
78
+
79
+ theorem middlePairMap_fiberInclusion :
80
+ (middlePairMap X U₁ U₂ Y₀).comp
81
+ (evaluationMap X (fiberInclusion U₁ U₂ Y₀ g₁ g₂).hom) =
82
+ (evaluationMap X (fiberProjection₁ U₁ U₂ Y₀ g₁ g₂).hom).prod
83
+ (evaluationMap X (fiberProjection₂ U₁ U₂ Y₀ g₁ g₂).hom) := by
84
+ apply BalancedTensor.leftHom_ext (k := k) (R := R)
85
+ intro m x
86
+ rfl
87
+
88
+ theorem fiberFunctionExact : Function.Exact
89
+ (fiberInclusion U₁ U₂ Y₀ g₁ g₂).hom (fiberMap U₁ U₂ Y₀ g₁ g₂).hom := by
90
+ intro x
91
+ constructor
92
+ · intro hx
93
+ exact ⟨⟨x, hx⟩, rfl⟩
94
+ · rintro ⟨x, rfl⟩
95
+ exact x.property
96
+
97
+ variable [Module.Projective Rᵐᵒᵖ (EnvelopingBimodule k R Y₀.carrier)]
98
+
99
+ def evaluatedFiberTriangle (τ : FrobeniusTrace k R) :
100
+ Triangle (HomotopyCategory (ModuleCat.{u} R) (ComplexShape.up ℤ)) :=
101
+ evaluationTriangle X (fiberInclusion U₁ U₂ Y₀ g₁ g₂).hom (fiberMap U₁ U₂ Y₀ g₁ g₂).hom
102
+ Subtype.val_injective (fiberMap_surjective U₁ U₂ Y₀ g₁ g₂)
103
+ (fiberFunctionExact U₁ U₂ Y₀ g₁ g₂) τ
104
+
105
+ theorem evaluatedFiberTriangle_distinguished (τ : FrobeniusTrace k R) :
106
+ evaluatedFiberTriangle X U₁ U₂ Y₀ g₁ g₂ τ ∈
107
+ distTriang (HomotopyCategory (ModuleCat.{u} R) (ComplexShape.up ℤ)) :=
108
+ evaluationTriangle_distinguished _ _ _ _ _ _ _
109
+
110
+ end Evaluation
111
+ end ArExplicit.FiniteLeftModule
112
+
113
+ end
114
+
115
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiniteFiberComponents.lean ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.FiniteEvaluatedFiber
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ namespace ArExplicit.FiniteLeftModule
7
+ open CategoryTheory
8
+ open scoped TensorProduct
9
+ universe u
10
+ variable {k S : Type u} [Field k] [Ring S] [Algebra k S] [Module.Finite k S]
11
+ variable (U V Y : FiniteLeftModule k S)
12
+
13
+ def fiberSourceInl : U.carrier →ₗ[S] (fiberSource U V Y).carrier :=
14
+ (LinearMap.id : U.carrier →ₗ[S] U.carrier).prod (0 : U.carrier →ₗ[S] V.carrier × Y.canonicalFreeCover.carrier)
15
+
16
+ def fiberSourceInr : V.carrier →ₗ[S] (fiberSource U V Y).carrier :=
17
+ (0 : V.carrier →ₗ[S] U.carrier).prod
18
+ ((LinearMap.id : V.carrier →ₗ[S] V.carrier).prod (0 : V.carrier →ₗ[S] Y.canonicalFreeCover.carrier))
19
+
20
+ theorem fiberMap_inl (g : U.carrier ⟶ Y.carrier) (h : V.carrier ⟶ Y.carrier) :
21
+ (fiberMap U V Y g h).hom.comp (fiberSourceInl U V Y) = g.hom := by
22
+ ext x
23
+ change g.hom x + (h.hom 0 + Y.canonicalFreeCoverMap.hom 0) = g.hom x
24
+ simp
25
+
26
+ theorem fiberMap_inr (g : U.carrier ⟶ Y.carrier) (h : V.carrier ⟶ Y.carrier) :
27
+ (fiberMap U V Y g h).hom.comp (fiberSourceInr U V Y) = h.hom := by
28
+ ext x
29
+ change g.hom 0 + (h.hom x + Y.canonicalFreeCoverMap.hom 0) = h.hom x
30
+ simp
31
+
32
+ section Evaluation
33
+ variable {R : Type u} [Ring R] [Algebra k R] [Module.Finite k R]
34
+ variable (X : FiniteLeftModule k R)
35
+ variable (U₁ U₂ Y₀ : FiniteLeftModule k (R ⊗[k] Rᵐᵒᵖ))
36
+
37
+ theorem middlePairMap_inl :
38
+ (middlePairMap X U₁ U₂ Y₀).comp
39
+ (evaluationMap X (fiberSourceInl U₁ U₂ Y₀)) =
40
+ LinearMap.inl R (evaluated X U₁).carrier (evaluated X U₂).carrier := by
41
+ apply BalancedTensor.leftHom_ext (k := k)
42
+ intro m x
43
+ change (BalancedTensor.tmul (k := k) (R := R) m x,
44
+ BalancedTensor.tmul (k := k) (R := R) (0 : EnvelopingBimodule k R U₂.carrier) x) =
45
+ (BalancedTensor.tmul (k := k) (R := R) m x, 0)
46
+ rw [BalancedTensor.zero_tmul]
47
+
48
+ theorem middlePairMap_inr :
49
+ (middlePairMap X U₁ U₂ Y₀).comp
50
+ (evaluationMap X (fiberSourceInr U₁ U₂ Y₀)) =
51
+ LinearMap.inr R (evaluated X U₁).carrier (evaluated X U₂).carrier := by
52
+ apply BalancedTensor.leftHom_ext (k := k)
53
+ intro m x
54
+ change (BalancedTensor.tmul (k := k) (R := R) (0 : EnvelopingBimodule k R U₁.carrier) x,
55
+ BalancedTensor.tmul (k := k) (R := R) m x) =
56
+ (0, BalancedTensor.tmul (k := k) (R := R) m x)
57
+ rw [BalancedTensor.zero_tmul]
58
+
59
+ theorem evaluatedFiberMap_inl (g : U₁.carrier ⟶ Y₀.carrier) (h : U₂.carrier ⟶ Y₀.carrier) :
60
+ (evaluationMap X (fiberMap U₁ U₂ Y₀ g h).hom).comp
61
+ (evaluationMap X (fiberSourceInl U₁ U₂ Y₀)) = evaluationMap X g.hom := by
62
+ rw [← evaluationMap_comp, fiberMap_inl]
63
+
64
+ theorem evaluatedFiberMap_inr (g : U₁.carrier ⟶ Y₀.carrier) (h : U₂.carrier ⟶ Y₀.carrier) :
65
+ (evaluationMap X (fiberMap U₁ U₂ Y₀ g h).hom).comp
66
+ (evaluationMap X (fiberSourceInr U₁ U₂ Y₀)) = evaluationMap X h.hom := by
67
+ rw [← evaluationMap_comp, fiberMap_inr]
68
+
69
+ end Evaluation
70
+ end ArExplicit.FiniteLeftModule
71
+
72
+ end
73
+
74
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiniteFiberSides.lean ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Fibers.FiniteModuleFiber
2
+ import Mathlib.Algebra.Homology.ShortComplex.ModuleCat
3
+ import Mathlib.RingTheory.Finiteness.Prod
4
+
5
+ namespace OAI
6
+
7
+ noncomputable section
8
+
9
+ namespace ArExplicit.FiniteLeftModule
10
+
11
+ open CategoryTheory
12
+
13
+ universe u
14
+
15
+ variable {k R S : Type u} [Field k] [Ring R] [Algebra k R] [Module.Finite k R]
16
+ variable [Ring S] (j : S →+* R)
17
+ variable (U₁ U₂ Y : FiniteLeftModule k R)
18
+
19
+ def fiberSourceSideEquiv :
20
+ ((ModuleCat.restrictScalars j).obj (fiberSource U₁ U₂ Y).carrier) ≃ₗ[S]
21
+ (((ModuleCat.restrictScalars j).obj U₁.carrier) ×
22
+ ((ModuleCat.restrictScalars j).obj U₂.carrier) ×
23
+ ((ModuleCat.restrictScalars j).obj Y.canonicalFreeCover.carrier)) where
24
+ toFun x := x
25
+ invFun x := x
26
+ left_inv _ := rfl
27
+ right_inv _ := rfl
28
+ map_add' _ _ := rfl
29
+ map_smul' _ _ := rfl
30
+
31
+ variable [Module.Finite S ((ModuleCat.restrictScalars j).obj (ModuleCat.of R R))]
32
+ variable [Module.Projective S ((ModuleCat.restrictScalars j).obj (ModuleCat.of R R))]
33
+
34
+ theorem canonicalFreeCover_side :
35
+ Module.Finite S ((ModuleCat.restrictScalars j).obj Y.canonicalFreeCover.carrier) ∧
36
+ Module.Projective S ((ModuleCat.restrictScalars j).obj Y.canonicalFreeCover.carrier) := by
37
+ let := canonicalFreeCover_finite Y
38
+ let := canonicalFreeCover_projective Y
39
+ exact ⟨restrict_finite j _, restrict_projective j _⟩
40
+
41
+ variable [Module.Finite S ((ModuleCat.restrictScalars j).obj U₁.carrier)]
42
+ variable [Module.Projective S ((ModuleCat.restrictScalars j).obj U₁.carrier)]
43
+ variable [Module.Finite S ((ModuleCat.restrictScalars j).obj U₂.carrier)]
44
+ variable [Module.Projective S ((ModuleCat.restrictScalars j).obj U₂.carrier)]
45
+
46
+ theorem fiberSource_side :
47
+ Module.Finite S ((ModuleCat.restrictScalars j).obj (fiberSource U₁ U₂ Y).carrier) ∧
48
+ Module.Projective S ((ModuleCat.restrictScalars j).obj (fiberSource U₁ U₂ Y).carrier) := by
49
+ obtain ⟨hfin, hproj⟩ := canonicalFreeCover_side j Y
50
+ let := hfin
51
+ let := hproj
52
+ exact ⟨Module.Finite.equiv (fiberSourceSideEquiv j U₁ U₂ Y).symm,
53
+ Module.Projective.of_equiv (fiberSourceSideEquiv j U₁ U₂ Y).symm⟩
54
+
55
+ theorem fiber_side [Module.Projective S ((ModuleCat.restrictScalars j).obj Y.carrier)]
56
+ (g₁ : U₁.carrier ⟶ Y.carrier) (g₂ : U₂.carrier ⟶ Y.carrier) :
57
+ Module.Finite S ((ModuleCat.restrictScalars j).obj (fiber U₁ U₂ Y g₁ g₂).carrier) ∧
58
+ Module.Projective S ((ModuleCat.restrictScalars j).obj (fiber U₁ U₂ Y g₁ g₂).carrier) := by
59
+ obtain ⟨hfin, hproj⟩ := fiberSource_side j U₁ U₂ Y
60
+ let := hfin
61
+ let := hproj
62
+ exact ⟨kernel_restrict_finite j (fiberMap U₁ U₂ Y g₁ g₂)
63
+ (fiberMap_surjective U₁ U₂ Y g₁ g₂),
64
+ kernel_restrict_projective j (fiberMap U₁ U₂ Y g₁ g₂)
65
+ (fiberMap_surjective U₁ U₂ Y g₁ g₂)⟩
66
+
67
+ variable (g₁ : U₁.carrier ⟶ Y.carrier) (g₂ : U₂.carrier ⟶ Y.carrier)
68
+
69
+ def fiberInclusion : (fiber U₁ U₂ Y g₁ g₂).carrier ⟶ (fiberSource U₁ U₂ Y).carrier :=
70
+ ModuleCat.ofHom (LinearMap.ker (fiberMap U₁ U₂ Y g₁ g₂).hom).subtype
71
+
72
+ def fiberProjection₁ : (fiber U₁ U₂ Y g₁ g₂).carrier ⟶ U₁.carrier :=
73
+ fiberInclusion U₁ U₂ Y g₁ g₂ ≫ ModuleCat.ofHom (LinearMap.fst R _ _)
74
+
75
+ def fiberProjection₂ : (fiber U₁ U₂ Y g₁ g₂).carrier ⟶ U₂.carrier :=
76
+ fiberInclusion U₁ U₂ Y g₁ g₂ ≫ ModuleCat.ofHom
77
+ ((LinearMap.fst R _ _).comp (LinearMap.snd R _ _))
78
+
79
+ def fiberSequence : ShortComplex (ModuleCat.{u} R) :=
80
+ ShortComplex.mk (fiberInclusion U₁ U₂ Y g₁ g₂) (fiberMap U₁ U₂ Y g₁ g₂) (by
81
+ ext x
82
+ exact x.property)
83
+
84
+ theorem fiberSequence_shortExact : (fiberSequence U₁ U₂ Y g₁ g₂).ShortExact where
85
+ exact := (ShortComplex.ShortExact.moduleCat_exact_iff_function_exact _).mpr (by
86
+ intro x
87
+ constructor
88
+ · intro hx
89
+ exact ⟨⟨x, hx⟩, rfl⟩
90
+ · rintro ⟨y, rfl⟩
91
+ exact y.property)
92
+ mono_f := (ModuleCat.mono_iff_injective _).mpr Subtype.val_injective
93
+ epi_g := (ModuleCat.epi_iff_surjective _).mpr (fiberMap_surjective U₁ U₂ Y g₁ g₂)
94
+
95
+ end ArExplicit.FiniteLeftModule
96
+
97
+ end
98
+
99
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/FiniteModuleFiber.lean ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Stable.CanonicalCosyzygy
2
+ import Mathlib.LinearAlgebra.TensorProduct.Basis
3
+ import Mathlib.LinearAlgebra.FreeModule.Finite.Basic
4
+ import Mathlib.RingTheory.TensorProduct.Finite
5
+
6
+ namespace OAI
7
+
8
+ noncomputable section
9
+
10
+ namespace ArExplicit.FiniteLeftModule
11
+
12
+ open CategoryTheory
13
+ open scoped TensorProduct
14
+
15
+ universe u
16
+
17
+ variable {k R : Type u} [Field k] [Ring R] [Algebra k R] [Module.Finite k R]
18
+
19
+ def canonicalFreeCover (Y : FiniteLeftModule k R) : FiniteLeftModule k R where
20
+ carrier := ModuleCat.of R (R ⊗[k] Y.carrier)
21
+ scalar := inferInstance
22
+ tower := inferInstance
23
+ finite := inferInstanceAs (Module.Finite k (R ⊗[k] Y.carrier))
24
+
25
+ private def freeCoverMapScalar (Y : FiniteLeftModule k R) : R ⊗[k] Y.carrier →ₗ[k] Y.carrier :=
26
+ TensorProduct.lift
27
+ { toFun := fun r =>
28
+ { toFun := fun y => r • y
29
+ map_add' := smul_add r
30
+ map_smul' := fun a y => by
31
+ rw [← IsScalarTower.algebraMap_smul R a y, ← mul_smul,
32
+ ← Algebra.commutes, mul_smul, IsScalarTower.algebraMap_smul]
33
+ rfl }
34
+ map_add' := fun r s => by ext y; exact add_smul r s y
35
+ map_smul' := fun a r => by ext y; exact smul_assoc a r y }
36
+
37
+ def canonicalFreeCoverMap (Y : FiniteLeftModule k R) : Y.canonicalFreeCover.carrier ⟶ Y.carrier :=
38
+ ModuleCat.ofHom
39
+ { __ := (freeCoverMapScalar Y).toAddHom
40
+ map_smul' r z := by
41
+ change freeCoverMapScalar Y (r • z) = r • freeCoverMapScalar Y z
42
+ induction z using TensorProduct.inductionOn with
43
+ | add x y hx hy => simp [smul_add, hx, hy]
44
+ | tmul s y => exact mul_smul r s y }
45
+
46
+ @[simp] theorem canonicalFreeCoverMap_tmul (Y : FiniteLeftModule k R) (r : R) (y : Y.carrier) :
47
+ Y.canonicalFreeCoverMap.hom (r ⊗ₜ[k] y) = r • y := rfl
48
+
49
+ theorem canonicalFreeCoverMap_surjective (Y : FiniteLeftModule k R) :
50
+ Function.Surjective Y.canonicalFreeCoverMap.hom := by
51
+ intro y
52
+ exact ⟨1 ⊗ₜ[k] y, one_smul R y⟩
53
+
54
+ theorem canonicalFreeCover_finite (Y : FiniteLeftModule k R) :
55
+ Module.Finite R Y.canonicalFreeCover.carrier :=
56
+ Module.Finite.of_basis ((Module.finBasis k Y.carrier).baseChange R)
57
+
58
+ theorem canonicalFreeCover_projective (Y : FiniteLeftModule k R) :
59
+ Module.Projective R Y.canonicalFreeCover.carrier := by
60
+ change Module.Projective R (R ⊗[k] Y.carrier)
61
+ infer_instance
62
+
63
+ variable (U₁ U₂ Y : FiniteLeftModule k R)
64
+
65
+ def fiberSource : FiniteLeftModule k R where
66
+ carrier := ModuleCat.of R (U₁.carrier × U₂.carrier × Y.canonicalFreeCover.carrier)
67
+ scalar := inferInstance
68
+ tower := inferInstance
69
+ finite := inferInstance
70
+
71
+ def fiberMap (g₁ : U₁.carrier ⟶ Y.carrier) (g₂ : U₂.carrier ⟶ Y.carrier) :
72
+ (fiberSource U₁ U₂ Y).carrier ⟶ Y.carrier :=
73
+ ModuleCat.ofHom (g₁.hom.coprod (g₂.hom.coprod Y.canonicalFreeCoverMap.hom))
74
+
75
+ theorem fiberMap_surjective (g₁ : U₁.carrier ⟶ Y.carrier) (g₂ : U₂.carrier ⟶ Y.carrier) :
76
+ Function.Surjective (fiberMap U₁ U₂ Y g₁ g₂).hom := by
77
+ intro y
78
+ obtain ⟨z, hz⟩ := canonicalFreeCoverMap_surjective Y y
79
+ refine ⟨(0, 0, z), ?_⟩
80
+ change g₁.hom 0 + (g₂.hom 0 + Y.canonicalFreeCoverMap.hom z) = y
81
+ simpa using hz
82
+
83
+ def fiber (g₁ : U₁.carrier ⟶ Y.carrier) (g₂ : U₂.carrier ⟶ Y.carrier) : FiniteLeftModule k R where
84
+ carrier := kernelObject (fiberMap U₁ U₂ Y g₁ g₂)
85
+ scalar := inferInstanceAs (Module k (LinearMap.ker (fiberMap U₁ U₂ Y g₁ g₂).hom))
86
+ tower := inferInstanceAs (IsScalarTower k R (LinearMap.ker (fiberMap U₁ U₂ Y g₁ g₂).hom))
87
+ finite := by
88
+ change Module.Finite k (LinearMap.ker (fiberMap U₁ U₂ Y g₁ g₂).hom)
89
+ exact Module.Finite.of_injective
90
+ (((LinearMap.ker (fiberMap U₁ U₂ Y g₁ g₂).hom).subtype).restrictScalars k) Subtype.val_injective
91
+
92
+ end ArExplicit.FiniteLeftModule
93
+
94
+ end
95
+
96
+ end OAI
lean/OAI/Algebra/AuslanderReiten/Fibers/TensorFiberCoordinateIso.lean ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Evaluation.ConcreteTensorFiber
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ open CochainComplex.HomComplex
7
+ open scoped ModuleCat.Algebra
8
+ namespace ArExplicit.T
9
+ universe u
10
+ variable {k : Type u} [Field k] [CharP k 2] (q : k) (H₁ H₂ : kˣ)
11
+
12
+ def tensorFiberRhoEquiv (n : ℤ) (h : Function.Bijective (fiberFullRhoPair q H₁ H₂ n)) :
13
+ CohomologyClass (A.simpleComplete q) (tensorFiberComplete q H₁ H₂) n ≃ₗ[k]
14
+ (CohomologyClass (A.simpleComplete q) (A.simpleComplete q) n ×
15
+ CohomologyClass (A.simpleComplete q) (A.simpleComplete q) n) :=
16
+ (tensorFiberFullEquiv q H₁ H₂ n).trans
17
+ (LinearEquiv.ofBijective (fiberFullRhoPair q H₁ H₂ n) h)
18
+
19
+ theorem tensorFiberRhoEquiv_apply (n : ℤ)
20
+ (h : Function.Bijective (fiberFullRhoPair q H₁ H₂ n))
21
+ (x : CohomologyClass (A.simpleComplete q) (tensorFiberComplete q H₁ H₂) n) :
22
+ tensorFiberRhoEquiv q H₁ H₂ n h x = tensorFiberRhoPair q H₁ H₂ n x := rfl
23
+
24
+ end ArExplicit.T
25
+
26
+ end
27
+
28
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FiniteFullHomExt.lean ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FiniteFullHomZero
2
+ import OAI.Algebra.AuslanderReiten.HomComplex.PositiveFullHomProducts
3
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomDegreeProducts
4
+ import OAI.Algebra.AuslanderReiten.Ext.ExtIsoCongr
5
+
6
+ namespace OAI
7
+
8
+ noncomputable section
9
+ open CategoryTheory CategoryTheory.Abelian
10
+ open CochainComplex CochainComplex.HomComplex
11
+ open scoped ModuleCat.Algebra
12
+ namespace ArExplicit.FiniteLeftModule
13
+ universe u
14
+ variable {k R : Type u} [Field k] [Ring R] [Algebra k R] [Module.Finite k R] [CharP k 2]
15
+ variable [HasDerivedCategory (ModuleCat.{u} R)]
16
+ open CompleteComparison
17
+ variable (τ : FrobeniusTrace k R) (M : FiniteLeftModule k R)
18
+
19
+ def fullPositiveModuleExtEquiv (n : ℕ) :
20
+ CohomologyClass (M.completeCochain τ) (M.completeCochain τ) ((n+1:ℕ):ℤ) ≃ₗ[k]
21
+ Ext M.carrier M.carrier (n+1) :=
22
+ (fullPositiveExtEquiv (k := k) _ _ (M.completeCochain_totallyAcyclic τ).to_chain
23
+ (M.completeCochain_totallyAcyclic τ).to_chain.toExactProjectiveComplex n).trans
24
+ (selfExtIso (k := k) (M.fullCokernelEquiv τ).toModuleIso (n+1))
25
+
26
+ theorem fullPositiveModuleExtEquiv_product (n m : ℕ)
27
+ (x : CohomologyClass (M.completeCochain τ) (M.completeCochain τ) ((n+1:ℕ):ℤ))
28
+ (y : CohomologyClass (M.completeCochain τ) (M.completeCochain τ) ((m+1:ℕ):ℤ)) :
29
+ fullPositiveModuleExtEquiv τ M (n+1+m)
30
+ (TateKoszul.degreeEquiv (k := k) (CohomologyClass (M.completeCochain τ) (M.completeCochain τ))
31
+ (show ((n+1:ℕ):ℤ)+((m+1:ℕ):ℤ)=((n+1+m+1:ℕ):ℤ) by omega) (fullHomProduct x y)) =
32
+ (fullPositiveModuleExtEquiv τ M n x).comp (fullPositiveModuleExtEquiv τ M m y) (by omega) := by
33
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
34
+ obtain ⟨y,rfl⟩ := CohomologyClass.mk_surjective y
35
+ rw [fullHomProduct_degree_mk _ x y (ResolutionProducts.natCocycleProduct x y) rfl]
36
+ change selfExtIso _ _ (fullPositiveExtEquiv _ _ _ _ _ _) =
37
+ (selfExtIso _ _ (fullPositiveExtEquiv _ _ _ _ _ _)).comp
38
+ (selfExtIso _ _ (fullPositiveExtEquiv _ _ _ _ _ _)) _
39
+ rw [← selfExtIso_comp, fullPositiveExtEquiv_product]
40
+
41
+ end ArExplicit.FiniteLeftModule
42
+
43
+ end
44
+
45
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FiniteFullHomZero.lean ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Stable.SourceStableCoordinates
2
+ import OAI.Algebra.AuslanderReiten.Modules.FiniteModuleTriangle
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+ open CategoryTheory HomologicalComplex
8
+ open CochainComplex CochainComplex.HomComplex
9
+ open scoped ModuleCat.Algebra
10
+ namespace ArExplicit
11
+ universe u
12
+ variable {k R : Type u} [Field k] [Ring R] [Algebra k R] [CharP k 2]
13
+
14
+ namespace CompleteComparison
15
+ variable {K L : CochainComplex (ModuleCat.{u} R) ℤ}
16
+
17
+ include k in
18
+ theorem sourceCocycleMap_ofHom (f : K ⟶ L) :
19
+ sourceCocycleMap (Cocycle.ofHom f) = cokernelMap (extendMap f negIndexEmbedding) 0 := by
20
+ apply LinearMap.ext
21
+ intro z
22
+ obtain ⟨x, rfl⟩ := (LinearMap.range ((chainOfCochain K).d 1 0).hom).mkQ_surjective z
23
+ change sourceCocycleMap (Cocycle.ofHom f) (Submodule.Quotient.mk x) = _
24
+ rw [sourceCocycleMap_mk (k := k)]
25
+ change Submodule.Quotient.mk ((sourceCocycleComponent (Cocycle.ofHom f)).hom x) =
26
+ Submodule.Quotient.mk (((extendMap f negIndexEmbedding).f 0).hom x)
27
+ congr 2
28
+ unfold sourceCocycleComponent
29
+ rw [extendMap_f f negIndexEmbedding (show negIndexEmbedding.f 0 = 0 from rfl)]
30
+ rfl
31
+
32
+ end CompleteComparison
33
+
34
+ namespace FiniteLeftModule
35
+ open CompleteComparison
36
+ variable [Module.Finite k R] (τ : FrobeniusTrace k R) (M N : FiniteLeftModule k R)
37
+
38
+ def fullCokernelEquiv : Cokernel (chainOfCochain (M.completeCochain τ)) 0 ≃ₗ[R] M.carrier :=
39
+ (cochainCokernelLinearEquiv _).trans (M.completeCochainCokernelEquiv τ)
40
+
41
+ def fullHomZeroEquiv : CohomologyClass (M.completeCochain τ) (N.completeCochain τ) 0 ≃ₗ[k]
42
+ StableHom R M.carrier N.carrier :=
43
+ (fullHomSourceStableLinearEquiv _ _ 0 (M.completeCochain_totallyAcyclic τ).to_chain
44
+ (N.completeCochain_totallyAcyclic τ).to_chain.toExactProjectiveComplex).trans
45
+ ((StableHom.sourceEquiv (k := k) (M.fullCokernelEquiv τ).symm).trans
46
+ (StableHom.targetEquiv (k := k) (N.fullCokernelEquiv τ)))
47
+
48
+ theorem fullHomZeroEquiv_ofHom (f : M.completeCochain τ ⟶ N.completeCochain τ) :
49
+ fullHomZeroEquiv τ M N (CohomologyClass.mk (Cocycle.ofHom f)) =
50
+ StableHom.classOf R _ _ ((N.completeCochainCokernelEquiv τ).toLinearMap.comp
51
+ ((cochainCokernelMap f).comp (M.completeCochainCokernelEquiv τ).symm.toLinearMap)) := by
52
+ change StableHom.targetEquiv (k := k) (N.fullCokernelEquiv τ)
53
+ (StableHom.sourceEquiv (k := k) (M.fullCokernelEquiv τ).symm
54
+ (fullHomSourceStableLinearEquiv _ _ 0
55
+ (M.completeCochain_totallyAcyclic τ).to_chain
56
+ (N.completeCochain_totallyAcyclic τ).to_chain.toExactProjectiveComplex
57
+ (CohomologyClass.mk (Cocycle.ofHom f)))) = _
58
+ rw [fullHomSourceStableLinearEquiv_mk, sourceCocycleMap_ofHom (k := k),
59
+ StableHom.sourceEquiv_classOf, StableHom.targetEquiv_classOf]
60
+ congr 1
61
+ apply LinearMap.ext
62
+ intro x
63
+ have h := DFunLike.congr_fun (cochainCokernelLinearEquiv_natural f)
64
+ ((M.fullCokernelEquiv τ).symm x)
65
+ change (cochainCokernelLinearEquiv _) (cokernelMap (extendMap f negIndexEmbedding) 0
66
+ ((M.fullCokernelEquiv τ).symm x)) = cochainCokernelMap f
67
+ ((cochainCokernelLinearEquiv _) ((M.fullCokernelEquiv τ).symm x)) at h
68
+ change (N.completeCochainCokernelEquiv τ)
69
+ ((cochainCokernelLinearEquiv _) (cokernelMap (extendMap f negIndexEmbedding) 0
70
+ ((M.fullCokernelEquiv τ).symm x))) = _
71
+ rw [h]
72
+ simp only [fullCokernelEquiv, LinearEquiv.trans_symm, LinearEquiv.trans_apply,
73
+ LinearEquiv.apply_symm_apply, LinearMap.comp_apply, LinearEquiv.coe_coe]
74
+
75
+ @[simp]
76
+ theorem fullHomZeroEquiv_lift (f : M.carrier →ₗ[R] N.carrier) :
77
+ fullHomZeroEquiv τ M N (CohomologyClass.mk (Cocycle.ofHom (resolutionMap τ f))) =
78
+ StableHom.classOf R _ _ f := by
79
+ rw [fullHomZeroEquiv_ofHom, resolutionMap_cokernel]
80
+ congr 1
81
+ ext x
82
+ simp [resolutionCokernelMap]
83
+
84
+ @[simp]
85
+ theorem fullHomZeroEquiv_identity :
86
+ fullHomZeroEquiv τ M M (CohomologyClass.mk (Cocycle.ofHom (𝟙 (M.completeCochain τ)))) =
87
+ StableHom.identity := by
88
+ rw [fullHomZeroEquiv_ofHom]
89
+ change StableHom.classOf R _ _ _ = StableHom.classOf R _ _ LinearMap.id
90
+ congr 1
91
+ ext x
92
+ change (M.completeCochainCokernelEquiv τ)
93
+ (cochainCokernelMap (𝟙 _) ((M.completeCochainCokernelEquiv τ).symm x)) = x
94
+ have hid : cochainCokernelMap (𝟙 (M.completeCochain τ)) = LinearMap.id := by
95
+ apply LinearMap.ext
96
+ intro z
97
+ obtain ⟨y, rfl⟩ := (LinearMap.range ((M.completeCochain τ).d (-1) 0).hom).mkQ_surjective z
98
+ rfl
99
+ rw [hid]
100
+ exact LinearEquiv.apply_symm_apply _ _
101
+
102
+ end FiniteLeftModule
103
+ end ArExplicit
104
+
105
+ end
106
+
107
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullCochainProducts.lean ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullCochainTail
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ open CategoryTheory CategoryTheory.Limits
7
+ open CochainComplex CochainComplex.HomComplex
8
+ namespace ArExplicit.CompleteComparison
9
+ universe u
10
+ variable {k R : Type u} [Field k] [Ring R] [Algebra k R] [CharP k 2]
11
+ attribute [local instance] moduleCatBaseModule moduleCatBaseTower
12
+ variable (K : CochainComplex (ModuleCat.{u} R) ℤ)
13
+ variable (hK : TotallyAcyclicComplex (chainOfCochain K))
14
+
15
+ private theorem tailPrefix_congr {r : ℤ} (x : Cochain K K r) (p q : ℤ)
16
+ (a b : ℕ) (hab : a=b) (ha : -(a : ℤ)=p) (hb : -(b : ℤ)=p)
17
+ (hxa : -(a : ℤ)+r=q) (hxb : -(b : ℤ)+r=q) :
18
+ ((completeExtResolution hK).cochainComplexXIso p a ha).hom ≫
19
+ (tailTermIso K a).hom ≫ x.v (-(a : ℤ)) q hxa =
20
+ ((completeExtResolution hK).cochainComplexXIso p b hb).hom ≫
21
+ (tailTermIso K b).hom ≫ x.v (-(b : ℤ)) q hxb := by
22
+ subst b
23
+ rfl
24
+
25
+ theorem restrictedCocycle_product {r s : ℕ}
26
+ (x : Cocycle K K (r : ℤ)) (y : Cocycle K K (s : ℤ)) :
27
+ restrictedCocycle (k := k) K K hK hK.toExactProjectiveComplex (r+s)
28
+ (ResolutionProducts.natCocycleProduct x y) =
29
+ ResolutionProducts.natCocycleProduct
30
+ (restrictedCocycle (k := k) K K hK hK.toExactProjectiveComplex r x)
31
+ (restrictedCocycle (k := k) K K hK hK.toExactProjectiveComplex s y) := by
32
+ change ↥(cocycle K K (r : ℤ)) at x
33
+ change ↥(cocycle K K (s : ℤ)) at y
34
+ apply Subtype.ext
35
+ apply Cochain.ext
36
+ intro p q hpq
37
+ by_cases hq : q ≤ 0
38
+ · obtain ⟨n,rfl⟩ := Int.exists_eq_neg_ofNat hq
39
+ change (ResolutionProducts.natComparisonCochain _ _ (r+s) _).v _ _ _ = _
40
+ erw [ResolutionProducts.natComparisonCochain_v_of_eq]
41
+ erw [Cochain.comp_v _ _ _ _ (-((s+n : ℕ) : ℤ)) _ (by omega) (by omega)]
42
+ change _ =
43
+ (ResolutionProducts.natComparisonCochain _ _ r _).v _ _ _ ≫
44
+ (ResolutionProducts.natComparisonCochain _ _ s _).v _ _ _
45
+ erw [ResolutionProducts.natComparisonCochain_v_of_eq,
46
+ ResolutionProducts.natComparisonCochain_v_of_eq]
47
+ simp only [cochainTailMap, ResolutionProducts.natCocycleProduct,
48
+ Cocycle.mk]
49
+ try simp only [Nat.add_assoc]
50
+ erw [Cochain.comp_v _ _ _ _ (-((s+n : ℕ) : ℤ)) _ (by omega) (by omega)]
51
+ all_goals try omega
52
+ let P := completeExtResolution hK
53
+ let a := P.cochainComplexXIso p (r+(s+n)) (by omega)
54
+ let b : P.complex.X (r+(s+n)) ≅ K.X (-((r+(s+n) : ℕ) : ℤ)) := tailTermIso K (r+(s+n))
55
+ let c : P.complex.X (s+n) ≅ K.X (-((s+n : ℕ) : ℤ)) := tailTermIso K (s+n)
56
+ let d := P.cochainComplexXIso (-((s+n : ℕ) : ℤ)) (s+n) rfl
57
+ let e : P.complex.X n ≅ K.X (-(n : ℤ)) := tailTermIso K n
58
+ let f := P.cochainComplexXIso (-(n : ℤ)) n rfl
59
+ let xv := x.val.v (-((r+(s+n) : ℕ) : ℤ)) (-((s+n : ℕ) : ℤ)) (by omega)
60
+ let yv := y.val.v (-((s+n : ℕ) : ℤ)) (-(n : ℤ)) (by omega)
61
+ have hh : a.hom ≫ (b.hom ≫ xv ≫ yv ≫ e.inv) ≫ f.inv =
62
+ a.hom ≫ ((b.hom ≫ xv ≫ c.inv) ≫ d.inv) ≫ d.hom ≫
63
+ (c.hom ≫ yv ≫ e.inv) ≫ f.inv := by
64
+ simp only [Category.assoc, Iso.inv_hom_id_assoc]
65
+ convert! hh using 1
66
+ dsimp only [a, b, c, d, e, f, xv, yv, P]
67
+ have he := tailPrefix_congr K hK x.val p (-((s+n : ℕ) : ℤ))
68
+ (r+s+n) (r+(s+n)) (by omega) (by omega) (by omega) (by omega) (by omega)
69
+ have hh' := congrArg (fun z => (z ≫ yv ≫ e.inv) ≫ f.inv) he
70
+ exact hh'
71
+
72
+ · exact ((completeExtResolution hK).cochainComplex.isZero_of_isStrictlyLE 0 q
73
+ (by omega)).eq_of_tgt _ _
74
+
75
+ end ArExplicit.CompleteComparison
76
+
77
+ end
78
+
79
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullCochainTail.lean ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Resolutions.NatResolutionCochain
2
+ import OAI.Algebra.AuslanderReiten.HomComplex.PositiveFullHomExt
3
+ import OAI.Algebra.AuslanderReiten.Resolutions.ResolutionProductCompatibility
4
+
5
+ namespace OAI
6
+
7
+ noncomputable section
8
+ open CategoryTheory CategoryTheory.Limits
9
+ open CochainComplex CochainComplex.HomComplex
10
+ namespace ArExplicit.CompleteComparison
11
+ universe u
12
+ variable {k R : Type u} [Field k] [Ring R] [Algebra k R] [CharP k 2]
13
+ attribute [local instance] moduleCatBaseModule moduleCatBaseTower
14
+ variable (K L : CochainComplex (ModuleCat.{u} R) ℤ)
15
+
16
+ def tailTermIso (n : ℕ) :
17
+ (nonnegativeTail (chainOfCochain K)).X n ≅ K.X (-(n : ℤ)) :=
18
+ K.extendXIso negIndexEmbedding (by change -(-(n : ℤ))=(n : ℤ); omega)
19
+
20
+ theorem tailTerm_d (i j : ℕ) (h : j+1=i) :
21
+ (nonnegativeTail (chainOfCochain K)).d i j =
22
+ (tailTermIso K i).hom ≫ K.d (-(i : ℤ)) (-(j : ℤ)) ≫ (tailTermIso K j).inv := by
23
+ subst i
24
+ rw [nonnegativeTail_d]
25
+ exact K.extend_d_eq negIndexEmbedding
26
+ (show negIndexEmbedding.f (-((j+1 : ℕ) : ℤ))=((j+1 : ℕ) : ℤ) by
27
+ change -(-((j+1 : ℕ) : ℤ))=((j+1 : ℕ) : ℤ); omega)
28
+ (show negIndexEmbedding.f (-(j : ℤ))=(j : ℤ) by change -(-(j : ℤ))=(j : ℤ); omega)
29
+
30
+ def cochainTailMap (r : ℕ) (x : Cochain K L (r : ℤ)) (n : ℕ) :
31
+ (nonnegativeTail (chainOfCochain K)).X (r+n) ⟶
32
+ (nonnegativeTail (chainOfCochain L)).X n :=
33
+ (tailTermIso K (r+n)).hom ≫ x.v (-((r+n : ℕ) : ℤ)) (-(n : ℤ)) (by omega) ≫
34
+ (tailTermIso L n).inv
35
+
36
+ include k in
37
+ theorem cochainTailMap_comm (r : ℕ) (x : Cocycle K L (r : ℤ)) (n : ℕ) :
38
+ cochainTailMap K L r x.val (n+1) ≫ (nonnegativeTail (chainOfCochain L)).d (n+1) n =
39
+ (nonnegativeTail (chainOfCochain K)).d (r+(n+1)) (r+n) ≫ cochainTailMap K L r x.val n := by
40
+ let i : ℤ := -((r+(n+1) : ℕ) : ℤ)
41
+ let j : ℤ := -(n : ℤ)
42
+ have hx := congrArg (fun z : Cochain K L ((r : ℤ)+1) => z.v i j (by dsimp [i,j]; omega))
43
+ (show δ (r : ℤ) ((r : ℤ)+1) x.val=0 by simp)
44
+ rw [δ_v _ _ rfl _ _ _ (by dsimp [i,j]; omega)
45
+ (-((n+1 : ℕ) : ℤ)) (-((r+n : ℕ) : ℤ)) (by dsimp [i,j]; omega) (by dsimp [i,j]; omega),
46
+ ResolutionProducts.intUnit_smul_charTwo (k := k), Cochain.zero_v] at hx
47
+ let a := x.val.v i (-((n+1 : ℕ) : ℤ)) (by dsimp [i]; omega) ≫
48
+ L.d (-((n+1 : ℕ) : ℤ)) j
49
+ let b := K.d i (-((r+n : ℕ) : ℤ)) ≫
50
+ x.val.v (-((r+n : ℕ) : ℤ)) j (by dsimp [j]; omega)
51
+ have hab : a=b := by
52
+ have hb : b+b=0 := by
53
+ rw [← two_smul k b, show (2 : k)=0 from CharP.cast_eq_zero k 2, zero_smul]
54
+ exact (eq_neg_of_add_eq_zero_left hx).trans (eq_neg_iff_add_eq_zero.mpr hb).symm
55
+ rw [tailTerm_d L _ _ rfl, tailTerm_d K _ _ (by omega)]
56
+ simp only [cochainTailMap, Category.assoc, Iso.inv_hom_id_assoc]
57
+ exact congrArg (fun z => (tailTermIso K (r+(n+1))).hom ≫ z ≫ (tailTermIso L n).inv) hab
58
+
59
+ variable (hK : TotallyAcyclicComplex (chainOfCochain K))
60
+ variable (hL : ExactProjectiveComplex (chainOfCochain L))
61
+
62
+ def restrictedCocycle (r : ℕ) (x : Cocycle K L (r : ℤ)) :
63
+ Cocycle (completeExtResolution hK).cochainComplex
64
+ (completeCokernelResolution (chainOfCochain L) hL.projective hL.exactAt).cochainComplex (r : ℤ) :=
65
+ ResolutionProducts.natComparisonCocycle (k := k) (completeExtResolution hK)
66
+ (completeCokernelResolution (chainOfCochain L) hL.projective hL.exactAt) r
67
+ (cochainTailMap K L r x.val) (cochainTailMap_comm (k := k) K L r x)
68
+
69
+ end ArExplicit.CompleteComparison
70
+
71
+ end
72
+
73
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomAugmentedExt.lean ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.PositiveFullHomProducts
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ open CategoryTheory CategoryTheory.Abelian
7
+ open CochainComplex CochainComplex.HomComplex
8
+ namespace ArExplicit.CompleteComparison
9
+ universe u
10
+ variable {k R : Type u} [Field k] [Ring R] [Algebra k R] [CharP k 2]
11
+ variable [HasDerivedCategory (ModuleCat.{u} R)]
12
+ variable (K : CochainComplex (ModuleCat.{u} R) ℤ)
13
+ variable (hK : TotallyAcyclicComplex (chainOfCochain K))
14
+
15
+ theorem fullPositiveExtEquiv_augmented (n : ℕ) (x : Cocycle K K ((n+1 : ℕ) : ℤ)) :
16
+ fullPositiveExtEquiv (k := k) K K hK hK.toExactProjectiveComplex n (CohomologyClass.mk x) =
17
+ (completeExtResolution hK).extMk
18
+ (ResolutionProducts.natComparisonAugmentation (completeExtResolution hK) (n+1)
19
+ (cochainTailMap K K (n+1) x.val)) (n+2) rfl
20
+ (ResolutionProducts.natComparison_augmented_cycle (completeExtResolution hK) (n+1)
21
+ (cochainTailMap K K (n+1) x.val) (cochainTailMap_comm (k := k) K K (n+1) x)) := by
22
+ rw [fullPositiveExtEquiv_mk]
23
+ exact ResolutionProducts.natComparison_endExt_eq (completeExtResolution hK) (n+1)
24
+ (cochainTailMap K K (n+1) x.val) (cochainTailMap_comm (k := k) K K (n+1) x)
25
+
26
+ end ArExplicit.CompleteComparison
27
+
28
+ end
29
+
30
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomComparison.lean ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Complete.CompleteStableComparison
2
+ import Mathlib.Algebra.Homology.Embedding.ExtendHomotopy
3
+ import Mathlib.Algebra.Homology.HomotopyCategory.HomComplexCohomology
4
+
5
+ namespace OAI
6
+
7
+ open CategoryTheory
8
+
9
+ namespace ArExplicit.CompleteComparison
10
+
11
+ universe u
12
+
13
+ variable {R : Type u} [Ring R]
14
+
15
+ def negIndexEmbedding : (ComplexShape.up ℤ).Embedding (ComplexShape.down ℤ) :=
16
+ ComplexShape.Embedding.mk' _ _ (fun i : ℤ => -i) neg_injective (by
17
+ intro i j
18
+ change i + 1 = j ↔ -j + 1 = -i
19
+ omega)
20
+
21
+ instance : negIndexEmbedding.IsRelIff := by
22
+ dsimp [negIndexEmbedding]
23
+ infer_instance
24
+
25
+ noncomputable abbrev chainOfCochain (K : CochainComplex (ModuleCat.{u} R) ℤ) :=
26
+ K.extend negIndexEmbedding
27
+
28
+ private instance negIndexFunctor_additive :
29
+ (negIndexEmbedding.extendHomotopyFunctor (ModuleCat.{u} R)).Additive := by
30
+ have := Functor.additive_of_iso
31
+ (negIndexEmbedding.extendHomotopyFunctorFactors (ModuleCat.{u} R)).symm
32
+ exact Functor.additive_of_full_essSurj_comp
33
+ (HomotopyCategory.quotient (ModuleCat.{u} R) (ComplexShape.up ℤ)) _
34
+
35
+ noncomputable def fullHomStableEquiv
36
+ (K L : CochainComplex (ModuleCat.{u} R) ℤ) (n : ℤ)
37
+ (hK : TotallyAcyclicComplex (chainOfCochain K))
38
+ (hL : ExactProjectiveComplex (chainOfCochain (L⟦n⟧))) :
39
+ CochainComplex.HomComplex.CohomologyClass K L n ≃+
40
+ StableHom R (Cokernel (chainOfCochain K) 0) (Cokernel (chainOfCochain (L⟦n⟧)) 0) :=
41
+ CochainComplex.HomComplex.CohomologyClass.homAddEquiv.trans
42
+ ((AddEquiv.ofBijective
43
+ (Functor.mapAddHom (negIndexEmbedding.extendHomotopyFunctor (ModuleCat.{u} R)))
44
+ ⟨Functor.map_injective _, Functor.map_surjective _⟩).trans
45
+ (homotopyCokernelEquiv hK hL))
46
+
47
+ theorem fullHomStableEquiv_eq_zero_iff
48
+ (K L : CochainComplex (ModuleCat.{u} R) ℤ) (n : ℤ)
49
+ (hK : TotallyAcyclicComplex (chainOfCochain K))
50
+ (hL : ExactProjectiveComplex (chainOfCochain (L⟦n⟧)))
51
+ (x : CochainComplex.HomComplex.CohomologyClass K L n) :
52
+ fullHomStableEquiv K L n hK hL x = 0 ↔ x = 0 :=
53
+ map_eq_zero_iff (fullHomStableEquiv K L n hK hL) (fullHomStableEquiv K L n hK hL).injective
54
+
55
+ end ArExplicit.CompleteComparison
56
+
57
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomComposition.lean ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomProducts
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+
7
+ namespace ArExplicit
8
+
9
+ open CategoryTheory
10
+ open CochainComplex CochainComplex.HomComplex
11
+
12
+ variable {C : Type*} [Category* C] [Preadditive C]
13
+ variable {F G K : CochainComplex C ℤ} (φ : F ⟶ G) (n : ℤ)
14
+
15
+ def fullHomPrecompCocycle : Cocycle G K n →+ Cocycle F K n where
16
+ toFun x := x.precomp φ
17
+ map_zero' := by apply Cocycle.ext; simp
18
+ map_add' x y := by apply Cocycle.ext; simp
19
+
20
+ def fullHomPostcompCocycle : Cocycle K F n →+ Cocycle K G n where
21
+ toFun x := x.postcomp φ
22
+ map_zero' := by apply Cocycle.ext; simp
23
+ map_add' x y := by apply Cocycle.ext; simp
24
+
25
+ def fullHomPrecomp : CohomologyClass G K n →+ CohomologyClass F K n :=
26
+ CohomologyClass.descAddMonoidHom
27
+ ((CohomologyClass.mkAddMonoidHom _ _ _).comp (fullHomPrecompCocycle φ n)) (by
28
+ intro x hx
29
+ apply (CohomologyClass.mk_eq_zero_iff _).mpr
30
+ obtain ⟨m, hm, y, hy⟩ := hx
31
+ refine ⟨m, hm, (Cochain.ofHom φ).comp y (zero_add m), ?_⟩
32
+ simpa [fullHomPrecompCocycle] using congrArg (fun z => (Cochain.ofHom φ).comp z (zero_add n)) hy)
33
+
34
+ def fullHomPostcomp : CohomologyClass K F n →+ CohomologyClass K G n :=
35
+ CohomologyClass.descAddMonoidHom
36
+ ((CohomologyClass.mkAddMonoidHom _ _ _).comp (fullHomPostcompCocycle φ n)) (by
37
+ intro x hx
38
+ apply (CohomologyClass.mk_eq_zero_iff _).mpr
39
+ obtain ⟨m, hm, y, hy⟩ := hx
40
+ refine ⟨m, hm, y.comp (Cochain.ofHom φ) (add_zero m), ?_⟩
41
+ simpa [fullHomPostcompCocycle] using congrArg (fun z => z.comp (Cochain.ofHom φ) (add_zero n)) hy)
42
+
43
+ @[simp] theorem fullHomPrecomp_mk (x : Cocycle G K n) :
44
+ fullHomPrecomp φ n (CohomologyClass.mk x) = CohomologyClass.mk (x.precomp φ) := rfl
45
+
46
+ @[simp] theorem fullHomPostcomp_mk (x : Cocycle K F n) :
47
+ fullHomPostcomp φ n (CohomologyClass.mk x) = CohomologyClass.mk (x.postcomp φ) := rfl
48
+
49
+ end ArExplicit
50
+
51
+ end
52
+
53
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomCompositionLinear.lean ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomMapLinear
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ open CategoryTheory CochainComplex.HomComplex
7
+ namespace ArExplicit
8
+ universe u v w
9
+ variable (k : Type u) [CommRing k]
10
+ variable {C : Type w} [Category.{v} C] [Preadditive C] [Linear k C]
11
+ variable {K L M : CochainComplex C ℤ} (n : ℤ)
12
+
13
+ def fullHomPostcompLinear (f : L ⟶ M) : CohomologyClass K L n →ₗ[k] CohomologyClass K M n where
14
+ __ := fullHomPostcomp f n
15
+ map_smul' a x := by
16
+ change fullHomPostcomp f n (a • x) = a • fullHomPostcomp f n x
17
+ obtain ⟨x, rfl⟩ := CohomologyClass.mk_surjective x
18
+ rw [← CompleteComparison.fullHom_mk_smul, fullHomPostcomp_mk, fullHomPostcomp_mk,
19
+ ← CompleteComparison.fullHom_mk_smul]
20
+ congr 1
21
+ apply Subtype.ext
22
+ exact Cochain.smul_comp a x.val (Cochain.ofHom f) (add_zero n)
23
+
24
+ def fullHomPrecompLinear (f : K ⟶ L) : CohomologyClass L M n →ₗ[k] CohomologyClass K M n where
25
+ __ := fullHomPrecomp f n
26
+ map_smul' a x := by
27
+ change fullHomPrecomp f n (a • x) = a • fullHomPrecomp f n x
28
+ obtain ⟨x, rfl⟩ := CohomologyClass.mk_surjective x
29
+ rw [← CompleteComparison.fullHom_mk_smul, fullHomPrecomp_mk, fullHomPrecomp_mk,
30
+ ← CompleteComparison.fullHom_mk_smul]
31
+ congr 1
32
+ apply Subtype.ext
33
+ exact Cochain.comp_smul (Cochain.ofHom f) a x.val (zero_add n)
34
+
35
+ end ArExplicit
36
+
37
+ end
38
+
39
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomCompositionSquare.lean ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomHomotopyMaps
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ open CategoryTheory CochainComplex.HomComplex
7
+ namespace ArExplicit
8
+ universe u v w
9
+ variable (k : Type u) [CommRing k]
10
+ variable {C : Type w} [Category.{v} C] [Preadditive C] [Linear k C]
11
+ variable {K L M N P : CochainComplex C ℤ}
12
+ variable {a : L ⟶ M} {b : M ⟶ N} {c : L ⟶ P} {d : P ⟶ N}
13
+ include k
14
+
15
+ theorem fullHomPostcomp_square (n : ℤ)
16
+ (h : (HomotopyCategory.quotient C _).map (a ≫ b) =
17
+ (HomotopyCategory.quotient C _).map (c ≫ d))
18
+ (x : CohomologyClass K L n) :
19
+ fullHomPostcomp b n (fullHomPostcomp a n x) =
20
+ fullHomPostcomp d n (fullHomPostcomp c n x) := by
21
+ rw [fullHomPostcomp_comp, fullHomPostcomp_comp]
22
+ exact fullHomPostcomp_congr k n h x
23
+
24
+ end ArExplicit
25
+
26
+ end
27
+
28
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomDegreeProducts.lean ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomProductLinear
2
+ import OAI.Algebra.AuslanderReiten.Complete.TateKoszul
3
+ import OAI.Algebra.AuslanderReiten.Resolutions.ResolutionProductCompatibility
4
+
5
+ namespace OAI
6
+
7
+ noncomputable section
8
+ open CategoryTheory
9
+ open CochainComplex CochainComplex.HomComplex
10
+ namespace ArExplicit.CompleteComparison
11
+ universe u v
12
+ variable {k : Type u} [Field k]
13
+ variable {C : Type v} [Category.{u} C] [Preadditive C] [Linear k C]
14
+ variable {K L M : CochainComplex C ℤ} {n m l : ℤ}
15
+
16
+ theorem fullHomProduct_degree_mk (h : n+m=l)
17
+ (x : Cocycle K L n) (y : Cocycle L M m) (z : Cocycle K M l)
18
+ (hz : z.val=x.val.comp y.val h) :
19
+ TateKoszul.degreeEquiv (k := k) (CohomologyClass K M) h
20
+ (fullHomProduct (CohomologyClass.mk x) (CohomologyClass.mk y)) = CohomologyClass.mk z := by
21
+ subst l
22
+ change CohomologyClass.mk (cocycleProduct x y) = CohomologyClass.mk z
23
+ congr 1
24
+ exact Subtype.ext hz.symm
25
+
26
+ def fullHomIdentity (K : CochainComplex C ℤ) : CohomologyClass K K 0 :=
27
+ CohomologyClass.mk (Cocycle.ofHom (𝟙 K))
28
+
29
+ theorem fullHomProduct_identity_right (x : CohomologyClass K L n) :
30
+ TateKoszul.degreeEquiv (k := k) (CohomologyClass K L) (add_zero n)
31
+ (fullHomProduct x (fullHomIdentity L)) = x := by
32
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
33
+ apply fullHomProduct_degree_mk
34
+ exact (Cochain.comp_id x.val).symm
35
+
36
+ theorem fullHomProduct_identity_left (x : CohomologyClass K L n) :
37
+ TateKoszul.degreeEquiv (k := k) (CohomologyClass K L) (zero_add n)
38
+ (fullHomProduct (fullHomIdentity K) x) = x := by
39
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
40
+ apply fullHomProduct_degree_mk
41
+ exact (Cochain.id_comp x.val).symm
42
+
43
+ end ArExplicit.CompleteComparison
44
+
45
+ end
46
+
47
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomDuality.lean ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Stable.SourceStableShift
2
+ import OAI.Algebra.AuslanderReiten.Duality.ProjectiveStablePairing
3
+
4
+ namespace OAI
5
+
6
+ open CategoryTheory
7
+ open CochainComplex CochainComplex.HomComplex
8
+ open scoped ModuleCat.Algebra
9
+
10
+ namespace ArExplicit.FrobeniusTrace
11
+
12
+ universe u
13
+
14
+ variable {k R : Type u} [Field k] [Ring R] [Algebra k R] [Module.Finite k R]
15
+ variable (τ : FrobeniusTrace k R)
16
+ variable (hs : ∀ a b : R, τ.trace (a * b) = τ.trace (b * a))
17
+
18
+ open CompleteComparison
19
+
20
+ noncomputable def fullHomSymmetricDuality
21
+ (K : CochainComplex (ModuleCat.{u} R) ℤ)
22
+ (hK : TotallyAcyclicComplex (chainOfCochain K)) (a : ℤ) :
23
+ Module.Dual k (CohomologyClass K K a) ≃ₗ[k] CohomologyClass K K (-a - 1) := by
24
+ let E := fullHomStableLinearEquiv (k := k) K K a hK
25
+ (hK.toExactProjectiveComplex.cochainShift a)
26
+ let D := τ.completeStableDuality hs (chainOfCochain K) hK.toExactProjectiveComplex
27
+ (N := Cokernel (chainOfCochain (K⟦a⟧)) 0)
28
+ let B := StableHom.targetEquiv (k := k)
29
+ (M := Cokernel (chainOfCochain (K⟦a⟧)) 0)
30
+ (shiftedCokernelEquiv K (-1) 1 rfl).symm
31
+ let C := fullHomStableZeroLinearEquiv (k := k) (K⟦a⟧) (K⟦(-1 : ℤ)⟧)
32
+ (hK.cochainShift a) (hK.toExactProjectiveComplex.cochainShift (-1))
33
+ let L := leftShiftCohomologyEquiv k K (K⟦(-1 : ℤ)⟧) (-a) a 0 (by omega)
34
+ let T := rightShiftCohomologyEquiv k K K (-a - 1) (-1) (-a) (by omega)
35
+ exact E.symm.dualMap.trans (D.trans (B.trans (C.symm.trans (L.symm.trans T.symm))))
36
+
37
+ end ArExplicit.FrobeniusTrace
38
+
39
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomExt.lean ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Stable.StableExt
2
+ import OAI.Algebra.AuslanderReiten.Stable.SourceStableShift
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+
8
+ namespace ArExplicit
9
+
10
+ open CategoryTheory CompleteComparison
11
+ open CochainComplex CochainComplex.HomComplex
12
+
13
+ universe u
14
+
15
+ variable {k R : Type u} [CommRing k] [Ring R] [Algebra k R]
16
+ variable {K L : CochainComplex (ModuleCat.{u} R) ℤ}
17
+
18
+ include k
19
+
20
+ theorem positiveExtVanish_of_fullHom
21
+ (hK : TotallyAcyclicComplex (chainOfCochain K))
22
+ (hL : ExactProjectiveComplex (chainOfCochain L))
23
+ (h : ∀ n : ℕ, 0 < n → Subsingleton (CohomologyClass K L (n : ℤ))) :
24
+ PositiveExtVanish R (Cokernel (chainOfCochain K) 0) (Cokernel (chainOfCochain L) 0) := by
25
+ apply positiveExtVanish_of_stableCokernels hK
26
+ intro n
27
+ let := h (n + 1) (Nat.zero_lt_succ n)
28
+ exact (fullHomSourceStableLinearEquiv (k := k) K L ((n + 1 : ℕ) : ℤ) hK hL).symm.injective.subsingleton
29
+
30
+ theorem not_projective_of_fullHom_nontrivial
31
+ (hK : TotallyAcyclicComplex (chainOfCochain K))
32
+ (h : Nontrivial (CohomologyClass K K 0)) :
33
+ ¬ Module.Projective R (Cokernel (chainOfCochain K) 0) := by
34
+ intro hp
35
+ let := hK.finite 0
36
+ let := hp
37
+ have : Subsingleton (StableHom R (Cokernel (chainOfCochain K) 0)
38
+ (Cokernel (chainOfCochain K) 0)) := ⟨fun a b =>
39
+ (StableHom.eq_zero_of_projective_source a).trans (StableHom.eq_zero_of_projective_source b).symm⟩
40
+ have : Subsingleton (CohomologyClass K K 0) :=
41
+ (fullHomStableZeroLinearEquiv (k := k) K K hK hK.toExactProjectiveComplex).injective.subsingleton
42
+ obtain ⟨a, b, hab⟩ := h.exists_pair_ne
43
+ exact hab (Subsingleton.elim a b)
44
+
45
+ end ArExplicit
46
+
47
+ end
48
+
49
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomFunctor.lean ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomProducts
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+
7
+ namespace ArExplicit
8
+
9
+ open CategoryTheory
10
+ open CochainComplex CochainComplex.HomComplex
11
+
12
+ variable {C D : Type*} [Category* C] [Category* D] [Preadditive C] [Preadditive D]
13
+ variable (Φ : C ⥤ D) [Φ.Additive] [Φ.Full] [Φ.Faithful]
14
+ variable (K L : CochainComplex C ℤ) (n : ℤ)
15
+
16
+ def fullHomCochainEquiv : Cochain K L n ≃+
17
+ Cochain ((Φ.mapHomologicalComplex _).obj K) ((Φ.mapHomologicalComplex _).obj L) n where
18
+ toFun x := x.map Φ
19
+ invFun y := Cochain.mk fun p q hpq => Φ.preimage (y.v p q hpq)
20
+ left_inv x := by
21
+ apply Cochain.ext
22
+ intro p q hpq
23
+ exact Φ.preimage_map _
24
+ right_inv y := by
25
+ apply Cochain.ext
26
+ intro p q hpq
27
+ exact Φ.map_preimage _
28
+ map_add' := fun x y => Cochain.map_add x y Φ
29
+
30
+ theorem fullHomCochainEquiv_differential (m : ℤ) (x : Cochain K L n) :
31
+ δ n m (fullHomCochainEquiv Φ K L n x) = fullHomCochainEquiv Φ K L m (δ n m x) :=
32
+ δ_map n m x Φ
33
+
34
+ def fullHomCocycleMap : Cocycle K L n →+
35
+ Cocycle ((Φ.mapHomologicalComplex _).obj K) ((Φ.mapHomologicalComplex _).obj L) n where
36
+ toFun x := Cocycle.mk (x.1.map Φ) (n + 1) rfl (by
37
+ rw [δ_map, Cocycle.δ_eq_zero, Cochain.map_zero])
38
+ map_zero' := by apply Cocycle.ext; exact Cochain.map_zero K L n Φ
39
+ map_add' x y := by apply Cocycle.ext; exact Cochain.map_add x.1 y.1 Φ
40
+
41
+ theorem fullHomCocycleMap_bijective : Function.Bijective (fullHomCocycleMap Φ K L n) := by
42
+ constructor
43
+ · intro x y h
44
+ apply Cocycle.ext
45
+ apply (fullHomCochainEquiv Φ K L n).injective
46
+ exact congrArg Subtype.val h
47
+ · intro y
48
+ let x := (fullHomCochainEquiv Φ K L n).symm y.1
49
+ have hx : δ n (n + 1) x = 0 := by
50
+ apply (fullHomCochainEquiv Φ K L (n + 1)).injective
51
+ rw [← fullHomCochainEquiv_differential, map_zero]
52
+ change δ n (n + 1) (fullHomCochainEquiv Φ K L n
53
+ ((fullHomCochainEquiv Φ K L n).symm y.1)) = 0
54
+ rw [AddEquiv.apply_symm_apply, Cocycle.δ_eq_zero]
55
+ refine ⟨Cocycle.mk x (n + 1) rfl hx, ?_⟩
56
+ apply Cocycle.ext
57
+ exact (fullHomCochainEquiv Φ K L n).apply_symm_apply y.1
58
+
59
+ theorem fullHomCocycleMap_boundary (x : Cocycle K L n) :
60
+ fullHomCocycleMap Φ K L n x ∈
61
+ coboundaries ((Φ.mapHomologicalComplex _).obj K) ((Φ.mapHomologicalComplex _).obj L) n ↔
62
+ x ∈ coboundaries K L n := by
63
+ rw [mem_coboundaries_iff _ (n - 1) (by omega), mem_coboundaries_iff _ (n - 1) (by omega)]
64
+ constructor
65
+ · rintro ⟨y, hy⟩
66
+ refine ⟨(fullHomCochainEquiv Φ K L (n - 1)).symm y, ?_⟩
67
+ apply (fullHomCochainEquiv Φ K L n).injective
68
+ rw [← fullHomCochainEquiv_differential, AddEquiv.apply_symm_apply]
69
+ exact hy
70
+ · rintro ⟨y, hy⟩
71
+ refine ⟨y.map Φ, ?_⟩
72
+ rw [δ_map, hy]
73
+ rfl
74
+
75
+ def fullHomCohomologyMap : CohomologyClass K L n →+
76
+ CohomologyClass ((Φ.mapHomologicalComplex _).obj K) ((Φ.mapHomologicalComplex _).obj L) n :=
77
+ CohomologyClass.descAddMonoidHom
78
+ ((CohomologyClass.mkAddMonoidHom _ _ _).comp (fullHomCocycleMap Φ K L n)) (by
79
+ intro x hx
80
+ exact (CohomologyClass.mk_eq_zero_iff _).mpr
81
+ ((fullHomCocycleMap_boundary Φ K L n x).mpr hx))
82
+
83
+ @[simp] theorem fullHomCohomologyMap_mk (x : Cocycle K L n) :
84
+ fullHomCohomologyMap Φ K L n (CohomologyClass.mk x) =
85
+ CohomologyClass.mk (fullHomCocycleMap Φ K L n x) := rfl
86
+
87
+ theorem fullHomCohomologyMap_bijective : Function.Bijective (fullHomCohomologyMap Φ K L n) := by
88
+ constructor
89
+ · apply (injective_iff_map_eq_zero _).mpr
90
+ intro x hx
91
+ obtain ⟨y, rfl⟩ := CohomologyClass.mk_surjective x
92
+ exact (CohomologyClass.mk_eq_zero_iff y).mpr
93
+ ((fullHomCocycleMap_boundary Φ K L n y).mp
94
+ ((CohomologyClass.mk_eq_zero_iff _).mp hx))
95
+ · intro y
96
+ obtain ⟨y, rfl⟩ := CohomologyClass.mk_surjective y
97
+ obtain ⟨x, rfl⟩ := (fullHomCocycleMap_bijective Φ K L n).surjective y
98
+ exact ⟨CohomologyClass.mk x, rfl⟩
99
+
100
+ def fullHomCohomologyEquiv : CohomologyClass K L n ≃+
101
+ CohomologyClass ((Φ.mapHomologicalComplex _).obj K) ((Φ.mapHomologicalComplex _).obj L) n :=
102
+ AddEquiv.ofBijective (fullHomCohomologyMap Φ K L n) (fullHomCohomologyMap_bijective Φ K L n)
103
+
104
+ variable {K L n}
105
+
106
+ theorem fullHomCohomologyMap_product {M : CochainComplex C ℤ} {m : ℤ}
107
+ (x : CohomologyClass K L n) (y : CohomologyClass L M m) :
108
+ fullHomCohomologyMap Φ K M (n + m) (CompleteComparison.fullHomProduct x y) =
109
+ CompleteComparison.fullHomProduct (fullHomCohomologyMap Φ K L n x)
110
+ (fullHomCohomologyMap Φ L M m y) := by
111
+ obtain ⟨x, rfl⟩ := CohomologyClass.mk_surjective x
112
+ obtain ⟨y, rfl⟩ := CohomologyClass.mk_surjective y
113
+ simp only [CompleteComparison.fullHomProduct_mk, fullHomCohomologyMap_mk]
114
+ congr 1
115
+ apply Cocycle.ext
116
+ apply Cochain.map_comp
117
+ rfl
118
+
119
+ end ArExplicit
120
+
121
+ end
122
+
123
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomHomotopyMaps.lean ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomShiftedMaps
2
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomNaturality
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+ open CategoryTheory CochainComplex.HomComplex
8
+ namespace ArExplicit
9
+ universe u v w
10
+ variable (k : Type u) [CommRing k]
11
+ variable {C : Type w} [Category.{v} C] [Preadditive C] [Linear k C]
12
+ variable {K L M : CochainComplex C ℤ} (n : ℤ)
13
+ include k
14
+
15
+ theorem fullHomPostcomp_congr {f g : L ⟶ M}
16
+ (h : (HomotopyCategory.quotient C _).map f = (HomotopyCategory.quotient C _).map g)
17
+ (x : CohomologyClass K L n) : fullHomPostcomp f n x = fullHomPostcomp g n x := by
18
+ apply (fullHomShiftedHomotopyEquiv k K M n).injective
19
+ rw [fullHomShiftedHomotopyEquiv_postcomp, fullHomShiftedHomotopyEquiv_postcomp, h]
20
+
21
+ theorem fullHomPrecomp_congr {f g : K ⟶ L}
22
+ (h : (HomotopyCategory.quotient C _).map f = (HomotopyCategory.quotient C _).map g)
23
+ (x : CohomologyClass L M n) : fullHomPrecomp f n x = fullHomPrecomp g n x := by
24
+ apply (fullHomShiftedHomotopyEquiv k K M n).injective
25
+ rw [fullHomShiftedHomotopyEquiv_precomp, fullHomShiftedHomotopyEquiv_precomp, h]
26
+
27
+ theorem fullHomPostcomp_id (x : CohomologyClass K L n) :
28
+ fullHomPostcomp (𝟙 L) n x = x := by
29
+ apply (fullHomShiftedHomotopyEquiv k K L n).injective
30
+ rw [fullHomShiftedHomotopyEquiv_postcomp, CategoryTheory.Functor.map_id,
31
+ CategoryTheory.Functor.map_id, Category.comp_id]
32
+
33
+ theorem fullHomPrecomp_id (x : CohomologyClass K L n) :
34
+ fullHomPrecomp (𝟙 K) n x = x := by
35
+ apply (fullHomShiftedHomotopyEquiv k K L n).injective
36
+ rw [fullHomShiftedHomotopyEquiv_precomp, CategoryTheory.Functor.map_id, Category.id_comp]
37
+
38
+ theorem fullHomPostcomp_homotopy_inverse (f : L ⟶ M) (g : M ⟶ L)
39
+ (h : (HomotopyCategory.quotient C _).map (f ≫ g) = 𝟙 _)
40
+ (x : CohomologyClass K L n) : fullHomPostcomp g n (fullHomPostcomp f n x) = x := by
41
+ rw [fullHomPostcomp_comp]
42
+ rw [fullHomPostcomp_congr k n (h.trans (CategoryTheory.Functor.map_id _ _).symm),
43
+ fullHomPostcomp_id k n]
44
+
45
+ theorem fullHomPostcomp_bijective (f : L ⟶ M) (g : M ⟶ L)
46
+ (hfg : (HomotopyCategory.quotient C _).map (f ≫ g) = 𝟙 _)
47
+ (hgf : (HomotopyCategory.quotient C _).map (g ≫ f) = 𝟙 _) :
48
+ Function.Bijective (fullHomPostcomp (K := K) f n) := by
49
+ constructor
50
+ · intro x y h
51
+ have hh := congrArg (fullHomPostcomp g n) h
52
+ simpa only [fullHomPostcomp_homotopy_inverse k n f g hfg] using hh
53
+ · intro x
54
+ exact ⟨fullHomPostcomp g n x, fullHomPostcomp_homotopy_inverse k n g f hgf x⟩
55
+
56
+ end ArExplicit
57
+
58
+ end
59
+
60
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomLinear.lean ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomProducts
2
+ import Mathlib.Algebra.Homology.Linear
3
+
4
+ namespace OAI
5
+
6
+ open CategoryTheory
7
+ open CochainComplex CochainComplex.HomComplex
8
+
9
+ namespace ArExplicit.CompleteComparison
10
+
11
+ universe u v
12
+
13
+ section Cochains
14
+
15
+ variable (k : Type u) [CommRing k]
16
+ variable {C : Type*} [Category* C] [Preadditive C] [Linear k C]
17
+ variable (K L : CochainComplex C ℤ) (n : ℤ)
18
+
19
+ def fullHomCoboundaries : Submodule k (Cocycle K L n) where
20
+ __ := coboundaries K L n
21
+ smul_mem' a x hx := by
22
+ obtain ⟨m, hm, y, hy⟩ := hx
23
+ refine ⟨m, hm, a • y, ?_⟩
24
+ rw [δ_smul, hy]
25
+ rfl
26
+
27
+ instance fullHomModule : Module k (CohomologyClass K L n) :=
28
+ inferInstanceAs (Module k ((Cocycle K L n) ⧸ fullHomCoboundaries k K L n))
29
+
30
+ variable {K L n}
31
+
32
+ @[simp]
33
+ theorem fullHom_mk_smul (a : k) (x : Cocycle K L n) :
34
+ CohomologyClass.mk (a • x) = a • CohomologyClass.mk x := rfl
35
+
36
+ theorem cocycleHom_smul (a : k) (x : Cocycle K L n) :
37
+ Cocycle.equivHomShift.symm (a • x) = a • Cocycle.equivHomShift.symm x := by
38
+ apply HomologicalComplex.Hom.ext
39
+ funext i
40
+ simp only [cocycleHom_component, HomologicalComplex.smul_f_apply,
41
+ Cocycle.coe_smul, Cochain.smul_v]
42
+
43
+ end Cochains
44
+
45
+ variable {k R : Type u} [CommRing k] [Ring R] [Algebra k R]
46
+ open scoped ModuleCat.Algebra
47
+
48
+ variable {P Q : ChainComplex (ModuleCat.{u} R) ℤ}
49
+
50
+ theorem cokernelMap_smul (a : k) (F : P ⟶ Q) (n : ℤ) :
51
+ cokernelMap (a • F) n = a • cokernelMap F n := by
52
+ apply LinearMap.ext
53
+ intro z
54
+ obtain ⟨x, rfl⟩ := Submodule.mkQ_surjective (LinearMap.range (P.d (n + 1) n).hom) z
55
+ change (LinearMap.range (Q.d (n + 1) n).hom).mkQ (a • (F.f n).hom x) =
56
+ a • (LinearMap.range (Q.d (n + 1) n).hom).mkQ ((F.f n).hom x)
57
+ exact ((LinearMap.range (Q.d (n + 1) n).hom).mkQ.restrictScalars k).map_smul a _
58
+
59
+ variable {K L : CochainComplex (ModuleCat.{u} R) ℤ} {n : ℤ}
60
+
61
+ theorem cocycleComparisonMap_smul (a : k) (x : Cocycle K L n) :
62
+ cocycleComparisonMap (a • x) = a • cocycleComparisonMap x := by
63
+ unfold cocycleComparisonMap
64
+ rw [cocycleHom_smul]
65
+ apply HomologicalComplex.Hom.ext
66
+ funext i
67
+ have hi : negIndexEmbedding.f (-i) = i := neg_neg i
68
+ simp only [HomologicalComplex.extendMap_f _ _ hi,
69
+ HomologicalComplex.smul_f_apply, Linear.comp_smul, Linear.smul_comp]
70
+
71
+ theorem fullHomStableEquiv_smul (hK : TotallyAcyclicComplex (chainOfCochain K))
72
+ (hL : ExactProjectiveComplex (chainOfCochain (L⟦n⟧)))
73
+ (a : k) (x : CohomologyClass K L n) :
74
+ fullHomStableEquiv K L n hK hL (a • x) = a • fullHomStableEquiv K L n hK hL x := by
75
+ obtain ⟨x, rfl⟩ := CohomologyClass.mk_surjective x
76
+ rw [← fullHom_mk_smul, fullHomStableEquiv_mk, fullHomStableEquiv_mk,
77
+ cocycleComparisonMap_smul, cokernelMap_smul, StableHom.classOf_smul]
78
+
79
+ noncomputable def fullHomStableLinearEquiv
80
+ (K L : CochainComplex (ModuleCat.{u} R) ℤ) (n : ℤ)
81
+ (hK : TotallyAcyclicComplex (chainOfCochain K))
82
+ (hL : ExactProjectiveComplex (chainOfCochain (L⟦n⟧))) :
83
+ CohomologyClass K L n ≃ₗ[k]
84
+ StableHom R (Cokernel (chainOfCochain K) 0) (Cokernel (chainOfCochain (L⟦n⟧)) 0) :=
85
+ { fullHomStableEquiv K L n hK hL with
86
+ map_smul' := fullHomStableEquiv_smul hK hL }
87
+
88
+ end ArExplicit.CompleteComparison
89
+
90
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomMap.lean ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomFunctor
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ namespace ArExplicit
7
+ open CategoryTheory CochainComplex.HomComplex
8
+ variable {C D : Type*} [Category* C] [Category* D] [Preadditive C] [Preadditive D]
9
+ variable (Φ : C ⥤ D) [Φ.Additive]
10
+ variable (K L : CochainComplex C ℤ) (n : ℤ)
11
+
12
+ def mapFullHom : CohomologyClass K L n →+
13
+ CohomologyClass ((Φ.mapHomologicalComplex _).obj K)
14
+ ((Φ.mapHomologicalComplex _).obj L) n :=
15
+ CohomologyClass.descAddMonoidHom
16
+ ((CohomologyClass.mkAddMonoidHom _ _ _).comp (fullHomCocycleMap Φ K L n)) (by
17
+ intro x hx
18
+ apply (CohomologyClass.mk_eq_zero_iff _).mpr
19
+ obtain ⟨m, hm, y, hy⟩ := hx
20
+ refine ⟨m, hm, y.map Φ, ?_⟩
21
+ rw [δ_map, hy]
22
+ rfl)
23
+
24
+ @[simp] theorem mapFullHom_mk (x : Cocycle K L n) :
25
+ mapFullHom Φ K L n (CohomologyClass.mk x) =
26
+ CohomologyClass.mk (fullHomCocycleMap Φ K L n x) := rfl
27
+
28
+ theorem mapFullHom_eq [Φ.Full] [Φ.Faithful] :
29
+ mapFullHom Φ K L n = fullHomCohomologyMap Φ K L n := rfl
30
+
31
+ variable {K L n}
32
+ theorem mapFullHom_product {M : CochainComplex C ℤ} {m : ℤ}
33
+ (x : CohomologyClass K L n) (y : CohomologyClass L M m) :
34
+ mapFullHom Φ K M (n+m) (CompleteComparison.fullHomProduct x y) =
35
+ CompleteComparison.fullHomProduct (mapFullHom Φ K L n x)
36
+ (mapFullHom Φ L M m y) := by
37
+ obtain ⟨x, rfl⟩ := CohomologyClass.mk_surjective x
38
+ obtain ⟨y, rfl⟩ := CohomologyClass.mk_surjective y
39
+ simp only [CompleteComparison.fullHomProduct_mk, mapFullHom_mk]
40
+ congr 1
41
+ apply Cocycle.ext
42
+ apply Cochain.map_comp
43
+ rfl
44
+
45
+ end ArExplicit
46
+
47
+ end
48
+
49
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomMapLinear.lean ADDED
@@ -0,0 +1,85 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomMap
2
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomProductLinear
3
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomComposition
4
+
5
+ namespace OAI
6
+
7
+ noncomputable section
8
+ open CategoryTheory
9
+ open CochainComplex CochainComplex.HomComplex
10
+ namespace ArExplicit
11
+ variable {k : Type*} [CommRing k]
12
+ variable {C D : Type*} [Category* C] [Category* D] [Preadditive C] [Preadditive D]
13
+ [Linear k C] [Linear k D]
14
+ variable (Φ : C ⥤ D) [Φ.Additive] [Φ.Linear k]
15
+ variable (K L : CochainComplex C ℤ) (n : ℤ)
16
+
17
+ theorem mapFullHom_smul (a : k) (x : CohomologyClass K L n) :
18
+ mapFullHom Φ K L n (a • x) = a • mapFullHom Φ K L n x := by
19
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
20
+ rw [← CompleteComparison.fullHom_mk_smul, mapFullHom_mk, mapFullHom_mk,
21
+ ← CompleteComparison.fullHom_mk_smul]
22
+ congr 1
23
+ apply Subtype.ext
24
+ apply Cochain.ext
25
+ intro p q hpq
26
+ exact Φ.map_smul a (x.val.v p q hpq)
27
+
28
+ def mapFullHomLinear : CohomologyClass K L n →ₗ[k]
29
+ CohomologyClass ((Φ.mapHomologicalComplex _).obj K)
30
+ ((Φ.mapHomologicalComplex _).obj L) n where
31
+ __ := mapFullHom Φ K L n
32
+ map_smul' := mapFullHom_smul Φ K L n
33
+
34
+ theorem mapFullHom_identity :
35
+ mapFullHom Φ K K 0 (CohomologyClass.mk (Cocycle.ofHom (𝟙 K))) =
36
+ CohomologyClass.mk (Cocycle.ofHom (𝟙 ((Φ.mapHomologicalComplex _).obj K))) := by
37
+ rw [mapFullHom_mk]
38
+ congr 1
39
+ apply Subtype.ext
40
+ change (Cochain.ofHom (𝟙 K)).map Φ =
41
+ Cochain.ofHom (𝟙 ((Φ.mapHomologicalComplex _).obj K))
42
+ rw [Cochain.map_ofHom, CategoryTheory.Functor.map_id]
43
+
44
+ variable {K L n}
45
+ theorem fullHomPostcomp_smul (f : K ⟶ L) (n : ℤ) (a : k)
46
+ (x : CohomologyClass K K n) :
47
+ fullHomPostcomp f n (a • x) = a • fullHomPostcomp f n x := by
48
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
49
+ rw [← CompleteComparison.fullHom_mk_smul, fullHomPostcomp_mk, fullHomPostcomp_mk,
50
+ ← CompleteComparison.fullHom_mk_smul]
51
+ congr 1
52
+ apply Subtype.ext
53
+ exact Cochain.smul_comp a x.val (Cochain.ofHom f) (add_zero n)
54
+
55
+ theorem fullHomPrecomp_smul (f : K ⟶ L) (n : ℤ) (a : k)
56
+ (x : CohomologyClass L L n) :
57
+ fullHomPrecomp f n (a • x) = a • fullHomPrecomp f n x := by
58
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
59
+ rw [← CompleteComparison.fullHom_mk_smul, fullHomPrecomp_mk, fullHomPrecomp_mk,
60
+ ← CompleteComparison.fullHom_mk_smul]
61
+ congr 1
62
+ apply Subtype.ext
63
+ exact Cochain.comp_smul (Cochain.ofHom f) a x.val (zero_add n)
64
+
65
+ theorem fullHomPostcomp_identity (f : K ⟶ L) :
66
+ fullHomPostcomp f 0 (CohomologyClass.mk (Cocycle.ofHom (𝟙 K))) =
67
+ CohomologyClass.mk (Cocycle.ofHom f) := by
68
+ rw [fullHomPostcomp_mk]
69
+ congr 1
70
+ apply Subtype.ext
71
+ exact Cochain.id_comp _
72
+
73
+ theorem fullHomPrecomp_identity (f : K ⟶ L) :
74
+ fullHomPrecomp f 0 (CohomologyClass.mk (Cocycle.ofHom (𝟙 L))) =
75
+ CohomologyClass.mk (Cocycle.ofHom f) := by
76
+ rw [fullHomPrecomp_mk]
77
+ congr 1
78
+ apply Subtype.ext
79
+ exact Cochain.comp_id _
80
+
81
+ end ArExplicit
82
+
83
+ end
84
+
85
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomNaturality.lean ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomMap
2
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomComposition
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+ open CategoryTheory CochainComplex CochainComplex.HomComplex
8
+ namespace ArExplicit
9
+ variable {C D : Type*} [Category* C] [Category* D] [Preadditive C] [Preadditive D]
10
+ variable {Φ Ψ : C ⥤ D} [Φ.Additive] [Ψ.Additive]
11
+ variable {K L : CochainComplex C ℤ} {n : ℤ}
12
+
13
+ theorem mapFullHom_naturality (η : Φ ⟶ Ψ) (x : CohomologyClass K L n) :
14
+ fullHomPostcomp ((η.mapHomologicalComplex _).app L) n (mapFullHom Φ K L n x) =
15
+ fullHomPrecomp ((η.mapHomologicalComplex _).app K) n (mapFullHom Ψ K L n x) := by
16
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
17
+ rw [mapFullHom_mk, mapFullHom_mk, fullHomPostcomp_mk, fullHomPrecomp_mk]
18
+ congr 1
19
+ apply Cocycle.ext
20
+ apply Cochain.ext
21
+ intro i j hij
22
+ change ((x.val.map Φ).comp (Cochain.ofHom ((η.mapHomologicalComplex _).app L))
23
+ (add_zero n)).v i j hij =
24
+ ((Cochain.ofHom ((η.mapHomologicalComplex _).app K)).comp (x.val.map Ψ)
25
+ (zero_add n)).v i j hij
26
+ rw [Cochain.comp_v _ _ (add_zero n) i j j hij (add_zero j),
27
+ Cochain.comp_v _ _ (zero_add n) i i j (add_zero i) hij]
28
+ simp only [Cochain.map_v, Cochain.ofHom_v, NatTrans.mapHomologicalComplex_app_f]
29
+ exact η.naturality (x.val.v i j hij)
30
+
31
+ variable {F G H I : CochainComplex C ℤ}
32
+
33
+ theorem fullHomPostcomp_comp (f : F ⟶ G) (g : G ⟶ H) (x : CohomologyClass I F n) :
34
+ fullHomPostcomp g n (fullHomPostcomp f n x) = fullHomPostcomp (f ≫ g) n x := by
35
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
36
+ simp only [fullHomPostcomp_mk]
37
+ congr 1
38
+ apply Cocycle.ext
39
+ apply Cochain.ext
40
+ intro i j hij
41
+ change ((x.val.comp (Cochain.ofHom f) (add_zero n)).comp (Cochain.ofHom g)
42
+ (add_zero n)).v i j hij = (x.val.comp (Cochain.ofHom (f ≫ g)) (add_zero n)).v i j hij
43
+ rw [Cochain.comp_v _ _ (add_zero n) i j j hij (add_zero j),
44
+ Cochain.comp_v _ _ (add_zero n) i j j hij (add_zero j),
45
+ Cochain.comp_v _ _ (add_zero n) i j j hij (add_zero j)]
46
+ simp only [Cochain.ofHom_v, HomologicalComplex.comp_f, Category.assoc]
47
+
48
+ theorem fullHomPostcomp_precomp (f : F ⟶ G) (g : H ⟶ I) (x : CohomologyClass G H n) :
49
+ fullHomPostcomp g n (fullHomPrecomp f n x) =
50
+ fullHomPrecomp f n (fullHomPostcomp g n x) := by
51
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
52
+ simp only [fullHomPostcomp_mk, fullHomPrecomp_mk]
53
+ congr 1
54
+ apply Cocycle.ext
55
+ apply Cochain.ext
56
+ intro i j hij
57
+ change (((Cochain.ofHom f).comp x.val (zero_add n)).comp (Cochain.ofHom g)
58
+ (add_zero n)).v i j hij =
59
+ ((Cochain.ofHom f).comp (x.val.comp (Cochain.ofHom g) (add_zero n))
60
+ (zero_add n)).v i j hij
61
+ rw [Cochain.comp_v _ _ (add_zero n) i j j hij (add_zero j),
62
+ Cochain.comp_v _ _ (zero_add n) i i j (add_zero i) hij,
63
+ Cochain.comp_v _ _ (zero_add n) i i j (add_zero i) hij,
64
+ Cochain.comp_v _ _ (add_zero n) i j j hij (add_zero j)]
65
+ simp only [Cochain.ofHom_v, Category.assoc]
66
+
67
+ theorem fullHomPrecomp_comp (f : F ⟶ G) (g : G ⟶ H) (x : CohomologyClass H I n) :
68
+ fullHomPrecomp f n (fullHomPrecomp g n x) = fullHomPrecomp (f ≫ g) n x := by
69
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
70
+ simp only [fullHomPrecomp_mk]
71
+ congr 1
72
+ apply Cocycle.ext
73
+ apply Cochain.ext
74
+ intro i j hij
75
+ change ((Cochain.ofHom f).comp ((Cochain.ofHom g).comp x.val (zero_add n))
76
+ (zero_add n)).v i j hij = ((Cochain.ofHom (f ≫ g)).comp x.val (zero_add n)).v i j hij
77
+ rw [Cochain.comp_v _ _ (zero_add n) i i j (add_zero i) hij,
78
+ Cochain.comp_v _ _ (zero_add n) i i j (add_zero i) hij,
79
+ Cochain.comp_v _ _ (zero_add n) i i j (add_zero i) hij]
80
+ simp only [Cochain.ofHom_v, HomologicalComplex.comp_f, Category.assoc]
81
+
82
+ end ArExplicit
83
+
84
+ end
85
+
86
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomPairing.lean ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomDuality
2
+
3
+ namespace OAI
4
+
5
+ open CategoryTheory
6
+ open CochainComplex CochainComplex.HomComplex
7
+ open scoped ModuleCat.Algebra
8
+
9
+ namespace ArExplicit.FrobeniusTrace
10
+
11
+ universe u
12
+
13
+ variable {k R : Type u} [Field k] [Ring R] [Algebra k R] [Module.Finite k R]
14
+ variable (τ : FrobeniusTrace k R)
15
+ variable (hs : ∀ a b : R, τ.trace (a * b) = τ.trace (b * a))
16
+ variable {N N' : Type u}
17
+ variable [AddCommGroup N] [Module R N] [Module k N] [IsScalarTower k R N]
18
+ variable [SMulCommClass R k N]
19
+ variable [AddCommGroup N'] [Module R N'] [Module k N'] [IsScalarTower k R N']
20
+ variable [SMulCommClass R k N']
21
+
22
+ open CompleteComparison
23
+
24
+ theorem completeStableDuality_natural
25
+ (P : ChainComplex (ModuleCat.{u} R) ℤ) (hP : ExactProjectiveComplex P)
26
+ (u : N →ₗ[R] N') (f : StableHom R (Cokernel P 0) N)
27
+ (g : StableHom R N' (Cokernel P 1)) :
28
+ ((τ.completeStableDuality hs P hP).symm g) (StableHom.postcomp u f) =
29
+ ((τ.completeStableDuality hs P hP).symm (StableHom.precomp u g)) f := by
30
+ let : ∀ i, Module.Finite R (P.X i) := hP.finite
31
+ let : ∀ i, Module.Projective R (P.X i) := hP.projective
32
+ let E := cokernelSyzygyEquiv hP 0
33
+ change ((τ.projectiveStableDuality hs (P.d 1 0).hom (P.d 0 (-1)).hom
34
+ (differential_comp P 1 0 (-1)) (hP.exactAt 0)).symm
35
+ (StableHom.postcomp E.toLinearMap g)) (StableHom.postcomp u f) =
36
+ ((τ.projectiveStableDuality hs (P.d 1 0).hom (P.d 0 (-1)).hom
37
+ (differential_comp P 1 0 (-1)) (hP.exactAt 0)).symm
38
+ (StableHom.postcomp E.toLinearMap (StableHom.precomp u g))) f
39
+ rw [τ.projectiveStableDuality_natural]
40
+ congr 2
41
+ obtain ⟨g, rfl⟩ := StableHom.classOf_surjective g
42
+ rfl
43
+
44
+ noncomputable def fullHomTracePairing
45
+ (K : CochainComplex (ModuleCat.{u} R) ℤ)
46
+ (hK : TotallyAcyclicComplex (chainOfCochain K)) (n : ℤ) :
47
+ StableHom R (Cokernel (chainOfCochain (K⟦n⟧)) 0) (Cokernel (chainOfCochain K) 1)
48
+ ≃ₗ[k] Module.Dual k (CohomologyClass K K n) :=
49
+ (τ.completeStableDuality hs (chainOfCochain K) hK.toExactProjectiveComplex).symm.trans
50
+ (fullHomStableLinearEquiv (k := k) K K n hK
51
+ (hK.toExactProjectiveComplex.cochainShift n)).dualMap
52
+
53
+ theorem fullHomTracePairing_product
54
+ (K : CochainComplex (ModuleCat.{u} R) ℤ)
55
+ (hK : TotallyAcyclicComplex (chainOfCochain K)) {n m : ℤ}
56
+ (x : Cocycle K K n) (y : Cocycle K K m)
57
+ (g : StableHom R (Cokernel (chainOfCochain (K⟦n + m⟧)) 0)
58
+ (Cokernel (chainOfCochain K) 1)) :
59
+ (τ.fullHomTracePairing hs K hK (n + m) g) (CohomologyClass.mk (cocycleProduct x y)) =
60
+ (τ.fullHomTracePairing hs K hK n
61
+ (StableHom.precomp
62
+ (cokernelMap (HomologicalComplex.extendMap (shiftedCocycleHom y n) negIndexEmbedding) 0)
63
+ g)) (CohomologyClass.mk x) := by
64
+ change ((τ.completeStableDuality hs (chainOfCochain K) hK.toExactProjectiveComplex).symm g)
65
+ (fullHomStableEquiv K K (n + m) hK (hK.toExactProjectiveComplex.cochainShift (n + m))
66
+ (CohomologyClass.mk (cocycleProduct x y))) = _
67
+ rw [fullHomStableEquiv_product hK (hK.toExactProjectiveComplex.cochainShift n)
68
+ (hK.toExactProjectiveComplex.cochainShift (n + m))]
69
+ let u := cokernelMap
70
+ (HomologicalComplex.extendMap (shiftedCocycleHom y n) negIndexEmbedding) 0
71
+ have hc (z : StableHom R (Cokernel (chainOfCochain K) 0)
72
+ (Cokernel (chainOfCochain (K⟦n⟧)) 0)) :
73
+ StableHom.comp (StableHom.classOf R _ _ u) z = StableHom.postcomp u z := by
74
+ obtain ⟨z, rfl⟩ := StableHom.classOf_surjective z
75
+ rw [StableHom.comp_classOf, StableHom.postcomp_classOf]
76
+ rw [hc]
77
+ exact τ.completeStableDuality_natural hs (chainOfCochain K) hK.toExactProjectiveComplex u
78
+ (fullHomStableEquiv K K n hK (hK.toExactProjectiveComplex.cochainShift n)
79
+ (CohomologyClass.mk x)) g
80
+
81
+ end ArExplicit.FrobeniusTrace
82
+
83
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomPlainZero.lean ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomZeroRepresentative
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ namespace ArExplicit
7
+ open CategoryTheory
8
+ open CochainComplex CochainComplex.HomComplex CompleteComparison
9
+ universe u v w
10
+ variable (k : Type u) [CommRing k]
11
+ variable {C : Type w} [Category.{v} C] [Preadditive C] [Linear k C]
12
+ variable (K L : CochainComplex C ℤ)
13
+
14
+ def fullHomPlainZeroEquiv : CohomologyClass K L 0 ≃ₗ[k]
15
+ ((HomotopyCategory.quotient C _).obj K ⟶ (HomotopyCategory.quotient C _).obj L) :=
16
+ (fullHomShiftedHomotopyEquiv k K L 0).trans
17
+ (Linear.homCongr k (Iso.refl _)
18
+ ((shiftFunctorZero (HomotopyCategory C (ComplexShape.up ℤ)) ℤ).app _))
19
+
20
+ theorem fullHomPlainZeroEquiv_mk (f : K ⟶ L) :
21
+ fullHomPlainZeroEquiv k K L (CohomologyClass.mk (Cocycle.ofHom f)) =
22
+ (HomotopyCategory.quotient C _).map f := by
23
+ simp only [fullHomPlainZeroEquiv, LinearEquiv.trans_apply, Linear.homCongr_apply,
24
+ Iso.refl_inv, Category.id_comp]
25
+ change fullHomShiftedHomotopyEquiv k K L 0
26
+ (CohomologyClass.mk (Cocycle.ofHom f)) ≫
27
+ (shiftFunctorZero (HomotopyCategory C (ComplexShape.up ℤ)) ℤ).hom.app _ = _
28
+ rw [← fullHomPrecomp_identity f, fullHomShiftedHomotopyEquiv_precomp]
29
+ change (_ ≫ fullHomShiftedHomotopyEquiv k L L 0 (fullHomIdentity L)) ≫ _ = _
30
+ erw [fullHomShiftedHomotopyEquiv_identity, Category.assoc, Iso.inv_hom_id_app,
31
+ Category.comp_id]
32
+
33
+ theorem fullHomPlainZeroEquiv_identity :
34
+ fullHomPlainZeroEquiv k K K (fullHomIdentity K) = 𝟙 _ := by
35
+ rw [fullHomIdentity, fullHomPlainZeroEquiv_mk, CategoryTheory.Functor.map_id]
36
+
37
+ end ArExplicit
38
+
39
+ end
40
+
41
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomProductCoordinate.lean ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomProductReindex
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ namespace ArExplicit.CompleteComparison
7
+ open CategoryTheory CochainComplex CochainComplex.HomComplex
8
+ universe u w
9
+ variable {k : Type u} [Field k]
10
+ variable {C : Type w} [Category.{u} C] [Preadditive C] [Linear k C]
11
+ variable {K L M : CochainComplex C ℤ} {a b c d : ℤ}
12
+
13
+ theorem fullHomProduct_coordinate
14
+ (h : a=b) (h₁ : b+c=d) (h₂ : a+c=d)
15
+ {x : CohomologyClass K L a} {y : CohomologyClass K L b}
16
+ {p : CohomologyClass L M c} {z : CohomologyClass K M d}
17
+ (hy : y = TateKoszul.degreeEquiv (k := k) (CohomologyClass K L) h x)
18
+ (hz : z = TateKoszul.degreeEquiv (k := k) (CohomologyClass K M) h₁ (fullHomProduct y p)) :
19
+ z = TateKoszul.degreeEquiv (k := k) (CohomologyClass K M) h₂ (fullHomProduct x p) := by
20
+ rw [hz, hy, fullHomProduct_reindex_left]
21
+
22
+ end ArExplicit.CompleteComparison
23
+
24
+ end
25
+
26
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomProductLinear.lean ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomLinear
2
+
3
+ namespace OAI
4
+
5
+ open CategoryTheory
6
+ open CochainComplex CochainComplex.HomComplex
7
+ namespace ArExplicit.CompleteComparison
8
+ universe u v
9
+ variable {k : Type u} [CommRing k]
10
+ variable {C : Type v} [Category* C] [Preadditive C] [Linear k C]
11
+ variable {K L M : CochainComplex C ℤ} {n m : ℤ}
12
+
13
+ theorem fullHomProduct_add_left (x x' : CohomologyClass K L n)
14
+ (y : CohomologyClass L M m) :
15
+ fullHomProduct (x+x') y = fullHomProduct x y + fullHomProduct x' y := by
16
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
17
+ obtain ⟨x',rfl⟩ := CohomologyClass.mk_surjective x'
18
+ obtain ⟨y,rfl⟩ := CohomologyClass.mk_surjective y
19
+ rw [← CohomologyClass.mk_add, fullHomProduct_mk, fullHomProduct_mk, fullHomProduct_mk,
20
+ ← CohomologyClass.mk_add]
21
+ congr 1
22
+ apply Subtype.ext
23
+ exact Cochain.add_comp x.val x'.val y.val rfl
24
+
25
+ theorem fullHomProduct_add_right (x : CohomologyClass K L n)
26
+ (y y' : CohomologyClass L M m) :
27
+ fullHomProduct x (y+y') = fullHomProduct x y + fullHomProduct x y' := by
28
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
29
+ obtain ⟨y,rfl⟩ := CohomologyClass.mk_surjective y
30
+ obtain ⟨y',rfl⟩ := CohomologyClass.mk_surjective y'
31
+ rw [← CohomologyClass.mk_add, fullHomProduct_mk, fullHomProduct_mk, fullHomProduct_mk,
32
+ ← CohomologyClass.mk_add]
33
+ congr 1
34
+ apply Subtype.ext
35
+ exact Cochain.comp_add x.val y.val y'.val rfl
36
+
37
+ theorem fullHomProduct_smul_left (c : k) (x : CohomologyClass K L n)
38
+ (y : CohomologyClass L M m) :
39
+ fullHomProduct (c • x) y = c • fullHomProduct x y := by
40
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
41
+ obtain ⟨y,rfl⟩ := CohomologyClass.mk_surjective y
42
+ rw [← fullHom_mk_smul, fullHomProduct_mk, fullHomProduct_mk, ← fullHom_mk_smul]
43
+ congr 1
44
+ apply Subtype.ext
45
+ exact Cochain.smul_comp c x.val y.val rfl
46
+
47
+ theorem fullHomProduct_smul_right (c : k) (x : CohomologyClass K L n)
48
+ (y : CohomologyClass L M m) :
49
+ fullHomProduct x (c • y) = c • fullHomProduct x y := by
50
+ obtain ⟨x,rfl⟩ := CohomologyClass.mk_surjective x
51
+ obtain ⟨y,rfl⟩ := CohomologyClass.mk_surjective y
52
+ rw [← fullHom_mk_smul, fullHomProduct_mk, fullHomProduct_mk, ← fullHom_mk_smul]
53
+ congr 1
54
+ apply Subtype.ext
55
+ exact Cochain.comp_smul x.val c y.val rfl
56
+
57
+ def fullHomRightMultiply (y : CohomologyClass L M m) :
58
+ CohomologyClass K L n →ₗ[k] CohomologyClass K M (n+m) where
59
+ toFun x := fullHomProduct x y
60
+ map_add' x x' := fullHomProduct_add_left x x' y
61
+ map_smul' c x := fullHomProduct_smul_left c x y
62
+
63
+ def fullHomLeftMultiply (x : CohomologyClass K L n) :
64
+ CohomologyClass L M m →ₗ[k] CohomologyClass K M (n+m) where
65
+ toFun y := fullHomProduct x y
66
+ map_add' y y' := fullHomProduct_add_right x y y'
67
+ map_smul' c y := fullHomProduct_smul_right c x y
68
+
69
+ end ArExplicit.CompleteComparison
70
+
71
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomProductReindex.lean ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomProductLinear
2
+ import OAI.Algebra.AuslanderReiten.Complete.TateKoszul
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+ namespace ArExplicit.CompleteComparison
8
+ open CategoryTheory
9
+ open CochainComplex CochainComplex.HomComplex
10
+ universe u w
11
+ variable {k : Type u} [Field k]
12
+ variable {C : Type w} [Category.{u} C] [Preadditive C] [Linear k C]
13
+ variable {K L M : CochainComplex C ℤ} {a b c d : ℤ}
14
+
15
+ theorem fullHomProduct_reindex_left (h : a=b) (h₁ : b+c=d) (h₂ : a+c=d)
16
+ (x : CohomologyClass K L a) (y : CohomologyClass L M c) :
17
+ TateKoszul.degreeEquiv (k := k) (CohomologyClass K M) h₁
18
+ (fullHomProduct (TateKoszul.degreeEquiv (k := k) (CohomologyClass K L) h x) y) =
19
+ TateKoszul.degreeEquiv (k := k) (CohomologyClass K M) h₂ (fullHomProduct x y) := by
20
+ subst b
21
+ rfl
22
+
23
+ theorem degreeEquiv_trans_apply {H : ℤ → Type u} [∀ i, AddCommGroup (H i)] [∀ i, Module k (H i)]
24
+ (h₁ : a=b) (h₂ : b=c) (x : H a) :
25
+ TateKoszul.degreeEquiv (k := k) H h₂ (TateKoszul.degreeEquiv (k := k) H h₁ x) =
26
+ TateKoszul.degreeEquiv (k := k) H (h₁.trans h₂) x := by
27
+ subst b
28
+ subst c
29
+ rfl
30
+
31
+ end ArExplicit.CompleteComparison
32
+
33
+ end
34
+
35
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomProducts.lean ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomComparison
2
+
3
+ namespace OAI
4
+
5
+ open CategoryTheory
6
+ open CochainComplex CochainComplex.HomComplex
7
+
8
+ namespace ArExplicit.CompleteComparison
9
+
10
+ universe u
11
+
12
+ section Cochains
13
+
14
+ variable {C : Type*} [Category* C] [Preadditive C]
15
+ variable {K L M : CochainComplex C ℤ} {n m : ℤ}
16
+
17
+ def cocycleProduct (x : Cocycle K L n) (y : Cocycle L M m) : Cocycle K M (n + m) :=
18
+ Cocycle.mk (x.1.comp y.1 rfl) _ rfl (by
19
+ rw [δ_comp x.1 y.1 rfl (n + 1) (m + 1) (n + m + 1) rfl rfl rfl]
20
+ simp)
21
+
22
+ @[simp]
23
+ theorem cocycleProduct_coe (x : Cocycle K L n) (y : Cocycle L M m) :
24
+ (cocycleProduct x y).1 = x.1.comp y.1 rfl := rfl
25
+
26
+ def shiftedCocycleHom (y : Cocycle L M m) (n : ℤ) : L⟦n⟧ ⟶ M⟦n + m⟧ :=
27
+ (Cocycle.equivHomShift.symm y)⟦n⟧' ≫
28
+ (CategoryTheory.shiftFunctorAdd' (CochainComplex C ℤ) m n (n + m)
29
+ (add_comm m n)).inv.app M
30
+
31
+ theorem cocycleHom_component (x : Cocycle K L n) (i : ℤ) :
32
+ (Cocycle.equivHomShift.symm x).f i = x.1.v i (i + n) rfl := by
33
+ simp only [Cocycle.equivHomShift_symm_apply, Cocycle.homOf_f,
34
+ Cocycle.rightShift_coe, Cochain.rightShift_v, shiftFunctorObjXIso,
35
+ HomologicalComplex.XIsoOfEq_rfl, Iso.refl_inv]
36
+ exact Category.comp_id _
37
+
38
+ private theorem cochain_component_transport (x : Cochain K L n)
39
+ (p q r : ℤ) (hpq : p + n = q) (hqr : q = r) :
40
+ x.v p q hpq ≫ (L.XIsoOfEq hqr).hom = x.v p r (hpq.trans hqr) := by
41
+ subst r
42
+ simp
43
+
44
+ theorem cocycleHom_product (x : Cocycle K L n) (y : Cocycle L M m) :
45
+ Cocycle.equivHomShift.symm (cocycleProduct x y) =
46
+ Cocycle.equivHomShift.symm x ≫ shiftedCocycleHom y n := by
47
+ apply HomologicalComplex.Hom.ext
48
+ funext i
49
+ simp only [HomologicalComplex.comp_f, shiftedCocycleHom, cocycleHom_component,
50
+ shiftFunctor_map_f', shiftFunctorAdd'_inv_app_f']
51
+ change (x.1.comp y.1 rfl).v i (i + (n + m)) rfl =
52
+ x.1.v i (i + n) rfl ≫ y.1.v (i + n) (i + n + m) rfl ≫
53
+ (M.XIsoOfEq (show i + n + m = i + (n + m) by omega)).hom
54
+ rw [cochain_component_transport]
55
+ exact Cochain.comp_v x.1 y.1 rfl i (i + n) (i + (n + m)) rfl (by omega)
56
+
57
+ theorem cocycleProduct_respects_classes
58
+ (x x' : Cocycle K L n) (y y' : Cocycle L M m)
59
+ (hx : CohomologyClass.mk x = CohomologyClass.mk x')
60
+ (hy : CohomologyClass.mk y = CohomologyClass.mk y') :
61
+ CohomologyClass.mk (cocycleProduct x y) = CohomologyClass.mk (cocycleProduct x' y') := by
62
+ have hx' := congrArg CohomologyClass.toHom hx
63
+ have hy' := congrArg CohomologyClass.toHom hy
64
+ let Hx := HomotopyCategory.homotopyOfEq _ _ hx'
65
+ let Hy := HomotopyCategory.homotopyOfEq _ _ hy'
66
+ apply (CohomologyClass.toHom_bijective K M (n + m)).1
67
+ change (HomotopyCategory.quotient _ _).map
68
+ (Cocycle.equivHomShift.symm (cocycleProduct x y)) =
69
+ (HomotopyCategory.quotient _ _).map (Cocycle.equivHomShift.symm (cocycleProduct x' y'))
70
+ rw [cocycleHom_product, cocycleHom_product]
71
+ exact HomotopyCategory.eq_of_homotopy _ _ (Hx.comp ((Hy.shift n).compRight _))
72
+
73
+ def fullHomProduct (x : CohomologyClass K L n) (y : CohomologyClass L M m) :
74
+ CohomologyClass K M (n + m) :=
75
+ Quotient.liftOn₂ x y (fun a b => CohomologyClass.mk (cocycleProduct a b)) (by
76
+ intro a b a' b' ha hb
77
+ exact cocycleProduct_respects_classes a a' b b' (Quotient.sound ha) (Quotient.sound hb))
78
+
79
+ @[simp]
80
+ theorem fullHomProduct_mk (x : Cocycle K L n) (y : Cocycle L M m) :
81
+ fullHomProduct (CohomologyClass.mk x) (CohomologyClass.mk y) =
82
+ CohomologyClass.mk (cocycleProduct x y) := rfl
83
+
84
+ end Cochains
85
+
86
+ variable {R : Type u} [Ring R]
87
+ variable {K L M : CochainComplex (ModuleCat.{u} R) ℤ} {n m : ℤ}
88
+
89
+ noncomputable def cocycleComparisonMap (x : Cocycle K L n) :
90
+ chainOfCochain K ⟶ chainOfCochain (L⟦n⟧) :=
91
+ HomologicalComplex.extendMap (Cocycle.equivHomShift.symm x) negIndexEmbedding
92
+
93
+ @[simp]
94
+ theorem fullHomStableEquiv_mk (hK : TotallyAcyclicComplex (chainOfCochain K))
95
+ (hL : ExactProjectiveComplex (chainOfCochain (L⟦n⟧))) (x : Cocycle K L n) :
96
+ fullHomStableEquiv K L n hK hL (CohomologyClass.mk x) =
97
+ StableHom.classOf R _ _ (cokernelMap (cocycleComparisonMap x) 0) := by
98
+ exact homotopyCokernelEquiv_map hK hL (cocycleComparisonMap x)
99
+
100
+ theorem fullHomStableEquiv_product
101
+ (hK : TotallyAcyclicComplex (chainOfCochain K))
102
+ (hL : ExactProjectiveComplex (chainOfCochain (L⟦n⟧)))
103
+ (hM : ExactProjectiveComplex (chainOfCochain (M⟦n + m⟧)))
104
+ (x : Cocycle K L n) (y : Cocycle L M m) :
105
+ fullHomStableEquiv K M (n + m) hK hM (CohomologyClass.mk (cocycleProduct x y)) =
106
+ StableHom.comp
107
+ (StableHom.classOf R _ _ (cokernelMap
108
+ (HomologicalComplex.extendMap (shiftedCocycleHom y n) negIndexEmbedding) 0))
109
+ (fullHomStableEquiv K L n hK hL (CohomologyClass.mk x)) := by
110
+ rw [fullHomStableEquiv_mk, fullHomStableEquiv_mk, StableHom.comp_classOf]
111
+ unfold cocycleComparisonMap
112
+ rw [cocycleHom_product, HomologicalComplex.extendMap_comp, cokernelMap_comp]
113
+
114
+ end ArExplicit.CompleteComparison
115
+
116
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomShift.lean ADDED
@@ -0,0 +1,102 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomLinear
2
+
3
+ namespace OAI
4
+
5
+ open CategoryTheory
6
+ open CochainComplex CochainComplex.HomComplex
7
+
8
+ namespace ArExplicit.CompleteComparison
9
+
10
+ universe u
11
+
12
+ variable (k : Type u) [CommRing k]
13
+ variable {C : Type*} [Category* C] [Preadditive C] [Linear k C]
14
+ variable (K L : CochainComplex C ℤ) (n a n' : ℤ)
15
+
16
+ noncomputable def rightShiftCocycleLinearEquiv (hn : n' + a = n) :
17
+ Cocycle K L n ≃ₗ[k] Cocycle K (L⟦a⟧) n' :=
18
+ { Cocycle.rightShiftAddEquiv n a n' hn with
19
+ map_smul' := by
20
+ intro c x
21
+ apply Subtype.ext
22
+ exact Cochain.rightShift_smul x.val a n' hn c }
23
+
24
+ variable {k K L n a n'}
25
+
26
+ theorem rightShift_boundary (hn : n' + a = n) (x : Cocycle K L n)
27
+ (hx : x ∈ coboundaries K L n) : x.rightShift a n' hn ∈ coboundaries K (L⟦a⟧) n' := by
28
+ obtain ⟨m, hm, y, hy⟩ := hx
29
+ have hm' : n' - 1 + a = m := by omega
30
+ refine ⟨n' - 1, by omega, a.negOnePow • y.rightShift a (n' - 1) hm', ?_⟩
31
+ rw [δ_units_smul, Cochain.δ_rightShift y a (n' - 1) n' hm' n hn, hy]
32
+ simp only [smul_smul, Int.units_mul_self, one_smul]
33
+ rfl
34
+
35
+ theorem rightUnshift_boundary (hn : n' + a = n) (x : Cocycle K (L⟦a⟧) n')
36
+ (hx : x ∈ coboundaries K (L⟦a⟧) n') : x.rightUnshift n hn ∈ coboundaries K L n := by
37
+ obtain ⟨m', hm', y, hy⟩ := hx
38
+ have hm : m' + a = n - 1 := by omega
39
+ refine ⟨n - 1, by omega, a.negOnePow • y.rightUnshift (n - 1) hm, ?_⟩
40
+ rw [δ_units_smul, Cochain.δ_rightUnshift y (n - 1) hm n n' hn, hy]
41
+ simp only [smul_smul, Int.units_mul_self, one_smul]
42
+ rfl
43
+
44
+ variable (k K L n a n')
45
+
46
+ noncomputable def rightShiftCohomologyEquiv (hn : n' + a = n) :
47
+ CohomologyClass K L n ≃ₗ[k] CohomologyClass K (L⟦a⟧) n' :=
48
+ Submodule.Quotient.equiv (fullHomCoboundaries k K L n)
49
+ (fullHomCoboundaries k K (L⟦a⟧) n') (rightShiftCocycleLinearEquiv k K L n a n' hn) (by
50
+ ext y
51
+ constructor
52
+ · rintro ⟨x, hx, rfl⟩
53
+ exact rightShift_boundary hn x hx
54
+ · intro hy
55
+ let E := rightShiftCocycleLinearEquiv k K L n a n' hn
56
+ refine ⟨E.symm y, rightUnshift_boundary hn y hy, E.apply_symm_apply y⟩)
57
+
58
+ noncomputable def leftShiftCocycleLinearEquiv (hn : n + a = n') :
59
+ Cocycle K L n ≃ₗ[k] Cocycle (K⟦a⟧) L n' :=
60
+ { Cocycle.leftShiftAddEquiv n a n' hn with
61
+ map_smul' := by
62
+ intro c x
63
+ apply Subtype.ext
64
+ exact Cochain.leftShift_smul x.val a n' hn c }
65
+
66
+ variable {k K L n a n'}
67
+
68
+ theorem leftShift_boundary (hn : n + a = n') (x : Cocycle K L n)
69
+ (hx : x ∈ coboundaries K L n) : x.leftShift a n' hn ∈ coboundaries (K⟦a⟧) L n' := by
70
+ obtain ⟨m, hm, y, hy⟩ := hx
71
+ have hm' : m + a = n' - 1 := by omega
72
+ refine ⟨n' - 1, by omega, a.negOnePow • y.leftShift a (n' - 1) hm', ?_⟩
73
+ rw [δ_units_smul, Cochain.δ_leftShift y a (n' - 1) n' hm' n hn, hy]
74
+ simp only [smul_smul, Int.units_mul_self, one_smul]
75
+ rfl
76
+
77
+ theorem leftUnshift_boundary (hn : n + a = n') (x : Cocycle (K⟦a⟧) L n')
78
+ (hx : x ∈ coboundaries (K⟦a⟧) L n') : x.leftUnshift n hn ∈ coboundaries K L n := by
79
+ obtain ⟨m', hm', y, hy⟩ := hx
80
+ have hm : n - 1 + a = m' := by omega
81
+ refine ⟨n - 1, by omega, a.negOnePow • y.leftUnshift (n - 1) hm, ?_⟩
82
+ rw [δ_units_smul, Cochain.δ_leftUnshift y (n - 1) hm n n' hn, hy]
83
+ simp only [smul_smul, Int.units_mul_self, one_smul]
84
+ rfl
85
+
86
+ variable (k K L n a n')
87
+
88
+ noncomputable def leftShiftCohomologyEquiv (hn : n + a = n') :
89
+ CohomologyClass K L n ≃ₗ[k] CohomologyClass (K⟦a⟧) L n' :=
90
+ Submodule.Quotient.equiv (fullHomCoboundaries k K L n)
91
+ (fullHomCoboundaries k (K⟦a⟧) L n') (leftShiftCocycleLinearEquiv k K L n a n' hn) (by
92
+ ext y
93
+ constructor
94
+ · rintro ⟨x, hx, rfl⟩
95
+ exact leftShift_boundary hn x hx
96
+ · intro hy
97
+ let E := leftShiftCocycleLinearEquiv k K L n a n' hn
98
+ refine ⟨E.symm y, leftUnshift_boundary hn y hy, E.apply_symm_apply y⟩)
99
+
100
+ end ArExplicit.CompleteComparison
101
+
102
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomShiftedHomotopy.lean ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.Homology.TriangleHomExact
2
+
3
+ namespace OAI
4
+
5
+ noncomputable section
6
+ namespace ArExplicit
7
+ open CategoryTheory
8
+ open CochainComplex CochainComplex.HomComplex
9
+ universe u v w
10
+ variable (k : Type u) [CommRing k]
11
+ variable {C : Type w} [Category.{v} C] [Preadditive C] [Linear k C]
12
+ variable (K L : CochainComplex C ℤ) (n : ℤ)
13
+
14
+ def fullHomShiftedHomotopyEquiv : CohomologyClass K L n ≃ₗ[k]
15
+ ((HomotopyCategory.quotient C _).obj K ⟶ ((HomotopyCategory.quotient C _).obj L)⟦n⟧) :=
16
+ (fullHomHomotopyLinearEquiv k K L n).trans
17
+ (Linear.homCongr k (Iso.refl _)
18
+ (((HomotopyCategory.quotient C _).commShiftIso n).app L))
19
+
20
+ @[simp]
21
+ theorem fullHomShiftedHomotopyEquiv_mk (x : Cocycle K L n) :
22
+ fullHomShiftedHomotopyEquiv k K L n (CohomologyClass.mk x) =
23
+ (HomotopyCategory.quotient C _).map (Cocycle.equivHomShift.symm x) ≫
24
+ (((HomotopyCategory.quotient C _).commShiftIso n).app L).hom := by
25
+ simp only [fullHomShiftedHomotopyEquiv, LinearEquiv.trans_apply,
26
+ Linear.homCongr_apply, Iso.refl_inv, Category.id_comp]
27
+ rfl
28
+
29
+ end ArExplicit
30
+
31
+ end
32
+
33
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomShiftedIdentity.lean ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomShiftedProducts
2
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomDegreeProducts
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+ namespace ArExplicit
8
+ open CategoryTheory
9
+ open CochainComplex CochainComplex.HomComplex CompleteComparison
10
+ universe u v w
11
+ variable (k : Type u) [CommRing k]
12
+ variable {C : Type w} [Category.{v} C] [Preadditive C] [Linear k C]
13
+
14
+ theorem fullHomShiftedHomotopyEquiv_identity (K : CochainComplex C ℤ) :
15
+ fullHomShiftedHomotopyEquiv k K K 0 (fullHomIdentity K) =
16
+ (shiftFunctorZero (HomotopyCategory C (ComplexShape.up ℤ)) ℤ).inv.app
17
+ ((HomotopyCategory.quotient C _).obj K) := by
18
+ have h : Cocycle.equivHomShift.symm (Cocycle.ofHom (𝟙 K)) =
19
+ ShiftedHom.mk₀ (0 : ℤ) rfl (𝟙 K) := by
20
+ apply HomologicalComplex.Hom.ext
21
+ funext i
22
+ simp only [cocycleHom_component, Cocycle.ofHom_coe]
23
+ simp only [ShiftedHom.mk₀, CategoryTheory.shiftFunctorZero',
24
+ eqToIso_refl, Iso.trans_inv, Iso.refl_inv,
25
+ Category.id_comp, CochainComplex.shiftFunctorZero_inv_app_f, Category.comp_id]
26
+ change (Cochain.ofHom (𝟙 K)).v i (i+0) rfl =
27
+ (K.XIsoOfEq (show i=i+0 by omega)).hom
28
+ simpa only [Cochain.ofHom_v, HomologicalComplex.id_f, Category.id_comp] using
29
+ (Cochain.v_comp_XIsoOfEq_hom (Cochain.ofHom (𝟙 K)) i i (i+0) (add_zero i) (by omega)).symm
30
+ rw [fullHomIdentity, fullHomShiftedHomotopyEquiv_mk, h]
31
+ change (ShiftedHom.mk₀ (0 : ℤ) rfl (𝟙 K)).map (HomotopyCategory.quotient C _) = _
32
+ rw [ShiftedHom.map_mk₀, CategoryTheory.Functor.map_id]
33
+ simp [ShiftedHom.mk₀, CategoryTheory.shiftFunctorZero']
34
+
35
+ end ArExplicit
36
+
37
+ end
38
+
39
+ end OAI
lean/OAI/Algebra/AuslanderReiten/HomComplex/FullHomShiftedMaps.lean ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomShiftedHomotopy
2
+ import OAI.Algebra.AuslanderReiten.HomComplex.FullHomComposition
3
+
4
+ namespace OAI
5
+
6
+ noncomputable section
7
+ namespace ArExplicit
8
+ open CategoryTheory
9
+ open CochainComplex CochainComplex.HomComplex
10
+ universe u v w
11
+ variable (k : Type u) [CommRing k]
12
+ variable {C : Type w} [Category.{v} C] [Preadditive C] [Linear k C]
13
+ variable {K L M : CochainComplex C ℤ} (n : ℤ)
14
+
15
+ theorem fullHomShiftedHomotopyEquiv_postcomp (f : L ⟶ M) (x : CohomologyClass K L n) :
16
+ fullHomShiftedHomotopyEquiv k K M n (fullHomPostcomp f n x) =
17
+ fullHomShiftedHomotopyEquiv k K L n x ≫
18
+ ((HomotopyCategory.quotient C _).map f)⟦n⟧' := by
19
+ obtain ⟨x, rfl⟩ := CohomologyClass.mk_surjective x
20
+ rw [fullHomPostcomp_mk, fullHomShiftedHomotopyEquiv_mk,
21
+ fullHomShiftedHomotopyEquiv_mk, Cocycle.equivHomShift_symm_postcomp,
22
+ Functor.map_comp, Category.assoc]
23
+ simpa only [Category.assoc, Iso.app_hom] using congrArg
24
+ (fun g => (HomotopyCategory.quotient C _).map (Cocycle.equivHomShift.symm x) ≫ g)
25
+ ((HomotopyCategory.quotient C _).commShiftIso_hom_naturality f n)
26
+
27
+ theorem fullHomShiftedHomotopyEquiv_precomp (f : K ⟶ L) (x : CohomologyClass L M n) :
28
+ fullHomShiftedHomotopyEquiv k K M n (fullHomPrecomp f n x) =
29
+ (HomotopyCategory.quotient C _).map f ≫ fullHomShiftedHomotopyEquiv k L M n x := by
30
+ obtain ⟨x, rfl⟩ := CohomologyClass.mk_surjective x
31
+ rw [fullHomPrecomp_mk, fullHomShiftedHomotopyEquiv_mk,
32
+ fullHomShiftedHomotopyEquiv_mk, Cocycle.equivHomShift_symm_precomp,
33
+ Functor.map_comp, Category.assoc]
34
+ end ArExplicit
35
+
36
+ end
37
+
38
+ end OAI