Documentation

Mathlib.Tactic.NormNum.Inv

norm_num plugins for Rat.cast and ⁻¹. #

def Mathlib.Meta.NormNum.inferCharZeroOfRing {u : Lean.Level} {α : Q(Type u)} (_i : Q(Ring «$α») := by with_reducible assumption) :
Lean.MetaM Q(CharZero «$α»)

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

Instances For
    def Mathlib.Meta.NormNum.inferCharZeroOfRing? {u : Lean.Level} {α : Q(Type u)} (_i : Q(Ring «$α») := by with_reducible assumption) :
    Lean.MetaM (Option Q(CharZero «$α»))

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

    Instances For
      def Mathlib.Meta.NormNum.inferCharZeroOfAddMonoidWithOne {u : Lean.Level} {α : Q(Type u)} (_i : Q(AddMonoidWithOne «$α») := by with_reducible assumption) :
      Lean.MetaM Q(CharZero «$α»)

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

      Instances For
        def Mathlib.Meta.NormNum.inferCharZeroOfAddMonoidWithOne? {u : Lean.Level} {α : Q(Type u)} (_i : Q(AddMonoidWithOne «$α») := by with_reducible assumption) :
        Lean.MetaM (Option Q(CharZero «$α»))

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

        Instances For
          def Mathlib.Meta.NormNum.inferCharZeroOfDivisionRing {u : Lean.Level} {α : Q(Type u)} (_i : Q(DivisionRing «$α») := by with_reducible assumption) :
          Lean.MetaM Q(CharZero «$α»)

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

          Instances For
            def Mathlib.Meta.NormNum.inferCharZeroOfDivisionSemiring? {u : Lean.Level} {α : Q(Type u)} (_i : Q(DivisionSemiring «$α») := by with_reducible assumption) :
            Lean.MetaM (Option Q(CharZero «$α»))

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

            Instances For
              def Mathlib.Meta.NormNum.inferCharZeroOfDivisionRing? {u : Lean.Level} {α : Q(Type u)} (_i : Q(DivisionRing «$α») := by with_reducible assumption) :
              Lean.MetaM (Option Q(CharZero «$α»))

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

              Instances For
                theorem Mathlib.Meta.NormNum.isRat_mkRat {a na n : } {b nb d : } :
                IsInt a naIsNat b nbIsRat (na / nb) n dIsRat (mkRat a b) n d

                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.

                Instances For
                  theorem Mathlib.Meta.NormNum.isNat_ratCast {R : Type u_1} [DivisionRing R] {q : } {n : } :
                  IsNat q nIsNat (↑q) n
                  theorem Mathlib.Meta.NormNum.isInt_ratCast {R : Type u_1} [DivisionRing R] {q : } {n : } :
                  IsInt q nIsInt (↑q) n
                  theorem Mathlib.Meta.NormNum.isNNRat_ratCast {R : Type u_1} [DivisionRing R] [CharZero R] {q : } {n d : } :
                  IsNNRat q n dIsNNRat (↑q) n d
                  theorem Mathlib.Meta.NormNum.isRat_ratCast {R : Type u_1} [DivisionRing R] [CharZero R] {q : } {n : } {d : } :
                  IsRat q n dIsRat (↑q) n d

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

                  Instances For
                    theorem Mathlib.Meta.NormNum.isNNRat_inv_pos {α : Type u_1} [DivisionSemiring α] [CharZero α] {a : α} {n d : } :
                    IsNNRat a n.succ dIsNNRat a⁻¹ d n.succ
                    theorem Mathlib.Meta.NormNum.isRat_inv_pos {α : Type u_1} [DivisionRing α] [CharZero α] {a : α} {n d : } :
                    IsRat a (Int.ofNat n.succ) dIsRat a⁻¹ (Int.ofNat d) n.succ
                    theorem Mathlib.Meta.NormNum.isInt_inv_neg_one {α : Type u_1} [DivisionRing α] {a : α} :
                    IsInt a (Int.negOfNat 1)IsInt a⁻¹ (Int.negOfNat 1)
                    theorem Mathlib.Meta.NormNum.isRat_inv_neg {α : Type u_1} [DivisionRing α] [CharZero α] {a : α} {n d : } :
                    IsRat a (Int.negOfNat n.succ) dIsRat a⁻¹ (Int.negOfNat d) n.succ
                    def Mathlib.Meta.NormNum.Result.inv {u : Lean.Level} {α : Q(Type u)} {a : Q(«$α»)} (ra : Result a) (dsα : Q(DivisionSemiring «$α»)) (czα? : Option Q(CharZero «$α»)) :
                    Lean.MetaM (Result q(«$a»⁻¹))

                    The result of inverting a norm_num result.

                    Instances For

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

                      Instances For