Reglo was developped for programming of synchronous observers. Such an observer checks if a sequence of configurations meets some safety property []. Here are some simple observers:
Once(a) = [-a]*.a.~~ ;The preceding equation outlines the first occurence of a. The following definition denotes the same property, but outlines the last occcurence of a:
Once(a) = ~~.a.[-a]* ;Finally, the following definition outlines “some” occurence, but it is still equivalent:
Once(a) = ~~.a.~~ ;
After(a) = [-a]*.a.[].~~ ; After(a) = ~~.a.[].~~ ;