Skip to content

Commit 70e9ecf

Browse files
committed
feat(RingTheory): no extension is algebraic over the zero ring (leanprover-community#33540)
1 parent 7cfb227 commit 70e9ecf

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

Mathlib/RingTheory/Algebraic/Defs.lean

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,21 @@ theorem transcendental_iff {x : A} :
6262
protected def Subalgebra.IsAlgebraic (S : Subalgebra R A) : Prop :=
6363
∀ x ∈ S, IsAlgebraic R x
6464

65-
variable (R A)
66-
65+
variable (R A) in
6766
/-- An algebra is algebraic if all its elements are algebraic. -/
6867
@[stacks 09GC "Algebraic extensions"]
6968
protected class Algebra.IsAlgebraic : Prop where
7069
isAlgebraic : ∀ x : A, IsAlgebraic R x
7170

71+
variable (R A) in
7272
/-- An algebra is transcendental if some element is transcendental. -/
7373
protected class Algebra.Transcendental : Prop where
7474
transcendental : ∃ x : A, Transcendental R x
7575

76-
variable {R A}
76+
variable (R A) in
77+
lemma Algebra.nontrivial_of_isAlgebraic [Algebra.IsAlgebraic R A] : Nontrivial R := by
78+
obtain ⟨p, hp, -⟩ := Algebra.IsAlgebraic.isAlgebraic (R := R) (0 : A)
79+
exact .of_polynomial_ne hp
7780

7881
lemma Algebra.isAlgebraic_def : Algebra.IsAlgebraic R A ↔ ∀ x : A, IsAlgebraic R x :=
7982
fun ⟨h⟩ ↦ h, fun h ↦ ⟨h⟩⟩

0 commit comments

Comments
 (0)