← MATH 301 MathScape 0 MATH301

Propositional Logic

17 min read

Jump to a section
Textbook: Rosen, Discrete Mathematics and Its Applications, 8th ed.  •  Chapter: 1  •  Section: 1

Every proof you write, every if statement you debug, and every database query that returns the wrong rows comes back to one question: when is a statement true? Propositional logic is the rulebook. It strips a sentence down to a single bit, true or false, and fixes exactly how those bits combine under “not,” “and,” “or,” “if-then,” and “if and only if.” Once the rules are mechanical, the truth value of a long compound statement is forced by its parts, with no room for opinion. That determinacy is what lets logic drive proofs, circuits, and code.

By the end of this page you can:

Why it matters: a processor is millions of AND, OR, and NOT gates wired together; a SQL WHERE clause is a compound proposition; a SAT solver decides whether one of these formulas can be made true, and that single capability verifies chip designs, finds security exploits, and schedules airlines. The notation on this page is the shared language under all of it.

Quick Reference

Field Value
Textbook Rosen, Discrete Mathematics and Its Applications, 8th ed.
Chapter 1 (The Foundations: Logic and Proofs)
Section 1.1 Propositional Logic
Subsections 1.1.2 Propositions; 1.1.3 Conditional Statements; 1.1.4 Truth Tables of Compound Propositions; 1.1.5 Precedence of Logical Operators
Pages p. 1-16
Course MATH301 (Discrete Mathematics)
Difficulty Introductory
Time ~30 minutes

Before You Start

Check each box you can do from memory. A box you cannot check yet is not a problem; it points you to a quick refresher, not a grade.

A 60-second self-check. Pick an answer, then reveal the reasoning.

Check your understanding

Which of these is a proposition, a declarative sentence that is either true or false?

Rosen 8e, Section 1.1, p. 2

Let p stand for ‘It is raining’ and q for ‘The streets are wet.’ What does the symbol q stand for?

Rosen 8e, Section 1.1, p. 2

Two variables p and q are each either true or false. How many combinations of truth values are there?

Rosen 8e, Section 1.1, p. 8


Try This First

Before any symbol or formula, sort these five English sentences into two piles: a pile that is either true or false, and a pile that is neither.

  1. Two plus two equals four.
  2. Read the next page.
  3. The year 1066 is after the year 1492.
  4. Is this sentence short?
  5. $x + 1 = 5$.
Notice what you sorted (click after you have tried it)

Sentence 1 is true. Sentence 3 is false. Both belong in the “either true or false” pile, and both are propositions.

Sentence 2 is a command and sentence 4 is a question, so neither declares a fact that can be true or false. They are not propositions.

Sentence 5 is the interesting one. “$x + 1 = 5$” is neither true nor false until you know what $x$ stands for. A sentence like this becomes a proposition only once its variable is fixed (it becomes true when $x = 4$ and false otherwise). The study of such variable sentences is the next section, predicates and quantifiers.

The single test you just applied is the entire definition of a proposition: a declarative sentence that is either true or false, but not both.

The Idea Behind Propositional Logic

A proposition is a process view of a sentence: feed it the facts of the world, and it returns one of exactly two outputs, true or false. Propositional logic is the study of how these true-or-false outputs combine when you join sentences with words such as “not,” “and,” “or,” “if-then,” and “if and only if.”

The reason this matters: once a statement is reduced to its true-or-false skeleton, the truth value of a complicated compound statement is forced by the truth values of its parts. There is no room for opinion. “It is raining and the streets are wet” is true exactly when both parts are true, no matter what the sentences are about. That mechanical determinacy is what lets logic drive proofs, circuit design, and database queries.

Each connective (“not,” “and,” “or,” and so on) is a fixed rule that takes the truth values of its inputs and returns a single output truth value. A truth table is the complete record of that rule across every possible input.

Prerequisite Hub

graph LR
    subgraph Builds_On["Builds On"]
        A["Set-Builder and<br/>Roster Notation"]
    end

    subgraph ThisSkill["This Skill"]
        C["Propositional<br/>Logic"]
    end

    subgraph Unlocks
        D["Applications of<br/>Propositional Logic"]
        E["Propositional<br/>Equivalences"]
        F["Predicates and<br/>Quantifiers"]
    end

    A --> C
    C --> D
    C --> E
    C --> F

    style C fill:#d1fae5,stroke:#a565f0,stroke-width:3px

    click C "propositional-logic.html"
    click D "../ch1-sec2/applications-of-propositional-logic.html"

Builds on:

Skill Why it helps
dm-pre-set-builder-and-roster-notation Comfort with variable-and-set notation makes the symbolic logic notation easier to read (helpful, not required).

Unlocks (what this section feeds into next):

Skill What it adds
dm-applications-of-propositional-logic Translating English and system specifications into these connectives.
dm-propositional-equivalences Proving two compound propositions always share a truth value.
dm-predicates-and-quantifiers Extending to sentences with variables, such as the “$x + 1 = 5$” case above.

Cross-course prerequisites: none.


Official Definitions

Each definition below is quoted from Rosen, 8th edition, Section 1.1, with the page citation. These are the canonical statements to put on the board and on a study sheet.

Proposition

A proposition is a declarative sentence (that is, a sentence that declares a fact) that is either true or false, but not both.

Rosen 8e, Section 1.1, p. 2 (subsection 1.1.2 Propositions).

The two possible outputs are called truth values, written $\text{T}$ (true) and $\text{F}$ (false). A letter such as $p$, $q$, or $r$ used to stand for a proposition is a propositional variable.

Negation (Definition 1)

Let $p$ be a proposition. The negation of $p$, denoted by $\neg p$ (also denoted by $\overline{p}$), is the statement “It is not the case that $p$.” The proposition $\neg p$ is read “not $p$.” The truth value of the negation of $p$ is the opposite of the truth value of $p$.

Rosen 8e, Section 1.1, Definition 1, p. 3.

Conjunction (Definition 2)

Let $p$ and $q$ be propositions. The conjunction of $p$ and $q$, denoted by $p \wedge q$, is the proposition “$p$ and $q$.” The conjunction $p \wedge q$ is true when both $p$ and $q$ are true and is false otherwise.

Rosen 8e, Section 1.1, Definition 2, p. 4.

Disjunction (Definition 3)

Let $p$ and $q$ be propositions. The disjunction of $p$ and $q$, denoted by $p \vee q$, is the proposition “$p$ or $q$.” The disjunction $p \vee q$ is false when both $p$ and $q$ are false and is true otherwise.

Rosen 8e, Section 1.1, Definition 3, p. 5.

The disjunction is the inclusive or: $p \vee q$ is true when $p$ is true, when $q$ is true, and when both are true.

Conditional Statement (Definition 5)

Let $p$ and $q$ be propositions. The conditional statement $p \rightarrow q$ is the proposition “if $p$, then $q$.” The conditional statement $p \rightarrow q$ is false when $p$ is true and $q$ is false, and true otherwise. In the conditional statement $p \rightarrow q$, $p$ is called the hypothesis (or antecedent or premise) and $q$ is called the conclusion (or consequence).

Rosen 8e, Section 1.1, Definition 5, p. 6.

Biconditional Statement (Definition 6)

Let $p$ and $q$ be propositions. The biconditional statement $p \leftrightarrow q$ is the proposition “$p$ if and only if $q$.” The biconditional statement $p \leftrightarrow q$ is true when $p$ and $q$ have the same truth values, and is false otherwise.

Rosen 8e, Section 1.1, Definition 6, p. 10.

Truth Table

A truth table displays the relationships between the truth values of propositions; it lists every possible combination of truth values of the propositional variables that occur in a compound proposition and gives the resulting truth value of the compound proposition for each combination.

Rosen 8e, Section 1.1, subsection 1.1.4 Truth Tables of Compound Propositions, p. 8-9.


The Five Connectives at a Glance

Two representations of each connective sit side by side here: the worded rule (when is it true) and the symbolic form. Read across each row and translate one into the other.

Connective Symbol Reads as True exactly when
Negation $\neg p$ “not $p$” $p$ is false
Conjunction $p \wedge q$ “$p$ and $q$” both $p$ and $q$ are true
Disjunction $p \vee q$ “$p$ or $q$” at least one of $p$, $q$ is true
Conditional $p \rightarrow q$ “if $p$, then $q$” NOT the case that $p$ is true and $q$ is false
Biconditional $p \leftrightarrow q$ “$p$ if and only if $q$” $p$ and $q$ have the same truth value

Truth Tables of Compound Propositions

The defining truth tables for the four binary connectives. Each row is one combination of inputs; the last column is the forced output.

$p$ $q$ $p \wedge q$ $p \vee q$ $p \rightarrow q$ $p \leftrightarrow q$
T T T T T T
T F F T F F
F T F T T F
F F F F T T

And negation, which takes one input:

$p$ $\neg p$
T F
F T

The conditional row to study most carefully is the bottom two: when $p$ is false, $p \rightarrow q$ is true no matter what $q$ is. A conditional with a false hypothesis is called vacuously true.

Precedence of Logical Operators

When a compound proposition is written without enough parentheses, the connectives apply in a fixed order. Rosen lists this precedence in subsection 1.1.5 (p. 15-16).

Order Operator Symbol
1 (highest) Negation $\neg$
2 Conjunction $\wedge$
3 Disjunction $\vee$
4 Conditional $\rightarrow$
5 (lowest) Biconditional $\leftrightarrow$

So $\neg p \wedge q$ means $(\neg p) \wedge q$, not $\neg (p \wedge q)$, because negation binds tighter than conjunction. When in doubt, add parentheses.

Quick check. The three things students misread most often: the one false row of a conditional, the inclusive “or,” and precedence.

Check your understanding

For which combination of truth values is the conditional p -> q FALSE?

Rosen 8e, Section 1.1, Definition 5, p. 6

In logic, when is the disjunction p OR q true?

Rosen 8e, Section 1.1, Definition 3, p. 5

Precedence binds negation tightest, then conjunction. How does the engine read the unparenthesized expression not-p and q ?

Rosen 8e, Section 1.1, subsection 1.1.5, p. 15-16


Worked Examples

Worked Example 1: Building a Truth Table for a Compound Proposition

Problem. Construct the truth table for $(p \vee \neg q) \rightarrow q$.

Predict first. Before computing, predict: this statement starts with a disjunction inside, then feeds it into a conditional with conclusion $q$. A reasonable guess is that the conditional fails (is false) whenever the conclusion $q$ is false but the hypothesis is true. Hold that prediction.

Step 1. List all $2^2 = 4$ combinations of $p$ and $q$, and add a column for the inner pieces.

Step 2. Compute $\neg q$, then $p \vee \neg q$, then the full conditional.

$p$ $q$ $\neg q$ $p \vee \neg q$ $(p \vee \neg q) \rightarrow q$
T T F T T
T F T T F
F T F F T
F F T T F

Step 3. Read off the final column: the compound proposition is true in rows 1 and 3, and false in rows 2 and 4.

Check the prediction. The statement is false exactly in the rows where the hypothesis $p \vee \neg q$ is true and the conclusion $q$ is false (rows 2 and 4). That matches the prediction. The two false rows are precisely the “true-hypothesis, false-conclusion” cases, which is the only way a conditional is false.

Worked Example 2: Translating English into Symbols

Problem. Let $p$ be “You complete the lab” and $q$ be “You pass the course.” Write each English sentence in symbols.

(a) “If you complete the lab, then you pass the course.” (b) “You complete the lab and you do not pass the course.” (c) “You pass the course if and only if you complete the lab.”

Solution.

(a) “If $p$, then $q$” is the conditional: $p \rightarrow q$.

(b) “$p$ and not $q$”: the negation binds to $q$ first, then the conjunction joins: $p \wedge \neg q$.

(c) “$q$ if and only if $p$” is the biconditional: $q \leftrightarrow p$. Because a biconditional is true exactly when both sides share a truth value, $q \leftrightarrow p$ and $p \leftrightarrow q$ have identical truth tables.

Check. Sentence (b) is exactly the situation that makes the conditional in (a) false: $p$ true and $q$ false. Symbolically, $p \wedge \neg q$ is true only in the row where $p \rightarrow q$ is false. That is the same row, which confirms the two statements are describing opposite verdicts about the same case.

Worked Example 3: Applying Operator Precedence

Problem. Evaluate $\neg p \vee q \wedge p$ when $p$ is true and $q$ is false. Insert the parentheses the precedence rules require.

Predict first. With $p$ true, $\neg p$ is false. With $q$ false, the conjunction $q \wedge p$ also looks false. A disjunction of two false-looking pieces is probably false. Hold that prediction.

Step 1. Apply precedence. Negation is highest, then conjunction, then disjunction. So the expression groups as

$$(\neg p) \vee (q \wedge p).$$

Step 2. Substitute $p = \text{T}$, $q = \text{F}$.

Check the prediction. The result is false, matching the prediction. The danger row to avoid is misreading the expression as $\neg (p \vee q) \wedge p$, which groups differently and can give a different answer. Precedence, not left-to-right reading, decides the grouping.


Common Misconceptions

Common misconception

a question or a command is a proposition because it is a complete sentence. The test is not whether a sentence is grammatical or complete; the test is whether it declares a fact that is either true or false. “What time is it?” is a complete sentence, yet it has no truth value, so it is not a proposition. Apply the definition (declarative and true-or-false), not a grammar check.

Common misconception

the conditional $p \rightarrow q$ is false whenever $p$ is false. Predict-then-check on a small case: let $p$ be “The number 6 is prime” (false) and $q$ be “The number 6 is even” (true). The conditional “if 6 is prime, then 6 is even” comes out true by the definition, because a conditional is false in only one row, the row where $p$ is true and $q$ is false. When the hypothesis is false, the conditional is vacuously true. Re-reading the truth table for $p \rightarrow q$ shows the bottom two rows are both T.

Common misconception

“or” in logic excludes the both-true case. Everyday English sometimes uses “or” to mean one or the other but not both (“soup or salad”). The disjunction $p \vee q$ defined here is the inclusive or: it is true when $p$ is true, when $q$ is true, and also when both are true. Reading the first row of the truth table, $\text{T} \vee \text{T} = \text{T}$, fixes this directly.


Practice Problems

Level 1 Is It a Proposition?

Decide which of the following are propositions. For each one that is, give its truth value.

(a) The number 7 is odd. (b) Add 3 to both sides. (c) Is $5$ greater than $2$? (d) $4 + 4 = 9$.

Show Answer

(a) Proposition, true. (b) Not a proposition (it is a command, so it has no truth value). (c) Not a proposition (it is a question). (d) Proposition, false.

Level 2 Evaluate a Compound Proposition

Let $p$ be true and $q$ be false. Find the truth value of $\neg p \vee q$ and of $p \wedge \neg q$.

Thought Process

Compute the negations first (negation has highest precedence), then apply the disjunction and the conjunction.

Show Answer

$\neg p = \text{F}$, so $\neg p \vee q = \text{F} \vee \text{F} = \textbf{F}$.

$\neg q = \text{T}$, so $p \wedge \neg q = \text{T} \wedge \text{T} = \textbf{T}$.

Level 3 Build a Full Truth Table

Construct the truth table for $\neg p \rightarrow (p \vee q)$.

Thought Process

List the four rows for $p$ and $q$. Compute $\neg p$, then $p \vee q$, then the conditional with hypothesis $\neg p$ and conclusion $p \vee q$.

Show Answer
$p$ $q$ $\neg p$ $p \vee q$ $\neg p \rightarrow (p \vee q)$
T T F T T
T F F T T
F T T T T
F F T F F

The statement is false only in the last row, where the hypothesis $\neg p$ is true and the conclusion $p \vee q$ is false.

Level 4 Translate and Compare

Let $p$ be “It is raining” and $q$ be “The game is canceled.” Write “If it is raining, then the game is canceled” in symbols. Then write, in symbols, the one situation that makes this statement false, and describe that situation in plain words.

Thought Process

The English “if-then” is the conditional $p \rightarrow q$. A conditional is false in exactly one row of its truth table. Identify that row, then read it back in words.

Show Answer

The statement is $p \rightarrow q$.

It is false in exactly one case: $p \wedge \neg q$, that is, $p$ true and $q$ false.

In plain words: it is raining, and yet the game is not canceled. That single combination makes “if it is raining, then the game is canceled” false. Every other combination makes it true.

Level 5 Precedence and Justification

A classmate writes $\neg p \wedge q \rightarrow r$ and claims it means $\neg (p \wedge q \rightarrow r)$.

(a) Using the precedence rules, insert the parentheses that the expression actually means. (b) How would you convince the classmate, with one specific row of truth values, that the two readings can disagree?

Thought Process

Precedence order is negation, then conjunction, then disjunction, then conditional, then biconditional. Apply it left to the symbols. Then find one assignment of $p$, $q$, $r$ where the classmate’s grouping and the correct grouping produce different final truth values.

Show Answer

(a) Negation binds tightest, then conjunction, then the conditional is lowest of the three present. So

$$\neg p \wedge q \rightarrow r \quad\text{means}\quad ((\neg p) \wedge q) \rightarrow r.$$

The classmate’s reading $\neg (p \wedge q \rightarrow r)$ negates the entire conditional, which is a different statement.

(b) Take $p = \text{F}$, $q = \text{F}$, $r = \text{F}$.

Correct reading $((\neg p) \wedge q) \rightarrow r$: $\neg p = \text{T}$, then $(\neg p) \wedge q = \text{T} \wedge \text{F} = \text{F}$, then $\text{F} \rightarrow r = \text{F} \rightarrow \text{F} = \textbf{T}$.

Classmate’s reading $\neg (p \wedge q \rightarrow r)$: $p \wedge q = \text{F}$, then $(p \wedge q) \rightarrow r = \text{F} \rightarrow \text{F} = \text{T}$, then negating gives $\neg \text{T} = \textbf{F}$.

One reading gives T and the other gives F on the same inputs, so the two groupings are genuinely different statements. That single row settles the disagreement.


Mastery Checklist

Novice (Level 1-2):

Competent (Level 3-4):

Proficient (Level 5):


Mental Model

The “two-output machine” view. Picture each proposition as a small machine that takes the facts of the world as input and returns exactly one of two outputs, true or false. A connective is a wiring rule that combines the outputs of smaller machines into the output of a bigger machine. The truth table is the full specification sheet for that wiring: every input row, with the one output it forces. Nothing about meaning or topic enters; only the true-or-false outputs travel through the wires.


Connections

Looking back:

Looking ahead:

Real-world connections:


Go Deeper (optional)

None of this is needed to build a correct truth table or to pass the section. It is here for readers who want to see where these five connectives lead.

These are the logic gates in every processor. Conjunction, disjunction, and negation are the AND, OR, and NOT gates etched into silicon. A 64-bit adder, the comparison that drives an if, the decoder that picks one memory cell out of billions: each is a compound proposition realized in hardware. When you simplify a truth table by hand, you are doing what a chip’s synthesis tool does to shrink area and power. Section 12 of this course, Boolean algebra, makes that link formal.

This is the engine behind SAT solvers, and SAT is the first NP-complete problem. Ask whether some assignment of truth values can make a formula true, and you have the Boolean satisfiability problem, SAT. It was the first problem proven NP-complete (Cook, 1971), so it anchors the whole P-versus-NP question. In practice, modern solvers handle formulas with millions of variables, and industry runs them constantly: to prove a CPU design has no logic bug before fabrication (formal verification), to find security holes by encoding “can an input reach this unsafe state” as a formula (symbolic execution), and to schedule and route systems where a hand search would never finish.

Why a careers reader should care.

A subtlety worth noticing. The conditional $p \rightarrow q$ being vacuously true when $p$ is false bothers almost everyone at first. It is a deliberate choice: defining it this way is the only rule that keeps “if every number in the list is positive, then the sum is positive” true for the empty list, which is the behavior proofs and loops need. The material conditional claims no causal link between $p$ and $q$; it only records, row by row, when the promise “$p$ forces $q$” is broken.


Check Yourself

Close the notes and answer each from memory, then reveal it. Pulling an idea back from memory is one of the strongest ways to make it stick.

Check your understanding

Which sentence is NOT a proposition?

Rosen 8e, Section 1.1, p. 2

p -> q is false in exactly one row of its truth table. Which row?

Rosen 8e, Section 1.1, Definition 5, p. 6

Evaluate not-p or q and p with p true and q false, using correct precedence. What is the result?

Rosen 8e, Section 1.1, subsection 1.1.5, p. 15-16

In one sentence, why is a conditional with a false hypothesis called vacuously true?

Rosen 8e, Section 1.1, p. 6


Resources

Resource Reference
Primary text Rosen, Discrete Mathematics and Its Applications, 8th ed., Section 1.1 Propositional Logic (p. 1-16).
Open companion Levin, Discrete Mathematics: An Open Introduction (3rd ed.), Propositional Logic: https://discrete.openmathbooks.org/dmoi3/sec_propositional.html
Next tree node Applications of Propositional Logic (the section this unlocks).


Last updated: 2026-06-16