Propositional Logic
propositional logic, truth table, implication, satisfiability, validity
1 Role
This page is the starting point of symbolic logic on the site.
It introduces the smallest formal language we can use to reason about complete statements and their combinations before variables and quantifiers appear.
2 First-Pass Promise
Read this page first.
If you stop here, you should still understand:
- what a proposition is
- how connectives build compound formulas
- what a truth assignment does
- what it means for a formula to be satisfiable, valid, or contradictory
- what makes a propositional argument valid
3 Why It Matters
Propositional logic is small, but it teaches several habits that keep returning:
- separate syntax from meaning
- track assumptions explicitly
- negate carefully
- test an argument by looking for a bad case
Those habits matter in proof writing, theorem reading, circuit design, SAT solving, model checking, and even everyday debugging of mathematical claims.
In CS and AI, propositional logic is also the first bridge to constraint systems and automated reasoning. Before a system can prove something, refute something, or search for a satisfying assignment, it needs a language for statements and connectives.
4 Prerequisite Recall
- a statement is something that can be true or false
not,and,or, andif ... then ...already appear informally in mathematical English- the truth of an implication is about allowed combinations of truth values, not about temporal order or causation
5 Intuition
Propositional logic treats whole statements as indivisible building blocks.
We might write:
- \(p\): the server is overloaded
- \(q\): latency spikes
- \(r\): an alert fires
Then instead of reasoning with full English sentences each time, we build formulas such as
\[ p \to q, \qquad q \to r, \qquad p. \]
The point is not to make language look fancy. The point is to make logical structure visible.
Truth tables then let us inspect every possible truth assignment to the atomic propositions. That gives a complete semantic test for whether a formula can be true, must be true, or supports a valid argument.
6 Formal Core
Definition 1 (Definition) A proposition is a statement that has a definite truth value: true or false.
If \(p\) and \(q\) are propositions, then compound propositions can be formed using connectives such as:
- negation: \(\neg p\)
- conjunction: \(p \land q\)
- disjunction: \(p \lor q\)
- implication: \(p \to q\)
- biconditional: \(p \leftrightarrow q\)
A truth assignment gives each atomic proposition a truth value, and the truth values of compound formulas are then determined by the meanings of the connectives.
Definition 2 (Key Semantic Labels) For a propositional formula \(\varphi\):
- \(\varphi\) is
satisfiableif some truth assignment makes it true - \(\varphi\) is
validor atautologyif every truth assignment makes it true - \(\varphi\) is a
contradictionif no truth assignment makes it true
For premises \(\Gamma\) and conclusion \(\psi\), we say \(\Gamma \models \psi\) if every truth assignment that makes all formulas in \(\Gamma\) true also makes \(\psi\) true.
Theorem 1 (Key Statement) An argument with premises \(P_1,\dots,P_k\) and conclusion \(C\) is valid in propositional logic exactly when there is no truth assignment for which all premises are true and the conclusion is false.
Equivalently, the formula
\[ (P_1 \land \cdots \land P_k) \to C \]
is valid.
7 Worked Example
Consider the argument:
- If a job is submitted, then the queue is nonempty.
- The queue is not nonempty.
- Therefore, the job was not submitted.
Let
- \(p\): a job is submitted
- \(q\): the queue is nonempty
Then the argument becomes:
\[ p \to q, \qquad \neg q, \qquad \therefore \neg p. \]
This is the classic modus tollens pattern.
To test validity, look for a bad row: one where both premises are true but the conclusion is false.
If the conclusion \(\neg p\) is false, then \(p\) must be true.
If the second premise \(\neg q\) is true, then \(q\) must be false.
But then the first premise \(p \to q\) becomes true implies false, which is false.
So there is no bad row. The argument is valid.
That is the core semantic idea of propositional logic:
- do not ask whether the argument sounds persuasive
- ask whether any truth assignment breaks it
8 Computation Lens
Propositional logic is the first place where logic becomes algorithmic.
Typical computational tasks are:
- build a truth table
- test whether a formula is satisfiable
- test whether a formula is valid
- search for a counterexample assignment when an argument is invalid
This is also the Boolean language behind digital circuits:
- \(\land\) behaves like
AND - \(\lor\) behaves like
OR - \(\neg\) behaves like
NOT
Once formulas are encoded this way, they can be manipulated by software, compiled into constraints, or passed to SAT solvers.
9 Application Lens
One concrete application is formal verification.
A simple software or hardware condition can often be written as a propositional formula:
- if request and permission, then access
- not both write and read at the same time
- alarm if either sensor fails
Before richer mathematical structure appears, propositional logic already lets us ask:
- can these constraints all hold at once?
- does this specification imply the safety condition?
- is there a counterexample assignment that breaks the claim?
That same style of reasoning later appears in SAT-based planning, model checking, and proof automation.
10 Stop Here For First Pass
If you can now explain:
- what a proposition is
- what a truth assignment does
- the difference between satisfiable, valid, and contradictory
- why argument validity means
no bad truth assignment
then this page has done its job.
11 Go Deeper
The best next steps after this page are:
12 Optional Paper Bridge
Optional after the first pass:
- CMU 15-311 Logic and Mechanized Reasoning - watch how introductory propositional logic grows into formal verification, automated reasoning, and theorem proving. Checked
2026-04-24. - Stanford CS103 Propositional Logic - use the official lecture page and truth-table tool as a compact bridge from symbolic syntax to semantic checking. Checked
2026-04-24.
13 Optional After First Pass
If you want more depth before the rest of the logic module lands:
- continue to Logical Equivalence and Negation
- revisit Proofs and notice where implication, negation, and quantified structure are already doing work
- compare this page with How to Write Proofs to see how formal structure becomes prose
14 Common Mistakes
- treating \(p \to q\) as if it means causation or time order
- forgetting that an implication can be true when its antecedent is false
- confusing the converse \(q \to p\) with the contrapositive \(\neg q \to \neg p\)
- treating English
oras always exclusive - deciding validity by intuition instead of checking whether a bad row exists
15 Exercises
Let \(p\) mean
the model convergesand \(q\) meanthe loss decreases. Write symbolic formulas for:- if the model converges, then the loss decreases
- the loss decreases but the model does not converge
- either the model converges or the loss decreases
Determine whether \((p \land q) \to p\) is valid, satisfiable but not valid, or contradictory.
Test whether the argument
\[ p \lor q,\qquad \neg p,\qquad \therefore q \]
is valid by searching for a bad truth assignment.
16 Sources and Further Reading
- Stanford CS103 Propositional Logic -
First pass- concise official lecture page with a useful truth-table tool. Checked2026-04-24. - CMU OLI Logic & Proofs -
First pass- official interactive course with strong support for sentential logic practice. Checked2026-04-24. - MIT Mathematics for Computer Science, Chapter 1: Propositions -
Second pass- official notes that connect propositional logic to later discrete mathematics and proof methods. Checked2026-04-24. - CMU 15-311 Logic and Mechanized Reasoning -
Paper bridge- shows where this introductory material leads in CS research and formal methods. Checked2026-04-24.