Further lemmas about integer division, now that omega
is available. #
dvd #
Equations
- x✝¹.decidableDvd x✝ = decidable_of_decidable_of_iff ⋯
*div zero #
preliminaries for div equivalences #
div equivalences #
mod zero #
mod definitions #
Variant of tmod_add_tdiv
with the multiplication written the other way around.
Variant of tdiv_add_tmod
with the multiplication written the other way around.
Variant of fmod_add_fdiv
with the multiplication written the other way around.
Variant of fdiv_add_fmod
with the multiplication written the other way around.
mod equivalences #
/
ediv #
emod #
properties of /
and %
#
/
and ordering #
tdiv #
We don't give tdiv
versions of
add_mul_ediv_right : c ≠ 0 → (a + b * c) / c = a / c + b
add_mul_ediv_left : b ≠ 0 → (a + b * c) / b = a / b + c
add_ediv_of_dvd_right : c ∣ b → (a + b) / c = a / c + b / c
add_ediv_of_dvd_left : c ∣ a → (a + b) / c = a / c + b / c
because they all involve awkward off-by-one corrections.
tmod #
fdiv #
fmod #
bmod #
Helper theorems for dvd
simproc