Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Finding bugs in Haskell code by proving it. Parent comment
Here's how the assertion of commutativity would look in F*:
val f : int -> int -> Tot int let f a b = a + b let commutative = assert (forall a b. f a b = f b a )
There are no comments on this comment yet.
Here's how the assertion of commutativity would look in F*: