Lecture 2, Tuesday Sept. 5

Lecture Notes, propositional equivalence.

0. Propositions

Propositions are statements with a truth value --- they are either true or false. For example, while statements such as: We often use the letters P,Q,R as propositional variables, and they represent some proposition (although we may not know if they are true or false). We can make logical expression from propositional variables through the use of connectives. The most common of these connectives are: slightly less common are the following connectives Information on translating between logic and english can be found at the following fantastic web page: link, alththough note that they use a different notation than we do. What does "but" translate as? What are necessary and sufficient conditions?

1. Truth tables.

A logical expression, such as ((p AND q) or r), has a truth value that depends on the truth values of the propositions (the p's, q's, and r's) that make up the expression. A truth table is an organized way of writing down the truth value of an expression, by exhaustively considering every possible set of truth values for the propositions that make up the expression.

Complete truth tables

in a complete truth table, every new column is made as the "and", "or", "implies", "if and only if", or "not" of earlier columns.

How many rows are there in a complete truth table?

2number of variables

How many columns are there in a complete truth table?

number of connectives in the formula, (perhaps less if there is
duplication of clauses in the formula).

Two expressions are called logically equivalent if their truth value is the same in EVERY condition, that is, if their truth value is the same in every row.

2. Logical Equivalences

Some of these "logically equivalent" expressions have special names
  1. Identity P ^ T <==> P % Rules w/ one propositional variables
  2. Identity P v F <==> P
  3. Domination P ^ F <==> F
  4. Domination P v T <==> T
  5. Absorption P ^ F <==> F
  6. Absorption P v T <==> T
  7. Negation P ^ ~P <==> F
  8. Negation P v ~P <==> T
  9. Idempotent P ^ P <==> P
  10. Idempotent P v P <==> P
  11. Commutative Law P ^ Q <==> Q ^ P % Rules w/ two propositional variables
  12. Commutative Law P v Q <==> Q v P
  13. DeMorgans Law ~(P v Q) <==> (~P ^ ~Q)
  14. DeMorgans Law ~(P ^ Q) <==> (~P v ~Q)
  15. Implies Rule P --> Q <==> (~P v Q)
  16. Contrapositive: P --> Q <==> ~Q --> ~P
  17. Associative Law P v (Q v R) <==> (P v Q) v R % Rules w/ 3 propositional variables
  18. Associative Law P ^ (Q ^ R) <==> (P ^ Q) ^ R
  19. Distributive Law P ^ (Q v R) <==> (P ^ Q) v (P ^ R)
  20. Distributive Law P v (Q ^ R) <==> (P v Q) ^ (P v R)

3. Common Logic Errors

There are also some common errors, expressions that are not logically equivalent. One of these is that an expression is not equivalent to its "Converse". The converse of P --> Q is Q --> P. Are these two expressions equivalent? To show they are not, we need to find an "assignment of truth values to P,Q" which gives the two expressions different truth values.

4. Proofs

Using the "real" logical equivalences, we can PROVE other equivalences. We can use the above rules to replace all or parts of an expression without changing its truth value. One proof that two formulas are equivalent is to show the chain of replacements that goes from one formula to the other. A fully justified proof includes an annotation of which rule is used in each step.

5. Tautology

When a propositional expression is equivalent to TRUE, we call it a TAUTOLOGY. One can also call the expressions valid.
in a tautology, every possible possible way of assigning truth values to the propositions leads to an expression which is true.

5.5 Satisfiable

When there is some way of assigning truth values so that a propositional expression evaluates to TRUE, we call it satisfiable. A satisfiable expression is valid if every possible way of assigning variables makes the expression evaluate to TRUE.

6. Contradictions

When a propositional expression is equivalent to FALSE, we call it a CONTRADICTION, or unsatisfiable
in a contradiction, every possible possible way of assigning truth values to the propositions leads to an expression which is false.

7. Equivalence

Expressions A, B are equivalent iff A <--> B is a tautology.

8. Completeness of And, OR, NOT

Can define an arbitrary propositional function, by specifying its truth values for a whole column of a truth table. We now constructively prove that we can express any function using just and, or, and not.

9. Optimization of logical circuitry.

There are two things that one might want to minimize:
  1. Criteria one: length of the formula. If we define new connectives, we could make the length of every possible formula with two propositional variables be just three characters long. How many connectives would we need to add?
  2. Criteria two: number of different connectives. If we use fewer different kinds of connectives, we can perhaps simplify the manufacturing process and make it easier to build chips. Can we make up our logical formulas without using some of our connectives?

What do we have to do to prove that we don't need a specific connective?

Why do we use the set of connectives that we do?