kernel-Nat.size_bit
- Kind
- kernel-term
- Status
- checked
Supports: ∀ {b : Bool} {n : ℕ}, Nat.bit b n ≠ 0 → (Nat.bit b n).size = n.size.succ
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- size_bit 2>/dev/null | grep -Ec '^Nat\.size_bit[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits `Nat.size_bit` through the trusted `Kernel::add_declaration` gate, declared in the new module `nat_prelude/size_order.rs` (kept separate from `binary.rs`'s dense `Nat.size` definition-plus-boundary set and from `size_extra.rs`'s existing pair, per this project's merge-hazard convention). `nat_theorem_inventory`'s rendered type is `((x0 : Bool) -> ((x1 : AxNat) -> ((x2 : ((x2 : Eq.{1} AxNat (AxNat.bit x0 x1) AxNat.zero) -> False)) -> Eq.{1} AxNat (AxNat.size (AxNat.bit x0 x1)) (AxNat.succ (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_bit_bogus`) greps to `0`.