Abstract algebra II: rings, fields and Galois theory
Use the left and right arrow keys to turn pages.
Course summary
Where RatMath helps
77.5%
31 of 40 focal problems use RatMath for a calculation or a substantive step.
Direct calculation
30 · 75%
Assisted
1 · 2.5%
Worked by hand
9 · 22.5%
Using the packages
Exact polynomial and finite-field objects make it possible to test computations in their intended coefficient field. An algorithm finding factors or a Galois group still leaves a proof assignment's theoretical explanation to the student.
Calculator interface
Put the coefficient domain and defining relations above every polynomial. Show field embeddings and extension degrees in a tower and distinguish an irreducibility witness from a list of failed factor trials.
Each of the 40 focal problems has equal weight. Direct means the displayed package calculation answers the computational question after the inputs are set up. Assisted means it contributes a step and the worked solution supplies essential reasoning, interpretation or selection. Worked by hand means the guide relies on a construction, argument or judgment for that task. The helpful share combines direct and assisted days. Courses and instructors assign different mixes of problems. The percentages describe this syllabus.
Classroom inputs and practical limits
31 of 40 days include a checked executable example. On 11 days the measured size sweep exercises a named API used in the lesson. Each day identifies its tested inputs and the mathematical property checked. Hand-worked days give the input scale and the argument to verify.
Ranges across the five units
Days 1–8 · Polynomial rings. One or two indeterminates, degrees about 1–6, small coefficients and a specified coefficient field.
Unit benchmark · symbolic.expand, degree. Largest passing sample 128 (47.68 ms, 96.3 MiB peak process RSS). The runs did not locate a ceiling for this family.
Days 9–16 · Ideals and quotients. One to three generators or variables, low polynomial degrees and 2×2 to 5×5 integer presentation matrices.
Unit benchmark · structures.smithForm, square matrix side. Largest passing sample 50 (7.52 ms, 81.2 MiB peak process RSS). The runs did not locate a ceiling for this family.
Days 17–24 · Finite and algebraic extensions. Small characteristic, extension degree usually 2–4, and explicit irreducible defining polynomials.
Unit benchmark · structures.Zn.units, modulus. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family.
Days 25–32 · Galois correspondence. Textbook rational polynomials commonly have degrees 2–5 and modest coefficients. Separability and irreducibility affect the interpretation.
Unit benchmark · algebraic.galoisGroup, prime radicand. Largest passing sample 10,007 (2.41 ms, 74.9 MiB peak process RSS). The runs did not locate a ceiling for this family.
Days 33–40 · Constructibility and applications. Small cyclotomic indices and low-degree tower or construction problems; a power-of-two degree alone is insufficient in general.
Unit benchmark · algebraic.galoisGroup, prime radicand. Largest passing sample 10,007 (2.41 ms, 74.9 MiB peak process RSS). The runs did not locate a ceiling for this family.
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
const P = structures.polynomialDomain("x");
console.log(String(structures.gcd(P.from("x^3 - 1"), P.from("x^2 - 1"))));
Checked output
x − 1
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One or two indeterminates, degrees about 1–6, small coefficients and a specified coefficient field.
Focal example. The code above passed its displayed check in 0.393 ms on Node.
Related workload in this unit.structures.Zn.units · modulus. Baseline test points across courses 2, 6, 12, 30. Enumerate the residues independently and select those coprime to n by Euclid's algorithm.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family. Enumerating units or ideals scales with the size of the residue ring. A large modulus encoded in a few digits can still imply a large list.
Measured times, memory and outcomes
modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.373
74.3
6
Baseline
Passed
0.611
75.5
12
Baseline
Passed
0.473
75.1
30
Baseline
Passed
0.541
75
120
Stretch
Passed
1.29
74.5
1,000
Stretch
Passed
6.59
76.5
10,000
Stretch
Passed
22.59
87
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.polynomialDomain · 1 passing test case, 1 distinct argument description
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
const R = structures.ring(["x"]);
console.log(structures.factor(R.poly("x^4 + 4")).factors.map((f) => String(f.factor)));
Checked output
["x² + 2x + 2", "x² − 2x + 2"]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One or two indeterminates, degrees about 1–6, small coefficients and a specified coefficient field.
Focal example. The code above passed its displayed check in 0.696 ms on Node.
Related workload in this unit.structures.Zn.units · modulus. Baseline test points across courses 2, 6, 12, 30. Enumerate the residues independently and select those coprime to n by Euclid's algorithm.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family. Enumerating units or ideals scales with the size of the residue ring. A large modulus encoded in a few digits can still imply a large list.
Measured times, memory and outcomes
modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.373
74.3
6
Baseline
Passed
0.611
75.5
12
Baseline
Passed
0.473
75.1
30
Baseline
Passed
0.541
75
120
Stretch
Passed
1.29
74.5
1,000
Stretch
Passed
6.59
76.5
10,000
Stretch
Passed
22.59
87
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.ring · 27 passing test cases, 30 distinct argument descriptions
: a reducible cubic has a rational root, and are not roots; irreducible. : reducible (previous exercise). : Eisenstein at 3; irreducible.
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
const R = structures.ring(["x"]);
console.log(
["x^3 - 2", "x^4 + 4", "x^4 + 6*x + 3"].map((f) => structures.isIrreducible(R.poly(f)))
);
Checked output
[true, false, true]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One or two indeterminates, degrees about 1–6, small coefficients and a specified coefficient field.
For this problem type. Use low-degree defining polynomials, often degree 2–5, and one or two generators. State the base field and multiplicity or irreducibility assumptions.
Focal example. The code above passed its displayed check in 1.48 ms on Node.
Related workload in this unit.structures.Zn.units · modulus. Baseline test points across courses 2, 6, 12, 30. Enumerate the residues independently and select those coprime to n by Euclid's algorithm.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family. Enumerating units or ideals scales with the size of the residue ring. A large modulus encoded in a few digits can still imply a large list.
Measured times, memory and outcomes
modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.373
74.3
6
Baseline
Passed
0.611
75.5
12
Baseline
Passed
0.473
75.1
30
Baseline
Passed
0.541
75
120
Stretch
Passed
1.29
74.5
1,000
Stretch
Passed
6.59
76.5
10,000
Stretch
Passed
22.59
87
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.ring · 27 passing test cases, 30 distinct argument descriptions
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as symbolic from "@ratmath/symbolic";
console.log(String(symbolic.simplify("(x^3 - 2x^2 - 5x + 6)/(x - 3)")));
Checked output
x^2 + x - 2
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One or two indeterminates, degrees about 1–6, small coefficients and a specified coefficient field.
Focal example. The code above passed its displayed check in 1.17 ms on Node.
Related workload in this unit.symbolic.expand · degree. Baseline test points across courses 1, 2, 4, 8. Sum the expanded coefficients at x=1 by direct substitution; result 2^n. Also check at x=0 and 2.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 128 (47.68 ms, 96.3 MiB peak process RSS). The runs did not locate a ceiling for this family. A univariate binomial has n+1 terms. With several variables the number of monomials can grow combinatorially even at modest degree.
Measured times, memory and outcomes
degree · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
26.10
75.9
2
Baseline
Passed
3.05
75.5
4
Baseline
Passed
2.75
77.3
8
Baseline
Passed
4.23
79.5
16
Stretch
Passed
5.88
82.6
32
Stretch
Passed
6.12
87.9
64
Stretch
Passed
15.73
89.5
128
Stretch
Passed
47.68
96.3
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
symbolic.simplify · 2 passing test cases, 11 distinct argument descriptions
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One or two indeterminates, degrees about 1–6, small coefficients and a specified coefficient field.
For this problem type. Start with one unknown, small signed coefficients and degree one or two. Higher-degree or parameter-dependent equations need separate cases.
Focal example. The code above passed its displayed check in 4.56 ms on Node.
Same API, measured input family.symbolic.solve · absolute coefficient. Baseline test points across courses 1, 2, 10, 100. Solve n·x+1=3n+1; the unique root is 3.
Practical limit. Largest passing sample 1,000,000,000 (6.48 ms, 75.9 MiB peak process RSS). The runs did not locate a ceiling for this family. One linear unknown has a simple root here. A vanishing coefficient may produce no solution or infinitely many. Multiple parameters require case analysis.
Measured times, memory and outcomes
absolute coefficient · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
16.76
75.8
2
Baseline
Passed
7.72
74.9
10
Baseline
Passed
29.10
75.2
100
Baseline
Passed
12.79
74.6
10,000
Stretch
Passed
28.50
76.3
1,000,000,000
Stretch
Passed
6.48
75.9
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
symbolic.factor · 1 passing test case, 4 distinct argument descriptions
Why can polynomial long division always cancel a leading term over Q?
Worked solution
A nonzero leading coefficient has a multiplicative inverse. This hypothesis can fail over Z.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. One or two indeterminates, degrees about 1–6, small coefficients and a specified coefficient field.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 07 / 40 · Polynomial rings
Changing coefficients
Worked by hand
Problem
Does x²+1 have the same factorization over R and C?
Worked solution
It is irreducible over R and splits as (x−i)(x+i) over C. The coefficient field belongs in the answer.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. One or two indeterminates, degrees about 1–6, small coefficients and a specified coefficient field.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 08 / 40 · Polynomial rings
Eisenstein criterion
Worked by hand
Problem
Prove x⁵+10x+5 irreducible over Q.
Worked solution
Use p=5. Every nonleading coefficient is divisible by 5 and the constant term is not divisible by 25.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. One or two indeterminates, degrees about 1–6, small coefficients and a specified coefficient field.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 09 / 40 · Ideals and quotients
Quotient rings
Direct calculation@ratmath/structures
Problem
Is a field? Is an integral domain?
Worked solution
is irreducible, so is maximal: a field (). : in the quotient, so it is not a domain.
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
const R = structures.ring(["x"]);
const Q = (f) => structures.ideal(R, [R.poly(f)]).quotientRing();
console.log([Q("x^2 + 1").isField(), Q("x^2 - 1").isIntegralDomain()]);
Checked output
[true, false]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One to three generators or variables, low polynomial degrees and 2×2 to 5×5 integer presentation matrices.
Focal example. The code above passed its displayed check in 2.83 ms on Node.
Related workload in this unit.structures.Zn.units · modulus. Baseline test points across courses 2, 6, 12, 30. Enumerate the residues independently and select those coprime to n by Euclid's algorithm.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family. Enumerating units or ideals scales with the size of the residue ring. A large modulus encoded in a few digits can still imply a large list.
Measured times, memory and outcomes
modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.373
74.3
6
Baseline
Passed
0.611
75.5
12
Baseline
Passed
0.473
75.1
30
Baseline
Passed
0.541
75
120
Stretch
Passed
1.29
74.5
1,000
Stretch
Passed
6.59
76.5
10,000
Stretch
Passed
22.59
87
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.ring · 27 passing test cases, 30 distinct argument descriptions
Find a reduced Gröbner basis (lex, ) of the ideal .
Worked solution
Substitute : . Basis .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
const R = structures.ring(["x", "y"], { order: "lex" });
console.log(String(structures.groebner([R.poly("x^2 + y^2 - 1"), R.poly("x - y")])));
Checked output
Gröbner basis (lex) of 2: y² − 1/2, x − y
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One to three generators or variables, low polynomial degrees and 2×2 to 5×5 integer presentation matrices.
For this problem type. Use low-degree defining polynomials, often degree 2–5, and one or two generators. State the base field and multiplicity or irreducibility assumptions.
Focal example. The code above passed its displayed check in 0.388 ms on Node.
Related workload in this unit.structures.Zn.units · modulus. Baseline test points across courses 2, 6, 12, 30. Enumerate the residues independently and select those coprime to n by Euclid's algorithm.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family. Enumerating units or ideals scales with the size of the residue ring. A large modulus encoded in a few digits can still imply a large list.
Measured times, memory and outcomes
modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.373
74.3
6
Baseline
Passed
0.611
75.5
12
Baseline
Passed
0.473
75.1
30
Baseline
Passed
0.541
75
120
Stretch
Passed
1.29
74.5
1,000
Stretch
Passed
6.59
76.5
10,000
Stretch
Passed
22.59
87
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.ring · 27 passing test cases, 30 distinct argument descriptions
, 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.
Using RatMath
The class number and UFD flag identify this ring. Use the two irreducible factorizations of 6 and the norm argument to exhibit the obstruction.
JavaScript module
import * as structures from "@ratmath/structures";
const R = structures.quadraticRing(-5);
console.log([R.classNumber(), R.isUFD]);
Checked output
[2, false]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One to three generators or variables, low polynomial degrees and 2×2 to 5×5 integer presentation matrices.
For this problem type. Use characteristic 2, 3, 5 or 7 and extension degrees typically 2–4. Listing every element costs pᵈ entries.
Focal example. The code above passed its displayed check in 0.537 ms on Node.
Related workload in this unit.structures.Zn.units · modulus. Baseline test points across courses 2, 6, 12, 30. Enumerate the residues independently and select those coprime to n by Euclid's algorithm.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family. Enumerating units or ideals scales with the size of the residue ring. A large modulus encoded in a few digits can still imply a large list.
Measured times, memory and outcomes
modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.373
74.3
6
Baseline
Passed
0.611
75.5
12
Baseline
Passed
0.473
75.1
30
Baseline
Passed
0.541
75
120
Stretch
Passed
1.29
74.5
1,000
Stretch
Passed
6.59
76.5
10,000
Stretch
Passed
22.59
87
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.quadraticRing · 6 passing test cases, 13 distinct argument descriptions
Find the Smith normal form of and the abelian group modulo its columns.
Worked solution
of entries ; of minors ; . So and the cokernel is .
Using RatMath
Enter the integer matrix with its original row and column bases. Read the diagonal invariant factors together with any free summands.
JavaScript module
import * as structures from "@ratmath/structures";
console.log(structures.smithForm([[2, 4, 4], [-6, 6, 12], [10, -4, -16]]).diagonal);
Checked output
[2n, 6n, 12n]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One to three generators or variables, low polynomial degrees and 2×2 to 5×5 integer presentation matrices.
For this problem type. Hand examples use roughly 2–6 rows and columns over the integers. Keep entries small and specify the coefficient ring.
Focal example. The code above passed its displayed check in 0.724 ms on Node.
Same API, measured input family.structures.smithForm · square matrix side. Baseline test points across courses 1, 2, 3, 5. For a diagonal matrix with 1,2,4,… each invariant factor already divides the next.
Practical limit. Largest passing sample 50 (7.52 ms, 81.2 MiB peak process RSS). The runs did not locate a ceiling for this family. Diagonal input is favorable. Dense integer matrices can create large intermediate coefficients even when their final invariant factors are small.
Measured times, memory and outcomes
square matrix side · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
0.310
74.3
2
Baseline
Passed
0.448
75.9
3
Baseline
Passed
0.400
75.2
5
Baseline
Passed
0.423
74.8
10
Stretch
Passed
0.565
75.5
25
Stretch
Passed
2.55
76.1
50
Stretch
Passed
7.52
81.2
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.smithForm · 1 passing test case, 6 distinct argument descriptions
Zero divisors: 2, 3, 4 (, ), plus 0 if counted. Units: 1, 5.
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
const R = structures.Zn(6);
console.log([R.elements().filter((x) => R.isZeroDivisor(x)).map(String), R.units().map(String)]);
Checked output
[["0", "2", "3", "4"], ["1", "5"]]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One to three generators or variables, low polynomial degrees and 2×2 to 5×5 integer presentation matrices.
Focal example. The code above passed its displayed check in 0.198 ms on Node.
Same API, measured input family.structures.Zn.units · modulus. Baseline test points across courses 2, 6, 12, 30. Enumerate the residues independently and select those coprime to n by Euclid's algorithm.
Practical limit. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family. Enumerating units or ideals scales with the size of the residue ring. A large modulus encoded in a few digits can still imply a large list.
Measured times, memory and outcomes
modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.373
74.3
6
Baseline
Passed
0.611
75.5
12
Baseline
Passed
0.473
75.1
30
Baseline
Passed
0.541
75
120
Stretch
Passed
1.29
74.5
1,000
Stretch
Passed
6.59
76.5
10,000
Stretch
Passed
22.59
87
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.Zn · 3 passing test cases, 4 distinct argument descriptions
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
const f = structures.gaussianIntegers().factor(5);
console.log([String(f.unit), f.factors.map((x) => `${x.prime}^${x.exponent}`)]);
Checked output
["1", ["2 − i^1", "2 + i^1"]]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. One to three generators or variables, low polynomial degrees and 2×2 to 5×5 integer presentation matrices.
Focal example. The code above passed its displayed check in 1.53 ms on Node.
Related workload in this unit.structures.Zn.units · modulus. Baseline test points across courses 2, 6, 12, 30. Enumerate the residues independently and select those coprime to n by Euclid's algorithm.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family. Enumerating units or ideals scales with the size of the residue ring. A large modulus encoded in a few digits can still imply a large list.
Measured times, memory and outcomes
modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.373
74.3
6
Baseline
Passed
0.611
75.5
12
Baseline
Passed
0.473
75.1
30
Baseline
Passed
0.541
75
120
Stretch
Passed
1.29
74.5
1,000
Stretch
Passed
6.59
76.5
10,000
Stretch
Passed
22.59
87
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.gaussianIntegers · 3 passing test cases, 1 distinct argument description
In Q[x]/(x²), what can be said about the class of x?
Worked solution
It is nonzero and its square vanishes. This quotient has a nilpotent and cannot be a field.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. One to three generators or variables, low polynomial degrees and 2×2 to 5×5 integer presentation matrices.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 16 / 40 · Ideals and quotients
Evaluation kernels
Worked by hand
Problem
Identify the kernel of Q[x] → Q by evaluation at 2.
Worked solution
Polynomial division by x−2 leaves remainder f(2). Exactly the multiples of x−2 have zero remainder.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. One to three generators or variables, low polynomial degrees and 2×2 to 5×5 integer presentation matrices.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 17 / 40 · Finite and algebraic extensions
Finite fields
Direct calculation@ratmath/structures
Problem
In , find .
Worked solution
, so .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
const F = structures.galoisField(2, 3, [1, 1, 0, 1]);
console.log(F.format(F.inv(F.add(F.gen, F.one))));
Checked output
a² + a
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small characteristic, extension degree usually 2–4, and explicit irreducible defining polynomials.
For this problem type. Use characteristic 2, 3, 5 or 7 and extension degrees typically 2–4. Listing every element costs pᵈ entries.
Focal example. The code above passed its displayed check in 0.517 ms on Node.
Same API, measured input family.structures.galoisField · prime characteristic. Baseline test points across courses 2, 3, 5, 7. Choose an irreducible quadratic over F_p. Exhaustively check a·a⁻¹=1 for each nonzero field element.
Practical limit. Largest passing sample 31 (17.96 ms, 88.5 MiB peak process RSS). The runs did not locate a ceiling for this family. At fixed extension degree two the field already has p² elements. Exhaustive field checks scale with pᵈ at degree d.
Measured times, memory and outcomes
prime characteristic · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.246
75
3
Baseline
Passed
0.302
75.4
5
Baseline
Passed
0.735
75.8
7
Baseline
Passed
3.06
75.8
11
Stretch
Passed
1.63
76.9
19
Stretch
Passed
9.46
80.9
31
Stretch
Passed
17.96
88.5
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.galoisField · 1 passing test case, 1 distinct argument description
Give the Conway polynomial for , that is, the least primitive polynomial of degree 4 over .
Worked solution
The irreducible quartics over are , , ; the last has roots of order 5, and comes first: .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
console.log(structures.conwayPolynomial(2, 4));
Checked output
[1n, 1n, 0n, 0n, 1n]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small characteristic, extension degree usually 2–4, and explicit irreducible defining polynomials.
For this problem type. Use characteristic 2, 3, 5 or 7 and extension degrees typically 2–4. Listing every element costs pᵈ entries.
Focal example. The code above passed its displayed check in 0.500 ms on Node.
Related workload in this unit.structures.Zn.units · modulus. Baseline test points across courses 2, 6, 12, 30. Enumerate the residues independently and select those coprime to n by Euclid's algorithm.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family. Enumerating units or ideals scales with the size of the residue ring. A large modulus encoded in a few digits can still imply a large list.
Measured times, memory and outcomes
modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.373
74.3
6
Baseline
Passed
0.611
75.5
12
Baseline
Passed
0.473
75.1
30
Baseline
Passed
0.541
75
120
Stretch
Passed
1.29
74.5
1,000
Stretch
Passed
6.59
76.5
10,000
Stretch
Passed
22.59
87
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.conwayPolynomial · 1 passing test case, 6 distinct argument descriptions
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as algebraic from "@ratmath/algebraic";
const A = algebraic;
console.log(A.minimalPolynomial(A.add(A.sqrt(A.fromRational(2)), A.sqrt(A.fromRational(3)))));
Checked output
[1n, 0n, -10n, 0n, 1n]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small characteristic, extension degree usually 2–4, and explicit irreducible defining polynomials.
Focal example. The code above passed its displayed check in 1.37 ms on Node.
Same API, measured input family.algebraic.sqrt · integer scale k. Baseline test points across courses 1, 2, 7, 50. √(k²) has the nonnegative rational value k.
Practical limit. Largest passing sample 1,000,000 (0.266 ms, 74.3 MiB peak process RSS). The runs did not locate a ceiling for this family. This sweep uses perfect squares. Nonsquares involve algebraic representations and higher-degree combinations can cost substantially more.
Measured times, memory and outcomes
integer scale k · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
0.312
75.2
2
Baseline
Passed
0.275
75.7
7
Baseline
Passed
0.237
75.3
50
Baseline
Passed
0.238
74.1
10,000
Stretch
Passed
0.285
74.1
1,000,000
Stretch
Passed
0.266
74.3
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
algebraic.minimalPolynomial · 3 passing test cases, 1 distinct argument description
Find a primitive element of and the degree of the extension.
Worked solution
Degree 4 (); is primitive.
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
const E = structures.extension({ a: "a^2 - 2", b: "b^2 - 3" });
console.log([E.degreeOver(), String(E.primitiveElement().element)]);
Checked output
[4, "a + b"]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small characteristic, extension degree usually 2–4, and explicit irreducible defining polynomials.
Focal example. The code above passed its displayed check in 4.59 ms on Node.
Related workload in this unit.structures.Zn.units · modulus. Baseline test points across courses 2, 6, 12, 30. Enumerate the residues independently and select those coprime to n by Euclid's algorithm.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family. Enumerating units or ideals scales with the size of the residue ring. A large modulus encoded in a few digits can still imply a large list.
Measured times, memory and outcomes
modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.373
74.3
6
Baseline
Passed
0.611
75.5
12
Baseline
Passed
0.473
75.1
30
Baseline
Passed
0.541
75
120
Stretch
Passed
1.29
74.5
1,000
Stretch
Passed
6.59
76.5
10,000
Stretch
Passed
22.59
87
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.extension · 3 passing test cases, 3 distinct argument descriptions
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
console.log(structures.extension({ a: "a^3 - 2", w: "w^2 + w + 1" }).degreeOver());
Checked output
6
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small characteristic, extension degree usually 2–4, and explicit irreducible defining polynomials.
Focal example. The code above passed its displayed check in 3.56 ms on Node.
Related workload in this unit.structures.Zn.units · modulus. Baseline test points across courses 2, 6, 12, 30. Enumerate the residues independently and select those coprime to n by Euclid's algorithm.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family. Enumerating units or ideals scales with the size of the residue ring. A large modulus encoded in a few digits can still imply a large list.
Measured times, memory and outcomes
modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.373
74.3
6
Baseline
Passed
0.611
75.5
12
Baseline
Passed
0.473
75.1
30
Baseline
Passed
0.541
75
120
Stretch
Passed
1.29
74.5
1,000
Stretch
Passed
6.59
76.5
10,000
Stretch
Passed
22.59
87
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.extension · 3 passing test cases, 3 distinct argument descriptions
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
const R = structures.Zn(7);
console.log([R.isField, String(R.inverse(3))]);
Checked output
[true, "5"]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small characteristic, extension degree usually 2–4, and explicit irreducible defining polynomials.
Focal example. The code above passed its displayed check in 0.132 ms on Node.
Related workload in this unit.structures.Zn.units · modulus. Baseline test points across courses 2, 6, 12, 30. Enumerate the residues independently and select those coprime to n by Euclid's algorithm.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 10,000 (22.59 ms, 87 MiB peak process RSS). The runs did not locate a ceiling for this family. Enumerating units or ideals scales with the size of the residue ring. A large modulus encoded in a few digits can still imply a large list.
Measured times, memory and outcomes
modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.373
74.3
6
Baseline
Passed
0.611
75.5
12
Baseline
Passed
0.473
75.1
30
Baseline
Passed
0.541
75
120
Stretch
Passed
1.29
74.5
1,000
Stretch
Passed
6.59
76.5
10,000
Stretch
Passed
22.59
87
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.Zn · 3 passing test cases, 4 distinct argument descriptions
How many elements does a degree-three extension of F₅ have?
Worked solution
Three coordinates each have five choices.
Using RatMath
Put the arithmetic inside the R tag so RatMath parses the literals. Keep fractions as ratios throughout the calculation and attach the units from the problem to the result.
JavaScript module
import { R } from "@ratmath/core";
console.log(String(R`5^3`));
Checked output
125
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small characteristic, extension degree usually 2–4, and explicit irreducible defining polynomials.
Focal example. The code above passed its displayed check in 0.098 ms on Node.
Same arithmetic expression. Replaced its first numeral 5 with 0, 1, 2, 7, 12, 100, 1000, -3, 1/2. All 9 defined variants agreed exactly with Python’s rational arithmetic. This varies the arithmetic operation while holding the rest of the expression fixed.
Related workload in this unit.core.Rational.multiply · operand bits. Baseline test points across courses 8, 32, 64, 256. Cross-multiply the unreduced integer products; operands have unlike denominators.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 131,072 (1.53 ms, 75.5 MiB peak process RSS). The runs did not locate a ceiling for this family. Intermediate products can have twice the bit length of their factors. Repeated squaring can exhaust the engine’s BigInt allocation limit in a small number of steps.
Measured times, memory and outcomes
operand bits · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
8
Baseline
Passed
0.317
74.6
32
Baseline
Passed
0.035
75.5
64
Baseline
Passed
0.045
75.1
256
Baseline
Passed
0.106
74
1,024
Stretch
Passed
0.035
75.3
8,192
Stretch
Passed
0.075
75.8
32,768
Stretch
Passed
0.245
75
131,072
Stretch
Passed
1.53
75.5
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
core.R · 2 passing test cases, 10 distinct argument descriptions
In characteristic p, what is the formal derivative of xᵖ−a?
Worked solution
It is zero since the coefficient p vanishes. Over a splitting field the polynomial has a repeated root.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. Small characteristic, extension degree usually 2–4, and explicit irreducible defining polynomials.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 25 / 40 · Galois correspondence
Galois group of a cubic
Direct calculation@ratmath/algebraic
Problem
Find the Galois group of over .
Worked solution
Irreducible with discriminant , not a square: , order 6.
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as algebraic from "@ratmath/algebraic";
const g = algebraic.galoisGroup([-2n, 0n, 0n, 1n]);
console.log([g.name, g.order, g.discriminant]);
Checked output
["S3", 6, -108]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Textbook rational polynomials commonly have degrees 2–5 and modest coefficients. Separability and irreducibility affect the interpretation.
For this problem type. Use low-degree defining polynomials, often degree 2–5, and one or two generators. State the base field and multiplicity or irreducibility assumptions.
Focal example. The code above passed its displayed check in 0.668 ms on Node.
Same API, measured input family.algebraic.galoisGroup · prime radicand. Baseline test points across courses 2, 3, 5, 11. x³−p is Eisenstein and has nonsquare discriminant −27p², so its Galois group has order 6.
Practical limit. Largest passing sample 10,007 (2.41 ms, 74.9 MiB peak process RSS). The runs did not locate a ceiling for this family. Coefficient size is varied at fixed cubic degree. Resolvents, factoring and composita at larger degree can change the difficulty sharply.
Measured times, memory and outcomes
prime radicand · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
2.53
74.8
3
Baseline
Passed
2.30
75.6
5
Baseline
Passed
2.02
75.1
11
Baseline
Passed
2.39
75.4
101
Stretch
Passed
1.92
75.6
1,009
Stretch
Passed
3.47
76.6
10,007
Stretch
Passed
2.41
74.9
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
algebraic.galoisGroup · 7 passing test cases, 25 distinct argument descriptions
[-2, 0, 1] (n=3) or [-2, 0, 0, 1] (n=4) · degrees 2 to 4
Irreducible (no rational roots), discriminant , a square: .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as algebraic from "@ratmath/algebraic";
const g = algebraic.galoisGroup([1n, -3n, 0n, 1n]);
console.log([g.name, g.discriminant, g.discriminantIsSquare]);
Checked output
["C3", 81, true]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Textbook rational polynomials commonly have degrees 2–5 and modest coefficients. Separability and irreducibility affect the interpretation.
For this problem type. Use low-degree defining polynomials, often degree 2–5, and one or two generators. State the base field and multiplicity or irreducibility assumptions.
Focal example. The code above passed its displayed check in 0.193 ms on Node.
Same API, measured input family.algebraic.galoisGroup · prime radicand. Baseline test points across courses 2, 3, 5, 11. x³−p is Eisenstein and has nonsquare discriminant −27p², so its Galois group has order 6.
Practical limit. Largest passing sample 10,007 (2.41 ms, 74.9 MiB peak process RSS). The runs did not locate a ceiling for this family. Coefficient size is varied at fixed cubic degree. Resolvents, factoring and composita at larger degree can change the difficulty sharply.
Measured times, memory and outcomes
prime radicand · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
2.53
74.8
3
Baseline
Passed
2.30
75.6
5
Baseline
Passed
2.02
75.1
11
Baseline
Passed
2.39
75.4
101
Stretch
Passed
1.92
75.6
1,009
Stretch
Passed
3.47
76.6
10,007
Stretch
Passed
2.41
74.9
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
algebraic.galoisGroup · 7 passing test cases, 25 distinct argument descriptions
[-2, 0, 1] (n=3) or [-2, 0, 0, 1] (n=4) · degrees 2 to 4
Splitting field of degree 8; the group is the dihedral group of order 8.
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as algebraic from "@ratmath/algebraic";
const g = algebraic.galoisGroup([-2n, 0n, 0n, 0n, 1n]);
console.log([g.name, g.order]);
Checked output
["D4", 8]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Textbook rational polynomials commonly have degrees 2–5 and modest coefficients. Separability and irreducibility affect the interpretation.
For this problem type. Use low-degree defining polynomials, often degree 2–5, and one or two generators. State the base field and multiplicity or irreducibility assumptions.
Focal example. The code above passed its displayed check in 0.485 ms on Node.
Same API, measured input family.algebraic.galoisGroup · prime radicand. Baseline test points across courses 2, 3, 5, 11. x³−p is Eisenstein and has nonsquare discriminant −27p², so its Galois group has order 6.
Practical limit. Largest passing sample 10,007 (2.41 ms, 74.9 MiB peak process RSS). The runs did not locate a ceiling for this family. Coefficient size is varied at fixed cubic degree. Resolvents, factoring and composita at larger degree can change the difficulty sharply.
Measured times, memory and outcomes
prime radicand · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
2.53
74.8
3
Baseline
Passed
2.30
75.6
5
Baseline
Passed
2.02
75.1
11
Baseline
Passed
2.39
75.4
101
Stretch
Passed
1.92
75.6
1,009
Stretch
Passed
3.47
76.6
10,007
Stretch
Passed
2.41
74.9
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
algebraic.galoisGroup · 7 passing test cases, 25 distinct argument descriptions
[-2, 0, 1] (n=3) or [-2, 0, 0, 1] (n=4) · degrees 2 to 4
Its roots generate of degree 4, with automorphisms flipping each sign: .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as algebraic from "@ratmath/algebraic";
const g = algebraic.galoisGroup([1n, 0n, -10n, 0n, 1n]);
console.log([g.name, g.order]);
Checked output
["V4", 4]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Textbook rational polynomials commonly have degrees 2–5 and modest coefficients. Separability and irreducibility affect the interpretation.
For this problem type. Use low-degree defining polynomials, often degree 2–5, and one or two generators. State the base field and multiplicity or irreducibility assumptions.
Focal example. The code above passed its displayed check in 1.16 ms on Node.
Same API, measured input family.algebraic.galoisGroup · prime radicand. Baseline test points across courses 2, 3, 5, 11. x³−p is Eisenstein and has nonsquare discriminant −27p², so its Galois group has order 6.
Practical limit. Largest passing sample 10,007 (2.41 ms, 74.9 MiB peak process RSS). The runs did not locate a ceiling for this family. Coefficient size is varied at fixed cubic degree. Resolvents, factoring and composita at larger degree can change the difficulty sharply.
Measured times, memory and outcomes
prime radicand · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
2.53
74.8
3
Baseline
Passed
2.30
75.6
5
Baseline
Passed
2.02
75.1
11
Baseline
Passed
2.39
75.4
101
Stretch
Passed
1.92
75.6
1,009
Stretch
Passed
3.47
76.6
10,007
Stretch
Passed
2.41
74.9
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
algebraic.galoisGroup · 7 passing test cases, 25 distinct argument descriptions
[-2, 0, 1] (n=3) or [-2, 0, 0, 1] (n=4) · degrees 2 to 4
It is irreducible (mod 5 it is the Artin–Schreier polynomial, irreducible), and its Galois group is , which is not solvable. So no.
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as algebraic from "@ratmath/algebraic";
const g = algebraic.galoisGroup([-1n, -1n, 0n, 0n, 0n, 1n]);
console.log([g.name, g.solvable]);
Checked output
["S5", false]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Textbook rational polynomials commonly have degrees 2–5 and modest coefficients. Separability and irreducibility affect the interpretation.
For this problem type. Use low-degree defining polynomials, often degree 2–5, and one or two generators. State the base field and multiplicity or irreducibility assumptions.
Focal example. The code above passed its displayed check in 90.54 ms on Node.
Same API, measured input family.algebraic.galoisGroup · prime radicand. Baseline test points across courses 2, 3, 5, 11. x³−p is Eisenstein and has nonsquare discriminant −27p², so its Galois group has order 6.
Practical limit. Largest passing sample 10,007 (2.41 ms, 74.9 MiB peak process RSS). The runs did not locate a ceiling for this family. Coefficient size is varied at fixed cubic degree. Resolvents, factoring and composita at larger degree can change the difficulty sharply.
Measured times, memory and outcomes
prime radicand · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
2.53
74.8
3
Baseline
Passed
2.30
75.6
5
Baseline
Passed
2.02
75.1
11
Baseline
Passed
2.39
75.4
101
Stretch
Passed
1.92
75.6
1,009
Stretch
Passed
3.47
76.6
10,007
Stretch
Passed
2.41
74.9
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
algebraic.galoisGroup · 7 passing test cases, 25 distinct argument descriptions
[-2, 0, 1] (n=3) or [-2, 0, 0, 1] (n=4) · degrees 2 to 4
has order 3, so the quotient has order 4, generated by : it is .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
const G = structures.cyclic(12);
const Q = G.quotient(G.subgroup([G.element(4)]));
console.log([Q.order, Q.isCyclic]);
Checked output
[4, true]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Textbook rational polynomials commonly have degrees 2–5 and modest coefficients. Separability and irreducibility affect the interpretation.
For this problem type. Common examples include cyclic orders under 30, polygons with 3–12 sides, and permutations on 3–5 letters. Group order and permutation degree measure different things.
Focal example. The code above passed its displayed check in 0.652 ms on Node.
Related workload in this unit.structures.cyclic.elementOrder · group order. Baseline test points across courses 2, 4, 6, 12, 24. The element 2 of Z/n has order n/gcd(2,n).
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 1,000 (116 ms, 80.6 MiB peak process RSS). RSS cutoff at 10,000. The first sampled passing call above 100 ms used 1,000 (116 ms). Element orders are cheap compared with constructing every subgroup. Check the representation and group operation before transferring a timing.
Measured times, memory and outcomes
group order · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.739
74.6
4
Baseline
Passed
0.827
75.3
6
Baseline
Passed
0.937
75.2
12
Baseline
Passed
0.954
76.2
24
Baseline
Passed
1.52
75.9
100
Stretch
Passed
7.19
76.4
1,000
Stretch
Passed
116
80.6
10,000
Stretch
RSS cutoff
—
393.3
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.cyclic · 31 passing test cases, 11 distinct argument descriptions
How many Sylow 3-subgroups and Sylow 2-subgroups does have?
Worked solution
, : ; the eight 3-cycles make four subgroups of order 3, so . is odd and divides 3; the Sylow 2-subgroups are the three copies of : .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
const G = structures.symmetric(4);
console.log([G.sylowCount(3), G.sylowCount(2)]);
Checked output
[4, 3]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Textbook rational polynomials commonly have degrees 2–5 and modest coefficients. Separability and irreducibility affect the interpretation.
For this problem type. Common examples include cyclic orders under 30, polygons with 3–12 sides, and permutations on 3–5 letters. Group order and permutation degree measure different things.
Focal example. The code above passed its displayed check in 0.749 ms on Node.
Related workload in this unit.structures.symmetric.orderStatistics · permuted points. Baseline test points across courses 2, 3, 4, 5. Count every permutation by order; the histogram totals n! and contains one identity.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 7 (73.20 ms, 89.4 MiB peak process RSS). Library refusal at 8. The first sampled passing call above 100 ms used 6 (157 ms). An explicit order histogram visits group elements. Sₙ has n! elements. A formula for the order of Sₙ avoids this enumeration.
Measured times, memory and outcomes
permuted points · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
1.16
75.6
3
Baseline
Passed
1.36
75.1
4
Baseline
Passed
2.07
75.2
5
Baseline
Passed
10.28
80.6
6
Stretch
Passed
157
90.6
7
Stretch
Passed
73.20
89.4
8
Stretch
Library refusal · RangeError: the group has more than 20000 elements
26.99
90.1
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.symmetric · 40 passing test cases, 7 distinct argument descriptions
Under complex conjugation on Q(i), determine the fixed subfield.
Worked solution
An element a+bi is fixed exactly when b=0. The fixed elements are Q.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. Textbook rational polynomials commonly have degrees 2–5 and modest coefficients. Separability and irreducibility affect the interpretation.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 33 / 40 · Constructibility and applications
Constructibility: the 7-gon
Direct calculation@ratmath/algebraic · @ratmath/structures
Problem
Is the regular heptagon constructible with ruler and compass?
Worked solution
is a root of , irreducible of degree 3, not a power of 2: not constructible.
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as algebraic from "@ratmath/algebraic";
import * as structures from "@ratmath/structures";
console.log(structures.constructible(algebraic.cosMinimal(7)).constructible);
Checked output
false
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small cyclotomic indices and low-degree tower or construction problems; a power-of-two degree alone is insufficient in general.
For this problem type. Use low-degree defining polynomials, often degree 2–5, and one or two generators. State the base field and multiplicity or irreducibility assumptions.
Focal example. The code above passed its displayed check in 1.52 ms on Node.
Related workload in this unit.symbolic.expand · degree. Baseline test points across courses 1, 2, 4, 8. Sum the expanded coefficients at x=1 by direct substitution; result 2^n. Also check at x=0 and 2.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 128 (47.68 ms, 96.3 MiB peak process RSS). The runs did not locate a ceiling for this family. A univariate binomial has n+1 terms. With several variables the number of monomials can grow combinatorially even at modest degree.
Measured times, memory and outcomes
degree · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
26.10
75.9
2
Baseline
Passed
3.05
75.5
4
Baseline
Passed
2.75
77.3
8
Baseline
Passed
4.23
79.5
16
Stretch
Passed
5.88
82.6
32
Stretch
Passed
6.12
87.9
64
Stretch
Passed
15.73
89.5
128
Stretch
Passed
47.68
96.3
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.constructible · 5 passing test cases, 13 distinct argument descriptions
Direct calculation@ratmath/algebraic · @ratmath/structures
Problem
Is the regular 17-gon constructible?
Worked solution
Yes (Gauss): 17 is a Fermat prime, , and is an abelian extension of degree 8.
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as algebraic from "@ratmath/algebraic";
import * as structures from "@ratmath/structures";
const c = structures.constructible(algebraic.cosMinimal(17));
console.log([c.constructible, c.factors[0].cosine.n]);
Checked output
[true, 17]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small cyclotomic indices and low-degree tower or construction problems; a power-of-two degree alone is insufficient in general.
For this problem type. Use low-degree defining polynomials, often degree 2–5, and one or two generators. State the base field and multiplicity or irreducibility assumptions.
Focal example. The code above passed its displayed check in 0.916 ms on Node.
Related workload in this unit.symbolic.expand · degree. Baseline test points across courses 1, 2, 4, 8. Sum the expanded coefficients at x=1 by direct substitution; result 2^n. Also check at x=0 and 2.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 128 (47.68 ms, 96.3 MiB peak process RSS). The runs did not locate a ceiling for this family. A univariate binomial has n+1 terms. With several variables the number of monomials can grow combinatorially even at modest degree.
Measured times, memory and outcomes
degree · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
26.10
75.9
2
Baseline
Passed
3.05
75.5
4
Baseline
Passed
2.75
77.3
8
Baseline
Passed
4.23
79.5
16
Stretch
Passed
5.88
82.6
32
Stretch
Passed
6.12
87.9
64
Stretch
Passed
15.73
89.5
128
Stretch
Passed
47.68
96.3
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.constructible · 5 passing test cases, 13 distinct argument descriptions
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as algebraic from "@ratmath/algebraic";
console.log(algebraic.cyclotomic(12));
Checked output
[1n, 0n, -1n, 0n, 1n]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small cyclotomic indices and low-degree tower or construction problems; a power-of-two degree alone is insufficient in general.
For this problem type. Use low-degree defining polynomials, often degree 2–5, and one or two generators. State the base field and multiplicity or irreducibility assumptions.
Focal example. The code above passed its displayed check in 0.157 ms on Node.
Related workload in this unit.symbolic.expand · degree. Baseline test points across courses 1, 2, 4, 8. Sum the expanded coefficients at x=1 by direct substitution; result 2^n. Also check at x=0 and 2.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 128 (47.68 ms, 96.3 MiB peak process RSS). The runs did not locate a ceiling for this family. A univariate binomial has n+1 terms. With several variables the number of monomials can grow combinatorially even at modest degree.
Measured times, memory and outcomes
degree · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
1
Baseline
Passed
26.10
75.9
2
Baseline
Passed
3.05
75.5
4
Baseline
Passed
2.75
77.3
8
Baseline
Passed
4.23
79.5
16
Stretch
Passed
5.88
82.6
32
Stretch
Passed
6.12
87.9
64
Stretch
Passed
15.73
89.5
128
Stretch
Passed
47.68
96.3
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
algebraic.cyclotomic · 1 passing test case, 2 distinct argument descriptions
Can compass and straightedge construct a segment of length ∛2 starting from a unit segment?
Worked solution
The minimal polynomial x³−2 is Eisenstein at 2, so its degree is 3. An element of a tower of quadratic extensions must have degree dividing a power of 2.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. Small cyclotomic indices and low-degree tower or construction problems; a power-of-two degree alone is insufficient in general.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 37 / 40 · Constructibility and applications
Primitive roots
Direct calculation@ratmath/numtheory
Problem
Find the least primitive root modulo 13.
Worked solution
, , so : 2 has order 12 and is a primitive root.
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as numtheory from "@ratmath/numtheory";
console.log(numtheory.primitiveRoot(13));
Checked output
2n
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small cyclotomic indices and low-degree tower or construction problems; a power-of-two degree alone is insufficient in general.
For this problem type. Use small moduli, often 2–200, and one to four congruences or trial residues. Verify coprimality or primality when required.
Focal example. The code above passed its displayed check in 0.164 ms on Node.
Same API, measured input family.numtheory.primitiveRoot · prime modulus. Baseline test points across courses 3, 5, 7, 11, 23. Powers of a primitive root must visit every nonzero residue modulo p.
Practical limit. Largest passing sample 10,007 (0.286 ms, 75.6 MiB peak process RSS). The runs did not locate a ceiling for this family. Primitive roots exist for prime moduli here. Composite moduli need existence checks. Generating and retaining every power is linear in the group order.
Measured times, memory and outcomes
prime modulus · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
3
Baseline
Passed
0.244
75.7
5
Baseline
Passed
0.247
75.4
7
Baseline
Passed
0.373
75.4
11
Baseline
Passed
0.335
74.6
23
Baseline
Passed
0.406
74.9
101
Stretch
Passed
0.302
75.7
1,009
Stretch
Passed
0.283
73.9
10,007
Stretch
Passed
0.286
75.6
Each row measures the stated fixture. Other inputs to this API can take different paths. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Day 38 / 40 · Constructibility and applications
Finite abelian groups
Direct calculation@ratmath/structures
Problem
List the abelian groups of order 72 up to isomorphism.
Worked solution
: three partitions of 3 times two partitions of 2, six groups: , , , , , .
Using RatMath
Use the data and parameter order shown below. Compare the returned value with the intermediate quantities in the worked solution.
JavaScript module
import * as structures from "@ratmath/structures";
console.log(structures.abelianGroups(72).map(String));
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small cyclotomic indices and low-degree tower or construction problems; a power-of-two degree alone is insufficient in general.
Focal example. The code above passed its displayed check in 0.557 ms on Node.
Related workload in this unit.structures.cyclic.elementOrder · group order. Baseline test points across courses 2, 4, 6, 12, 24. The element 2 of Z/n has order n/gcd(2,n).
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 1,000 (116 ms, 80.6 MiB peak process RSS). RSS cutoff at 10,000. The first sampled passing call above 100 ms used 1,000 (116 ms). Element orders are cheap compared with constructing every subgroup. Check the representation and group operation before transferring a timing.
Measured times, memory and outcomes
group order · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
2
Baseline
Passed
0.739
74.6
4
Baseline
Passed
0.827
75.3
6
Baseline
Passed
0.937
75.2
12
Baseline
Passed
0.954
76.2
24
Baseline
Passed
1.52
75.9
100
Stretch
Passed
7.19
76.4
1,000
Stretch
Passed
116
80.6
10,000
Stretch
RSS cutoff
—
393.3
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
structures.abelianGroups · 1 passing test case, 6 distinct argument descriptions
Can an element of degree 3 over Q lie in a field of degree 8 over Q?
Worked solution
The tower law would force 3 to divide 8. Such an inclusion is impossible.
Working without a calculator
Use the argument or construction in the worked solution. This lesson assigns the reasoning to the student.
Input range and limits
Typical inputs for this unit. Small cyclotomic indices and low-degree tower or construction problems; a power-of-two degree alone is insufficient in general.
Scope of verification. This day asks for a hand argument, construction or interpretation. The worked instance gives the input. General claims need the reasoning shown above. A measured time, memory ceiling or finite input sweep would not verify that claim.
Day 40 / 40 · Constructibility and applications
Module invariant
Direct calculation@ratmath/numtheory · @ratmath/core
Problem
A finite abelian group has invariant factors 2 and 12. Find its order and exponent.
Worked solution
Multiply the factors for order 24. Their least common multiple is the exponent 12.
Using RatMath
Construct an Integer or Rational before applying its methods. Use fraction strings or integer inputs to preserve exact values.
JavaScript module
import * as numtheory from "@ratmath/numtheory";
import { Integer } from "@ratmath/core";
console.log([new Integer(2*12),numtheory.lcm(2,12)]);
Checked output
[24, 12n]
Run this example locally
Use the integrated RatMath workspace with the subject packages linked. Save this example as lesson.mjs in its root and run node lesson.mjs. The guide formats library objects as mathematical values. Your console may also print their fields or JavaScript type suffixes.
Typical inputs for this unit. Small cyclotomic indices and low-degree tower or construction problems; a power-of-two degree alone is insufficient in general.
Focal example. The code above passed its displayed check in 0.188 ms on Node.
Related workload in this unit.numtheory.factor · known semiprime. Baseline test points across courses 15, 77, 899, 10,403. Recover both planted prime factors, including exponent one.
Practical limit. The cutoff for this lesson’s own code is unmeasured. Largest passing sample 1,000,036,000,099 (5.12 ms, 77 MiB peak process RSS). The runs did not locate a ceiling for this family. Equal-length integers can have very different factoring times. These planted semiprimes give sample timings, with no general bound for the next integer.
Measured times, memory and outcomes
known semiprime · one run per input
Input
Sample
Result
Call (ms)
Peak RSS (MiB)
15
Baseline
Passed
0.331
76
77
Baseline
Passed
0.309
76.3
899
Baseline
Passed
0.298
74.9
10,403
Baseline
Passed
0.327
75.7
1,022,117
Stretch
Passed
0.397
75.8
100,160,063
Stretch
Passed
0.922
75.4
1,000,036,000,099
Stretch
Passed
5.12
77
Each row measures the stated fixture. This workload uses a different operation or expression from the focal example. Its thresholds apply only to the named fixture. Course intervals are estimates. Finite samples leave intermediate inputs and other problem families unverified.
Additional inputs from package tests
These arguments were observed in passing test cases. The linked assertions show what the tests actually checked. Structured inputs are abbreviated.
numtheory.lcm · 1 passing test case, 1 distinct argument description