kernel-Rat.normalize
- Kind
- kernel-term
- Status
- checked
Supports: normalize 2 4 and normalize 1 2 are definitionally the same Rat; normalize 1 2 and normalize 1 3 are not.
test "$(cargo test -p axeyum-lean-kernel --lib rat_normalize_reduces_two_quarters_to_one_half 2>&1 | grep -Ec '^test result: ok\. 1 passed')" -ge 1 Evidence notes
Bound to this single test by name, and the `1 passed` in the pattern is deliberate: a filter that matches nothing prints `0 passed` and would otherwise read as success -- the inert-gate trap this repository has been bitten by. The test decides equality by `Kernel::def_eq` with no lemma, which works only because Nat.gcd, Nat.div and Int.rec all compute, and it requires 1/2 and 1/3 to be DISTINGUISHABLE so the equality check is not vacuous.