Compound Propositions and Useful Rules
Welcome! This is a lesson in the Introductory Discrete Mathematics for Computer Science course here at Wikiversity.
Previous lesson: Biconditional Operator
- A compound proposition is a proposition that involves the assembly of multiple statements. This concept was also discussed a bit in the previous lesson.
Writing Truth Tables For Compound Propositions
To write the truth table for a compound proposition, it's best to calculate the statement's truth value after each individual operator. For example, in the statement , it's best to solve for , then for , and finally for the statement as a whole:
- p = (T, T, F, F); q = (T, F, T, F)
- p = (T, T, F, F); = (F, T, F, T)
- = (T, T, F, T)
- q = (T, F, T, F)
- = (T, F, T, F)
Showing Logical Equivalence
Logical equivalence means that the truth tables for two statements are the same. This was also discussed a bit in the previous lesson. In order to prove logical equivalence, simply draw the truth tables for all the statements in question and show that they are the same.
For example, you can show that is logically equivalent to .
The Contrapositive, Inverse and Converse
The contrapositive of conditional statement is . A conditional is logically equivalent to its contrapositive. In other words, if q did not occur, then we can assume p also did not occur.
The inverse is .
The converse is .
The converse and inverse are logically equivalent. They are one another's contrapositives...
A tautology is a statement that is always true. Another wording is that a tautology is a statement that is logically equivalent to the constant truth.
is an example of a tautology.
Congratulations! You have finished the first lesson of the course.