Formal languages, structures, and satisfaction
Separate expressions from their interpretations and calculate quantified truth in a finite structure.
On this page
The question for today
What you’ll understand
- Specify a first-order signature, its structures, and variable assignments.
- Evaluate nested quantifiers by their witness dependencies.
- Distinguish truth in one structure from validity and derivability.
A formula is a finite expression, while its truth depends on an interpretation. The same expression can hold in one structure and fail in another without any defect in logic. Keeping those two levels separate makes later completeness and incompleteness results intelligible. We will use a small cyclic structure where every function value can be checked, then ask which conclusions concern that structure, every structure, or a chosen formal proof system.
Fix the signature before interpreting an expression
A first-order signature declares constant, function, and relation symbols with fixed finite arities. Terms are built recursively from variables, constants, and function application. Atomic formulas assert relations between terms or their equality; connectives and quantifiers build larger formulas. A structure supplies a nonempty domain, an element for each constant, a total operation for each function symbol, and a relation for each relation symbol. Equality is interpreted as actual equality in the domain.
An assignment maps variables into the domain. Term evaluation follows the term's recursive construction, so a variable's current assigned value is different from its printed name. A sentence has no free variables, and its truth is independent of the assignment. Open formulas usually depend on assignments. Renaming a bound variable preserves meaning, but substituting a term requires avoiding variable capture: inserting a free variable beneath an unrelated quantifier can change its intended dependency.
Quantifier order records which witness may depend on what
Existential satisfaction permits choosing one domain element, while universal satisfaction requires every domain element. In a universally quantified existential assertion, the existential witness may depend on the universal input. Reversing the order requires one witness that works simultaneously for all inputs. This distinction survives even in tiny finite structures, where checking a table is possible. It should be understood as a dependency statement rather than merely a rule for rearranging printed symbols.
For a domain of six residues, interpret f as addition of two modulo six and P as the three even residues. The operation is a permutation, so every element has a preimage, including the odd elements. Starting at zero and repeatedly applying f visits only the even residues. Reachability from a designated constant is therefore different from quantification over the whole domain. A single displayed orbit cannot by itself establish a claim about all domain elements.
Four different judgments must remain distinct
Satisfaction says that a structure meets specified sentences. Semantic consequence means every model of a theory satisfies a conclusion, and validity is consequence from no assumptions. Syntactic derivability instead asserts the existence of a finite proof in a fixed calculus. Syntactic consistency means no contradiction is derivable; satisfiability means some structure exists. Their equivalence for classical first-order logic needs the soundness and completeness theorems, rather than belonging to the definitions.
Even when a finite structure satisfies every sentence of a theory, those sentences need not describe the intended natural numbers or any other intended object uniquely. Conversely, an expression being false in the residue structure says nothing by itself about its derivability from unrelated arithmetic axioms. Explicitly name the language, premises, calculus, and model class whenever moving between these judgments. Later undecidability statements will additionally require an effective presentation of syntax, which an arbitrary signature need not possess.
Work it through
A six-element structure separates two existential claims
Take domain , constant c interpreted as zero, , and . Evaluate preservation of P, surjectivity of f, and the assertion that every element has a P-preimage.
Compute the complete function table: the images of 0,1,2,3,4,5 are 2,3,4,5,0,1. The P-inputs 0,2,4 map to 2,4,0, all in P. Thus holds.
Every residue occurs exactly once in the image table. Given x, choose . This proves in this particular structure, using a witness that depends on x.
The P-inputs have only even images. For x equal to one, its unique preimage is five, which is outside P. Therefore fails. One counterexample input suffices despite the successful orbit from c.
Preservation and surjectivity are true; surjectivity restricted to P-preimages is false. These are model evaluations, not claims of logical validity.
The living notebook
Explore the model
Interactive lab · modular
Compare a reachable orbit with the declared domain
Pause and Reset, then set modulus to 6 and additive step to 2. Predict orbit 0,2,4 with period three; take three Steps to return to zero. For a fresh run Reset and set both modulus 6 and step 1: the period becomes six. Each Step performs one addition. The orbit represents iterations from zero, not every variable assignment or an arbitrary first-order structure. Parameter edits retain the clock, so Reset before comparing runs.
- Residue r0
- 0
- Orbit period · m/gcd(m,a)
- 12
- Distinct residues visited
- 1 of 12
Addition modulo m starts at zero: rₙ = na mod m. Playback advances two additions per second. The orbit has period m/gcd(m,a), including period one for a = 0. This is not a cryptographic security test or a primality algorithm. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forA finite reachable component can be a proper subset of the domain quantified over.
Pause & reason
Check your understanding
Your turn
Try it yourself
On residues modulo five, let and . Decide whether P is preserved and whether every x has an f-preimage. Then decide whether one y can satisfy f(y)=x for every x.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Check the image of four first. For the last sentence, keep the same y while comparing two different x values.
Compare with the solution
Preservation fails because f(4)=1 and one is outside P. The images are 2,3,4,0,1, so f is surjective and every x has the preimage x minus two modulo five. The sentence is false: its chosen f(y) cannot equal both zero and one. Changing the modulus altered preservation but did not erase the difference between dependent and fixed witnesses.
Keep the idea
Take it with you
- A structure interprets symbols; an assignment supplies values for free variables.
- Quantifier order specifies the permitted dependence of witnesses.
- Satisfaction, validity, derivability, consistency, and satisfiability are distinct definitions.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.