Download data/lean/OAI/AlgebraicGeometry/AbelianModuli/HilbertConstruction/Base/ChangeTensorExactness.lean from introvoyz045/math: direct link, hf CLI and curl.
rw [ShortComplex.moduleCat_exact_iff, ShortComplex.moduleCat_exact_iff]
change (∀ x, S.g.hom.baseChange B x = 0→∃ y, S.f.hom.baseChange B y = x) ↔
(∀ x, S.g.hom.lTensor B x = 0→∃ y, S.f.hom.lTensor B y = x)
constructor
· intro h x hx
obtain ⟨y, hy⟩ := h x ((congrFun (LinearMap.baseChange_eq_ltensor (A:=B) S.g.hom) x).trans hx)
exact ⟨y, (congrFun (LinearMap.baseChange_eq_ltensor (A:=B) S.f.hom) y).symm.trans hy⟩
· intro h x hx
obtain ⟨y, hy⟩ := h x ((congrFun (LinearMap.baseChange_eq_ltensor (A:=B) S.g.hom) x).symm.trans hx)
exact ⟨y, (congrFun (LinearMap.baseChange_eq_ltensor (A:=B) S.f.hom) y).trans hy⟩