kernel-Nat.size_le_size
- Kind
- kernel-term
- Status
- checked
Supports: ∀ {m n : ℕ}, m ≤ n → m.size ≤ n.size
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- size_le_size 2>/dev/null | grep -Ec '^Nat\.size_le_size[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits `Nat.size_le_size` through the trusted `Kernel::add_declaration` gate, declared in the new module `nat_prelude/size_order.rs`. `nat_theorem_inventory`'s rendered type is `((x0 : AxNat) -> ((x1 : AxNat) -> ((x2 : AxNat.le x0 x1) -> AxNat.le (AxNat.size x0) (AxNat.size x1))))`, 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_le_size_bogus`) greps to `0`.