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

Open and Closed Formulas in First-Order Logic

College Depth 74 in the knowledge graph ☐ I know this ☆ Set as goal
586topics build on this
342prerequisites beneath it
See this on the map →
First-Order Logic SyntaxVariable Binding and Scope+1 more→→Ground Terms and Ground FormulasQuantifier Instantiation Rules in First-Order Proof Systems+1 more
first-order-logic variables binding scope

Core Idea

A closed formula (or sentence) in first-order logic is a formula where every variable is bound by a quantifier; an open formula has at least one free (unbound) variable. For example, ∀x P(x) is closed, but P(x) and ∃y Q(x, y) are open (in the latter, x is free). Closed formulas are meaningful as statements: they are either true or false in a structure. Open formulas need an assignment of values to free variables to determine truth value.

How It's Best Learned

Use concrete examples with marked quantifiers. Identify bound vs. free variables systematically, drawing scope lines for quantifiers. Emphasize that truth value of a closed formula is structure-relative (no variable assignment needed), while truth of an open formula depends on both the structure and variable assignment.

Common Misconceptions

Explainer

From your study of first-order logic syntax and variable binding, you know that quantifiers bind variables — ∀x means "for all values of x" and ∃x means "there exists a value of x." The open/closed distinction is simply careful bookkeeping: which variables in a formula are bound by a quantifier, and which are left "dangling"? A closed formula (or sentence) has no free variables — every variable occurrence is within the scope of some quantifier binding it. An open formula has at least one free variable — an occurrence not captured by any enclosing quantifier.

A few examples sharpen the distinction. The formula ∀x (x > 0 → ∃y (y · y = x)) is a sentence: both x and y are bound. The formula x > 0 is open: x appears with no quantifier. The formula ∃y (y · y = x) is also open: y is bound by ∃y, but x is free. In this last formula, whether the statement is true depends on what value x has — in the natural numbers, it is true when x is a perfect square and false otherwise. The free variable x is like an input to a predicate: it awaits an assignment before the formula has a definite truth value.

The practical significance is immediate: sentences can be evaluated as true or false in a structure directly, with no additional information. "For all x, x · 1 = x" is true in the natural numbers, period. But "x · 1 = x" is an open formula that becomes meaningful only when you supply a variable assignment — a function from free variables to elements of the domain. Together, a structure and a variable assignment determine the truth value of any formula, open or closed. For sentences, the assignment is irrelevant (quantifiers handle all variables internally), which is why sentences are the natural objects of logical theorems, axioms, and model theory.

The distinction has deep consequences for proof systems. Substitution — replacing a free variable with a term — is how universal instantiation works: from ∀x P(x) you derive P(t) by substituting term t for x. But substitution must be capture-avoiding: if t contains a variable y, and y would fall inside a ∀y quantifier after substitution, the free y in t would be "captured" by that quantifier, changing the formula's meaning. The rules for safe substitution are precisely about tracking which variables are free in which subformulas. Mastering open and closed formulas is therefore not a mere syntactic exercise — it is the prerequisite for every formal proof rule and semantic argument you will encounter in predicate logic.

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 → Introduction to Predicate Logic (First-Order Logic) → First-Order Logic Syntax → Terms and Atomic Formulas in FOL → Variable Binding and Scope → Open and Closed Formulas in First-Order Logic

Longest path: 75 steps · 342 total prerequisite topics

Prerequisites (3)

Leads To (3)