Lecture 3, Tuesday Sept. 7
Today we start with a few more examples of propositional equivalence:
First, for practice, we prove one rule of equivalnce as true using others.
Contrapositive: Prove this is logically equivalent...
a --> b <==> ~b --> ~a ~a v b <==> ~b --> ~a "implies rule" ~a v b <==> ~~b v ~a "implies rule" ~a v b <==> b v ~a "double negation" ~a v b <==> ~a v b "commutative rule"
Second, can we add to the list of nice rules about "--->"?
Prove or disprove the "associative rule of implication".
(p --> q) --> r <==> p --> (q --> r)
~(~p v q) v r ( we're just seeing if it works... so don't have to
do all the steps )
(p ^ ~q) v r <==> ~p v (~q v r)
this looks alllll different. so find some way of assigning t,f to
all the variables. then go back and check in the very first
line, and make sure that the expressions are still different...
So far we have talked about propositions, and the equivalence between different propositions. Today we are going to talk about predicates: Predicates are "parameterized" propositions, functions that take an input and output a truth value.
i.e. Statements like "x+1=3" are examples of predicates, and we can write this predicate as p(x).
you can have predicates that have more than one variable.
in this case you have to INSTANTIATE both variables in order to have a truth value...
INSTANTIATION is the process of assigning a value to a variable. There is always some "domain", the set of possible values that may be put in (such as real numbers, names of people in this room etc.)
So, is there anything you can say about a predicate without knowing how its variables have been instantiated? well, yes!
What do "EVER and ALWAYS" mean? This depends on the domain over which you quantify. We must always know what the domain is. Sometimes it will be defined in the problem, sometimes it will be assumed by the context. But you must know what it is.
Question one is true or false... so it is a proposition. it is written with a backwards E and is called the "Existential Quantifier"
Question two is written (the "Universal Quantifier")
For a finite domains, these can be written easily as a compound proposition.
For infinite domains, these formulas can be written as really long compound propositions!
Now. what can we do with these? Let's use these to express some english sentences:
Ok. so i've tried to convince you that (forall)x p(x) is a proposition for a predicate p. Like, we could write Q = (forall)x p(x), and Q has some truth value.
So what is ~Q?
is there something besides ~(forall)x p(x) that we can write?
Now, what about propositions that have mutliple variables?
note, the ORDER of the existential and universal quantifiers MATTERS!
lets consider a case with a small, finite domain.