lesson-proposals.md

back to table · edit · history · where entries came from · files · download

1885 bytes, as of the version from 2026-11-26 10:19 (current). Recorded here, not run.

# Contributor lessons proposed by the T814 build

## Probe the real and complex ball protocols separately
What happened: Sage 10.9 ComplexBall has no is_finite method, whereas
RealBall does. The rigorous checker needed finite real and imaginary
components. A RealBall radius is an MPFR value and comparison with an Arb
threshold raised a coercion TypeError; converting that bound to the real-ball
field preserved an outward enclosure and made the comparison meaningful.
What the skill says now: reject NaN and excessively wide enclosures, and
probe Sage operations in the actual runtime.
What it should say: a possible example should test both complex components
and normalize bound types before comparisons; test the predicate with finite
known answers, NaN and a wide finite interval. This is a proposed example,
not a reason to mandate one internal library protocol.
Evidence: probe-checks.log, probe_intervals.py, checks.py and the successful
checks-stored.json, using Sage 10.9 and numberdb 0.1.10.

## Retain exact components when scaling cyclotomic values
What happened: S entries have form A/sqrt(D), with exact cyclotomic A and
positive integer D. For either exact real component u of A, u/sqrt(D) is
rational iff u^2/D is a rational square. An exact square test plus a certified
sign identifies rational components and zeros without decimal reconstruction.
What the skill says now: determine rational components mathematically and
preserve them using ComplexInterval with exact Fraction components.
What it should say: consider this exact-square criterion as a worked example
when adding examples, with tests covering nonzero rational, irrational and
zero components. No change to the canonical skill is made by this build.
Evidence: generate.py, measurement.json (740 exact components, including
608 zero components), checks-stored.json (670 independently checked entries).