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 moreAxiom 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 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 10Number Bonds to 10Addition 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 (0s, 1s, 2s, 5s, 10s)Multiplication 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 LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersIntroduction to ExponentsOrder of OperationsInteger Order of OperationsVariable ExpressionsThe Distributive PropertyVariables and Expressions ReviewIntroduction to PolynomialsAdding and Subtracting PolynomialsMultiplying PolynomialsFactorialPermutationsCombinationsCounting Principles: Addition and Multiplication RulesIntroduction to Graph TheoryPropositional Logic FoundationsLogical EquivalencesBoolean AlgebraIntroduction to Propositional LogicIntroduction 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