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.IsCoprime

5 declarations. Mathlib docs · Source

norm_num extension for IsCoprime

This module defines a norm_num extension for IsCoprime over ℤ.

(While IsCoprime is defined over ℕ, since it uses Bezout's identity with ℕ coefficients it does not correspond to the usual notion of coprime.)

theorem Mathlib.Meta.NormNum.int_not_isCoprime_helper E1 #

∀ (x y : ℤ) (d : ℕ), x.gcd y = d → d.beq 1 = false → ¬IsCoprime x y

theorem Mathlib.Meta.NormNum.isInt_isCoprime E1 #

∀ {x y nx ny : ℤ}, Mathlib.Meta.NormNum.IsInt x nx → Mathlib.Meta.NormNum.IsInt y ny → IsCoprime nx ny → IsCoprime x y

theorem Mathlib.Meta.NormNum.isInt_not_isCoprime E1 #

∀ {x y nx ny : ℤ}, Mathlib.Meta.NormNum.IsInt x nx → Mathlib.Meta.NormNum.IsInt y ny → ¬IsCoprime nx ny → ¬IsCoprime x y

def Mathlib.Meta.NormNum.proveIntIsCoprime E1 #

(ex ey : Q(ℤ)) → Q(IsCoprime «$ex» «$ey») ⊕ Q(¬IsCoprime «$ex» «$ey»)

Evaluates IsCoprime for the given integer number literals. Panics if ex or ey aren't integer number literals.

def Mathlib.Meta.NormNum.evalIntIsCoprime E1 #

Mathlib.Meta.NormNum.NormNumExt

Evaluates the IsCoprime predicate over ℤ.