kernel-Nat.add_mul_div_left
- Kind
- kernel-term
- Status
- checked
Supports: ∀ (x z : ℕ) {y : ℕ}, 0 < y → (x + y * z) / y = x / y + z
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- add_mul_div_left 2>/dev/null | grep -Ec '^Nat\.add_mul_div_left[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits `Nat.add_mul_div_left` through the trusted `Kernel::add_declaration` gate (declared in `nat_prelude/div_mod_lemmas.rs`'s `declare_add_div_mod_shift_family`). Route: this is `div_mod_shift`'s reusable `(n+dd*k)/dd = n/dd+k` fact directly, at `dd:=y`, `n:=x`, `k:=z` (the product `y*z` is already `dd*k` in the right order, no `mul_comm` bridge needed), itself built from `division.rs`'s `div_mod_exec`/`div_mod_unique`/`div_mod_add_multiple` via `succ_pred_of_pos`. `nat_theorem_inventory`'s rendered type for `Nat.add_mul_div_left` is `(x0:AxNat)->(x1:AxNat)->(x2:AxNat)->(x3:Lt zero x2)->Eq (div (add x0 (mul x2 x1)) x2) (add (div x0 x2) x1)`, matching this fact's `formal.statement` verbatim (`x0`=x, `x1`=z, `x2`=y). `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.