Download lean/OAI/GroupTheory/SimpleAmenable/Homology/ChainPositiveCokernel.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.03 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/GroupTheory/SimpleAmenable/Homology/ChainPositiveCokernel.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/GroupTheory/SimpleAmenable/Homology/ChainPositiveCokernel.lean
-
curl -L -o ChainPositiveCokernel.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/GroupTheory/SimpleAmenable/Homology/ChainPositiveCokernel.lean
1.03 kB
| import Mathlib | |
| namespace OAI | |
| section | |
| open CategoryTheory Limits HomologicalComplex | |
| namespace ChainComplex | |
| open scoped _root_.ChainComplex | |
| variable {R:Type} [CommRing R] (K:ChainComplex (ModuleCat.{0} R) ℕ) | |
| variable (n:ℕ) (hn:K.d (n+1) n=0) | |
| noncomputable def positiveπ : K.X (n+1) ⟶ K.homology (n+1) := | |
| K.pOpcycles (n+1) ≫ (K.isoHomologyι (n+1) n (by simp) hn).inv | |
| instance : Epi (positiveπ K n hn) := by dsimp only [positiveπ]; infer_instance | |
| @[reassoc (attr:=simp)] lemma d_positiveπ : K.d (n+2) (n+1) ≫ positiveπ K n hn=0 := by | |
| simp [positiveπ] | |
| noncomputable def positiveDesc {V:ModuleCat.{0} R} (f:K.X (n+1) ⟶ V) | |
| (hf:K.d (n+2) (n+1) ≫ f=0) : K.homology (n+1) ⟶ V := | |
| (K.isoHomologyι (n+1) n (by simp) hn).hom ≫ | |
| K.descOpcycles f (n+2) (by simp) hf | |
| @[reassoc (attr:=simp)] lemma positiveπ_desc {V:ModuleCat.{0} R} (f:K.X (n+1) ⟶ V) | |
| (hf:K.d (n+2) (n+1) ≫ f=0) : positiveπ K n hn ≫ positiveDesc K n hn f hf=f := by | |
| simp [positiveπ,positiveDesc] | |
| end ChainComplex | |
| end | |
| end OAI | |