I was wondering if there's a way, in a fact, to force an attribute of a signature be empty. I tried this way but it seems not work:
sig C {
myattribute: lone Type
}
sig Type { att1: Int att2: ..... etc.. }
fact {
all c: C|
(my condition)
<=>
(
no c.myattribute
)
}
As for now we can just think about defing a structure with an abstract signature this way:
abstract sig GeneralType {}
one sig Empty extends GeneralType {}
sig NotEmpty extends GeneralType {...arguments (att1,2....}