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 ConnectivesA 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 ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Making 10 as an Addition StrategyAddition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts Through 10Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineOpposites and Additive InversesAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsVariables in LogicConditional Statements (If-Then Formal)Converse, Inverse, and ContrapositiveBiconditional StatementsBiconditional Statements and EquivalenceConditional and Biconditional StatementsPropositional Logic Syntax

Longest path: 63 steps · 285 total prerequisite topics

Prerequisites (2)

Leads To (13)