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

First-Order Logic Syntax

College Depth 71 in the knowledge graph ☐ I know this ☆ Set as goal
1,763topics build on this
336prerequisites beneath it
See this on the map →
Negation of Quantified StatementsPredicates and Quantifiers+6 more→→Axiom Schema of ReplacementAxiom Schema of Separation+57 more
first-order-logic quantifiers variables terms formulas FOL

Core Idea

First-order logic (FOL) extends propositional logic with terms (variables, constants, function symbols applied to terms) and atomic formulas (predicate symbols applied to terms). Quantifiers ∀ (for all) and ∃ (there exists) bind variables, giving rise to the distinction between free and bound occurrences. A sentence is a formula with no free variables. The language of a first-order theory is specified by its signature: a collection of constant, function, and predicate symbols with their arities. Different signatures yield different logical languages (e.g., the language of arithmetic vs. the language of set theory).

How It's Best Learned

Practice translating English statements into FOL and back. Carefully track variable scope to distinguish bound and free occurrences. Build formulas of increasing complexity from simple atomic predicates.

Common Misconceptions

Explainer

In propositional logic, the basic units were atomic propositions like P and Q — whole claims that were either true or false. First-order logic is more expressive: it lets you talk about *objects*, their *properties*, and *relations* between them, and it lets you make claims about *all* or *some* objects in a domain. To do this, it introduces a new kind of syntax built from three layers: terms, atomic formulas, and compound formulas with quantifiers.

Terms are the expressions that refer to objects. A constant like `alice` or `0` refers to a specific object. A variable like `x` is a placeholder that can range over objects in the domain. A function symbol applied to terms — like `father(alice)` or `s(0)` — builds a new term by applying an operation to existing ones. Terms are *not* true or false; they just denote things. Predicates, by contrast, take terms as arguments and produce truth values: `Loves(alice, bob)` or `Prime(3)` are atomic formulas — the smallest units that can be true or false.

Quantifiers are what make first-order logic genuinely more powerful than propositional logic. ∀x φ(x) asserts that φ holds for every object in the domain; ∃x φ(x) asserts that at least one object satisfies φ. The critical concept is *scope*: the quantifier ∀x binds occurrences of x within the subformula it governs. If you write ∀x P(x) ∧ Q(x), the scope of ∀x is only P(x) — the x in Q(x) is *free* (unbound). This is identical to the scoping rules for variables in programming languages, and that analogy is a reliable guide.

The signature of a first-order theory specifies what vocabulary is available: which constant, function, and predicate symbols exist and how many arguments each takes (its arity). The same syntax rules apply to every first-order language, but different signatures yield different languages — the language of arithmetic uses 0, s (successor), +, × and =; the language of set theory uses only ∈. Understanding the signature tells you which atomic formulas are even well-formed before you worry about what they mean.

A formula is a *sentence* if it has no free variables. Sentences have definite truth values in a model; open formulas only acquire truth values once the free variables are assigned values. When you read or write FOL, always track which variables are bound and which are free — this is the most common source of syntax errors and the foundation for everything in semantics and proof theory that follows.

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 → 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 → Introduction to Predicate Logic (First-Order Logic) → First-Order Logic Syntax

Longest path: 72 steps · 336 total prerequisite topics

Prerequisites (8)

Leads To (59)

Axiom Schema of Replacementsoft Axiom Schema of Separationsoft Closure Principles Formalizedsoft Common Knowledge and Mutual Knowledgesoft Compositionality and Its Limitssoft Compositionality and Semantic Valuessoft Confirmation and Evidencesoft De Re and De Dicto Attitudessoft Decidable Fragments of First-Order Logicsoft Deductive Reasoningsoft Descriptive Complexity: Expressing Complexity in Logichard Epistemic Contextualismsoft Epistemic Logic Basicshard Essentialism and Accidental Propertiessoft Event Ontologysoft Evidential Support and Confirmation Formalizationsoft Existential Formulas and Preservation under Embeddingshard First-Order Logic Semantics and Structureshard Formal Arithmetic and Expressibilityhard Formal Epistemology: Introductionsoft Formal Language and Natural Language Semanticshard Gettier Cases and Formal Analysissoft Identity of Indiscerniblessoft Intensionality and Semantic Opacitysoft Justification Structures and Hierarchiessoft Lambda Calculussoft Logical Form and Argument Patternssoft Logical Positivismsoft Many-Sorted Logic and Multisort Structureshard Mereology: Parts and Wholessoft Models and Interpretations in First-Order Logichard Natural Deduction for First-Order Logichard Natural Kind Terms and Essential Propertiessoft Open and Closed Formulas in First-Order Logichard Prenex Normal Formhard Property Exemplification and Instantiationsoft Propositions and Semantic Contentsoft Quantifier Instantiation Rules in First-Order Proof Systemshard Quantifier Interaction and Multiple Quantificationhard Quantifier Scope and Ambiguityhard Quantifiers: ALL, SOME, and NONEsoft Russell's Theory of Definite Descriptionssoft Scope Ambiguity and Logical Formhard Signature and Formal Vocabularyhard Structures and Formal Languageshard Substitution and Unificationhard Terms and Atomic Formulas in FOLhard The Arithmetical Hierarchyhard The Counterexample Methodsoft The Covering Law Modelsoft The Deductive-Nomological Model of Explanationsoft The Regress Problem: Formal Analysissoft The Verification Principlehard Truth Conditions and Meaningsoft Underdetermination of Theory by Evidencesoft Universal Formulas and Preservation under Substructureshard Universals and Particularssoft Variable Binding and Scopehard ZFC Axioms Overviewsoft