kernel-Nat.bitwise_zero_left
- Kind
- kernel-term
- Status
- checked
Supports: forall f n, bitwise f 0 n = if f false true then n else 0
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- bitwise_zero_left 2>/dev/null | grep -Ec '^Nat\.bitwise_zero_left[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits this theorem through the trusted `Kernel::add_declaration` gate, which re-checks the proof term against the stated type, so producing this row at all is a machine-checked proof. The statement is universally quantified over BOTH the combinator `f : Bool -> Bool -> Bool` and `n : Nat`, and holds unconditionally -- no hypothesis on `f` (in particular, no `f false false = false`) is needed, because fuel is `m = 0` at this call, so the outer `Nat.rec` hits `bitwiseAux`'s fuel-exhaustion row directly and that row IS this statement's RHS by construction: the proof is `Eq.refl`. `nat_theorem_inventory` exits non-zero for a name that does not exist, and `grep -Ec` consumes the pipe and the count is tested, so the exit status depends on what the run found. Anchored with `^Nat\.bitwise_zero_left[[:space:]]` (verified exactly 1 row).