100 likes | 216 Views
Uses for Truth Tables. Determine the truth conditions for any compound statement Determine whether a statement is a tautology , a contradiction or neither, Determine whether two formulae are equivalent . Equivalence.
E N D
Uses for Truth Tables • Determine the truth conditions for any compound statement • Determine whether a statement is a tautology, a contradiction or neither, • Determine whether two formulae are equivalent.
Equivalence • Two formulae are said to be equivalent if, but only if, those formulae are true and false under exactly the same conditions, that is, if, but only if, the truth table columns for the dominant operators are identical.
Testing for Equivalence • To use a truth table to test two formulae for equivalence, begin by constructing truth table columns for each formula. Use one set of guide columns for both formulae. • Compare the columns for the dominant operators of the two formulae. If the truth values agree in each row, the formulae are equivalent.
Truth-Table Test for Equivalence ( R S ) :: ~ R S T T T T T T T F T T T T T T T F T T Do the formulas match in truth value? YES Are the two formulas logically equivalent? YES
Truth-Table Test for Equivalence ~ ( R S ) :: ~ R ~ S T T T T T T T T T T T T T T T T T Do the formulas match in truth value? NO Are the two formulas logically equivalent? NO
Truth-Table Test for Equivalence ~ ( R S ) :: ~ R ~ S T T T T T T T T T T T T T T T T T T T Do the formulas match in truth value? YES Are the two formulas logically equivalent? YES
Truth-Table Test for Equivalence ~ ( R S ) :: ~ R ~ S T T T T T T T T T T T T T T T T T T T Do the formulas match in truth value? NO Are the two formulas logically equivalent? NO
Truth-Table Test for Equivalence ~ ( R S ) :: ~ R ~ S T T T T T T T T T T T T T T T T T Do the formulas match in truth value? YES Are the two formulas logically equivalent? YES
Do Not Distribute a Negation Across A Conjunction or a Disjunction! not ( R and S) not R andnot S not ( R or S) not R ornot S
Rather. . . not R ornot S not ( R and S) = not ( R or S) = not R andnot S