The following simple example illustrates an architectural specification definition (referencing ordinary specifications named List, Char, and Nat, assumed to declare the sorts Elem and List[Elem], Char, and Nat, respectively):
Further examples of architectural specifications are given in the CASL Summary [4] and in a recent paper [1].
- arch spec
- CN_List =
- units
C : Char ;
N : Nat ;
F : Elem -> List[Elem]- result
- F[C fit Elem |-> Char] and F[N fit Elem |-> Nat]