repo.or.cz
/
why3.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
two forms of transformation extensionality
[why3.git]
/
examples_in_progress
/
mean.mlw
blob
28a14ac413a751c2ee3c0d7feb51814a20d79ed3
1
module M
2
3
use int.Int
4
use int.EuclideanDivision as ED
5
use int.ComputerDivision
6
7
let mean (x:int) (y:int)
8
requires { 0 <= x <= y }
9
ensures { result = ED.div (x + y) 2 = div (x + y) 2 }
10
= x + div (y - x) 2
11
12
end