kernel-Nat.dist_self
- Kind
- kernel-term
- Status
- checked
Supports: ∀ (n : ℕ), n.dist n = 0
test "$(cargo run -q --release -p axeyum-lean-kernel --example nat_theorem_inventory -- dist_self 2>/dev/null | grep -Ec '^Nat\.dist_self[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits `Nat.dist_self` through the trusted `Kernel::add_declaration` gate (`nat_prelude/dist.rs`), proved via `sub_self : sub n n = 0` congr'd into `add(sub n n, sub n n)` then `zero_add`. `nat_theorem_inventory`'s rendered type `((x0:AxNat)->Eq.{1} AxNat (AxNat.dist x0 x0) AxNat.zero)` matches this fact's `formal.statement`. Anchored with `^Nat\.dist_self[[:space:]]`; `grep -Ec` consumes the pipe so the tested count decides the exit status. Run `--release` -- the debug build SIGABRTs on stack depth (unrelated to this proof).