norm_num extension for integer div/mod and divides #
This file adds support for the %, /, and ∣ (divisibility) operators on ℤ
to the norm_num tactic.
theorem
Mathlib.Meta.NormNum.isInt_ediv
{a b q m a' : ℤ}
{b' r : ℕ}
(ha : IsInt a a')
(hb : IsNat b b')
(hm : q * ↑b' = m)
(h : ↑r + m = a')
(h₂ : r.blt b' = true)
:
IsInt (a / b) q
theorem
Mathlib.Meta.NormNum.isInt_ediv_neg
{a b q q' : ℤ}
(h : IsInt (a / -b) q)
(hq : -q = q')
:
IsInt (a / b) q'
theorem
Mathlib.Meta.NormNum.isInt_emod
{a b q m a' : ℤ}
{b' r : ℕ}
(ha : IsInt a a')
(hb : IsNat b b')
(hm : q * ↑b' = m)
(h : ↑r + m = a')
(h₂ : r.blt b' = true)
:
IsNat (a % b) r
theorem
Mathlib.Meta.NormNum.isInt_emod_neg
{a b : ℤ}
{r : ℕ}
(h : IsNat (a % -b) r)
:
IsNat (a % b) r