kernel-Nat.dist_triangle_inequality
- Kind
- kernel-term
- Status
- checked
Supports: ∀ (n m k : ℕ), n.dist k ≤ n.dist m + m.dist k
test "$(cargo run -q --release -p axeyum-lean-kernel --example nat_theorem_inventory -- dist_triangle_inequality 2>/dev/null | grep -Ec '^Nat\.dist_triangle_inequality[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits `Nat.dist_triangle_inequality` (`nat_prelude/dist_more2.rs`) through the trusted `Kernel::add_declaration` gate. `nat_theorem_inventory`'s rendered type is `(x0 x1 x2 : AxNat) -> AxNat.le (dist x0 x2) (add (dist x0 x1) (dist x1 x2))`, matching this fact's `formal.statement` up to variable naming. The kernel name drops Mathlib's `.triangle_inequality` namespace suffix (this prelude does not model dotted sub-namespaces) but states the identical proposition. Anchored with `^Nat\.dist_triangle_inequality[[:space:]]`; `grep -Ec` consumes the pipe so the tested count decides the exit status. Run `--release` -- the debug build of this inventory example SIGABRTs on stack depth (unrelated to this proof).