Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Mathlib/RingTheory/Artinian/Module.lean
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,10 @@ lemma isField_of_isDomain [IsDomain R] : IsField R := by

/- Does not hold in a commutative semiring:
consider {0, 0.5, 1} with ⊔ as + and ⊓ as *, then both {0} and {0, 0.5} are prime ideals. -/
instance isMaximal_of_isPrime (p : Ideal R) [p.IsPrime] : p.IsMaximal :=
-- Note: type class synthesis should try to synthesize `p.IsPrime` before `IsArtinianRing R`,
-- hence the argument order.
instance isMaximal_of_isPrime {R : Type*} [CommRing R] (p : Ideal R) [p.IsPrime]
[IsArtinianRing R] : p.IsMaximal :=
Ideal.Quotient.maximal_of_isField _ (isField_of_isDomain _)

lemma isPrime_iff_isMaximal (p : Ideal R) : p.IsPrime ↔ p.IsMaximal :=
Expand Down