Logic & Satisfiability
Propositional Logic
The area of Logic that deals with propositions:
A proposition is a statement that is either true or false, but not both, which must delcare a fact and must have a truth value.
e.g. "It is raining", "2 + 2 = 4", "The sky is blue"
The following logic operators are similar to the ones in digital logic:
| Precedence | Definition | Symbol | Meaning | Truth table TLRF |
|---|---|---|---|---|
| 1 | Negation | Not | - | |
| 2 | Conjunction | and | TFFF | |
| 3 | Disjunction | or | TTTF | |
| 4 | Exclusive or | or but not both (XOR) | FTTF | |
| 5 | Implication | If then | TFTT | |
| 6 | Bi-conditionals | if and only if (XNOR) | TFFT |
Why implication | ..T. |? The statement can still hold true even if : Consider: "Bob goes to work, it's Monday." The day can still be Monday even if bob doesn't go to work.
Presedence:
For an implication :
- Converse:
- Inverse:
- Contrapositive: (Same truth value as the original)
Logic Equivalences
Proposition that is always true, regardless of the truth values of the propositions it contains.
Examples
- is always true
- is always true
The following are the methods & laws of propositional logic:
| Category | Rule |
|---|---|
| Identity | |
| Domination | |
| Idempotent | |
| Negation | |
| Commutative | |
| Associative | |
| Double Negation | |
| Bi-Implication | |
| Contrapositive | |
| Implication | |
| Distributive | |
| De Morgan's | |