Download data/lean/OAI/Algebra/Finitistic/Ordinary/OrdinaryFiniteTotal.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.44 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/Finitistic/Ordinary/OrdinaryFiniteTotal.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Algebra/Finitistic/Ordinary/OrdinaryFiniteTotal.lean
-
curl -L -o OrdinaryFiniteTotal.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Algebra/Finitistic/Ordinary/OrdinaryFiniteTotal.lean
2.44 kB
| import OAI.Algebra.Finitistic.Ordinary.OrdinaryFiniteColumnComplex | |
| namespace OAI | |
| noncomputable section | |
| open CategoryTheory | |
| namespace LittleFinitistic.FiniteColumnComplex | |
| universe u | |
| variable {R : Type u} [Ring R] {l : β} | |
| variable (K : Fin l β CochainComplex (ModuleCat.{u} R) β€) | |
| /-- The vertical differential on the finite direct sum of the columns. -/ | |
| def diagonal (n : β€) : term K n ββ[R] term K (n+1) := | |
| LinearMap.pi (fun i => ((K i).d n (n+1)).hom.comp (LinearMap.proj i)) | |
| @[simp] theorem diagonal_apply (n : β€) (z : term K n) (i : Fin l) : | |
| diagonal K n z i = ((K i).d n (n+1)).hom (z i) := rfl | |
| theorem diagonal_square (n : β€) : (diagonal K (n+1)).comp (diagonal K n) = 0 := by | |
| apply LinearMap.ext | |
| intro z | |
| funext i | |
| exact congrArg (fun f => f.hom (z i)) ((K i).d_comp_d n (n+1) ((n+1)+1)) | |
| /-- A horizontal differential on signed columns, with its actual square and mixed relation. -/ | |
| structure Horizontal where | |
| d : β n : β€, term K n ββ[R] term K (n+1) | |
| square : β n, (d (n+1)).comp (d n) = 0 | |
| mixed : β n, (diagonal K (n+1)).comp (d n) + (d (n+1)).comp (diagonal K n) = 0 | |
| strictUpper : β (n : β€) (i : Fin l) (z : term K n), | |
| (β j : Fin l, j.val < i.val β z j = 0) β d n z i = 0 | |
| variable (H : Horizontal K) | |
| /-- The full differential is the sum of the signed vertical and horizontal differentials. -/ | |
| def totalDifferential : Differential K where | |
| d n := diagonal K n + H.d n | |
| square n := by | |
| apply LinearMap.ext | |
| intro z | |
| funext i | |
| have hv := congrArg (fun f : term K n ββ[R] term K ((n+1)+1) => f z i) (diagonal_square K n) | |
| have hh := congrArg (fun f : term K n ββ[R] term K ((n+1)+1) => f z i) (H.square n) | |
| have hm := congrArg (fun f : term K n ββ[R] term K ((n+1)+1) => f z i) (H.mixed n) | |
| simp only [LinearMap.comp_apply,LinearMap.add_apply,LinearMap.zero_apply,Pi.add_apply,Pi.zero_apply] at hv hh hm β’ | |
| simp only [map_add,Pi.add_apply] | |
| simp only [diagonal_apply] at hv hh hm β’ | |
| rw [hv,hh] | |
| simpa only [zero_add,add_zero] using hm | |
| triangular n i z hz := by | |
| change diagonal K n z i + H.d n z i = _ | |
| rw [H.strictUpper n i z hz,add_zero] | |
| rfl | |
| def total : CochainComplex (ModuleCat.{u} R) β€ := complex K (totalDifferential K H) | |
| theorem total_acyclic (hK : β i, (K i).Acyclic) : (total K H).Acyclic := | |
| acyclic K (totalDifferential K H) hK | |
| end LittleFinitistic.FiniteColumnComplex | |
| end | |
| end OAI | |