Mathlib.Data.Int.DivMod
3 declarations. Mathlib docs · Source
Basic lemmas about division and modulo for integers
ediv and fdiv
emod
theorem Int.mul_ediv_le_mul_ediv_assoc E1 #
∀ {a : ℤ}, 0 ≤ a → ∀ (b : ℤ) {c : ℤ}, 0 ≤ c → a * (b / c) ≤ a * b / c
theorem Int.fdiv_fdiv_eq_fdiv_mul E1 #
∀ (m : ℤ) {n k : ℤ}, 0 ≤ n → 0 ≤ k → (m.fdiv n).fdiv k = m.fdiv (n * k)
theorem Int.emod_eq_sub_self_emod E1 #
∀ {a b : ℤ}, a % b = (a - b) % b