Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
Sylvie Boldo
[go: Go Back, main page]

Gallery of proved programs

Full Coq proof using why2
Full proof using why3


Exact subtraction: Sterbenz's theorem

This function computes the exact subtraction if the inputs are near enough one to another.

/*@ requires  y/2. <= x <= 2.*y;
  @ ensures   \result == x-y;
  @*/

float Sterbenz(float x, float y) {
  return x-y;
}


 
Inria

Interstices

Revue web de médiation scientifique
French popularization web journal