kernel-reconstructed-centroid-divides-medians-cofactor-identities
- Kind
- kernel-term
- Status
- checked
Supports: 3P.x = A.x+B.x+C.x = sum_i cofactor_i*generator_i and 3P.y = A.y+B.y+C.y = sum_i cofactor_i*generator_i, each at symbolic universally quantified Rat variables, admitted by crate::Kernel::add_declaration as Check.geometry_centroid_cofactor_identity_x and Check.geometry_centroid_cofactor_identity_y. The certificate is NOT hand-copied: it is fetched from axeyum_cas::geometry_corpus::corpus() and re-certified by axeyum_cas::geometry_certify::certify, the same call path F:geometry-centroid-divides-medians's own evidence exercises. The reconstruction reuses rat_prelude::cas_partial_fractions_bridge_tests::prove_poly_combination_rat (built by an earlier lane for a different certificate, widened here from module-private to pub(super)) unchanged: the certificate's own (cofactor, generator) lists are passed to it directly, with no new proof-emitting code needed -- confirming this lane's brief that the machinery was 'already generic enough'. Each emitted normal form is asserted equal to the certificate's own conclusion polynomial BEFORE the kernel is invoked (assert_eq!(merged, concl_for_build)), and each declaration's axiom_footprint is asserted EMPTY and its kind asserted Declaration::Theorem in the same test.
cargo test -p axeyum-lean-kernel --lib rat_prelude::cas_geometry_pair_bridge_tests::tests::geometry_centroid_cofactor_identity 2>/dev/null | /usr/bin/grep -cE '^test result: ok\. 2 passed; 0 failed' Evidence notes
Verified both directions with /usr/bin/grep -cE explicitly (not the interactive ugrep): the real filter (matching both _x_kernel_checked and _y_kernel_checked, 'test result: ok. 2 passed') prints 1, exit 0; a fabricated test-name suffix prints 0, exit 1. Measured wall-clock, debug, uncontended: 11.33s (x alone), 18.55s (y alone), both together (cargo's own parallel scheduling) in 11.2s as part of the 7-test module sweep. Comparable to medians-concurrent's 8.14s and noticeably cheaper than rhombus's 152.79s, because although centroid's generators need the fractional cast (unlike rhombus, which is pure integer), the maximum cofactor here is only 4 terms against rhombus's 12, and no numeral magnitude larger than the certificate's own small integer coefficients is ever formed.