Skip to content

Commit fc58204

Browse files
feat(RingTheory/Ideal/Height): add trivial case (leanprover-community#27705)
Update `RingTheory.Ideal.Height`, which adds a simple lemma `Ideal.height_of_subsingleton`. It computes the height of (any) ideal in a zero commutative ring.
1 parent 0019dc2 commit fc58204

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Mathlib/RingTheory/Ideal/Height.lean

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@ lemma Ideal.primeHeight_eq_zero_iff {I : Ideal R} [I.IsPrime] :
169169
· rintro ⟨hI, hI'⟩ b hb
170170
exact hI' (y := b.asIdeal) b.isPrime hb
171171

172+
/-- In a trivial commutative ring, the height of any ideal is `∞`. -/
173+
@[simp, nontriviality]
174+
lemma Ideal.height_of_subsingleton [Subsingleton R] : I.height = ⊤ := by
175+
rw [Subsingleton.elim I ⊤, Ideal.height_top]
176+
172177
theorem Ideal.isMaximal_of_primeHeight_eq_ringKrullDim {I : Ideal R} [I.IsPrime]
173178
[FiniteRingKrullDim R] (e : I.primeHeight = ringKrullDim R) : I.IsMaximal := by
174179
have h : I ≠ ⊤ := by

0 commit comments

Comments
 (0)