Prime ideals in ℕ and ℤ #
Main results #
Ideal.isPrime_nat_iff: the prime ideals in ℕ are ⟨0⟩, ⟨p⟩ (for primep), and ⟨2, 3⟩ = {1}ᶜ. The proof follows https://math.stackexchange.com/a/4224486.Ideal.isPrime_int_iff: the prime ideals in ℤ are ⟨0⟩ and ⟨p⟩ (for primep).
The natural numbers form a local semiring.
theorem
Ideal.isPrime_nat_iff
{P : Ideal ℕ}
:
P.IsPrime ↔ P = ⊥ ∨ P = IsLocalRing.maximalIdeal ℕ ∨ ∃ (p : ℕ), Nat.Prime p ∧ P = span {p}
theorem
Ideal.map_comap_natCastRingHom_int
{I : Ideal ℤ}
:
map (Nat.castRingHom ℤ) (comap (Nat.castRingHom ℤ) I) = I