The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V02. Numbers

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