In Isabelle is there a way to ensure that a type variable could be an interpretation of a locale?
I know that I can, for example, ensure that a type variable is of a particular class:
isValid :: 'a::ord =>: bool
However, I can't find how to extend this idea to a locale:
class address ....
<snip>
locale Message =
fixes
sender :: "'message => 'address::address" and
receiver :: "'message => 'address::address" and
isValid :: "'message => bool"
locale Filter =
fixes
fiterFunc :: "'filter => 'message::Message => filterResult"
The Filter locale gives errors such as Undefined class. Is there a way to write such an expression?