cas-lib-integrate-cubic-quadratic-antiderivative
- Kind
- witness-replay
- Status
- checked
Supports: integrate(3x^2+2x, x) returns the antiderivative x^3+x^2 exactly, with a Certified{equal:true} proof obtained by differentiating back and zero-testing
cargo test -p axeyum-cas --lib tests::integrate_polynomial_is_certified -- --exact 2>/dev/null | grep -cE '^test tests::integrate_polynomial_is_certified \.\.\. ok$' Evidence notes
Verified both directions on this host: the real test path gives count=1, exit=0; the same command against a deliberately wrong test path (…_WRONG) gives count=0, exit=1. `grep -cE` consumes the pipe so it cannot SIGPIPE. The pinned antiderivative x^3+x^2 is what makes this fail on a wrong computation rather than merely on a broken build or a decline: a producer that returned any other polynomial with the correct derivative up to a constant term difference (e.g. a wrong lower-order term) would fail assert_equal here even if some OTHER certificate happened to certify.