Factor Tree Builder
The learner builds a factor tree split by split in Z, Z[i], Z[sqrt(d)] (d < 0) or the Hilbert monoid, choosing each split from the list of nontrivial factorizations; leaves that cannot split further are marked (norms explain why), completed routes are saved and compared up to associates, and the leaves can be refined to prime ideals to see uniqueness restored. A prime-test mode checks whether p | ab forces p | a or p | b and can search every pair for a witness.
Used in: Ring Theory
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | "Factor trees in ℤ[√−5]" (by mode and ring) | Title bar text. |
| controls | string[] | all controls shown | Ids of the hideable controls and readouts to show (see the controls registry, e.g. readout.norm, readout.irreducible, panel.routes, readout.associates, layer.ideals). Core controls always show. Page building fills this from the subject's topic scope. |
| mode | "tree" | "prime" | "prime" when p, a or b is given, else "tree" | tree: build factor trees of element. prime: a prime test for p with the pair a, b (editable, with a search over every pair), above the factor tree of ab. |
| ring | string | "Z[sqrt(-5)]" | "Z", "Z[i]", "Z[sqrt(d)]" for any d < 0 that is not minus a square ("Z[sqrt(-3)]", "Z[sqrt(3) i]", "Z[\\sqrt{-5}]" also read), or "hilbert-monoid" (H = {1, 5, 9, 13, ...}). Real quadratic rings are not supported. |
| element | string | number | by ring: Z 360, Z[i] 10, Z[sqrt(d)] 1-d (6 in Z[sqrt(-5)], 4 in Z[sqrt(-3)]), H 441 | Tree mode: the element to factor, e.g. 6, "1+sqrt(-5)", "3-i", "2+3i". The learner can type another. Norm at most 10^8 (|n| at most 10^12 in Z). |
| factorizations | string[] | [] | Complete routes saved at start, each a product of the root's factors, e.g. ["2*3", "(1+sqrt(-5))*(1-sqrt(-5))"] or ["2^3*3^2*5"]. They are compared up to order and associates; a factor that still splits is flagged. Up to 8. |
| showNorms | boolean | true | Quadratic rings: show N(x) = a^2 - d b^2 under every node and in the split choices, and use norms in the irreducibility explanations. |
| idealLayer | boolean | false | Start with the leaves refined to prime ideals (Z, and Z[sqrt(d)] with d squarefree, d = 2, 3 mod 4), with a legend of the prime ideals and which are principal; in the Hilbert monoid, refine to primes of Z. The learner can switch it. |
| autoBuild | boolean | false | Start with the live tree already fully split (the most balanced split at every node), instead of the bare root. The learner can step back or reset. |
| p | string | number | prime mode: an irreducible non-prime of small norm (2 in Z[sqrt(-5)], Z[sqrt(-3)]) | Prime mode: the element tested for primality. |
| a | string | number | prime mode: a witness pair when p is not prime | Prime mode: first factor of the product ab. |
| b | string | number | prime mode: a witness pair when p is not prime | Prime mode: second factor of the product ab. |
| compareRing | string | none | A second ring shown below the first, with its own tree (tree mode) or prime test (prime mode), e.g. Z[sqrt(-3)] next to Z[i]. |
| compareElement | string | number | tree mode: the ring's default element; prime mode: an irreducible non-prime with its witness | Tree mode: the element factored in compareRing. Prime mode: the p tested there (its witness pair is found automatically). |