ADAS AND THE EQUATIONAL THEORY OF IF-THEN-ELSE

被引:15
作者
MANES, EG [1 ]
机构
[1] UNIV MASSACHUSETTS,DEPT MATH & STAT,AMHERST,MA 01003
关键词
D O I
10.1007/BF01190447
中图分类号
O1 [数学];
学科分类号
0701 ; 070101 ;
摘要
Programming languages admit the ternary operator if p then f else g where p is a test which may not halt. Here, p ranges over a suitable 3-valued logic. Guzman and Squier recently introduced ''C-algebras'' and an equational 3-valued generalization of Boolean algebra based on ''or'', ''and'' and ''not''. We incorporate their results and introduce as well the concept of ''ada'' (for Algebra of Disjoint Alternatives) which results when C-algebras are equipped with an oracle for the halting problem. The 3-element ada is functionally complete. For if-then-else over a Boolean algebra or over an ada, eight equations generate all. The resulting variety may be represented as a variety of modules over a Boolean algebra. Over a C-algebra, a ninth equation is required.
引用
收藏
页码:373 / 394
页数:22
相关论文
共 25 条