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

24 declarations. Mathlib docs · Source

norm_num extensions for inequalities.

(In)equalities

def Mathlib.Meta.NormNum.inferOrderedSemiring E1 #

{u : Lean.Level} →
  (α : Q(Type u)) → Lean.MetaM ((x : Q(Semiring «$α»)) × (x_1 : Q(PartialOrder «$α»)) × Q(IsOrderedRing «$α»))

Helper function to synthesize typed Semiring α PartialOrder α IsOrderedRing α expressions.

def Mathlib.Meta.NormNum.inferOrderedRing E1 #

{u : Lean.Level} →
  (α : Q(Type u)) → Lean.MetaM ((x : Q(Ring «$α»)) × (x_1 : Q(PartialOrder «$α»)) × Q(IsOrderedRing «$α»))

Helper function to synthesize typed Ring α PartialOrder α IsOrderedRing α expressions.

def Mathlib.Meta.NormNum.inferLinearOrderedSemifield E1 #

{u : Lean.Level} →
  (α : Q(Type u)) → Lean.MetaM ((x : Q(Semifield «$α»)) × (x_1 : Q(LinearOrder «$α»)) × Q(IsStrictOrderedRing «$α»))

Helper function to synthesize typed Semifield α LinearOrder α IsStrictOrderedRing α expressions.

def Mathlib.Meta.NormNum.inferLinearOrderedField E1 #

{u : Lean.Level} →
  (α : Q(Type u)) → Lean.MetaM ((x : Q(Field «$α»)) × (x_1 : Q(LinearOrder «$α»)) × Q(IsStrictOrderedRing «$α»))

Helper function to synthesize typed Field α LinearOrder α IsStrictOrderedRing α expressions.

theorem Mathlib.Meta.NormNum.isNat_le_true E1 #

∀ {α : Type u_1} [inst : Semiring α] [inst_1 : PartialOrder α] [IsOrderedRing α] {a b : α} {a' b' : ℕ},
  Mathlib.Meta.NormNum.IsNat a a' → Mathlib.Meta.NormNum.IsNat b b' → a'.ble b' = true → a ≤ b

theorem Mathlib.Meta.NormNum.isNat_lt_false E1 #

∀ {α : Type u_1} [inst : Semiring α] [inst_1 : PartialOrder α] [IsOrderedRing α] {a b : α} {a' b' : ℕ},
  Mathlib.Meta.NormNum.IsNat a a' → Mathlib.Meta.NormNum.IsNat b b' → b'.ble a' = true → ¬a < b

theorem Mathlib.Meta.NormNum.isNNRat_le_true E1 #

∀ {α : Type u_1} [inst : Semiring α] [inst_1 : LinearOrder α] [IsStrictOrderedRing α] {a b : α} {na nb da db : ℕ},
  Mathlib.Meta.NormNum.IsNNRat a na da →
    Mathlib.Meta.NormNum.IsNNRat b nb db → decide (na.mul db ≤ nb.mul da) = true → a ≤ b

theorem Mathlib.Meta.NormNum.isNNRat_lt_true E1 #

∀ {α : Type u_1} [inst : Semiring α] [inst_1 : LinearOrder α] [IsStrictOrderedRing α] {a b : α} {na nb da db : ℕ},
  Mathlib.Meta.NormNum.IsNNRat a na da →
    Mathlib.Meta.NormNum.IsNNRat b nb db → decide (na * db < nb * da) = true → a < b

theorem Mathlib.Meta.NormNum.isNNRat_le_false E1 #

∀ {α : Type u_1} [inst : Semiring α] [inst_1 : LinearOrder α] [IsStrictOrderedRing α] {a b : α} {na nb da db : ℕ},
  Mathlib.Meta.NormNum.IsNNRat a na da →
    Mathlib.Meta.NormNum.IsNNRat b nb db → decide (nb * da < na * db) = true → ¬a ≤ b

theorem Mathlib.Meta.NormNum.isNNRat_lt_false E1 #

∀ {α : Type u_1} [inst : Semiring α] [inst_1 : LinearOrder α] [IsStrictOrderedRing α] {a b : α} {na nb da db : ℕ},
  Mathlib.Meta.NormNum.IsNNRat a na da →
    Mathlib.Meta.NormNum.IsNNRat b nb db → decide (nb * da ≤ na * db) = true → ¬a < b

theorem Mathlib.Meta.NormNum.isRat_le_true E1 #

∀ {α : Type u_1} [inst : Ring α] [inst_1 : LinearOrder α] [IsStrictOrderedRing α] {a b : α} {na nb : ℤ} {da db : ℕ},
  Mathlib.Meta.NormNum.IsRat a na da →
    Mathlib.Meta.NormNum.IsRat b nb db → decide (na.mul (Int.ofNat db) ≤ nb.mul (Int.ofNat da)) = true → a ≤ b

theorem Mathlib.Meta.NormNum.isRat_lt_true E1 #

∀ {α : Type u_1} [inst : Ring α] [inst_1 : LinearOrder α] [IsStrictOrderedRing α] {a b : α} {na nb : ℤ} {da db : ℕ},
  Mathlib.Meta.NormNum.IsRat a na da → Mathlib.Meta.NormNum.IsRat b nb db → decide (na * ↑db < nb * ↑da) = true → a < b

theorem Mathlib.Meta.NormNum.isRat_le_false E1 #

∀ {α : Type u_1} [inst : Ring α] [inst_1 : LinearOrder α] [IsStrictOrderedRing α] {a b : α} {na nb : ℤ} {da db : ℕ},
  Mathlib.Meta.NormNum.IsRat a na da → Mathlib.Meta.NormNum.IsRat b nb db → decide (nb * ↑da < na * ↑db) = true → ¬a ≤ b

theorem Mathlib.Meta.NormNum.isRat_lt_false E1 #

∀ {α : Type u_1} [inst : Ring α] [inst_1 : LinearOrder α] [IsStrictOrderedRing α] {a b : α} {na nb : ℤ} {da db : ℕ},
  Mathlib.Meta.NormNum.IsRat a na da → Mathlib.Meta.NormNum.IsRat b nb db → decide (nb * ↑da ≤ na * ↑db) = true → ¬a < b

theorem Mathlib.Meta.NormNum.isNat_lt_true E1 #

∀ {α : Type u_1} [inst : Semiring α] [inst_1 : PartialOrder α] [IsOrderedRing α] [CharZero α] {a b : α} {a' b' : ℕ},
  Mathlib.Meta.NormNum.IsNat a a' → Mathlib.Meta.NormNum.IsNat b b' → b'.ble a' = false → a < b

theorem Mathlib.Meta.NormNum.isNat_le_false E1 #

∀ {α : Type u_1} [inst : Semiring α] [inst_1 : PartialOrder α] [IsOrderedRing α] [CharZero α] {a b : α} {a' b' : ℕ},
  Mathlib.Meta.NormNum.IsNat a a' → Mathlib.Meta.NormNum.IsNat b b' → a'.ble b' = false → ¬a ≤ b

theorem Mathlib.Meta.NormNum.isInt_le_true E1 #

∀ {α : Type u_1} [inst : Ring α] [inst_1 : PartialOrder α] [IsOrderedRing α] {a b : α} {a' b' : ℤ},
  Mathlib.Meta.NormNum.IsInt a a' → Mathlib.Meta.NormNum.IsInt b b' → decide (a' ≤ b') = true → a ≤ b

theorem Mathlib.Meta.NormNum.isInt_lt_true E1 #

∀ {α : Type u_1} [inst : Ring α] [inst_1 : PartialOrder α] [IsOrderedRing α] [Nontrivial α] {a b : α} {a' b' : ℤ},
  Mathlib.Meta.NormNum.IsInt a a' → Mathlib.Meta.NormNum.IsInt b b' → decide (a' < b') = true → a < b

theorem Mathlib.Meta.NormNum.isInt_le_false E1 #

∀ {α : Type u_1} [inst : Ring α] [inst_1 : PartialOrder α] [IsOrderedRing α] [Nontrivial α] {a b : α} {a' b' : ℤ},
  Mathlib.Meta.NormNum.IsInt a a' → Mathlib.Meta.NormNum.IsInt b b' → decide (b' < a') = true → ¬a ≤ b

theorem Mathlib.Meta.NormNum.isInt_lt_false E1 #

∀ {α : Type u_1} [inst : Ring α] [inst_1 : PartialOrder α] [IsOrderedRing α] {a b : α} {a' b' : ℤ},
  Mathlib.Meta.NormNum.IsInt a a' → Mathlib.Meta.NormNum.IsInt b b' → decide (b' ≤ a') = true → ¬a < b

def Mathlib.Meta.NormNum.evalLE.core E1 #

{u : Lean.Level} →
  {α : Q(Type u)} →
    (lα : Q(LE «$α»)) →
      {a b : Q(«$α»)} →
        Mathlib.Meta.NormNum.Result a →
          Mathlib.Meta.NormNum.Result b → Lean.MetaM (Mathlib.Meta.NormNum.Result q(«$a» ≤ «$b»))

Identify (as true or false) expressions of the form a ≤ b, where a and b are numeric expressions whose evaluations to NormNum.Result have already been computed.

def Mathlib.Meta.NormNum.evalLE 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.

def Mathlib.Meta.NormNum.evalLT.core E1 #

{u : Lean.Level} →
  {α : Q(Type u)} →
    (lα : Q(LT «$α»)) →
      {a b : Q(«$α»)} →
        Mathlib.Meta.NormNum.Result a →
          Mathlib.Meta.NormNum.Result b → Lean.MetaM (Mathlib.Meta.NormNum.Result q(«$a» < «$b»))

Identify (as true or false) expressions of the form a < b, where a and b are numeric expressions whose evaluations to NormNum.Result have already been computed.

def Mathlib.Meta.NormNum.evalLT 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.