Expand the language by a constant for every element of the structure. Its diagram of a structure consists of all atomic and negated atomic sentences true in this expanded structure. Its elementary diagram, also called the complete diagram, consists of all first-order sentences true in the expansion.
For a model of the diagram, the map is injective because the diagram includes all required inequalities. It preserves functions and constants by the corresponding equations, and it preserves and reflects relations by the positive and negative atomic sentences. Thus it is a structure embedding onto a substructure of the reduct of . Conversely, a structure containing an isomorphic copy of the original as a substructure can interpret the new constants at that copy and satisfy its diagram.
For the elementary diagram the same argument works for every formula, not just atomic ones. The map is therefore an elementary embedding. Conversely any elementary embedding gives an expansion satisfying the elementary diagram. These are characterizations up to the named copy; a model of either diagram may have additional unnamed elements.
In first-order logic with equality, the three first-order sentences areA reflexive relation relates each element to itself. An antisymmetric relation forbids distinct elements from relating in both directions. A transitive relation contains every composite of two successive related pairs. Together these axioms define a partially ordered set.
Totality of the binary relation is expressed byWhen is already an order, this adds comparability and makes it a total order. In fact this first-order sentence alone entails .
By the definition of semantic entailment, means that every first-order structure satisfying also satisfies . Let be any such first-order structure, and let be any element of its domain of a first-order structure. The instance of with gives , which is true only if is true. Since was arbitrary, . ThereforeThere is no exception for in the displayed totality axiom; that case is exactly what forces the reflexive relation property.
In this first-order structure, says and . Thus is an upper bound of . The universally quantified clause says that if is any other upper bound, then . Therefore is their least upper bound. In the usual total order on the natural numbers, this is their maximum:This describes a condition on the values assigned to the free variables ; itself is not a closed first-order sentence.
Express existence of a minimum using only the given strict-order relation:In the closed interval , the witness is . In the open interval , every possible witness has the smaller member , so the first-order sentence is false. These witnesses are explanations in the ambient real numbers, not additional symbols in the first-order signature.
Express that the order is a dense order:In either real interval, lies strictly between any two distinct ordered elements and remains in the domain. In the integers, have no intervening integer, so this first-order sentence is false. The endpoints of a closed interval do not prevent a dense order.
Combine a minimum with an adjacent pair in a linear order:In , choose . The minimum and the adjacent pair in a linear order both exist. In , the dense order property rules out such an adjacent pair. In , adjacent pairs exist, but no minimum exists: for any , the integer is smaller. Thus this first-order sentence has precisely the required three truth values. Neither the endpoints nor the numerical witnesses occur as constant symbols in the first-order sentence.
A minimum and an adjacent pair distinguish the two-interval order from a closed interval and the integers
. Orange highlights the consecutive domain members and in the two-interval order. The dotted arrow crosses points absent from that domain. A closed real interval has intervening domain members; the integers have adjacent pairs but no minimum. Details.Two unary predicates suffice. Require all four unary predicate types to be inhabited:There are no constants, no logical equality and no nonunary predicates. Any two of these conditions disagree on at least one predicate, so one domain element cannot witness both. Hence every satisfying first-order structure has at least four elements, by distinct witnesses from incompatible unary predicates. Conversely take domain , and : the four elements realize the four displayed unary predicate types, respectively. These element names describe the example; they are not constants in the first-order sentence.
The source's explicit parenthetical condition is domination: every unselected vertex has a neighbour in the selected set. Together with independence this defines an independent dominating set. A first-order sentence expressing that definition with size at most three isThe finite conjunctions and disjunctions abbreviate three explicitly fixed terms, so this is a first-order formula. Repeated witnesses allow one- or two-element choices; the first conjunction enforces independence only between distinct selected vertices. The last clause says that every vertex is selected or adjacent to a selected vertex. With the usual nonempty-domain convention, any such choice has size at least one, so repeated witnesses cover all possibilities of size at most three.
For the standard meaning of independent vertex cover, replace the domination clause byThis instead demands that every edge has a selected endpoint. These interpretations differ: in a triangle in a graph, any singleton is an independent dominating set, but no independent vertex cover exists. Giving both clauses avoids silently treating the source's two definitions as equivalent.
Read the initial universal quantifiers as governing the conjunction of irreflexivity and transitivity. Explicitly, the intended first-order sentence assertsThus is an irreflexive relation, a transitive relation, and a serial relation.
Suppose a first-order model had a finite nonempty domain of cardinality . Choose . Seriality supplies successive elements with . By the pigeonhole principle, for some . Repeated transitivity along that part of the chain gives , contradicting irreflexivity. Hence there is no finite nonempty model. This is the infinite-model property of a serial strict partial order.
An infinite model exists: take domain and to mean . It is irreflexive and transitive, and witnesses seriality for every .
The quantifier-scope convention matters: giving each printed universal quantifier only the immediately following atomic scope would leave the transitivity implication with free variables and would not express the claimed theorem. The explicit parenthesisation above records the reading under which the source's requested assertion is valid.
Let be a first-order consistent arithmetic first-order theory with the Hilbert-Bernays-Löb derivability conditions, and suppose . Provability of and provability of falsity are equivalent inside , because either refutable first-order sentence implies the other. Thus is equivalent inside to its formal consistency statement. The second incompleteness theorem gives .
Second-order logic Created 2026-10-06 Updated 2026-10-14
Second-order logic extends first-order logic by allowing existential quantification and universal quantification over second-order relation variables, as well as over individual objects. In the relational presentation used here, an individual variable ranges over a domain , while a second-order relation variable of arity denotes a subset of . Unary second-order relation variables denote subsets of ; binary ones denote binary relations. Presentations with function variables can instead describe their graphs by second-order relation variables, with first-order formulas requiring a unique output for every input.
For a graph with vertices and fixed graph adjacency , the first-order sentence says that every vertex has a neighbour. It selects individual vertices while retains its given interpretation. By contrast,selects an entire subset and says that it is a nonempty independent set. Here is a unary second-order relation variable, rather than a symbol in the input first-order signature. This particular property also has a simple first-order sentence on simple graphs; the example illustrates the change in what can be selected, rather than proving a separation in expressive power.
The usefulness of second-order logic is that one can describe a whole proposed solution, such as a graph coloring, and then impose local constraints on it. Syntax alone does not specify which proposed relations are available: full semantics for second-order logic permits all external subsets of , whereas Henkin semantics supplies designated ranges. The second-order encoding of three-colorability makes this distinction concrete.
Semantic consequence under an assignment 2026-10-31
In a fixed first-order structure, the satisfaction implication at a first-order variable assignment says that if all formulas of hold at , then holds at . Semantic consequence requires that implication in every relevant structure and assignment. The assignment's codomain belongs to its structure; different domains are not silently assigned one common map. When all formulas are first-order sentences, assignments do not affect any of their truth values.
Sentence (mathematical logic) Created 2026-10-14 Updated 2026-10-31
A sentence is a closed formula, with no free variable occurrences. Its truth does not depend on a variable assignment. A first-order sentence uses a first-order formal language.
Skolem normal form 2026-10-31
A first-order sentence consisting of a block of universal quantifiers followed by a quantifier-free formula, obtained by Skolemization in an expanded first-order signature. Its matrix can additionally be put into conjunctive normal form to obtain clausal form.
Uniform substitution in modal logic 2026-10-31
Uniform substitution in modal logic replaces each occurrence of a first-order sentence letter by the same modal formula. Normal modal formal proof systems with axiom schemes are closed under this operation: substituted axioms remain instances, modus ponens is preserved, and necessitation commutes with substitution. Fresh auxiliary letters permit substituting a derived fixed point into fixed-point uniqueness theorems without changing other parameters.
Universal consequences of a theory Created 2026-10-06 Updated 2026-10-31
The universal consequences of a first-order theory are all universal first-order sentences entailed by . Their model class is exactly the class of substructures of models of , up to structure embedding. This characterization follows from the diagram embedding criterion for universal theories.
Universal quantification Created 2026-10-05 Updated 2026-10-31
Universal quantification forms . In a first-order structure, it is true at an assignment to when every domain element assigned to makes the instance true. Its introduction rule requires that the generalized variable not occur freely in undischarged assumptions.
Over the natural numbers, reversing the preceding existential quantification and universal quantification gives a true first-order sentence:Choose . The computed witnesses for are . The choice may depend on the previously given . The formula states that every natural number has a larger natural number; the reversed formula demands one larger than all of them.
Universal quantification followed by existential quantification permits a different witness for each input
. Details. The diagram displays a finite window, while the rules and settle the two statements for every natural number. This dependence is why quantifier order matters in precise specifications. Choosing one that works for every would also provide a witness for each ; the reverse inference fails here.
To introduce universal quantification in natural deduction, reason with an arbitrary input, without assuming a special property of it. The construction does exactly this and also gives a proof in intuitionistic first-order logic. The introduction and elimination rules for both quantifiers are developed in Frank Pfenning, First-Order Logic and Type Theory, section 4.1.

