kernel-Nat.add_comm
- Kind
- kernel-term
- Status
- checked
Supports: ∀ (n m : ℕ), n + m = m + n
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- add_comm 2>/dev/null | grep -Ec '^Nat\.add_comm[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits `Nat.add_comm` through the trusted `Kernel::add_declaration` gate, declared in `nat_prelude/algebra.rs`. Also from `declare_additive_theorems` (`nat_prelude/algebra.rs`), proved by induction on the second argument via `zero_add`/`succ_add` -- predates this session, closed by evidence only. `nat_theorem_inventory`'s rendered type is `(x0:AxNat)->(x1:AxNat)->Eq (add x0 x1) (add x1 x0)`, matching this fact's `formal.statement`. `nat_theorem_inventory` exits non-zero for a name that does not exist, and the `grep -c` count (tested `-ge 1`, not piped into `grep -q`) requires the admitted declaration to actually be printed. Verified both ways: the real name greps to a count `-ge 1`; grepping a made-up name (`Nat.add_comm_bogus`) greps to `0`.