openAI-math-dataset / lean /OAI /Algebra /AuslanderReiten /HomComplex /FullHomCompositionLinear.lean
roseking's picture
Add lean source and binary files (part 6)
2c7d975 verified
Raw History Blame Contribute Delete
1.4 kB
13
def fullHomPostcompLinear (f : L ⟶ M) : CohomologyClass K L n →ₗ[k] CohomologyClass K M n where
body · 9 lines
  __ := fullHomPostcomp f n
  map_smul' a x := by
    change fullHomPostcomp f n (a • x) = a • fullHomPostcomp f n x
    obtain ⟨x, rfl⟩ := CohomologyClass.mk_surjective x
    rw [← CompleteComparison.fullHom_mk_smul, fullHomPostcomp_mk, fullHomPostcomp_mk,
      ← CompleteComparison.fullHom_mk_smul]
    congr 1
    apply Subtype.ext
    exact Cochain.smul_comp a x.val (Cochain.ofHom f) (add_zero n)
24
def fullHomPrecompLinear (f : K ⟶ L) : CohomologyClass L M n →ₗ[k] CohomologyClass K M n where
body · 9 lines
  __ := fullHomPrecomp f n
  map_smul' a x := by
    change fullHomPrecomp f n (a • x) = a • fullHomPrecomp f n x
    obtain ⟨x, rfl⟩ := CohomologyClass.mk_surjective x
    rw [← CompleteComparison.fullHom_mk_smul, fullHomPrecomp_mk, fullHomPrecomp_mk,
      ← CompleteComparison.fullHom_mk_smul]
    congr 1
    apply Subtype.ext
    exact Cochain.comp_smul (Cochain.ofHom f) a x.val (zero_add n)