kernel-Nat.bitwise_xor_three_five
- Kind
- kernel-term
- Status
- checked
Supports: bitwise xor_fn 3 5 = 6
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- bitwise_xor_three_five 2>/dev/null | grep -Ec '^Nat\.bitwise_xor_three_five[[: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. `xor_fn` (`bitwise.rs`) is built inline via a local `Bool.rec`-based select (this prelude declares no top-level `Bool.xor`, and neither `land` nor `lor` has an XOR sibling to cross-check against, unlike the `and`/`or` facts in this family) as `fun a b => if a then (not b) else b`. `3 = 0b011`, `5 = 0b101`, `3 xor 5 = 0b110 = 6`; every argument is a concrete numeral, so `bitwise xor_fn 3 5` fully computes and the proof is `Eq.refl` against the hand-computed numeral `6`. `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_xor_three_five[[:space:]]` (verified exactly 1 row).