A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Formula Evaluation and Truth Tables

College Depth 73 in the knowledge graph ☐ I know this ☆ Set as goal
701topics build on this
325prerequisites beneath it
See this on the map →
Introduction to Truth TablesPropositional Logic Syntax+3 more→→Logical Equivalence of Formulas
propositional-logic truth-tables semantic-analysis

Core Idea

A truth table systematically lists all possible truth assignments to atomic formulas and computes the resulting truth value of a complex formula. This mechanical method makes it easy to determine whether a formula is always true (tautology), sometimes true (contingent), or never true (contradiction).

How It's Best Learned

Build truth tables by hand for increasingly complex formulas, working column by column. Use software tools to verify your work and explore patterns in larger formulas.

Common Misconceptions

Explainer

You already know from propositional syntax how to read a formula's structure: connectives (¬, ∧, ∨, →, ↔) combine atomic propositions according to a grammar. You know from truth functions and interpretation that each connective is a function from truth values to truth values — ¬ flips T to F, ∧ outputs T only when both inputs are T, and so on. Formula evaluation is just the process of applying these functions layer by layer to compute the overall truth value of a complex formula under a specific assignment.

A truth table is the systematic method for doing this across *all possible* assignments at once. If a formula contains n distinct atomic propositions, there are 2ⁿ possible rows — one for each assignment of T or F to every atom. The table has columns for each atom, columns for each intermediate subformula, and a final column for the whole formula. You fill it in left to right, bottom up through the formula's parse tree, because each subformula's value depends only on its children's values.

The payoff is a complete classification of the formula. If the final column is all T, the formula is a tautology — it is true under every interpretation, regardless of what the atoms mean. The formula (P → P) is a tautology: whether P is true or false, the implication holds. If the final column is all F, the formula is a contradiction — unsatisfiable. If the column has both T and F entries, the formula is contingent: sometimes true, sometimes false, depending on how you interpret the atoms.

The key skill to build is working column by column through subformulas before reaching the main connective. For a formula like ¬(P ∧ Q) → (¬P ∨ ¬Q), you first compute P ∧ Q, then ¬(P ∧ Q), then ¬P, then ¬Q, then ¬P ∨ ¬Q, then the full implication. Skipping steps and trying to evaluate the whole formula at once is where errors enter. The mechanical discipline of the column-by-column approach is not busywork — it mirrors the recursive structure of the formula's syntax tree and makes correctness checkable.

Truth tables are finite, complete, and decision-procedure: for any propositional formula, the table always terminates and definitively answers whether it is a tautology, contradiction, or contingency. This is the semantic approach to logic. Later, you will meet proof-theoretic methods (derivations, sequent calculi) that establish the same results by symbol manipulation rather than exhaustive enumeration. The equivalence of these two methods — that semantic tautology coincides with provability — is what soundness and completeness theorems establish.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Introduction to Propositional Logic → Propositional Connectives → Propositional Semantics and Valuations → Truth Functions and Interpretation → Formula Evaluation and Truth Tables

Longest path: 74 steps · 325 total prerequisite topics

Prerequisites (5)

Leads To (1)