next up previous contents
Next: Tuple Relational Calculus Up: 4660 Previous: SQL Features   Contents

Relational Calculus [194]



Propositional Calculus

Predicate Calculus adds quantification

Tuple Relational Calculus adds



Propositional Calculus Rules [195]

  • $a \wedge 1 = a $
  • $a \vee 0 = a$
  • $a \wedge \neg a = 0$
  • $a \wedge 0 = 0$
  • $a \vee \neg a = 1$
  • $a \vee 1 = 1$
  • $a \wedge a = a$
  • $a \vee a = a$
  • $a \wedge b = b \wedge a$
  • $a \vee b = b \vee a$
  • $a \wedge (b \wedge c) = (a \wedge b) \wedge c$
  • $a \vee (b \vee c) = (a \vee b) \vee c$
  • $a \wedge (b \vee c) = (a \wedge b) \vee (a \wedge c)$
  • $a \vee (b \wedge c) = (a \vee b) \wedge (a \vee c)$
  • $\neg \neg a = a$
  • $\neg (a \wedge b) = \neg a \vee \neg b$
  • $\neg (a \vee b) = \neg a \wedge \neg b$



Implication [196]

$A$ Implies $B$



a b a $\Rightarrow$ b
1 1 1
0 1 1
1 0 0
0 0 1



$a \Rightarrow b \equiv \neg a \vee b$

A formula may be



Predicate Calculus [197]

Predicate Calculus or First Order Logic adds

Examples of Predicates

Examples of $\exists$



Universal Quantification [198]



Subsections
next up previous contents
Next: Tuple Relational Calculus Up: 4660 Previous: SQL Features   Contents
Ted Billard 2001-10-31