kernel-rat-mul-renormalises
- Kind
- kernel-term
- Status
- checked
Supports: 2/3 * 3/2 and 1/1 are the same rational; 1/2 * 1/3 is 1/6; 1/6 and 1/2 are different rationals.
test "$(cargo test -p axeyum-lean-kernel --lib rat_mul_renormalises_two_thirds_times_three_halves_to_one 2>&1 | grep -Ec '^test result: ok\. 1 passed')" -ge 1 Evidence notes
Bound to this test by name, and `1 passed` is in the pattern deliberately: a filter matching nothing prints `0 passed` and would otherwise read as success. The test settles the equalities by `Kernel::def_eq` with no lemma -- Nat.gcd, Nat.div and Int.rec all compute -- and includes the inequality `1/6 != 1/2` so that a def_eq comparing everything equal could not make the positive checks vacuous.