I am using Dafny 17.2 in VS code
type H
predicate Pfo(k:H)
lemma fo<H> (h:H)
ensures forall k:H :: Pfo(k)
I cannot understand the error message
type mismatch for argument (function expects H, got H)
Any help appreciated david
Added example:
type H
predicate Pfo(y:H,x:H)
lemma fo<H> (h:H)
ensures forall k :: Pfo(k,h)
Very similar error message
type mismatch for argument 1 (function expects H, got H)
but this time I have attempted to follow the solution given for the initial example and delete occurrences of ":H" but could not find any solution.