Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Why3
why3
Commits
ed905bca
Commit
ed905bca
authored
Apr 20, 2015
by
Jean-Christophe Filliâtre
Browse files
mach.int.Bounded_int: better posts (inlined extensionality)
parent
98139817
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/mach/int.mlw
View file @
ed905bca
...
...
@@ -71,10 +71,12 @@ module Bounded_int
ensures { to_int result = - to_int a }
val eq (a:t) (b:t) : bool
ensures { result <-> to_int a = to_int b }
ensures { to_int a = to_int b -> result }
ensures { result -> a = b }
val ne (a:t) (b:t) : bool
ensures { result <-> to_int a <> to_int b }
ensures { a <> b -> result }
ensures { result -> to_int a <> to_int b }
axiom extensionality: forall x y: t. to_int x = to_int y -> x = y
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment