kernel-reconstructed-parallelogram-diagonals-bisect-cofactor-identities
- Kind
- kernel-term
- Status
- checked
Supports: midpoint(A,C).x = midpoint(B,D).x = sum_i cofactor_i*generator_i and the y-coordinate analogue, each at symbolic universally quantified Rat variables, admitted by crate::Kernel::add_declaration as Check.geometry_parallelogram_cofactor_identity_x and Check.geometry_parallelogram_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-parallelogram-diagonals-bisect'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_parallelogram_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: 12.27s (x alone), 11.83s (y alone). Comparable to medians-concurrent's 8.14s and noticeably cheaper than rhombus's 152.79s: although this certificate (unlike rhombus) needs the fractional cast for its cofactors and conclusion, its maximum cofactor is only 4 terms against rhombus's 12.