Documentation

LeanPool.ComputableReal.SpecialFunctions.Basic

IsComputable instances for basic real operations #

This file provides IsComputable instances for scientific literals, dite/ite, Real.sign, max, min, abs, conjugate exponents, and finite sums, closing the IsComputable typeclass under the basic operations on real numbers. The instances that branch on a comparison (Real.sign, max, min, abs) inherit its classical sign test and are noncomputable.

@[implicit_reducible]
Equations
@[implicit_reducible]
instance IsComputable.instComputableDite (p : Prop) (x : p) (y : ¬p) [Decidable p] [hx : (p : p) → IsComputable (x p)] [hy : (p : ¬p) → IsComputable (y p)] :
Equations
@[implicit_reducible, inline]
instance IsComputable.instComputableIte (p : Prop) (x y : ) [Decidable p] [hx : IsComputable x] [hy : IsComputable y] :
Equations
@[implicit_reducible, inline]
noncomputable instance IsComputable.instComputableSign (x : ) [hx : IsComputable x] :
Equations
@[implicit_reducible]
noncomputable instance IsComputable.instComputableMax (x y : ) [hx : IsComputable x] [hy : IsComputable y] :
Equations
@[implicit_reducible]
noncomputable instance IsComputable.instComputableMin (x y : ) [hx : IsComputable x] [hy : IsComputable y] :
Equations
@[implicit_reducible]
instance IsComputable.instComputableFinsetSum {ι : Type u_1} (xs : ι) (s : Finset ι) [hxs : (i : ι) → IsComputable (xs i)] :
Equations