Documentation

Init.Data.Float

structure FloatSpec:
Type 1
  • float : Type
  • val : float
  • lt : floatfloatProp
  • le : floatfloatProp
  • decLt : DecidableRel lt
  • decLe : DecidableRel le
structure Float:
Type
Equations
@[extern lean_float_add]
opaque Float.add:
FloatFloatFloat
@[extern lean_float_sub]
opaque Float.sub:
FloatFloatFloat
@[extern lean_float_mul]
opaque Float.mul:
FloatFloatFloat
@[extern lean_float_div]
opaque Float.div:
FloatFloatFloat
@[extern lean_float_negate]
opaque Float.neg:
def Float.lt:
FloatFloatProp
Equations
def Float.le:
FloatFloatProp
Equations
Equations
Equations
Equations
Equations
Equations
Equations
Equations
@[extern lean_float_beq]
opaque Float.beq (a : Float) (b : Float) :
Equations
@[extern lean_float_decLt]
opaque Float.decLt (a : Float) (b : Float) :
Decidable (a < b)
@[extern lean_float_decLe]
opaque Float.decLe (a : Float) (b : Float) :
instance floatDecLt (a : Float) (b : Float) :
Decidable (a < b)
Equations
instance floatDecLe (a : Float) (b : Float) :
Equations
@[extern lean_float_to_string]
@[extern lean_float_to_uint8]
@[extern lean_float_to_uint16]
@[extern lean_float_to_uint32]
@[extern lean_float_to_uint64]
@[extern lean_float_to_usize]
Equations
@[extern lean_uint64_to_float]
@[extern sin]
opaque Float.sin:
@[extern cos]
opaque Float.cos:
@[extern tan]
opaque Float.tan:
@[extern asin]
@[extern acos]
@[extern atan]
@[extern atan2]
opaque Float.atan2:
FloatFloatFloat
@[extern sinh]
@[extern cosh]
@[extern tanh]
@[extern asinh]
@[extern acosh]
@[extern atanh]
@[extern exp]
opaque Float.exp:
@[extern exp2]
@[extern log]
opaque Float.log:
@[extern log2]
@[extern log10]
@[extern pow]
opaque Float.pow:
FloatFloatFloat
@[extern sqrt]
@[extern cbrt]
@[extern lean_float_scaleb]
opaque Float.scaleB (x : Float) (i : Int) :

Efficiently computes x * 2^i.