Download lean/OAI/Algebra/AuslanderReiten/Complete/CompleteShiftDual.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 5.54 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Complete/CompleteShiftDual.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Algebra/AuslanderReiten/Complete/CompleteShiftDual.lean
-
curl -L -o CompleteShiftDual.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Algebra/AuslanderReiten/Complete/CompleteShiftDual.lean
5.54 kB
Lean 4 · 12
declarations statementsfull
theorem congr {e : U →ₗ[R] V} {d : V →ₗ[R] W}
(h : HomExactAt e d) (e' : U' →ₗ[R] V') (d' : V' →ₗ[R] W')
(a : U ≃ₗ[R] U') (b : V ≃ₗ[R] V') (c : W ≃ₗ[R] W')
(he : e'.comp a.toLinearMap = b.toLinearMap.comp e)
(hd : d'.comp b.toLinearMap = c.toLinearMap.comp d) : HomExactAt e' d' := by proof · 11 lines
intro f hf
have hfb : (f.comp b.toLinearMap).comp e = 0 := by
rw [LinearMap.comp_assoc, ← he, ← LinearMap.comp_assoc, hf, LinearMap.zero_comp]
obtain ⟨g, hg⟩ := h (f.comp b.toLinearMap) hfb
refine ⟨g.comp c.symm.toLinearMap, ?_⟩
apply LinearMap.ext
intro x'
obtain ⟨x, rfl⟩ := b.surjective x'
change g (c.symm (d' (b x))) = f (b x)
rw [show d' (b x) = c (d x) from DFunLike.congr_fun hd x, c.symm_apply_apply]
exact DFunLike.congr_fun hg xtheorem of_shortComplex_iso {S T : ShortComplex (ModuleCat.{u} R)} (E : S ≅ T)
(h : HomExactAt S.f.hom S.g.hom) : HomExactAt T.f.hom T.g.hom := by proof · 4 lines
apply h.congr T.f.hom T.g.hom (asIso E.hom.τ₁).toLinearEquiv
(asIso E.hom.τ₂).toLinearEquiv (asIso E.hom.τ₃).toLinearEquiv
· exact congrArg (fun f : S.X₁ ⟶ T.X₂ => f.hom) E.hom.comm₁₂
· exact congrArg (fun f : S.X₂ ⟶ T.X₃ => f.hom) E.hom.comm₂₃noncomputable def reverseShortComplexIso
(K : CochainComplex (ModuleCat.{u} R) ℤ) (i j l i' j' l' : ℤ)
(hi : negIndexEmbedding.f i = i') (hj : negIndexEmbedding.f j = j')
(hl : negIndexEmbedding.f l = l') :
(chainOfCochain K).sc' i' j' l' ≅ K.sc' i j l := body · 12 lines
ShortComplex.isoMk (K.extendXIso negIndexEmbedding hi)
(K.extendXIso negIndexEmbedding hj) (K.extendXIso negIndexEmbedding hl)
(by
change (K.extendXIso negIndexEmbedding hi).hom ≫ K.d i j =
(chainOfCochain K).d i' j' ≫ (K.extendXIso negIndexEmbedding hj).hom
rw [K.extend_d_eq negIndexEmbedding hi hj]
simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id])
(by
change (K.extendXIso negIndexEmbedding hj).hom ≫ K.d j l =
(chainOfCochain K).d j' l' ≫ (K.extendXIso negIndexEmbedding hl).hom
rw [K.extend_d_eq negIndexEmbedding hj hl]
simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id])def DualExactCochain (K : CochainComplex (ModuleCat.{u} R) ℤ) : Prop := body · 1 line
∀ i, HomExactAt (K.d (i - 1) i).hom (K.d i (i + 1)).homtheorem of_chain {K : CochainComplex (ModuleCat.{u} R) ℤ}
(hK : TotallyAcyclicComplex (chainOfCochain K)) : DualExactCochain K := by proof · 4 lines
intro i
let E := reverseShortComplexIso K (i - 1) i (i + 1) (-i + 1) (-i) (-i - 1)
(by change -(i - 1) = -i + 1; omega) rfl (by change -(i + 1) = -i - 1; omega)
exact HomExactAt.of_shortComplex_iso E (hK.dualExact (-i))theorem to_chain {K : CochainComplex (ModuleCat.{u} R) ℤ} (hK : DualExactCochain K) :
∀ i, HomExactAt ((chainOfCochain K).d (i + 1) i).hom
((chainOfCochain K).d i (i - 1)).hom := by proof · 5 lines
intro i
let E := reverseShortComplexIso K (-i - 1) (-i) (-i + 1) (i + 1) i (i - 1)
(by change -(-i - 1) = i + 1; omega) (neg_neg i)
(by change -(-i + 1) = i - 1; omega)
exact HomExactAt.of_shortComplex_iso E.symm (hK (-i))theorem shift {K : CochainComplex (ModuleCat.{u} R) ℤ} (hK : DualExactCochain K) (a : ℤ) :
DualExactCochain (K⟦a⟧) := by proof · 4 lines
intro i
let E := (CochainComplex.shiftShortComplexFunctor' (ModuleCat.{u} R) a (i - 1) i (i + 1)
(i + a - 1) (i + a) (i + a + 1) (by omega) (by omega) (by omega)).app K
exact HomExactAt.of_shortComplex_iso E.symm (hK (i + a))structure TotallyAcyclicCochain (K : CochainComplex (ModuleCat.{u} R) ℤ) : Prop
extends ExactProjectiveCochain K where body · 1 line
dualExact : DualExactCochain Ktheorem of_chain {K : CochainComplex (ModuleCat.{u} R) ℤ}
(hK : TotallyAcyclicComplex (chainOfCochain K)) : TotallyAcyclicCochain K where proof · 2 lines
toExactProjectiveCochain := ExactProjectiveCochain.of_chain hK.toExactProjectiveComplex
dualExact := DualExactCochain.of_chain hKtheorem to_chain {K : CochainComplex (ModuleCat.{u} R) ℤ}
(hK : TotallyAcyclicCochain K) : TotallyAcyclicComplex (chainOfCochain K) where proof · 2 lines
toExactProjectiveComplex := hK.toExactProjectiveCochain.to_chain
dualExact := hK.dualExact.to_chaintheorem shift {K : CochainComplex (ModuleCat.{u} R) ℤ}
(hK : TotallyAcyclicCochain K) (a : ℤ) : TotallyAcyclicCochain (K⟦a⟧) where proof · 2 lines
toExactProjectiveCochain := hK.toExactProjectiveCochain.shift a
dualExact := hK.dualExact.shift atheorem cochainShift {K : CochainComplex (ModuleCat.{u} R) ℤ}
(hK : TotallyAcyclicComplex (chainOfCochain K)) (a : ℤ) :
TotallyAcyclicComplex (chainOfCochain (K⟦a⟧)) where proof · 2 lines
toExactProjectiveComplex := hK.toExactProjectiveComplex.cochainShift a
dualExact := ((DualExactCochain.of_chain hK).shift a).to_chainOutline