Download data/lean/OAI/Algebra/Finitistic/Bar/CountRetracts.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.67 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/Finitistic/Bar/CountRetracts.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Algebra/Finitistic/Bar/CountRetracts.lean
-
curl -L -o CountRetracts.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/Finitistic/Bar/CountRetracts.lean
4.67 kB
| import OAI.Algebra.Finitistic.Bar.DerivedTensorBarSplitting | |
| namespace OAI | |
| open CategoryTheory CategoryTheory.Limits HomologicalComplex TrivSqZeroExt | |
| open scoped DirectSum | |
| noncomputable section | |
| namespace DerivedBar | |
| universe u | |
| variable (D : Type u) [Ring D] | |
| /-- Projection from the original chain direct sum to its r-th complex. -/ | |
| def directSumComplexProjection (S : β β ChainComplex (ModuleCat.{u} D) β) (r : β) : | |
| directSumComplex S βΆ S r where | |
| f n := ModuleCat.ofHom (DirectSum.component D β (fun s => (S s).X n) r) | |
| comm' i j hij := by | |
| change j+1=i at hij | |
| subst i | |
| apply ModuleCat.hom_ext | |
| apply LinearMap.ext | |
| intro v | |
| simp only [directSumComplex, ChainComplex.of_d, ModuleCat.hom_comp, | |
| ModuleCat.hom_ofHom] | |
| rfl | |
| @[simp] theorem directSumComplex_inclusion_projection | |
| (S : β β ChainComplex (ModuleCat.{u} D) β) (r : β) : | |
| directSumComplexInclusion D S r β« directSumComplexProjection D S r = π (S r) := by | |
| ext degree value | |
| change DirectSum.component D β (fun summand => (S summand).X degree) r | |
| (DirectSum.lof D β (fun summand => (S summand).X degree) r value) = value | |
| exact DirectSum.component.lof_self D (M := fun summand => (S summand).X degree) r value | |
| end DerivedBar | |
| namespace DerivedBar.ParityBridge | |
| private theorem mapped_retract {C E : Type*} [Category C] [Category E] | |
| (F : C β₯€ E) {V W : C} {U T : E} (e : U β F.obj V) (f : T β F.obj W) | |
| (i : V βΆ W) (p : W βΆ V) (h : i β« p = π V) : | |
| (e.hom β« F.map i β« f.inv) β« (f.hom β« F.map p β« e.inv) = π U := by | |
| simp only [Category.assoc, Iso.inv_hom_id_assoc] | |
| rw [β Functor.map_comp_assoc, h, CategoryTheory.Functor.map_id, Category.id_comp, | |
| Iso.hom_inv_id] | |
| universe u | |
| variable (k D X : Type u) [Field k] [Ring D] [Algebra k D] | |
| [AddCommGroup X] [Module k X] [Module D X] [Module Dα΅α΅α΅ X] | |
| [SMulCommClass D Dα΅α΅α΅ X] [IsScalarTower k D X] [IsScalarTower k Dα΅α΅α΅ X] | |
| local instance countRetractsScalarModule (V : ModuleCat D) : Module k V := | |
| BimoduleTensor.scalarModule k D V | |
| local instance countRetractsScalarTower (V : ModuleCat D) : IsScalarTower k D V := | |
| IsScalarTower.of_algebraMap_smul (fun _ _ => rfl) | |
| variable (N : ModuleCat D) | |
| local notation "A" => TrivSqZeroExt D X | |
| local instance countRetractsInflatedModule : Module A N := inflatedModule D X N | |
| local instance countRetractsInflatedScalarTower : IsScalarTower k A N := | |
| IsScalarTower.of_algebraMap_smul | |
| (fun a v => IsScalarTower.algebraMap_smul D a v) | |
| local instance countRetractsHasDerivedCategory : HasDerivedCategory.{u+1} (ModuleCat.{u} D) := | |
| HasDerivedCategory.standard (ModuleCat.{u} D) | |
| local notation "S" => SquareZero.twoSidedWeightComplex k D X N (inflated_ideal_zero D X N) | |
| local notation "T" => tensorBarComplex k A D N (fstHom k D X) | |
| /-- The original count subcomplex included into the actual balanced tensor bar. -/ | |
| def countTensorBarInclusion (r : β) : S r βΆ T := | |
| directSumComplexInclusion D S r β« | |
| (SquareZero.tensorCountSplitting k D X N (inflated_ideal_zero D X N)).inv | |
| def countTensorBarProjection (r : β) : T βΆ S r := | |
| (SquareZero.tensorCountSplitting k D X N (inflated_ideal_zero D X N)).hom β« | |
| directSumComplexProjection D S r | |
| @[simp] theorem countTensorBar_retract (r : β) : | |
| countTensorBarInclusion k D X N r β« countTensorBarProjection k D X N r = π (S r) := by | |
| simp only [countTensorBarInclusion, countTensorBarProjection, Category.assoc, | |
| Iso.inv_hom_id_assoc, directSumComplex_inclusion_projection] | |
| /-- The genuine shifted iterate included into actual left-derived base change. -/ | |
| def shiftedIterateInclusion (r : β) : | |
| (shiftedIterateDiagram k D X N).obj β¨rβ© βΆ | |
| (derivedBaseChange D (fstHom k D X)).obj (ModuleCat.of A N) := | |
| (derivedIterateWeightShiftIso k D X N r).hom β« | |
| (integerQ D).map (countTensorBarInclusion k D X N r) β« | |
| (derivedBaseChangeBarIso D (fstHom k D X) N).inv | |
| def shiftedIterateProjection (r : β) : | |
| (derivedBaseChange D (fstHom k D X)).obj (ModuleCat.of A N) βΆ | |
| (shiftedIterateDiagram k D X N).obj β¨rβ© := | |
| (derivedBaseChangeBarIso D (fstHom k D X) N).hom β« | |
| (integerQ D).map (countTensorBarProjection k D X N r) β« | |
| (derivedIterateWeightShiftIso k D X N r).inv | |
| @[simp] theorem shiftedIterate_retract (r : β) : | |
| shiftedIterateInclusion k D X N r β« shiftedIterateProjection k D X N r = | |
| π ((shiftedIterateDiagram k D X N).obj β¨rβ©) := by | |
| exact mapped_retract (integerQ D) (derivedIterateWeightShiftIso k D X N r) | |
| (derivedBaseChangeBarIso D (fstHom k D X) N) _ _ (countTensorBar_retract k D X N r) | |
| end DerivedBar.ParityBridge | |
| end | |
| end OAI | |