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 moreGround 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 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 SyntaxTerms and Atomic Formulas in FOLVariable Binding and ScopeOpen and Closed Formulas in First-Order Logic

Longest path: 75 steps · 342 total prerequisite topics

Prerequisites (3)

Leads To (3)