Download lean/OAI/Algebra/AuslanderReiten/Resolutions/NatResolutionCubic.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.56 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Resolutions/NatResolutionCubic.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Algebra/AuslanderReiten/Resolutions/NatResolutionCubic.lean
-
curl -L -o NatResolutionCubic.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Resolutions/NatResolutionCubic.lean
2.56 kB
Lean 4 · 4
declarations statementsfull
def natCubicCochain : Cochain P.cochainComplex P.cochainComplex 3 := body · 5 lines
Cochain.mk (fun p q hpq => if hq : q ≤ 0 then
let m := (-q).toNat
(P.cochainComplexXIso p (m+3) (by dsimp [m]; omega)).hom ≫ f m ≫
(P.cochainComplexXIso q m (by dsimp [m]; omega)).inv
else 0)theorem natCubicCochain_v (m : ℕ) :
(natCubicCochain P f).v (-((m+3 : ℕ) : ℤ)) (-(m : ℤ)) (by omega) =
(P.cochainComplexXIso (-((m+3 : ℕ) : ℤ)) (m+3) rfl).hom ≫ f m ≫
(P.cochainComplexXIso (-(m : ℤ)) m rfl).inv := by proof · 1 line
cases m <;> rfl
theorem natCubicCochain_closed : δ 3 4 (natCubicCochain P f) = 0 := by proof · 20 lines
apply Cochain.ext
intro p q hpq
by_cases hq : q ≤ 0
· obtain ⟨m,rfl⟩ := Int.exists_eq_neg_ofNat hq
have hp : p = -((m+4 : ℕ) : ℤ) := by omega
subst p
rw [δ_v 3 4 rfl _ _ _ hpq (-((m+1 : ℕ) : ℤ)) (-((m+3 : ℕ) : ℤ)) (by omega) (by omega)]
rw [natCubicCochain_v P f (m+1), natCubicCochain_v P f m]
rw [P.cochainComplex_d _ _ (m+1) m rfl rfl,
P.cochainComplex_d _ _ (m+4) (m+3) rfl rfl]
have hfour : (4 : ℤ).negOnePow = 1 := by decide
simp only [hfour, one_smul, Category.assoc, Iso.inv_hom_id_assoc,
Cochain.zero_v]
rw [← Category.assoc (f (m+1)), hf m]
let z := (P.cochainComplexXIso (-((m+4 : ℕ) : ℤ)) (m+4) rfl).hom ≫
P.complex.d (m+4) (m+3) ≫ f m ≫
(P.cochainComplexXIso (-(m : ℤ)) m rfl).inv
change z + z = 0
rw [← two_smul k z, show (2 : k) = 0 from CharP.cast_eq_zero k 2, zero_smul]
· exact (P.cochainComplex.isZero_of_isStrictlyLE 0 q (by omega)).eq_of_tgt _ _def natCubicCocycle : Cocycle P.cochainComplex P.cochainComplex 3 := body · 1 line
Cocycle.mk (natCubicCochain P f) 4 rfl (natCubicCochain_closed (k := k) P f hf)Outline