Skip to content

Instantly share code, notes, and snippets.

@jad-hamza
Created March 6, 2018 20:58
Show Gist options
  • Save jad-hamza/1d00ecd9a670c542893b041e477d1699 to your computer and use it in GitHub Desktop.
Save jad-hamza/1d00ecd9a670c542893b041e477d1699 to your computer and use it in GitHub Desktop.
def g(i) {
require(i > 0)
i >= -1
} ensuring(res => res)
def f(i): bool {
require(i >= 0)
i > 0
}
def h(i) {
require(i > 0 && f(i-1))
i+1
} ensuring(res => g(i+1) == true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment