@@ -250,6 +250,7 @@ theorem mk'_mk_eq_div {r s} (hs : s ∈ nonZeroDivisors A) :
250250theorem mk'_eq_div {r} (s : nonZeroDivisors A) : mk' K r s = algebraMap A K r / algebraMap A K s :=
251251 mk'_mk_eq_div s.2
252252
253+ variable (A) in
253254theorem div_surjective (z : K) :
254255 ∃ x y : A, y ∈ nonZeroDivisors A ∧ algebraMap _ _ x / algebraMap _ _ y = z :=
255256 let ⟨x, ⟨y, hy⟩, h⟩ := exists_mk'_eq (nonZeroDivisors A) z
@@ -286,7 +287,7 @@ omit [IsDomain B]
286287
287288theorem algHom_commutes (e : K₁ →ₐ[A] K₂) (f : L₁ →ₐ[B] L₂) (x : K₁) :
288289 algebraMap K₂ L₂ (e x) = f (algebraMap K₁ L₁ x) := by
289- obtain ⟨r, s, hs, rfl⟩ := IsFractionRing.div_surjective (A := A) x
290+ obtain ⟨r, s, hs, rfl⟩ := IsFractionRing.div_surjective A x
290291 simp_rw [map_div₀, AlgHom.commutes, ← IsScalarTower.algebraMap_apply,
291292 IsScalarTower.algebraMap_apply A B L₁, AlgHom.commutes, ← IsScalarTower.algebraMap_apply]
292293
@@ -303,7 +304,7 @@ variable (A K) in
303304the image of `algebraMap A K` is equal to the whole field `K`. -/
304305theorem closure_range_algebraMap : Subfield.closure (Set.range (algebraMap A K)) = ⊤ :=
305306 top_unique fun z _ ↦ by
306- obtain ⟨_, _, -, rfl⟩ := div_surjective (A := A) z
307+ obtain ⟨_, _, -, rfl⟩ := div_surjective A z
307308 apply div_mem <;> exact Subfield.subset_closure ⟨_, rfl⟩
308309
309310variable {L : Type *} [Field L] {g : A →+* L} {f : K →+* L}
@@ -343,7 +344,7 @@ theorem lift_unique (hg : Function.Injective g) {f : K →+* L}
343344theorem ringHom_ext {f1 f2 : K →+* L}
344345 (hf : ∀ x : A, f1 (algebraMap A K x) = f2 (algebraMap A K x)) : f1 = f2 := by
345346 ext z
346- obtain ⟨x, y, hy, rfl⟩ := IsFractionRing.div_surjective (A := A) z
347+ obtain ⟨x, y, hy, rfl⟩ := IsFractionRing.div_surjective A z
347348 rw [map_div₀, map_div₀, hf, hf]
348349
349350theorem injective_comp_algebraMap :
@@ -474,7 +475,7 @@ variable {A B C D : Type*}
474475noncomputable def fieldEquivOfAlgEquiv (f : B ≃ₐ[A] C) : FB ≃ₐ[FA] FC where
475476 __ := IsFractionRing.ringEquivOfRingEquiv f.toRingEquiv
476477 commutes' x := by
477- obtain ⟨x, y, -, rfl⟩ := IsFractionRing.div_surjective (A := A) x
478+ obtain ⟨x, y, -, rfl⟩ := IsFractionRing.div_surjective A x
478479 simp_rw [map_div₀, ← IsScalarTower.algebraMap_apply, IsScalarTower.algebraMap_apply A B FB]
479480 simp [← IsScalarTower.algebraMap_apply A C FC]
480481
@@ -494,14 +495,14 @@ variable (A B) in
494495lemma fieldEquivOfAlgEquiv_refl :
495496 fieldEquivOfAlgEquiv FA FB FB (AlgEquiv.refl : B ≃ₐ[A] B) = AlgEquiv.refl := by
496497 ext x
497- obtain ⟨x, y, -, rfl⟩ := IsFractionRing.div_surjective (A := B) x
498+ obtain ⟨x, y, -, rfl⟩ := IsFractionRing.div_surjective B x
498499 simp
499500
500501lemma fieldEquivOfAlgEquiv_trans (f : B ≃ₐ[A] C) (g : C ≃ₐ[A] D) :
501502 fieldEquivOfAlgEquiv FA FB FD (f.trans g) =
502503 (fieldEquivOfAlgEquiv FA FB FC f).trans (fieldEquivOfAlgEquiv FA FC FD g) := by
503504 ext x
504- obtain ⟨x, y, -, rfl⟩ := IsFractionRing.div_surjective (A := B) x
505+ obtain ⟨x, y, -, rfl⟩ := IsFractionRing.div_surjective B x
505506 simp
506507
507508end fieldEquivOfAlgEquiv
0 commit comments