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

27 declarations. Mathlib docs · Source

def Mathlib.Meta.NormNum.inferCharZeroOfRing E1 #

{u : Lean.Level} →
  {α : Q(Type u)} →
    (_i : autoParam Q(Ring «$α») Mathlib.Meta.NormNum.inferCharZeroOfRing._auto_1) → Lean.MetaM Q(CharZero «$α»)

Helper function to synthesize a typed CharZero α expression given Ring α.

def Mathlib.Meta.NormNum.inferCharZeroOfRing? E1 #

{u : Lean.Level} →
  {α : Q(Type u)} →
    (_i : autoParam Q(Ring «$α») Mathlib.Meta.NormNum.inferCharZeroOfRing?._auto_1) →
      Lean.MetaM (Option Q(CharZero «$α»))

Helper function to synthesize a typed CharZero α expression given Ring α, if it exists.

def Mathlib.Meta.NormNum.inferCharZeroOfAddMonoidWithOne E1 #

{u : Lean.Level} →
  {α : Q(Type u)} →
    (_i : autoParam Q(AddMonoidWithOne «$α») Mathlib.Meta.NormNum.inferCharZeroOfAddMonoidWithOne._auto_1) →
      Lean.MetaM Q(CharZero «$α»)

Helper function to synthesize a typed CharZero α expression given AddMonoidWithOne α.

def Mathlib.Meta.NormNum.inferCharZeroOfAddMonoidWithOne? E1 #

{u : Lean.Level} →
  {α : Q(Type u)} →
    (_i : autoParam Q(AddMonoidWithOne «$α») Mathlib.Meta.NormNum.inferCharZeroOfAddMonoidWithOne?._auto_1) →
      Lean.MetaM (Option Q(CharZero «$α»))

Helper function to synthesize a typed CharZero α expression given AddMonoidWithOne α, if it exists.

def Mathlib.Meta.NormNum.inferCharZeroOfDivisionRing E1 #

{u : Lean.Level} →
  {α : Q(Type u)} →
    (_i : autoParam Q(DivisionRing «$α») Mathlib.Meta.NormNum.inferCharZeroOfDivisionRing._auto_1) →
      Lean.MetaM Q(CharZero «$α»)

Helper function to synthesize a typed CharZero α expression given DivisionRing α.

def Mathlib.Meta.NormNum.inferCharZeroOfDivisionSemiring? E1 #

{u : Lean.Level} →
  {α : Q(Type u)} →
    (_i : autoParam Q(DivisionSemiring «$α») Mathlib.Meta.NormNum.inferCharZeroOfDivisionSemiring?._auto_1) →
      Lean.MetaM (Option Q(CharZero «$α»))

Helper function to synthesize a typed CharZero α expression given Divisionsemiring α, if it exists.

def Mathlib.Meta.NormNum.inferCharZeroOfDivisionRing? E1 #

{u : Lean.Level} →
  {α : Q(Type u)} →
    (_i : autoParam Q(DivisionRing «$α») Mathlib.Meta.NormNum.inferCharZeroOfDivisionRing?._auto_1) →
      Lean.MetaM (Option Q(CharZero «$α»))

Helper function to synthesize a typed CharZero α expression given DivisionRing α, if it exists.

theorem Mathlib.Meta.NormNum.isRat_mkRat E1 #

∀ {a na n : ℤ} {b nb d : ℕ},
  Mathlib.Meta.NormNum.IsInt a na →
    Mathlib.Meta.NormNum.IsNat b nb →
      Mathlib.Meta.NormNum.IsRat (↑na / ↑nb) n d → Mathlib.Meta.NormNum.IsRat (mkRat a b) n d

theorem Mathlib.Meta.NormNum.isNNRat_divNat E1 #

∀ {a na n b nb d : ℕ},
  Mathlib.Meta.NormNum.IsNat a na →
    Mathlib.Meta.NormNum.IsNat b nb →
      Mathlib.Meta.NormNum.IsNNRat (↑na / ↑nb) n d → Mathlib.Meta.NormNum.IsNNRat (NNRat.divNat a b) n d

def Mathlib.Meta.NormNum.evalMkRat E1 #

Mathlib.Meta.NormNum.NormNumExt

The norm_num extension which identifies expressions of the form mkRat a b, such that norm_num successfully recognises both a and b, and returns a / b.

def Mathlib.Meta.NormNum.evalNNRatDivNat E1 #

Mathlib.Meta.NormNum.NormNumExt

The norm_num extension which identifies expressions of the form NNRat.divNat a b, such that norm_num successfully recognises both a and b, and returns a / b.

theorem Mathlib.Meta.NormNum.isNat_ratCast E1 #

∀ {R : Type u_1} [inst : DivisionRing R] {q : ℚ} {n : ℕ},
  Mathlib.Meta.NormNum.IsNat q n → Mathlib.Meta.NormNum.IsNat (↑q) n

theorem Mathlib.Meta.NormNum.isNat_nnratCast E1 #

∀ {R : Type u_1} [inst : DivisionSemiring R] {q : ℚ≥0} {n : ℕ},
  Mathlib.Meta.NormNum.IsNat q n → Mathlib.Meta.NormNum.IsNat (↑q) n

theorem Mathlib.Meta.NormNum.isInt_ratCast E1 #

∀ {R : Type u_1} [inst : DivisionRing R] {q : ℚ} {n : ℤ},
  Mathlib.Meta.NormNum.IsInt q n → Mathlib.Meta.NormNum.IsInt (↑q) n

theorem Mathlib.Meta.NormNum.isNNRat_ratCast E1 #

∀ {R : Type u_1} [inst : DivisionRing R] [CharZero R] {q : ℚ} {n d : ℕ},
  Mathlib.Meta.NormNum.IsNNRat q n d → Mathlib.Meta.NormNum.IsNNRat (↑q) n d

theorem Mathlib.Meta.NormNum.isNNRat_nnratCast E1 #

∀ {R : Type u_1} [inst : DivisionSemiring R] [CharZero R] {q : ℚ≥0} {n d : ℕ},
  Mathlib.Meta.NormNum.IsNNRat q n d → Mathlib.Meta.NormNum.IsNNRat (↑q) n d

theorem Mathlib.Meta.NormNum.isRat_ratCast E1 #

∀ {R : Type u_1} [inst : DivisionRing R] [CharZero R] {q : ℚ} {n : ℤ} {d : ℕ},
  Mathlib.Meta.NormNum.IsRat q n d → Mathlib.Meta.NormNum.IsRat (↑q) n d

def Mathlib.Meta.NormNum.evalRatCast E1 #

Mathlib.Meta.NormNum.NormNumExt

The norm_num extension which identifies an expression RatCast.ratCast q where norm_num recognizes q, returning the cast of q.

def Mathlib.Meta.NormNum.evalNNRatCast E1 #

Mathlib.Meta.NormNum.NormNumExt

The norm_num extension which identifies an expression NNRat.cast q where norm_num recognizes q, returning the cast of q.

theorem Mathlib.Meta.NormNum.isNNRat_inv_pos E1 #

∀ {α : Type u_1} [inst : DivisionSemiring α] [CharZero α] {a : α} {n d : ℕ},
  Mathlib.Meta.NormNum.IsNNRat a n.succ d → Mathlib.Meta.NormNum.IsNNRat a⁻¹ d n.succ

theorem Mathlib.Meta.NormNum.isRat_inv_pos E1 #

∀ {α : Type u_1} [inst : DivisionRing α] [CharZero α] {a : α} {n d : ℕ},
  Mathlib.Meta.NormNum.IsRat a (Int.ofNat n.succ) d → Mathlib.Meta.NormNum.IsRat a⁻¹ (Int.ofNat d) n.succ

theorem Mathlib.Meta.NormNum.isNat_inv_one E1 #

∀ {α : Type u_1} [inst : DivisionSemiring α] {a : α}, Mathlib.Meta.NormNum.IsNat a 1 → Mathlib.Meta.NormNum.IsNat a⁻¹ 1

theorem Mathlib.Meta.NormNum.isNat_inv_zero E1 #

∀ {α : Type u_1} [inst : DivisionSemiring α] {a : α}, Mathlib.Meta.NormNum.IsNat a 0 → Mathlib.Meta.NormNum.IsNat a⁻¹ 0

theorem Mathlib.Meta.NormNum.isInt_inv_neg_one E1 #

∀ {α : Type u_1} [inst : DivisionRing α] {a : α},
  Mathlib.Meta.NormNum.IsInt a (Int.negOfNat 1) → Mathlib.Meta.NormNum.IsInt a⁻¹ (Int.negOfNat 1)

theorem Mathlib.Meta.NormNum.isRat_inv_neg E1 #

∀ {α : Type u_1} [inst : DivisionRing α] [CharZero α] {a : α} {n d : ℕ},
  Mathlib.Meta.NormNum.IsRat a (Int.negOfNat n.succ) d → Mathlib.Meta.NormNum.IsRat a⁻¹ (Int.negOfNat d) n.succ

def Mathlib.Meta.NormNum.Result.inv E1 #

{u : Lean.Level} →
  {α : Q(Type u)} →
    {a : Q(«$α»)} →
      Mathlib.Meta.NormNum.Result a →
        (dsα : Q(DivisionSemiring «$α»)) → Option Q(CharZero «$α») → Lean.MetaM (Mathlib.Meta.NormNum.Result q(«$a»⁻¹))

The result of inverting a norm_num result.

def Mathlib.Meta.NormNum.evalInv E1 #

Mathlib.Meta.NormNum.NormNumExt

The norm_num extension which identifies expressions of the form a⁻¹, such that norm_num successfully recognises a.