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 / V34. The tactics of Mathlib

Mathlib.Tactic.NormNum.DivMod

13 declarations. Mathlib docs · Source

theorem Mathlib.Meta.NormNum.isInt_ediv_zero E1 #

∀ {a b r : ℤ}, Mathlib.Meta.NormNum.IsInt a r → Mathlib.Meta.NormNum.IsNat b 0 → Mathlib.Meta.NormNum.IsNat (a / b) 0

theorem Mathlib.Meta.NormNum.isInt_ediv E1 #

∀ {a b q m a' : ℤ} {b' r : ℕ},
  Mathlib.Meta.NormNum.IsInt a a' →
    Mathlib.Meta.NormNum.IsNat b b' → q * ↑b' = m → ↑r + m = a' → r.blt b' = true → Mathlib.Meta.NormNum.IsInt (a / b) q

theorem Mathlib.Meta.NormNum.isInt_ediv_neg E1 #

∀ {a b q q' : ℤ}, Mathlib.Meta.NormNum.IsInt (a / -b) q → -q = q' → Mathlib.Meta.NormNum.IsInt (a / b) q'

theorem Mathlib.Meta.NormNum.isNat_neg_of_isNegNat E1 #

∀ {a : ℤ} {b : ℕ}, Mathlib.Meta.NormNum.IsInt a (Int.negOfNat b) → Mathlib.Meta.NormNum.IsNat (-a) b

def Mathlib.Meta.NormNum.evalIntDiv E1 #

Mathlib.Meta.NormNum.NormNumExt

The norm_num extension which identifies expressions of the form Int.ediv a b, such that norm_num successfully recognises both a and b.

theorem Mathlib.Meta.NormNum.isInt_emod_zero E1 #

∀ {a b r : ℤ}, Mathlib.Meta.NormNum.IsInt a r → Mathlib.Meta.NormNum.IsNat b 0 → Mathlib.Meta.NormNum.IsInt (a % b) r

theorem Mathlib.Meta.NormNum.isInt_emod E1 #

∀ {a b q m a' : ℤ} {b' r : ℕ},
  Mathlib.Meta.NormNum.IsInt a a' →
    Mathlib.Meta.NormNum.IsNat b b' → q * ↑b' = m → ↑r + m = a' → r.blt b' = true → Mathlib.Meta.NormNum.IsNat (a % b) r

theorem Mathlib.Meta.NormNum.isInt_emod_neg E1 #

∀ {a b : ℤ} {r : ℕ}, Mathlib.Meta.NormNum.IsNat (a % -b) r → Mathlib.Meta.NormNum.IsNat (a % b) r

def Mathlib.Meta.NormNum.evalIntMod.go E1 #

(a na : Q(ℤ)) →
  ℤ →
    Q(Mathlib.Meta.NormNum.IsInt «$a» «$na») →
      (b : Q(ℤ)) → Mathlib.Meta.NormNum.Result b → Option (Mathlib.Meta.NormNum.Result q(«$a» % «$b»))

Given a result for evaluating a b in ℤ, evaluate a % b.

def Mathlib.Meta.NormNum.evalIntMod E1 #

Mathlib.Meta.NormNum.NormNumExt

The norm_num extension which identifies expressions of the form Int.emod a b, such that norm_num successfully recognises both a and b.

theorem Mathlib.Meta.NormNum.isInt_dvd_true E1 #

∀ {a b a' b' c : ℤ}, Mathlib.Meta.NormNum.IsInt a a' → Mathlib.Meta.NormNum.IsInt b b' → a'.mul c = b' → a ∣ b

theorem Mathlib.Meta.NormNum.isInt_dvd_false E1 #

∀ {a b a' b' : ℤ}, Mathlib.Meta.NormNum.IsInt a a' → Mathlib.Meta.NormNum.IsInt b b' → (b'.emod a' != 0) = true → ¬a ∣ b

def Mathlib.Meta.NormNum.evalIntDvd E1 #

Mathlib.Meta.NormNum.NormNumExt

The norm_num extension which identifies expressions of the form (a : ℤ) ∣ b, such that norm_num successfully recognises both a and b.