Loading [MathJax]/jax/output/HTML-CSS/jax.js

Saturday, October 1, 2011

EQ 4 Equality vs Equivalence

b c is evaluated the same as b = c (in terms of truth tables) except that is allowed only when b and c are booleans.

Definition of Conjunctional

If and are conjunctional operators, b c d is equivalent to b c c d.

From the precedence table, all operators on line 10 are conjunctional, ie = < > ϵ | are all conjunctional

Definition of Associative

Binary Operator is associative ((b c) d) = (b ( c d ))

Key 1: is associative, = is conjunctional
Key 2: Conjunctional use of = (and other conjunctional operators ) are syntactic sugar.

Conversion back and forth:


b c d

= parenthesize

(b c ) d

= replace operator

(b = c) = d

and

b = c = d
= remove conjunctional syntactic sugar
b = c c = d
= parenthesize
(b = c) (c = d)
= replace operator
(b c) (c d)

No comments:

Post a Comment