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

Terms and Atomic Formulas in FOL

College Depth 72 in the knowledge graph I know this Set as goal
667topics build on this
337prerequisites beneath it
See this on the map →
First-Order Logic SyntaxAtomic and Complex FormulasGround Terms and Ground Formulas+3 more
terms atomic-formulas constants variables function-symbols ground-terms

Core Idea

In first-order logic, terms are the expressions that denote objects in the domain: variables (x, y), constants (a, b), and function symbols applied to terms (f(x), g(a, y)). An atomic formula is a predicate symbol applied to terms — P(x, f(a)) asserts that the objects denoted by x and f(a) stand in relation P. A ground term contains no variables and denotes a fixed element; an open term contains free variables and denotes different elements under different variable assignments. The term/formula distinction is fundamental: terms name objects, formulas make claims about them.

How It's Best Learned

Given a signature (specific constant, function, and predicate symbols with arities), enumerate all terms up to a certain depth, then build all atomic formulas from those terms. Classify each as ground or open and trace how variable assignments affect denotation.

Common Misconceptions

Explainer

From your study of first-order logic syntax, you know that formulas are built inductively from atomic formulas using connectives and quantifiers. But what exactly are atomic formulas built from? The answer requires distinguishing two separate syntactic categories: terms (which denote objects in the domain) and formulas (which make assertions about those objects). These two categories are grammatically incompatible — you cannot substitute one for the other — and confusing them produces type errors in formal proofs.

Terms are built from three kinds of ingredients. Variables (x, y, z) are ranging placeholders that receive values from the domain under a variable assignment. Constants (a, b, c) are names for specific fixed objects that do not change across variable assignments. Function symbols applied to terms: if f is a binary function symbol and t₁, t₂ are already terms, then f(t₁, t₂) is a term. A ground term contains no variables — it denotes a specific domain element regardless of variable assignment. The term f(a, g(b)) is ground; the term f(x, a) is not, because its denotation depends on what x is assigned. This ground/open distinction matters for substitution: substituting a ground term for a variable produces a formula with one fewer free variable, eventually yielding a ground instance.

An atomic formula applies a predicate symbol to the right number of terms: if P is a binary predicate and t₁, t₂ are terms, then P(t₁, t₂) is an atomic formula. Atomic formulas are the base cases from which all formulas are built — but they are not terms. Terms name objects; formulas assert relationships. "The sum of 2 and 3" is a term denoting 5; "2 plus 3 equals 5" is a formula asserting a fact. In formal syntax: plus(2, 3) is a term of sort number, while equals(plus(2, 3), 5) is an atomic formula of sort boolean. The distinction mirrors the noun phrase / sentence distinction in natural language, and it is enforced by the grammar of FOL in the same way type systems enforce it in programming languages.

The practical payoff comes in substitution, unification, and model theory. To substitute a term t for variable x in a formula, you replace each free occurrence of x with t — and you can only substitute *terms* for variables, not formulas for formulas (that would require second-order logic). When you ground a formula by substituting ground terms for all free variables, you get a ground instance: a specific claim about specific objects with no remaining ambiguity. The Herbrand universe — the set of all ground terms — is the arena for Herbrand's theorem and resolution-based provers. Every first-order formula that is satisfiable has a model built entirely from ground terms. Understanding the term/formula distinction is what makes the structure of this argument visible.

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 FOL

Longest path: 73 steps · 337 total prerequisite topics

Prerequisites (1)

Leads To (5)