diff --git a/Mathlib/NumberTheory/NumberField/Basic.lean b/Mathlib/NumberTheory/NumberField/Basic.lean index c1f618ca0f17ae..9a42072dc9ec8c 100644 --- a/Mathlib/NumberTheory/NumberField/Basic.lean +++ b/Mathlib/NumberTheory/NumberField/Basic.lean @@ -179,12 +179,8 @@ lemma mk_eq_mk (x y : K) (hx hy) : (โŸจx, hxโŸฉ : ๐“ž K) = โŸจy, hyโŸฉ โ†” x = /-- The ring homomorphism `(๐“ž K) โ†’+* (๐“ž L)` given by restricting a ring homomorphism `f : K โ†’+* L` to `๐“ž K`. -/ -def mapRingHom {K L : Type*} [Field K] [Field L] (f : K โ†’+* L) : (๐“ž K) โ†’+* (๐“ž L) where - toFun k := โŸจf k.val, map_isIntegral_int f k.2โŸฉ - map_zero' := by ext; simp only [map_mk, map_zero] - map_one' := by ext; simp only [map_mk, map_one] - map_add' x y := by ext; simp only [map_mk, map_add] - map_mul' x y := by ext; simp only [map_mk, map_mul] +def mapRingHom {K L : Type*} [Field K] [Field L] (f : K โ†’+* L) : (๐“ž K) โ†’+* (๐“ž L) := + f.toIntAlgHom.mapIntegralClosure.toRingHom @[simp] theorem mapRingHom_apply {K L : Type*} [Field K] [Field L] (f : K โ†’+* L) (x : ๐“ž K) : diff --git a/Mathlib/NumberTheory/NumberField/CMField.lean b/Mathlib/NumberTheory/NumberField/CMField.lean index 63d3e447624c0b..5b5bc2c06ec9f5 100644 --- a/Mathlib/NumberTheory/NumberField/CMField.lean +++ b/Mathlib/NumberTheory/NumberField/CMField.lean @@ -437,6 +437,7 @@ theorem regOfFamily_realFunSystem : show f.symm w = (equivInfinitePlace K).symm w.1 by rfl, show algebraMap (๐“ž K) K _ = algebraMap Kโบ K _ by rfl, equivInfinitePlace_symm_apply] simp [f, g] + congr theorem regulator_div_regulator_eq_two_pow_mul_indexRealUnits_inv : regulator K / regulator Kโบ = 2 ^ rank K * (indexRealUnits K : โ„)โปยน := by