The following expression is evaluated fine:
value "{fst x | x. x ∈ {(1::nat,2::nat),(2,4),(3,4)}}"
But for the following expression:
value "{fst x | x. x ∈ {(1::nat,2::nat),(2,4),(3,4)} ∧ snd x = 4}"
I get error:
Wellsortedness error:
Type nat × nat not of sort enum
No type arity nat :: enum
How to evaluate such an expression? Is it possible without replacing set by fset or list types?