Propositional Logic

Propositional Logic is a Formal System – a Language (syntax) and a set of Deduction Rules (semantics) – capable of expressing “propositional logic”.

It is one of the more primitive / basic systems for logic.

Unlike First-order Logic, there is one fixed language1 for propositional logic, i.e., authors do not generally define custom objects (in addition to those below) to use within formulas.

Syntax

Alphabet

See Formal Language & Grammar for the formal significance of an alphabet.

Well-Formed Formulas

Aka., Sentential Formulas, or the Language in Formal Language & Grammar

The set of Well-Formed Formulas (WFF)s, L\mathcal{L}, is defined inductively:

  1. Base: PL\mathcal{P} \subset \mathcal{L}.
  2. Negation: φL    ¬φL\varphi \in \mathcal{L} \implies \neg \varphi \in \mathcal{L}.
  3. Binary Connectives: φ,ψL    (φψ),(φψ),(φψ),(φψ)L\varphi, \psi \in \mathcal{L} \implies (\varphi \land \psi), (\varphi \lor \psi), (\varphi \to \psi), (\varphi \leftrightarrow \psi) \in \mathcal{L}
  4. Closure: No other strings are in L\mathcal{L}.

where φ\varphi and ψ\psi represent strings, and everything else are strings of symbols as-is.

In actual writing, some parentheses are omitted for brevity.
To maintain unambiguity in how unparenthesized sub-formulas are parsed, the connectives are assigned precedence levels. In descending order:

  1. ¬\lnot (highest)
  2. \land and \lor
  3. \to and \leftrightarrow (lowest)

The binary connectives are left associative, while negation is right associative.

Semantics

Truth Assignment

Aka. Valuation

A truth assignment for a formula maps each proposition variable in the formula to a truth value, then evaluates the formula.

I.e., a truth assignment is a function
ρ:P{,} \rho: \mathcal{P} \to \{ \bot, \top \}

where \top represents truth and \bot represents falsity.

Then, ρ\rho is inductively defined for all sentential formula.
For φ,ψL\varphi, \psi \in \mathcal{L},
ρ(¬φ)    ¬ρ(φ)ρ(φψ)    ρ(φ)ρ(ψ)ρ(φψ)    ρ(φ)ρ(ψ)ρ(φψ)    ¬ρ(φ)ρ(ψ)ρ(φψ)    ρ(φ)ρ(ψ) \begin{align*} \rho(\lnot \varphi) &\iff \lnot \rho(\varphi) \\ \rho(\varphi \land \psi) &\iff \rho(\varphi) \land \rho(\psi) \\ \rho(\varphi \lor \psi) &\iff \rho(\varphi) \lor \rho(\psi) \\ \rho(\varphi \to \psi) &\iff \lnot \rho(\varphi) \lor \rho(\psi) \\ \rho(\varphi \leftrightarrow \psi) &\iff \rho(\varphi) \leftrightarrow \rho(\psi) \\ \end{align*}

where the following (very well-formatted) truth tables define the logical connectives. Note that IMPLIES, \to, is defined in terms of ¬\lnot and \lor.

NOT:

¬\lnot
\top \bot
\bot \top

AND:

\land \top \bot
\top \top \bot
\bot \bot \bot

OR:

\lor \top \bot
\top \top \top
\bot \top \bot

EQUIV:

\leftrightarrow \top \bot
\top \top \bot
\bot \bot \top

 \space

Logical Classification:

Rules of Inference

By defining the behavior of (a sufficient subset of)2 the logical connectives like above, the logic is already complete.
Alternatively, Rules of Inference (axioms) are defined, from which the intuitive behavior of the logical connectives are inferred.

The minimal set as Rules of Inference is just Modus Ponens (plus some form of definition for negation or NOT).

Modus Ponens (MP):

φ,φψψ \frac{\varphi,\quad \varphi \to \psi}{\psi}

I.e., “if φ\varphi is true, and it is asserted φψ\varphi \to \psi, then ψ\psi must be true”.

Other common Axioms

Hilbert-style:

  1. φ(ψφ)\varphi \to (\psi \to \varphi)
  2. (φ(ψχ))((φψ)(φχ))(\varphi \to (\psi \to \chi)) \to ((\varphi \to \psi) \to (\varphi \to \chi))
  3. (¬φ¬ψ)((¬φψ)φ)(\neg \varphi \to \neg \psi) \to ((\neg \varphi \to \psi) \to \varphi)

There are many axiomatic systems for propositional logic. As long as they all establish propositional logic, they’re all equivalent (obviously?!).

Meta-Theoretical Properties

These aren’t specific to propositional logic, but rather of any logic in general.

While (all) these properties may seem trivial, e.g., how soundness would not imply completeness, they aren’t.


  1. well, of course there are infinite languages that could express propositional logic. Non-trivial ones include those using a smaller subset of the logical connectives or just using NAND (\uparrow) or NOR (\downarrow) (since they themselves are functionally complete), and those that use different symbols to denote the same connectives, or those with completely different (not infix) syntaxes, blah blah.
    Point is, they’re all isomorphic to this, the “most standard”, one.

    A notable alternative langauge, however, are Boolean Algebras, functional equivalents in algebraic form. ↩︎

  2. The following combinations are sufficient:
    ¬\lnot and \land
    ¬\lnot and \lor
    ¬\lnot and \to ↩︎