next up previous
Next: The natural universe of Up: Review of logic. Previous: Connection with relational databases


Safe and Unsafe formulas

Properties of safe formulas:

The example \( \{x\vert\neg \mathrm{dog}(x)\} \) shows that negation leads to unsafe formulas. To see that union can lead to unsafe formulas, consider

\begin{displaymath}
\{(x,y)\vert\mathrm{dog}(x)\vee \mathrm{rock}(y)\}\end{displaymath}

This is all pairs \( (x,y) \) such that either:

  1. \( x \) is a dog from a finite list and \( y \) is any object in the universe, or
  2. \( x \) is any object in the universe and \( y \) is a rock from a finite list.



Justin R. Smith 2001-04-06