Augmenting Types with Unbounded Demonic and Angelic Nondeterminacy
We show how to introduce demonic and angelic nondeterminacy into the term language of each type in typical programming or specification language. For each type we introduce (binary infix) operators ⊓ and ⊔ on terms of the type, corresponding to demonic and angelic nondeterminacy, respectively. We generalise these operators to accommodate unbounded nondeterminacy. We axiomatise the operators and derive their important properties. We show that a suitable model for nondeterminacy is the free completely distributive complete lattice over a poset, and we use this to show that our axiomatisation is sound. In the process, we exhibit a strong relationship between nondeterminacy and free lattices that has not hitherto been evident. Although nondeterminacy arises naturally in specification and programming languages, we speculate that it combines fruitfully with function theory to the extent that it can play an important role in facilitating proofs of programs that have no apparent connection with nondeterminacy.
Keywordsangelic nondeterminacy demonic nondeterminacy free completely ditributive lattice
Unable to display preview. Download preview PDF.
- 3.Birkhoff, G.: Lattice Theory. American Mathematical Society, vol. 25. Colloquium Publications (1995)Google Scholar
- 6.Freese, R., Jezek, J., Nation, J.B.: Free Lattices, American Mathematical Society. Mathematical Surveys and Monographs, vol. 42 (1995)Google Scholar
- 8.Hehner, E.C.R.: A Practical Theory of Programming. Springer, New York (1993) ISBN 0387941061Google Scholar
- 12.Norvell, T.S., Hehner, E.C.R.: Logical specifications for functional programs. In: Bird, R.S., Woodcock, J.C.P., Morgan, C.C. (eds.) MPC 1992. LNCS, vol. 669, pp. 269–290. Springer, Heidelberg (1993)Google Scholar