alg-monoid-ident-unique-1
- Kind
- kernel-term
- Status
- checked
Supports: Alg.monoidIdentUnique admits through the trusted kernel gate and, applied at TWO CONCRETE Alg.Monoid instances built from already-proved lemma constants ((Nat, add, 0) and (Rat, mul, 1), with genuine numeral witnesses e' := 0 / e' := 1 and existing lemmas Nat.add_zero / Rat.mul_one as the hypothesis), type-checks to Eq Nat 0 0 and Eq Rat 1 1 respectively -- the concrete half of docs/contributor-guide/kernel-proof-engineering.md's 'instantiate concretely AND check symbolically' discipline; the generic (symbolic M/e'/h) statement above is the symbolic half.
out=$(cargo test -p axeyum-lean-kernel --lib -- monoid_ident_unique_applies_concretely_at_nat_add_and_rat_mul --nocapture --test-threads=1 2>&1) && test "$(printf "%s\n" "$out"| grep -cE 'test result: ok\. 1 passed; 0 failed')" -ge 1 Evidence notes
The pattern is anchored on cargo's own pass/fail summary line with BOTH counts pinned ('1 passed; 0 failed'), so a panic (a TypeMismatch from the kernel, or an assertion failure) changes both numbers and the pattern stops matching. The FIRST version of this test failed with exactly this mechanism: it applied the theorem to the Alg.CommMonoid instances rather than genuine Alg.Monoid values -- this spine has no inheritance, so a CommMonoid-typed term does not apply where a Monoid is expected, and the kernel correctly refused it (TypeMismatch) until the test built real Monoid values from the same underlying lemma constants.