Skip to main content
Mathematics LibreTexts

2.2: Propositional Calculus

  • Page ID
    83404
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    Logical equivalence gives us something like an “equals sign” that we can use to perform logical “calculations” and manipulations, similar to algebraic calculations and manipulations. To enable us to do such calculations, we first need a “tool chest” of basic logical equivalences to use therein. 

    Proposition \(\PageIndex{1}\): Rules of Propositional Calculus

    Suppose \(A,B,C,E,U\) are logical statements, where \(E\) is a contradiction and \(U\) is a tautology. Then the following equivalences always hold.

    1. Rules involving tautologies.

      1. \(\displaystyle A \lor U \Leftrightarrow U\)
      2. \(\displaystyle A \land U \Leftrightarrow A\)
    2. Rules involving contradictions.

      1. \(\displaystyle A \lor E \Leftrightarrow A\)
      2. \(\displaystyle A \land E \Leftrightarrow E\)
    3. Duality of tautologies and contradictions.

      1. \(\displaystyle \neg U \Leftrightarrow E\)
      2. \(\displaystyle \neg E \Leftrightarrow U\)
    4. Double negation.

      \(\displaystyle \neg \neg A \Leftrightarrow A\)

    5. Idempotence.

      1. \(\displaystyle A \lor A \Leftrightarrow A\)
      2. \(\displaystyle A \land A \Leftrightarrow A\)
    6. Commutativity.

      1. \(\displaystyle A \lor B \Leftrightarrow B \lor A\)
      2. \(\displaystyle A \land B \Leftrightarrow B \land A\)
    7. Associativity.

      1. \(\displaystyle (A \lor B) \lor C \Leftrightarrow A \lor (B \lor C)\)
      2. \(\displaystyle (A \land B) \land C \Leftrightarrow A \land (B \land C)\)
    8. Distributivity.

      1. \(\displaystyle A \land (B \lor C) \Leftrightarrow (A \land B) \lor (A \land C)\)
      2. \(\displaystyle A \lor (B \land C) \Leftrightarrow (A \lor B) \land (A \lor C)\)
      3. \(\displaystyle (A \lor B) \land C \Leftrightarrow (A \land C) \lor (B \land C)\)
      4. \(\displaystyle (A \land B) \lor C \Leftrightarrow (A \lor C) \land (B \lor C)\)
    9. DeMorgan's Laws.

      1. \(\displaystyle \neg (A \lor B) \Leftrightarrow \neg A \land \neg B\)
      2. \(\displaystyle \neg (A \land B) \Leftrightarrow \neg A \lor \neg B\)
    10. Constructing the conditional and biconditional.

      1. \(\displaystyle A \rightarrow B \Leftrightarrow \neg A \lor B\)
      2. \(\displaystyle A \leftrightarrow B \Leftrightarrow (A \rightarrow B) \land (B \rightarrow A)\)

    Remark \(\PageIndex{1}\)

    Each of these basic equivalences can be established with a truth table. See Exercise 2.5.4.

    Example \(\PageIndex{1}\): DeMorgan

    Using Rule 9.b of Proposition \(\PageIndex{1}\), the following are equivalent statements.

    1. The triangle can't be both right and equilateral.
    2. The triangle is not right or it is not equilateral.

    To see how the rule applies, let \(p\) represent the statement “the triangle is right” and let \(q\) represent the statement “the triangle is equilateral.” Then the first statement above is \(\neg (p \land q)\text{,}\) while the second statement above is \(\neg p \lor \neg q\text{.}\)

    Now we need some new substitution rules to enable us to use the rules of Proposition \(\PageIndex{1}\) in logical calculations. 

    Theorem \(\PageIndex{1}\): Substitution Rules

    1. Replacing a substatement by an equivalent one. 

    Suppose \(A\) is a logical statement and \(X\) is a substatement of \(A\text{.}\) If statement \(Y\) is equivalent to \(X\text{,}\) then the new statement \(A'\) obtained from \(A\) by replacing substatement \(X\) by \(Y\) is equivalent to \(A\text{.}\) That is, if \(Y \Leftrightarrow X\) then \(A' \Leftrightarrow A\text{.}\)

    1. Substituting into a known equivalence. 

    Suppose \(A\) and \(B\) are logical statements, each of which involves substatement variables \(p_1, p_2, \ldots, p_m\text{.}\) If \(A\) and \(B\) are equivalent, then so are new statements \(A'\) and \(B'\) obtained by applying substitution \(p_i = C_i\) to both \(A\) and \(B\text{,}\) for every collection of statements \(C_1, C_2, \ldots, C_m\text{.}\) 

    Proof Idea.

    Think of \(X\) as an intermediate column in the calculation of the truth table of \(A\text{.}\) Replacing \(X\) by \(Y\) does not change this column, as the truth tables of \(X\) and \(Y\) are the same. We leave this statement for you, the reader, to consider. (Again, think of the \(C_i\) as intermediate columns in the calculations of the truth tables of \(A'\) and \(B'\text{.}\))

     

    Example \(\PageIndex{2}\)

    One of DeMorgan's Laws (Rule 9.a of Proposition \(\PageIndex{1}\)) says that \(\neg (p \lor q) \Leftrightarrow \neg p \land \neg q\text{.}\) Therefore,

    \begin{equation*} \neg ((r \rightarrow t) \lor (t \rightarrow r) ) \Leftrightarrow \neg (r \rightarrow t) \land \neg (t \rightarrow r), \end{equation*}

    using Rule 2 of our new Substitution Rules, with substitutions \(p = r \rightarrow t\text{,}\) \(q = t \rightarrow r\text{.}\)

    Here is an example of a string of logical manipulations. It also demonstrates the use of Rule 10.a of Proposition \(\PageIndex{1}\) to manipulate an expression involving a conditional. 

    Example \(\PageIndex{3}\): DeMorgan with a Conditional

    Consider the statement \((p_1 \lor p_2) \rightarrow q\text{.}\) We may read it as “if either \(p_1\) or \(p_2\) is true, then \(q\) will be true as well.” So it seems that each of \(p_1\) and \(p_2\) must imply \(q\) on its own. Let's see what propositional calculus says about this:

    \begin{align*} (p_1 \lor p_2) \rightarrow q & \Leftrightarrow \neg (p_1 \lor p_2) \lor q & & \text{(i)}\\ & \Leftrightarrow (\neg p_1 \land \neg p_2) \lor q & & \text{(ii)}\\ & \Leftrightarrow (\neg p_1 \lor q ) \land (\neg p_2 \lor q) & & \text{(iii)}\\ & \Leftrightarrow (p_1 \rightarrow q) \land (p_2 \rightarrow q) & & \text{(iv)}, \end{align*}

    with justifications

    1. Rule 2 of our new Substitution Rules, where we substitute \(A = p_1 \lor p_2\) into both sides of the construction of the conditional (Rule 10.a of Proposition \(\PageIndex{1}\));
    2. Rule 1 of our new Substitution Rules, using DeMorgan (Rule 9.a of Proposition \(\PageIndex{1}\)) on the substatement \(\neg (p_1 \lor p_2)\text{;}\)
    3. distributivity (Rule 8.d of Proposition \(\PageIndex{1}\)); and
    4. Rule 1 of our new Substitution Rules, using the construction of the conditional (Rule 10.a of Proposition \(\PageIndex{1}\)) on each of the two “factors” of the conjunction.

    So our intuition about the logic of a disjunction in a conditional in this way was correct.

    A Look Ahead

    This observation will come in handy — see Section 6.4 and Section 6.5.


    This page titled 2.2: Propositional Calculus is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Jeremy Sylvestre via source content that was edited to the style and standards of the LibreTexts platform.