Module docstring
{"# Algebraic elements and integral elements
This file relates algebraic and integral elements of an algebra, by proving every integral element is algebraic and that every algebraic element over a field is integral.
Main results
IsIntegral.isAlgebraic,Algebra.IsIntegral.isAlgebraic: integral implies algebraic.isAlgebraic_iff_isIntegral,Algebra.isAlgebraic_iff_isIntegral: integral iff algebraic over a field.IsAlgebraic.of_finite,Algebra.IsAlgebraic.of_finite: finite-dimensional (as module) implies algebraic.IsAlgebraic.exists_integral_multiple: an algebraic element has a multiple which is integralIsAlgebraic.iff_exists_smul_integral: IfRis reduced andSis anR-algebra with injectivealgebraMap, then an element ofSis algebraic overRiff someR-multiple is integral overR.Algebra.IsAlgebraic.trans: IfA/S/Ris a tower of algebras and bothA/SandS/Rare algebraic, thenA/Ris also algebraic, provided thatShas no zero divisors.Subalgebra.algebraicClosure: IfRis a domain andSis an arbitraryR-algebra, then the elements ofSthat are algebraic overRform a subalgebra.Transcendental.extendScalars: an element of anR-algebra that is transcendental overRremains transcendental over any algebraicR-subalgebra that has no zero divisors. ","The next theorem may fail if onlyRis assumed to be a domain butSis not: for example, letS = R[X] ⧸ (X² - X)and letAbe the subalgebra ofS[Y]generated byXY.Ais algebraic overSbecause any element∑ᵢ sᵢ(XY)ⁱis a root of the polynomial(X - 1)(Z - s₀)inS[Z], becauseX(X - 1) = X² - X = 0inS. However,XYis a transcendental element inAoverR, because∑ᵢ rᵢ(XY)ⁱ = 0inS[Y]implies allrᵢXⁱ = 0(i.e.,r₀ = 0andrᵢX = 0fori > 0) inS, which impliesrᵢ = 0inR. This example is inspired by the comment https://mathoverflow.net/questions/482944/when-do-algebraic-elements-form-a-subalgebra#comment1257632_482944. "}