/-
Copyright (c) 2026 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
module
public import Mathlib.RingTheory.Ideal.Over
/-! # Lemmas about `primesOver` in quotient rings. -/
public section
variable {R S T : Type*} [CommRing R] [CommRing S] [CommRing T] [Algebra R S] [Algebra R T]
/-- Given a prime `P` of `R` and an ideal `I` in an `R`-algebra `S`.
Suppose we can find a prime `P'` over `P`, not containing `I`,
then the number of primes of `S / I` over `P`
is strictly less than primes of `S` over `P` (provided they are finite).
The lemma is stated in terms of surjections for syntactic generality. -/
lemma Ideal.ncard_primesOver_lt_of_not_le
(f : S →ₐ[R] T) (Hf : Function.Surjective f)
(P : Ideal R) (P' : Ideal S) [P'.IsPrime] [P'.LiesOver P]
(hkP' : ¬ RingHom.ker f.toRingHom ≤ P') (H : (P.primesOver S).Finite) :
(P.primesOver T).ncard < (P.primesOver S).ncard := by
rw [← Set.ncard_image_of_injective _ (Ideal.comap_injective_of_surjective _ Hf)]
refine Set.ncard_lt_ncard (Set.ssubset_iff_exists.mpr ⟨?_, P', ⟨‹_›, ‹_›⟩, ?_⟩) H
· rintro _ ⟨q, ⟨_, _⟩, rfl⟩
exact ⟨inferInstance, inferInstanceAs ((q.comap f).LiesOver _)⟩
· rintro ⟨q, ⟨_, _⟩, rfl⟩; exact hkP' (Ideal.ker_le_comap _)
lemma Ideal.ncard_primesOver_quotient_singleton_lt_of_notMem
(P : Ideal R) (e : S) (P' : Ideal S) [P'.IsPrime] [P'.LiesOver P]
(heP' : e ∉ P') (H : (P.primesOver S).Finite) :
(P.primesOver (S ⧸ Ideal.span {e})).ncard < (P.primesOver S).ncard :=
Ideal.ncard_primesOver_lt_of_not_le _ (Ideal.Quotient.mkₐ_surjective R _) _ P' (by simpa) H
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland