kernel-Nat.size_eq_zero
- Kind
- kernel-term
- Status
- checked
Supports: ∀ {n : ℕ}, n.size = 0 ↔ n = 0
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- size_eq_zero 2>/dev/null | grep -Ec '^Nat\.size_eq_zero[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits `Nat.size_eq_zero` through the trusted `Kernel::add_declaration` gate, declared in `nat_prelude/size_extra.rs` (a new module, kept separate from `binary.rs`'s own dense `Nat.size` definition-plus-boundary set). `nat_theorem_inventory`'s rendered type is `((x0 : AxNat) -> Iff (Eq.{1} AxNat (AxNat.size x0) AxNat.zero) (Eq.{1} AxNat x0 AxNat.zero))`, 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.size_eq_zero_bogus`) greps to `0`.