feat(kernel): back irrational numbers with FLINT qqbar #41
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/qqbar-kernel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For #33. Replaces the kernel's
Algrepresentation (resultant arithmetic) with a FLINTqqbarbackend behind the unchangedNumAPI;Ratand same-generatorFieldstay pure OCaml fast paths. Drops the H(Y)/certify pipeline (candidate roots are verified by exact qqbar evaluation instead), swapsMpoly.resultant's Laplace determinant for evaluation+interpolation, and — new in the last commit — bumps FLINT to 3.6.0 to use_qqbar_roots_poly_squarefree(roots of polynomials with algebraic coefficients) as the primary path for the axiom-6/7 cubics, with the elimination pipeline as fallback behind an exact discriminant guard.Measured: cross-field compare >120s → 1ms; axiom 7 with √2/4 input >120s → 5ms; (√2+√3)/8 never completed → 0.113s; stacked cubics round 3 at 0.068s, round 4 walls (intrinsic — canonical degree-81 minimal polynomials are heavy even for FLINT; documented). Full history and verdict in
notes/2026-07-03-33-verdict.md, decision in ADR 0013 (supersedes the Alg part of 0012). New dependency: flint 3.6.0 (LGPL, flake source override until nixpkgs catches up — first build compiles FLINT, ~10 min). The num suite drops from 76s to 0.5s; goldens:cube-root.foldre-baselined (qqbarto_floatis correctly rounded; old value was the midpoint of a 1e-12 interval, deltas ~4e-13).dfaa422e18to03acbc9b729ed72cbf79to10d2c2642e