back to table · edit · history · where entries came from · files · download
1502 bytes, as of the version from 2026-12-01 12:19 (current). Recorded here, not run.
# Contributor lesson proposal (not accepted)
## Compare Sage interval endpoints when checking identical enclosures
What happened: The T892 displayed Sage program and generator returned the same
MPFI enclosure for every selected radix, but `assert a == c` failed. A probe
showed `a == c` false even while both exact lower endpoints and both exact upper
endpoints were equal, for all fifteen nonzero-width intervals in Sage 10.9.
The checker was corrected; the mathematical generator and data were unchanged.
What the skill says now: It requires finite, non-vacuous enclosures and checking
the stored interval, but does not explain interval equality semantics.
What it should say: To establish that two MPFI enclosures are identical as sets,
compare their exact lower and upper endpoints. Do not treat Sage's interval
comparison `==` as a set-equality test. For mathematical validation, use a
justified containment or intersection criterion as appropriate, with finite
width bounds, and obtain binary endpoint rationals via `exact_rational()`.
Evidence: `program-check-failed.log`, `program_diagnose.py` and
`program-diagnose.log` in this run's persistent work directory. For b=2..16:
operator== False; lower_equal True; upper_equal True; serialized_equal True.
The corrected `program_check.py` checks both exact endpoints and serialization.
This behavior can affect an outside contributor on their own Sage installation;
it is a contributor lesson proposal, not a deployment failure or skill edit.