kernel-Nat.add_add_add_comm
- Kind
- kernel-term
- Status
- checked
Supports: ∀ (a b c d : ℕ), a + b + (c + d) = a + c + (b + d)
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- add_add_add_comm 2>/dev/null | grep -Ec '^Nat\.add_add_add_comm[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits `Nat.add_add_add_comm` through the trusted `Kernel::add_declaration` gate, declared in `nat_prelude/add_basics.rs`. `declare_add_add_add_comm` chains `add_assoc` twice and `add_comm` once (the same construction `div_mod_lemmas.rs`'s per-file private copy already used internally; this is the first PUBLIC `Nat.add_add_add_comm` this prelude has declared -- see that module doc's remark that the prelude had none). `nat_theorem_inventory`'s rendered type is `(x0..x3:AxNat)->Eq (add (add x0 x1) (add x2 x3)) (add (add x0 x2) (add x1 x3))`, 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.add_add_add_comm_bogus`) greps to `0`.