Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
The following model works as expected:
causes the following error in Alloy:
The generated Alloy code is incorrect and irregular:
Currently, the only way to fix it is by adding
However, the instance produced is incorrect!
results in the correct instance
I suppose this has something to do with the type system.
Another way of getting correct output:
desugars correctly to
because by forcing dereferencing twice, the only valid type is