Propositional Logic - Examples and Constructions
Propositional logic provides powerful tools for translating natural language reasoning into precise mathematical form and for constructing normal forms that simplify logical analysis.
Consider the statement: "If it rains or snows, then the game is cancelled unless the field is covered."
Let = "it rains", = "it snows", = "the game is cancelled", = "the field is covered".
This translates to: , or equivalently using the definition of "unless": .
The translation process requires careful attention to the logical structure of compound statements and the precise meaning of connectives like "unless" (), "only if" (), and "if and only if" ().
A literal is either a propositional variable (positive literal) or its negation (negative literal). A clause is a disjunction of literals: where each is a literal.
A formula is in conjunctive normal form if it is a conjunction of clauses:
Every propositional formula is logically equivalent to a formula in CNF.
A formula is in disjunctive normal form if it is a disjunction of conjunctions of literals:
Every propositional formula is logically equivalent to a formula in DNF.
Convert to CNF:
- Eliminate implication:
- Already in CNF: conjunction of two clauses and
For :
- Apply De Morgan:
- Apply De Morgan again:
- CNF:
CNF and DNF are particularly useful in automated theorem proving and satisfiability testing. The SAT problem (determining if a CNF formula is satisfiable) is the canonical NP-complete problem, making propositional logic central to computational complexity theory.
Normal forms provide canonical representations that facilitate both theoretical analysis and practical applications in computer science, from circuit design to formal verification.