ConceptComplete

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.

ExampleNatural Language Translation

Consider the statement: "If it rains or snows, then the game is cancelled unless the field is covered."

Let rr = "it rains", ss = "it snows", gg = "the game is cancelled", cc = "the field is covered".

This translates to: (rs)(cg)(r \lor s) \to (c \lor g), or equivalently using the definition of "unless": (rs)¬cg(r \lor s) \land \neg c \to g.

The translation process requires careful attention to the logical structure of compound statements and the precise meaning of connectives like "unless" (¬cg\neg c \lor g), "only if" (pqp \to q), and "if and only if" (pqp \leftrightarrow q).

DefinitionLiteral and Clause

A literal is either a propositional variable (positive literal) or its negation (negative literal). A clause is a disjunction of literals: l1l2lkl_1 \lor l_2 \lor \cdots \lor l_k where each lil_i is a literal.

DefinitionConjunctive Normal Form (CNF)

A formula is in conjunctive normal form if it is a conjunction of clauses:

ϕ=(l1,1l1,k1)(l2,1l2,k2)(lm,1lm,km)\phi = (l_{1,1} \lor \cdots \lor l_{1,k_1}) \land (l_{2,1} \lor \cdots \lor l_{2,k_2}) \land \cdots \land (l_{m,1} \lor \cdots \lor l_{m,k_m})

Every propositional formula is logically equivalent to a formula in CNF.

DefinitionDisjunctive Normal Form (DNF)

A formula is in disjunctive normal form if it is a disjunction of conjunctions of literals:

ϕ=(l1,1l1,k1)(l2,1l2,k2)(lm,1lm,km)\phi = (l_{1,1} \land \cdots \land l_{1,k_1}) \lor (l_{2,1} \land \cdots \land l_{2,k_2}) \lor \cdots \lor (l_{m,1} \land \cdots \land l_{m,k_m})

Every propositional formula is logically equivalent to a formula in DNF.

ExampleCNF Conversion

Convert ϕ=(pq)r\phi = (p \to q) \land r to CNF:

  1. Eliminate implication: (¬pq)r(\neg p \lor q) \land r
  2. Already in CNF: conjunction of two clauses (¬pq)(\neg p \lor q) and rr

For ψ=¬((pq)r)\psi = \neg((p \land q) \lor r):

  1. Apply De Morgan: ¬(pq)¬r\neg(p \land q) \land \neg r
  2. Apply De Morgan again: (¬p¬q)¬r(\neg p \lor \neg q) \land \neg r
  3. CNF: (¬p¬q)¬r(\neg p \lor \neg q) \land \neg r
Remark

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.