roseking's picture
Add lean source and binary files (part 84)
cdec422 verified
Raw History Blame Contribute Delete
5.07 kB

The actual map from the localization at a contracted prime ideal.

27
noncomputable def localizationAtComapMap (f : A →+* B) (m : Ideal B) [m.IsPrime] :
    Localization.AtPrime (m.comap f) →+* Localization.AtPrime m :=
body · 1 line
  Localization.localRingHom (m.comap f) m f rfl

The induced map agrees with the original ring map on coefficients.

32
@[simp] theorem localizationAtComapMap_algebraMap (f : A →+* B)
    (m : Ideal B) [m.IsPrime] (a : A) :
    localizationAtComapMap f m (algebraMap A (Localization.AtPrime (m.comap f)) a) =
      algebraMap B (Localization.AtPrime m) (f a) :=
proof · 1 line
  Localization.localRingHom_to_map (m.comap f) m f rfl a

Both numerator and denominator follow the coefficient inclusion.

39
theorem localizationAtComapMap_mk' (f : A →+* B) (m : Ideal B) [m.IsPrime]
    (a : A) (s : (m.comap f).primeCompl) :
    localizationAtComapMap f m (IsLocalization.mk' (Localization.AtPrime (m.comap f)) a s) =
      IsLocalization.mk' (Localization.AtPrime m) (f a)
        (⟨f s, s.2⟩ : m.primeCompl) :=
proof · 1 line
  Localization.localRingHom_mk' (m.comap f) m f rfl a s

An inclusion into a domain remains injective after the two prime localizations, even though the target inverts additional denominators.

48
theorem localizationAtComapMap_injective [IsDomain B] (f : A →+* B)
    (hf : Function.Injective f) (m : Ideal B) [m.IsPrime] :
    Function.Injective (localizationAtComapMap f m) := by
proof · 10 lines
  apply IsLocalization.injective_of_map_algebraMap_zero
    (M := (m.comap f).primeCompl) (Localization.AtPrime (m.comap f))
    (localizationAtComapMap f m)
  intro a ha
  rw [localizationAtComapMap_algebraMap] at ha
  have hB : Function.Injective (algebraMap B (Localization.AtPrime m)) :=
    IsLocalization.injective (Localization.AtPrime m) m.primeCompl_le_nonZeroDivisors
  have hfa : f a = 0 := hB (by simpa only [map_zero] using ha)
  have haz : a = 0 := hf (by simpa only [map_zero] using hfa)
  rw [haz, map_zero]

Units used by the local comparison remain units in the larger coefficient localization.

64
theorem localizationAtComapMap_isUnit (f : A →+* B) (m : Ideal B) [m.IsPrime]
    {x : Localization.AtPrime (m.comap f)} (hx : IsUnit x) :
    IsUnit (localizationAtComapMap f m x) :=
proof · 1 line
  hx.map (localizationAtComapMap f m)

Integral coefficient extensions preserve maximality on contraction.

70
theorem maximal_comap_of_integral (f : A →+* B) (hf : f.IsIntegral)
    (m : Ideal B) [m.IsMaximal] : (m.comap f).IsMaximal :=
proof · 1 line
  Ideal.isMaximal_comap_of_isIntegral_of_isMaximal f hf m

Every rational prime has a maximal ideal above it in an integral integer algebra with injective integer map. The conclusion retains the exact contraction as well as membership of the prime in the maximal ideal.

79
theorem exists_maximal_ideal_over_nat_prime (B : Type uB) [CommRing B]
    [Algebra ℤ B] [Algebra.IsIntegral ℤ B]
    (hB : Function.Injective (algebraMap ℤ B)) {p : ℕ} (hp : p.Prime) :
    ∃ m : Ideal B, m.IsMaximal ∧
      m.comap (algebraMap ℤ B) = Ideal.span ({(p : ℤ)} : Set ℤ) ∧ (p : B) ∈ m := by
proof · 15 lines
  let P : Ideal ℤ := Ideal.span ({(p : ℤ)} : Set ℤ)
  have hpZ : Prime (p : ℤ) := Nat.prime_iff_prime_int.mp hp
  let : P.IsMaximal := PrincipalIdealRing.isMaximal_of_irreducible hpZ.irreducible
  have hker : RingHom.ker (algebraMap ℤ B) = ⊥ :=
    (RingHom.injective_iff_ker_eq_bot _).mp hB
  obtain ⟨m, hm, hcomap⟩ :=
    Ideal.exists_ideal_over_maximal_of_isIntegral (S := B) P
      (by rw [hker]; exact bot_le)
  refine ⟨m, hm, hcomap, ?_⟩
  have hpP : (p : ℤ) ∈ P := Ideal.subset_span (Set.mem_singleton _)
  have hpcomap : (p : ℤ) ∈ m.comap (algebraMap ℤ B) := by
    change (p : ℤ) ∈ m.under ℤ
    rwa [hcomap]
  have hpm := Ideal.mem_comap.mp hpcomap
  simpa only [map_natCast] using hpm

Characteristic zero supplies the injective integer map automatically.

101
theorem exists_maximal_ideal_over_nat_prime_of_charZero (B : Type uB) [CommRing B]
    [CharZero B] [Algebra ℤ B] [Algebra.IsIntegral ℤ B] {p : ℕ} (hp : p.Prime) :
    ∃ m : Ideal B, m.IsMaximal ∧
      m.comap (algebraMap ℤ B) = Ideal.span ({(p : ℤ)} : Set ℤ) ∧ (p : B) ∈ m :=
proof · 1 line
  exists_maximal_ideal_over_nat_prime B (algebraMap ℤ B).injective_int hp