openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /Complete /RestrictionComplete.lean
roseking's picture
Add lean source and binary files (part 5)
d7f9a33 verified
Raw History Blame Contribute Delete
2.59 kB
12
def restrictRegularEquiv :
    R ≃ₗ[R] ((ModuleCat.restrictScalars e.toRingHom).obj (ModuleCat.of S S)) where
body · 6 lines
  toFun := e
  invFun := e.symm
  left_inv := e.symm_apply_apply
  right_inv := e.apply_symm_apply
  map_add' := e.map_add
  map_smul' a b := e.map_mul a b
21
theorem restrict_equiv_finite (M : ModuleCat.{u} S) [Module.Finite S M] :
    Module.Finite R ((ModuleCat.restrictScalars e.toRingHom).obj M) := by
proof · 3 lines
  let : Module.Finite R ((ModuleCat.restrictScalars e.toRingHom).obj (ModuleCat.of S S)) :=
    Module.Finite.equiv (restrictRegularEquiv e)
  exact restrict_finite e.toRingHom M
27
theorem restrict_equiv_projective (M : ModuleCat.{u} S)
    [Module.Finite S M] [Module.Projective S M] :
    Module.Projective R ((ModuleCat.restrictScalars e.toRingHom).obj M) := by
proof · 3 lines
  let : Module.Projective R ((ModuleCat.restrictScalars e.toRingHom).obj (ModuleCat.of S S)) :=
    Module.Projective.of_equiv (restrictRegularEquiv e)
  exact restrict_projective e.toRingHom M
34
theorem restrict_equiv_exactProjective (K : CochainComplex (ModuleCat.{u} S) ℤ)
    (hK : ExactProjectiveCochain K) :
    ExactProjectiveCochain
      (((ModuleCat.restrictScalars e.toRingHom).mapHomologicalComplex _).obj K) where
proof · 18 lines
  finite n := by
    let := hK.finite n
    exact restrict_equiv_finite e (K.X n)
  projective n := by
    let := hK.finite n
    let := hK.projective n
    exact restrict_equiv_projective e (K.X n)
  exactAt n := by
    rw [HomologicalComplex.exactAt_iff' _ (n-1) n (n+1) (by simp) (by simp),
      ShortComplex.moduleCat_exact_iff_range_eq_ker]
    have he := hK.exactAt n
    rw [HomologicalComplex.exactAt_iff' _ (n-1) n (n+1) (by simp) (by simp),
      ShortComplex.moduleCat_exact_iff_range_eq_ker] at he
    ext x
    change x ∈ LinearMap.range (K.d (n-1) n).hom ↔
      x ∈ LinearMap.ker (K.d n (n+1)).hom
    rw [show LinearMap.range (K.d (n-1) n).hom =
      LinearMap.ker (K.d n (n+1)).hom from he]
57
theorem restrict_equiv_totallyAcyclic [Module.Injective R R]
    (K : CochainComplex (ModuleCat.{u} S) ℤ) (hK : ExactProjectiveCochain K) :
    TotallyAcyclicComplex (CompleteComparison.chainOfCochain
      (((ModuleCat.restrictScalars e.toRingHom).mapHomologicalComplex _).obj K)) :=
proof · 1 line
  (restrict_equiv_exactProjective e K hK).to_chain.totallyAcyclic