@@ -171,7 +171,7 @@ lemma Module.finitePresentation_of_surjective [h : Module.FinitePresentation R M
171171 obtain ⟨t, ht⟩ := hl'
172172 have H : Function.Surjective (Finsupp.linearCombination R ((↑) : s → M)) :=
173173 LinearMap.range_eq_top.mp
174- (by rw [range_linearCombination, Subtype.range_val , ← hs])
174+ (by rw [range_linearCombination, Subtype.range_coe_subtype , ← hs]; rfl )
175175 apply Module.finitePresentation_of_free_of_surjective (l ∘ₗ linearCombination R Subtype.val)
176176 (hl.comp H)
177177 choose σ hσ using (show _ from H)
@@ -188,7 +188,7 @@ lemma Module.FinitePresentation.fg_ker [Module.Finite R M]
188188 obtain ⟨s, hs, hs'⟩ := h
189189 have H : Function.Surjective (Finsupp.linearCombination R ((↑) : s → N)) :=
190190 LinearMap.range_eq_top.mp
191- (by rw [range_linearCombination, Subtype.range_val , ← hs])
191+ (by rw [range_linearCombination, Subtype.range_coe_subtype , ← hs]; rfl )
192192 obtain ⟨f, hf⟩ : ∃ f : (s →₀ R) →ₗ[R] M, l ∘ₗ f = (Finsupp.linearCombination R Subtype.val) := by
193193 choose f hf using show _ from hl
194194 exact ⟨Finsupp.linearCombination R (fun i ↦ f i), by ext; simp [hf]⟩
@@ -221,7 +221,7 @@ lemma Module.finitePresentation_of_ker [Module.FinitePresentation R N]
221221 let π := Finsupp.linearCombination R ((↑) : s → M)
222222 have H : Function.Surjective π :=
223223 LinearMap.range_eq_top.mp
224- (by rw [range_linearCombination, Subtype.range_val , ← hs])
224+ (by rw [range_linearCombination, Subtype.range_coe_subtype , ← hs]; rfl )
225225 have inst : Module.Finite R (LinearMap.ker (l ∘ₗ π)) :=
226226 .of_fg <| Module.FinitePresentation.fg_ker _ (hl.comp H)
227227 let f : LinearMap.ker (l ∘ₗ π) →ₗ[R] LinearMap.ker l := LinearMap.restrict π (fun x ↦ id)
@@ -365,7 +365,7 @@ lemma Module.FinitePresentation.exists_lift_of_isLocalizedModule
365365 let π := Finsupp.linearCombination R ((↑) : σ → M)
366366 have hπ : Function.Surjective π :=
367367 LinearMap.range_eq_top.mp
368- (by rw [range_linearCombination, Subtype.range_val , ← hσ])
368+ (by rw [range_linearCombination, Subtype.range_coe_subtype , ← hσ]; rfl )
369369 classical
370370 choose s hs using IsLocalizedModule.surj S f
371371 let i : σ → N :=
0 commit comments