Open MM45 opened 11 months ago
The following raises an error stating the datatype does not respect the positivity condition :
the datatype does not respect the positivity condition
require import List. type 'a tree = [ Empty | Node of 'a & ('a tree) list ].
Swapping tree and list types around works just fine:
tree
list
require import List. type 'a tree = [ Empty | Node of 'a & ('a list) tree ].
The following raises an error stating
the datatype does not respect the positivity condition
:Swapping
tree
andlist
types around works just fine: