Download data/lean/OAI/Algebra/Finitistic/Rectification/SourceFiltration.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.02 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/Finitistic/Rectification/SourceFiltration.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Algebra/Finitistic/Rectification/SourceFiltration.lean
-
curl -L -o SourceFiltration.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/Finitistic/Rectification/SourceFiltration.lean
6.02 kB
| import OAI.Algebra.Finitistic.Rectification.InducedDiagram | |
| import OAI.Algebra.Finitistic.Rectification.TotalFunctorial | |
| namespace OAI | |
| open CategoryTheory CategoryTheory.Limits HomologicalComplex CochainComplex | |
| open LittleFinitistic.RectificationTotal | |
| open scoped TensorProduct ModuleCat.Algebra | |
| noncomputable section | |
| namespace ExternalTensor.Section4.SourceFiltration | |
| universe u | |
| variable {k B : Type u} [Field k] [Ring B] [Algebra k B] | |
| variable {A J R : Type} [Fintype A] [Fintype J] [Fintype R] | |
| variable (t : AssemblyData (C := BiComplex k B) (A := A) (J := J) (R := R)) | |
| /-- Source at least one: the actual D1 and D2 vertex terms and D1 arrow terms. -/ | |
| abbrev F1β := t.Vβ β t.Vβ | |
| abbrev F1β := β¨ t.V | |
| def Z : BiComplex k B where | |
| X _ := ModuleCat.of _ PUnit | |
| d _ _ := 0 | |
| shape _ _ _ := rfl | |
| d_comp_d' _ _ _ _ _ := by simp | |
| def p1 : F1β t βΆ F1β t := | |
| biproduct.desc fun b => t.pbβ b β« biprod.inl - t.pbβ b β« biprod.inr | |
| def h1 : Homotopy ((0 : Z βΆ F1β t) β« p1 t) 0 where | |
| hom _ _ := 0 | |
| zero _ _ _ := rfl | |
| comm _ := by simp [dNext, prevD] | |
| /-- Source zero quotient: retain precisely the path-multiplication terms. -/ | |
| def p0 : (β¨ t.U) βΆ t.Vβ := biproduct.desc t.paβ | |
| def q0 : t.Lβ βΆ (β¨ t.U) := | |
| biproduct.desc fun r => β a, β b, t.qa r a b β« biproduct.ΞΉ t.U a | |
| theorem q0_p0 : q0 t β« p0 t = 0 := by | |
| apply biproduct.hom_ext' | |
| intro r | |
| simpa [q0, p0, Preadditive.sum_comp] using t.first r | |
| def h0 : Homotopy (q0 t β« p0 t) 0 where | |
| hom _ _ := 0 | |
| zero _ _ _ := rfl | |
| comm n := by rw [q0_p0]; simp [dNext, prevD] | |
| omit [Fintype R] in | |
| @[reassoc] theorem in_p : (biprod.inr : F1β t βΆ t.Lβ) β« t.p = | |
| p1 t β« (biprod.inr : F1β t βΆ t.Lβ) := by | |
| apply biproduct.hom_ext' | |
| intro b | |
| simp [AssemblyData.p, p1, AssemblyData.inβ, AssemblyData.inβ, | |
| Preadditive.sub_comp] | |
| omit [Fintype R] in | |
| @[reassoc] theorem p_out : t.p β« (biprod.fst : t.Lβ βΆ t.Vβ) = | |
| (biprod.fst : t.Lβ βΆ β¨ t.U) β« p0 t := by | |
| apply biprod.hom_ext' <;> apply biproduct.hom_ext' <;> intro a <;> | |
| simp [AssemblyData.p, p0, AssemblyData.inβ, AssemblyData.inβ, | |
| AssemblyData.inβ, Preadditive.sub_comp] | |
| @[reassoc] theorem q_out : t.q β« (biprod.fst : t.Lβ βΆ β¨ t.U) = q0 t := by | |
| apply biproduct.hom_ext' | |
| intro r | |
| simp [AssemblyData.q, q0, Preadditive.sum_comp, Preadditive.add_comp] | |
| variable (h : Homotopy (t.q β« t.p) 0) | |
| /-- The original summand inclusion, as a triple preserving the specified homotopy. -/ | |
| def include1 : MapData (p1 t) 0 (h1 t) t.p t.q h where | |
| fβ := biprod.inr | |
| fβ := biprod.inr | |
| fβ := 0 | |
| commP := in_p t | |
| commQ := by simp | |
| commH i j := by simp [h1] | |
| /-- Projection onto the actual source-zero quotient. The condition only records | |
| that the supplied homotopy increases source index; it is proved for Section4 inputs below. -/ | |
| def quotient0 (hh : β i j, h.hom i j β« (biprod.fst : t.Lβ βΆ t.Vβ).f j = 0) : | |
| MapData t.p t.q h (p0 t) (q0 t) (h0 t) where | |
| fβ := biprod.fst | |
| fβ := biprod.fst | |
| fβ := π _ | |
| commP := (p_out t).symm | |
| commQ := by simpa using (q_out t).symm | |
| commH i j := by simpa [h0] using (hh i j).symm | |
| /-- The second filtration step and its source-one quotient. -/ | |
| def p2 : Z (k := k) (B := B) βΆ t.Vβ := 0 | |
| def h2 : Homotopy ((0 : Z βΆ Z) β« p2 t) 0 where | |
| hom _ _ := 0 | |
| zero _ _ _ := rfl | |
| comm _ := by simp [p2, dNext, prevD] | |
| def pGrade1 : F1β t βΆ t.Vβ := biproduct.desc t.pbβ | |
| def hGrade1 : Homotopy ((0 : Z βΆ F1β t) β« pGrade1 t) 0 where | |
| hom _ _ := 0 | |
| zero _ _ _ := rfl | |
| comm _ := by simp [dNext, prevD] | |
| def include2 : MapData (p2 t) 0 (h2 t) (p1 t) 0 (h1 t) where | |
| fβ := biprod.inr | |
| fβ := 0 | |
| fβ := π _ | |
| commP := by simp [p2] | |
| commQ := by simp | |
| commH i j := by simp [h1, h2] | |
| def quotient1 : MapData (p1 t) 0 (h1 t) (pGrade1 t) 0 (hGrade1 t) where | |
| fβ := biprod.fst | |
| fβ := π _ | |
| fβ := π _ | |
| commP := by | |
| rw [Category.id_comp] | |
| apply biproduct.hom_ext' | |
| intro b | |
| simp [p1, pGrade1, Preadditive.sub_comp] | |
| commQ := by simp | |
| commH i j := by simp [h1, hGrade1] | |
| /-- Changing the endpoint proofs does not change a homotopy's components. -/ | |
| theorem cast_hom {X Y : BiComplex k B} {a b a' b' : X βΆ Y} | |
| (ha : a = a') (hb : b = b') (e : Homotopy a b = Homotopy a' b') | |
| (v : Homotopy a b) : (cast e v).hom = v.hom := by | |
| subst a' | |
| subst b' | |
| rfl | |
| variable (s : Quadratic k B (A := A) (J := J) (R := R)) | |
| variable (Dβ Dβ Dβ : RightComplex B) | |
| variable (f : A β (Dβ βΆ Dβ)) (g : J β (Dβ βΆ Dβ)) | |
| variable (H : β r, Homotopy (relationMap s Dβ Dβ Dβ f g r) 0) | |
| theorem induced_h_out (i j : β€) : | |
| (nullHomotopy s Dβ Dβ Dβ f g H).hom i j β« | |
| (biprod.fst : L0Prime s Dβ Dβ Dβ f g βΆ | |
| (inducedData s Dβ Dβ Dβ f g).Vβ).f j = 0 := by | |
| classical | |
| unfold nullHomotopy | |
| simp only [eq_mpr_eq_cast, eq_mp_eq_cast] | |
| rw [cast_hom (by simp [AssemblyData.composite]) (by simp)] | |
| rw [cast_hom (ha := ?_) (hb := ?_)] | |
| rotate_left | |
| Β· simp | |
| Β· simp | |
| change ((-1 : k) β’ h s Dβ Dβ Dβ f g H i j) β« _ = 0 | |
| rw [Linear.smul_comp] | |
| suffices h s Dβ Dβ Dβ f g H i j β« | |
| (biprod.fst : L0Prime s Dβ Dβ Dβ f g βΆ | |
| (inducedData s Dβ Dβ Dβ f g).Vβ).f j = 0 by rw [this, smul_zero] | |
| rw [h_formula, Preadditive.sum_comp] | |
| apply Finset.sum_eq_zero | |
| intro r _ | |
| dsimp only [AssemblyData.inβ] | |
| erw [Category.assoc, Category.assoc, β comp_f, Category.assoc, biprod.inr_fst, | |
| CategoryTheory.Limits.comp_zero] | |
| /-- Actual Section 4 source filtration inclusion; no decomposition is assumed. -/ | |
| abbrev inducedInclude1 := include1 (inducedData s Dβ Dβ Dβ f g) | |
| (nullHomotopy s Dβ Dβ Dβ f g H) | |
| /-- Actual Section 4 source quotient; homotopy compatibility is proved above. -/ | |
| abbrev inducedQuotient0 := quotient0 (inducedData s Dβ Dβ Dβ f g) | |
| (nullHomotopy s Dβ Dβ Dβ f g H) (induced_h_out s Dβ Dβ Dβ f g H) | |
| end ExternalTensor.Section4.SourceFiltration | |
| end | |
| end OAI | |