Let the following simple Alloy code :
sig somme{
f : one Ax1,
g: one Ax2,
}
let Ax1= String
let Ax2= "Spain" + "Italy"
I want to restrict the values of the field f to "Italy" so I write a predicat :
pred show{
Ax1= "Italy"
}
run show
But this does not work (I have no instances).
So my question is How can I do this without hardcoding it in an axiome but rather in a fact or a predicat to have more flexibility (I may want to write a second predicat to create instances that use only Spain)?
Thank you in advance,