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

Propositional Logic Syntax

College Depth 62 in the knowledge graph ☐ I know this ☆ Set as goal
1,906topics build on this
285prerequisites beneath it
See this on the map →
Conditional and Biconditional StatementsStatements and Logical Connectives→→A Priori and A Posteriori KnowledgeArgument Structure: Premises and Conclusions+11 more
syntax well-formed-formulas connectives formal-language

Core Idea

Propositional logic syntax defines the exact grammar for constructing well-formed formulas (WFFs) from atomic propositions and logical connectives (¬, ∧, ∨, →, ↔). A WFF is built inductively: every atomic proposition is a WFF, and if φ and ψ are WFFs then so are ¬φ, (φ ∧ ψ), and so on. This purely syntactic definition makes no reference to meaning — a formula is either grammatically valid or it is not. The distinction between syntax (shape of formulas) and semantics (meaning of formulas) is one of the deepest ideas in formal logic.

How It's Best Learned

Write out the inductive grammar rule explicitly, then practice identifying which strings are WFFs and which are not. Parse formulas into syntax trees to build intuition for structure before worrying about meaning.

Common Misconceptions

Explainer

When you first learned about logical connectives — AND, OR, NOT, if-then — you probably wrote them in English or with informal symbols. Propositional logic syntax is the step of making this completely precise: defining a formal grammar that specifies, with no ambiguity, exactly which strings of symbols count as legal formulas. This matters because a proof system needs to know unambiguously what it is operating on.

The grammar is defined *inductively*. Start with a set of atomic propositions — call them p, q, r, or p₁, p₂, ... — which are the simplest WFFs. Then, if φ and ψ are already WFFs, the following are also WFFs: ¬φ (negation), (φ ∧ ψ) (conjunction), (φ ∨ ψ) (disjunction), (φ → ψ) (conditional), and (φ ↔ ψ) (biconditional). Nothing else is a WFF. This inductive definition means every WFF has a unique *parse tree* — a tree showing how the formula was built up from atoms — and that tree is the formula's structure.

The most important idea in this topic is the distinction between *syntax* and *semantics*. Syntax is about the shape of formulas: is this string grammatically valid? Semantics is about meaning: what does this formula *say*, and is it true? These are completely separate questions. The string "p ∧ ¬p" is syntactically well-formed — it satisfies the grammar — but semantically it is a contradiction, always false. The string "p ∧ ∧ q" is syntactically invalid and has no semantic value at all. A good logician keeps these layers cleanly separated.

Precedence conventions exist to reduce parentheses. Without them, even a simple formula like ¬p ∧ q → r would require full parenthesization: ((¬p) ∧ q) → r. The standard precedence ordering is: ¬ binds tightest, then ∧, then ∨, then →, then ↔. So ¬p ∧ q → r parses as ((¬p) ∧ q) → r. A very common error is treating ¬p ∧ q as ¬(p ∧ q); always apply the precedence rules before interpreting a formula.

Once you can reliably parse WFFs and draw their syntax trees, you are ready for propositional semantics — the study of which truth-value assignments make WFFs true. The clean separation of syntax from semantics is what lets formal logic give precise answers to questions like "Is this argument valid?" and "Is there any truth assignment that makes both φ and ψ true simultaneously?" You will use this syntactic foundation throughout natural deduction, model theory, and first-order logic.

Practice Questions 3 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 → Making 10 as an Addition Strategy → 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 Through 10 → 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 → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → Variables in Logic → Conditional Statements (If-Then Formal) → Converse, Inverse, and Contrapositive → Biconditional Statements → Biconditional Statements and Equivalence → Conditional and Biconditional Statements → Propositional Logic Syntax

Longest path: 63 steps · 285 total prerequisite topics

Prerequisites (2)

Leads To (13)