kernel-Nat.add_mul_mod_self_left
- Kind
- kernel-term
- Status
- checked
Supports: ∀ (x y z : ℕ), (x + y * z) % y = x % y
test "$(cargo run -q -p axeyum-lean-kernel --example nat_theorem_inventory -- add_mul_mod_self_left 2>/dev/null | grep -Ec '^Nat\.add_mul_mod_self_left[[:space:]]')" -ge 1 Evidence notes
`build_nat_prelude` admits `Nat.add_mul_mod_self_left` through the trusted `Kernel::add_declaration` gate (declared in `nat_prelude/div_mod_lemmas.rs`'s `declare_add_div_mod_shift_family`). Route: no positivity hypothesis is given, so the divisor `y` is case-split via `cases_zero_succ`; at `y=0` the goal collapses via `zero_mul` plus `add_zero`, at `y=succ ypred` it is `div_mod_shift`'s reusable `(n+dd*k)%dd = n%dd` fact directly at `dd:=y`, `n:=x`, `k:=z` (product `y*z` already `dd*k`, no `mul_comm` bridge needed). `nat_theorem_inventory`'s rendered type for `Nat.add_mul_mod_self_left` is `(x0:AxNat)->(x1:AxNat)->(x2:AxNat)->Eq (mod (add x0 (mul x1 x2)) x1) (mod x0 x1)`, matching this fact's `formal.statement` verbatim (`x0`=x, `x1`=y, `x2`=z). `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.