Course Test · University: upper level
Abstract algebra II: rings, fields and Galois theory: RatMath answers
The same twenty exercises, answered with RatMath Core and the Shelf libraries only. The code below was run when this page was built; its output is shown as printed, and compared with the independent answer.
Agrees 20
Libraries used here: core, algebraic, structures. In this code each library is in scope under its own name (linalg.det, stats.tTest), and Core's names (R, Rational, …) are in scope directly.
- 1.Polynomial gcdAgreesFind in .Independent answerand ; has no root , so the gcd is .RatMath code
const P = structures.polynomialDomain("x"); String(structures.gcd(P.from("x^3 - 1"), P.from("x^2 - 1")))Outputx − 1
- 2.Factoring over QAgreesFactor over .Independent answerSophie Germain: .RatMath code
const R = structures.ring(["x"]); structures.factor(R.poly("x^4 + 4")).factors.map((f) => String(f.factor))Output["x² + 2x + 2", "x² − 2x + 2"]
factorandisIrreducibleneed a polynomial built withring([...]).poly, whilegcdneeds one frompolynomialDomain(v).from; neither takes plain text. - 3.IrreducibilityAgreesWhich are irreducible over : , , ?Independent answer: a reducible cubic has a rational root, and are not roots; irreducible. : reducible (previous exercise). : Eisenstein at 3; irreducible.RatMath code
const R = structures.ring(["x"]); ["x^3 - 2", "x^4 + 4", "x^4 + 6*x + 3"].map((f) => structures.isIrreducible(R.poly(f)))Output[true, false, true]
- 4.Quotient ringsAgreesIs a field? Is an integral domain?Independent answeris irreducible, so is maximal: a field (). : in the quotient, so it is not a domain.RatMath code
const R = structures.ring(["x"]); const Q = (f) => structures.ideal(R, [R.poly(f)]).quotientRing(); [Q("x^2 + 1").isField(), Q("x^2 - 1").isIntegralDomain()]Output[true, false]
HereisFieldis a method, while onZn(7)it is a getter. - 5.Gröbner basesAgreesFind a reduced Gröbner basis (lex, ) of the ideal .Independent answerSubstitute : . Basis .RatMath code
const R = structures.ring(["x", "y"], { order: "lex" }); String(structures.groebner([R.poly("x^2 + y^2 - 1"), R.poly("x - y")]))OutputGröbner basis (lex) of 2: y² − 1/2, x − y
- 6.Unique factorisation failsAgreesShow is not a UFD. What is its class number?Independent answer, with all four factors irreducible (norms 4, 9, 6, 6, and no element has norm 2 or 3) and not associates. The class number is 2.RatMath code
const R = structures.quadraticRing(-5); [R.classNumber(), R.isUFD]Output[2, false]
- 7.Finite fieldsAgreesIn , find .Independent answer, so .RatMath code
const F = structures.galoisField(2, 3, [1, 1, 0, 1]); F.format(F.inv(F.add(F.gen, F.one)))Outputa² + a
- 8.Primitive polynomialsAgreesGive the Conway polynomial for , that is, the least primitive polynomial of degree 4 over .Independent answerThe irreducible quartics over are , , ; the last has roots of order 5, and comes first: .RatMath code
structures.conwayPolynomial(2, 4)Output[1n, 1n, 0n, 0n, 1n]
The answer is a list of coefficients, constant term first. - 9.Minimal polynomialsAgreesFind the minimal polynomial of over .Independent answer, : , irreducible since .RatMath code
const A = algebraic; A.minimalPolynomial(A.add(A.sqrt(A.fromRational(2)), A.sqrt(A.fromRational(3))))Output[1n, 0n, -10n, 0n, 1n]
- 10.Primitive elementAgreesFind a primitive element of and the degree of the extension.Independent answerDegree 4 (); is primitive.RatMath code
const E = structures.extension({ a: "a^2 - 2", b: "b^2 - 3" }); [E.degreeOver(), String(E.primitiveElement().element)]Output[4, "a + b"]
- 11.Degree of a towerAgreesFind where is a primitive cube root of unity.Independent answerand satisfies , not real, so degree .RatMath code
structures.extension({ a: "a^3 - 2", w: "w^2 + w + 1" }).degreeOver()Output6
- 12.Galois group of a cubicAgreesFind the Galois group of over .Independent answerIrreducible with discriminant , not a square: , order 6.RatMath code
const g = algebraic.galoisGroup([-2n, 0n, 0n, 1n]); [g.name, g.order, g.discriminant]Output["S3", 6, -108]
- 13.Discriminant testAgreesFind the Galois group of .Independent answerIrreducible (no rational roots), discriminant , a square: .RatMath code
const g = algebraic.galoisGroup([1n, -3n, 0n, 1n]); [g.name, g.discriminant, g.discriminantIsSquare]Output["C3", 81, true]
- 14.Galois group of x⁴ − 2AgreesFind the Galois group of over .Independent answerSplitting field of degree 8; the group is the dihedral group of order 8.RatMath code
const g = algebraic.galoisGroup([-2n, 0n, 0n, 0n, 1n]); [g.name, g.order]Output["D4", 8]
- 15.Biquadratic extensionAgreesFind the Galois group of .Independent answerIts roots generate of degree 4, with automorphisms flipping each sign: .RatMath code
const g = algebraic.galoisGroup([1n, 0n, -10n, 0n, 1n]); [g.name, g.order]Output["V4", 4]
- 16.An unsolvable quinticAgreesIs solvable by radicals?Independent answerIt is irreducible (mod 5 it is the Artin–Schreier polynomial, irreducible), and its Galois group is , which is not solvable. So no.RatMath code
const g = algebraic.galoisGroup([-1n, -1n, 0n, 0n, 0n, 1n]); [g.name, g.solvable]Output["S5", false]
- 17.Constructibility: the 7-gonAgreesIs the regular heptagon constructible with ruler and compass?Independent answeris a root of , irreducible of degree 3, not a power of 2: not constructible.RatMath code
structures.constructible(algebraic.cosMinimal(7)).constructibleOutputfalse
- 18.Constructibility: the 17-gonAgreesIs the regular 17-gon constructible?Independent answerYes (Gauss): 17 is a Fermat prime, , and is an abelian extension of degree 8.RatMath code
const c = structures.constructible(algebraic.cosMinimal(17)); [c.constructible, c.factors[0].cosine.n]Output[true, 17]
The degree is 8, beyond the Galois groups computed directly, but the polynomial is recognised as the minimal polynomial of , so Gauss–Wantzel decides it.Fix: ratmath/structures#6,sign/isEvenof a permutation; Gauss–Wantzel insideconstructible;chainComplexand homology - 19.Cyclotomic polynomialsAgreesFind the cyclotomic polynomial .Independent answer.RatMath code
algebraic.cyclotomic(12)Output[1n, 0n, -1n, 0n, 1n]
- 20.Smith normal formAgreesFind the Smith normal form of and the abelian group modulo its columns.Independent answerof entries ; of minors ; . So and the cokernel is .RatMath code
structures.smithForm([[2, 4, 4], [-6, 6, 12], [10, -4, -16]]).diagonalOutput[2n, 6n, 12n]