Using first-order logic with equality, one suitable sentence is
The distinct witnesses give at least two solutions, and the universal clause excludes every third solution. All variables are bound, and the same equation variable is used in every solution predicate. This is an instance of a first-order definition of exactly finitely many witnesses.
On the universe , interpret the first-order signature by
This assigns both constants, a total binary function, a unary relation and a binary relation, so it specifies a complete first-order structure. If and both hold, then , and hence , proving the consequent. If either premise fails, the implication is true. Thus the universally quantified implication holds for every pair of integers, nonvacuously for every pair of nonnegative integers. Distinct constant symbols need not denote distinct objects unless a separate axiom requires it.
Describe a branching vertex by the first-order logic sentence
and the existence of a sink by . The directed path has sinks but no branching vertex; the directed cycle has neither sinks nor branching vertices; the directed arborescence has a branching vertex. Thus the following three sentences distinguish the named structures in order:
Here are abbreviations for the displayed formulas; replacing them gives sentences in the single-relation first-order signature . Explicitly, says that some vertex has no successor and that no vertex has two distinct successors. The truth table across the three structures is:
Sentence
The conditions distinguish these three finite structures; they are not claimed to characterize all directed paths, cycles or trees among arbitrary directed graphs. Only local out-degrees and the presence of a sink are needed, without quantifying over paths of unbounded length.
The occurrence of in lies under the quantifier . Directly inserting the term would capture its free : the result would make the inserted bound and change the intended dependence on the original free value. Therefore the term is not free for the literal substitution requested.
Perform capture-avoiding first-order substitution by first renaming bound variables to fresh names. Renaming the first binder to is necessary; renaming the second to is optional but makes the result especially clear. These renamings give the equivalent formula . Substituting only the free occurrences of now gives
Both and in the inserted term remain free variables. The original has scope only over its own disjunct and would not capture the inserted in the first disjunct; its optional renaming is not a necessary capture repair. This distinction avoids confusing reuse of a letter elsewhere with binding within the relevant scope.
First negate the implication, then move the negation through the existential quantifier and the logical conjunction:
This is negation normal form, because each negation is immediately in front of an atomic predicate. The occurrence of remains free. Keeping also avoids assuming any additional order axioms for the relation symbol ; if it has its usual linear-order interpretation, that atom can instead be expressed as .

Articles by others on the same topic (0)

There are currently no matching articles.