Model a finite set of integers
问题 Below is an Alloy model representing this set of integers: {0, 2, 4, 6} As you know, the plus symbol (+) denotes set union. How can 0 be unioned to 2 ? 0 and 2 are not sets. I thought the union operator applies only to sets? Isn't this violating a basic notion of set union? Second question: Is there a better way to model this, one that is less cognitively jarring? one sig List { numbers: set Int } { numbers = 0 + 2 + 4 + 6 } 回答1: In Alloy, everything you work with is a set of tuples. none is