Skip to content

Instantly share code, notes, and snippets.

@jad-hamza
Created March 11, 2018 11:42
Show Gist options
  • Save jad-hamza/cdfd7621c48c188e30210df4951880ad to your computer and use it in GitHub Desktop.
Save jad-hamza/cdfd7621c48c188e30210df4951880ad to your computer and use it in GitHub Desktop.
trait A {
var u: BigInt
var v: BigInt
def f(x: BigInt): BigInt
}
case class B(a: A)
object Example {
def invariant(b: B) = {
b.a.f(b.a.u) == b.a.v
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment