Download data/lean/OAI/NumberTheory/PadicHodge/GeometricComparison/First/TwoComplex.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.47 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/PadicHodge/GeometricComparison/First/TwoComplex.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/PadicHodge/GeometricComparison/First/TwoComplex.lean
-
curl -L -o TwoComplex.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/PadicHodge/GeometricComparison/First/TwoComplex.lean
2.47 kB
| import Mathlib.Algebra.Homology.Single | |
| import Mathlib.Algebra.Homology.Linear | |
| /-! # Two Complex -/ | |
| namespace OAI.NumberTheory.PadicHodge.GeometricComparison.First.TwoComplex.FirstTwoComplex | |
| noncomputable section | |
| /-! The quotient of a nonnegative cochain complex retaining only its first two terms. -/ | |
| open _root_.CategoryTheory _root_.CategoryTheory.Limits ZeroObject | |
| universe u v | |
| variable {C : Type u} [Category.{v} C] [Preadditive C] [HasZeroObject C] | |
| def term (K : CochainComplex C β) : β β C | |
| | 0 => K.X 0 | |
| | 1 => K.X 1 | |
| | _ + 2 => 0 | |
| def differential (K : CochainComplex C β) : β n, term K n βΆ term K (n + 1) | |
| | 0 => K.d 0 1 | |
| | _ + 1 => 0 | |
| def complex (K : CochainComplex C β) : CochainComplex C β := | |
| CochainComplex.of (term K) (differential K) (by | |
| intro n | |
| cases n with | |
| | zero => exact comp_zero | |
| | succ n => exact zero_comp) | |
| def projectionTerm (K : CochainComplex C β) : β n, K.X n βΆ term K n | |
| | 0 => π _ | |
| | 1 => π _ | |
| | _ + 2 => 0 | |
| def projection (K : CochainComplex C β) : K βΆ complex K where | |
| f n := projectionTerm K n | |
| comm' n m hnm := by | |
| change n + 1 = m at hnm | |
| subst m | |
| rw [show (complex K).d n (n + 1) = differential K n from CochainComplex.of_d _ _ n] | |
| cases n with | |
| | zero => exact (Category.id_comp _).trans (Category.comp_id _).symm | |
| | succ n => exact (isZero_zero C).eq_of_tgt _ _ | |
| def mapTerm {K L : CochainComplex C β} (f : K βΆ L) : β n, term K n βΆ term L n | |
| | 0 => f.f 0 | |
| | 1 => f.f 1 | |
| | _ + 2 => 0 | |
| def map {K L : CochainComplex C β} (f : K βΆ L) : complex K βΆ complex L where | |
| f n := mapTerm f n | |
| comm' n m hnm := by | |
| change n + 1 = m at hnm | |
| subst m | |
| rw [show (complex K).d n (n + 1) = differential K n from CochainComplex.of_d _ _ n, | |
| show (complex L).d n (n + 1) = differential L n from CochainComplex.of_d _ _ n] | |
| cases n with | |
| | zero => exact f.comm 0 1 | |
| | succ n => exact (isZero_zero C).eq_of_tgt _ _ | |
| theorem projection_naturality {K L : CochainComplex C β} (f : K βΆ L) : | |
| projection K β« map f = f β« projection L := by | |
| apply HomologicalComplex.Hom.ext | |
| funext n | |
| cases n with | |
| | zero => exact (Category.id_comp _).trans (Category.comp_id _).symm | |
| | succ n => | |
| cases n with | |
| | zero => exact (Category.id_comp _).trans (Category.comp_id _).symm | |
| | succ n => exact zero_comp.trans comp_zero.symm | |
| end | |
| end OAI.NumberTheory.PadicHodge.GeometricComparison.First.TwoComplex.FirstTwoComplex | |