Documentation

Init.Data.Int.Basic

inductive Int:
Type
Equations
instance instOfNatInt {n : Nat} :
Equations
Equations
@[extern lean_int_neg]
def Int.neg (n : Int) :
Equations
def Int.subNatNat (m : Nat) (n : Nat) :
Equations
@[extern lean_int_add]
def Int.add (m : Int) (n : Int) :
Equations
  • One or more equations did not get rendered due to their size.
@[extern lean_int_mul]
def Int.mul (m : Int) (n : Int) :
Equations
  • One or more equations did not get rendered due to their size.
@[defaultInstance 1000]
Equations
Equations
Equations
@[extern lean_int_sub]
def Int.sub (m : Int) (n : Int) :
Equations
Equations
inductive Int.NonNeg:
IntProp
def Int.le (a : Int) (b : Int) :
Prop
Equations
Equations
def Int.lt (a : Int) (b : Int) :
Prop
Equations
Equations
@[extern lean_int_dec_eq]
def Int.decEq (a : Int) (b : Int) :
Decidable (a = b)
Equations
  • One or more equations did not get rendered due to their size.
@[extern lean_int_dec_le]
instance Int.decLe (a : Int) (b : Int) :
Equations
@[extern lean_int_dec_lt]
instance Int.decLt (a : Int) (b : Int) :
Decidable (a < b)
Equations
@[extern lean_nat_abs]
def Int.natAbs (m : Int) :
Equations
instance Int.instOfNatInt {n : Nat} :
Equations
@[extern lean_int_div]
def Int.div:
IntIntInt
Equations
  • One or more equations did not get rendered due to their size.
@[extern lean_int_mod]
def Int.mod:
IntIntInt
Equations
  • One or more equations did not get rendered due to their size.
Equations
Equations
def Int.toNat:
IntNat
Equations
def Int.natMod (m : Int) (n : Int) :
Equations
def Int.pow (m : Int) :
NatInt
Equations