kernel-reconstructed-extremum-deriv-sign-bracket-left
- Kind
- kernel-term
- Status
- checked
Supports: 0 < p'(-2) for p' = 3x^2-6, admitted by crate::Kernel::add_declaration as Check.extremum_deriv_sign_bracket_left : Rat.lt Rat.zero (Rat.polyEval c 3 (Rat.ofInt -2)), where c is built from the same [-6,0,3] integer coefficients axeyum-cas's own extremum::polynomial_extremum(x^3-6x, -3, 2) certificate's cert.deriv field actually returns (asserted equal in the test, not hand-differentiated), from a Nat.le 1 6 witness -- 6 being the EXACT value the fully reduced polynomial computes to.
cargo test -p axeyum-lean-kernel --lib rat_prelude::cas_extremum_deriv_bridge_tests::tests::extremum_deriv_sign_bracket_kernel_checked -- --exact 2>/dev/null | grep -cE '^test rat_prelude::cas_extremum_deriv_bridge_tests::tests::extremum_deriv_sign_bracket_kernel_checked \.\.\. ok$' Evidence notes
The named test builds BOTH sign-bracket halves in one #[test] fn (Check.extremum_deriv_sign_bracket_left and Check.extremum_deriv_sign_bracket_right) plus a swapped-statement negative control, so this evidence row and the next one share one checker_command -- separate rows because they support distinct halves of the statement, not distinct commands. cert.deriv is asserted equal to [-6,0,3] BEFORE any kernel-side term is built (assert_eq! in the test), so a wrong CAS derivative would fail at that assertion rather than silently propagate into a vacuously-true kernel claim. p'(-2) = 3*4-6 = 6 and p'(-1) = 3*1-6 = -3 were computed by hand twice before being encoded, per docs/plan/status/223-cas-reconstruct.md's warning that Kernel::add_declaration type-checks a proof term but cannot by itself tell a constant is wrong. Measured wall-clock (this machine, cold cargo-serialized.sh test, single invocation): 6.34s including the one-time Rat prelude build -- comparable to the sibling IVT/EVT bridges (~6-9s each), consistent with this being the same degree-2 evaluation shape at two concrete points.