Next: , Previous: Bool, Up: Types reference


4.9.2 Card

Card is a specialized set of integers used for cardinality sets. Usually, such types do not show up explicitly but are introduced via the type synonym Valency.

A cardinality set can be specified in various ways:

4.9.2.1 Top value

The set {0}.

4.9.2.2 Bottom value

See domain type (Domain).

4.9.2.3 Greatest lower bound operation

The greatest lower bound of two cardinality sets S_1 and S_2 is defined as follows:

4.9.2.4 Example

Here is an example card type definition:

     deftype "card" card