Terminology Flashcards
Operator Precedence
Æ Ę ~ ^ v ->
Ü
“Fancy U”
Universe of Discourse (allowable choices)
Ż
“Fancy Z”
Set of all integers
{…-2, -1, 0, 1, 2,…}
M
“Fancy M”
Set of all muffins
Ę
“Backwards E”
Existential
“there exists”
Æ
“Upside down A”
Universal
“for all”
Predicate Calculus (Predicate Logic)
The manipulation of open statements
Negation of Quantifiers
DeMorgan’s Law for Quantifiers
~Æx d(x) = Ęx ~d(x)
~Ęx d(x) = Æx ~d(x)
Quantifiers
Quantify open statements and make them statements.
Existential and Universal quantifiers
Open Statement
Has one or more variables
Is not a statement, but becomes one when the variables are replaced by certain allowable choices (universe of discourse)
p(x): x is an integer
Dealing with Nested Quantifiers
Order matters
Read from left to right
Bound Variables
Variables with a quantifier applied to it.
Æx ( p(x) -> q(x) )
Unbound Variables
Variables with no quantifiers applied
Æx p(x) -> q(x)
If p q is a tautology, we can say…
p = q
p is logically equivalent to q
is interchangeable with…
Logical equivalence