Computer Science Argumentation First-Order Argumentation
24 June 14:01
In propositional logic, we advised formulas create about diminutive objects, which could alone be either true or false. First-order logic, the affair of this chapter, builds aloft propositional argumentation and allows you to attending central the altar discussed in formulas. We can accommodate this added aesthetic akin of granularity by discussing altar as elements of sets that can be beyond than just the set , and aswell cover arbitrarily circuitous relationships with anniversary other.
We activate first by defining the syntax of first-order (FO) logic, and then accord these structures meaning.
The area of address for first adjustment argumentation is first-order structures or models. A first-order anatomy contains
# Relations,
# Functions, and
# Constants (functions of arity 0).
The cant of first-order argumentation is
# a set of affiliation symbols with associated arities, and
# a set of action symbols with associated arities.
Here are some archetype first-order argumentation vocabularies:
# A graph
### Arithmetic
##
Here, a blueprint is a set of vertices and a set of edges . For the addition set agenda that the use of and is absolutely syntactic and we could accept acclimated the symbols additional and times instead. We havent provided the symbols with any acceptation yet.
A appellation denotes an aspect in the first-order structure. A appellation is acclimated to accredit to the elements in our area of discourse. Actuality are the rules that call what a appellation is:
For example, if is a bifold action and is a ternary action then the afterward are all terms: .
An diminutive blueprint is
:,
where is a -ary affiliation and are terms. If examination as a set, then this is just addition way of adage that the tuple
:.
A appropriate affiliation agency according and cannot be interpreted otherwise. For example, stands for
:.
A first-order blueprint is an announcement congenital using a accustomed first-order cant and variables and the symbols . The set of first-order formulas is the minimum set acceptable the following:
#
#
#
#
#
#
A first-order anatomy over a accustomed cant consists of
# A domain, which is a set of elements (also accepted as a universe)
# A mapping advertence to every -ary affiliation attribute in the cant a -ary affiliation over the domain, and to every -ary action attribute a -ary action over the domain.
These apparatus accord acceptation to the symbols.
Example:
:Relation Set =
:Function Set =
A first-order anatomy over this cant is:
# Domain: the set of integers
# Mapping : addition, multiplication, exponentiation, ordering,
In this structure, the formula
:
expresses the account there exists a prime amount (the amount 1 aswell satisfies this statement).
Note actuality that is agnate to .
In the blueprint or , is referred to as the ambit of altitude of the capricious . An accident of a capricious in a blueprint is apprenticed if it is in the ambit of altitude of that variable, contrarily the accident is said to be free. You can accede a quantifier use as a capricious declaration.
A book is a blueprint with no chargeless variables (i.e., all variables are bound). A book is either true or false.
A blueprint with chargeless variable(s) can be advised as anecdotic the backdrop of the chargeless variable(s). For example, denotes a blueprint with occuring chargeless and describes the backdrop of .
If a book evaluates to true over a anatomy , we say satisfies and denote this by .
Note: denotes the aftereffect of substituting for every chargeless accident of in . Barter is covered added after in this chapter.
The axioms are a set of sentences meant to analyze adapted models from others. But typically, aswell accept causeless models, which are alleged non-standard models.
Examples: Accede the cant , area the symbols accept the accepted acceptation (defined by FO sentences over this vocabulary). The accepted estimation for this set of axioms (see the end of this chapter) is the integers, but these are aswell annoyed by the set of integers modulo . This achievability is disqualified out by abacus the afterward book to the axioms:
Question: Can all non-standard models be axiomatized away? The acknowledgment is no. Accede the archetypal apparent in [TODO: acceptation figure] for the cant absolute alone (all elements in the high band are beyond than those on the lower line).
There is no set of first-order sentences that can analyze this archetypal from the accustomed numbers. Intuitively, the cause is that we cannot backtrack arbitrarily (towards ) in a first-order sentence. A agnate non-standard archetypal can be acquired for the abounding cant above.
Given a first-order anatomy and a FO book , can we acquaint if ?
This problem is decidable for bound structures. For example, accept is a bifold affiliation apery the edges of a graph, and the accustomed book is
:.
We can appraise the accuracy of this book by aggravating all accessible ethics for and . (Naive evaluation: nested loop.) This is polynomial time (in area size) but exponential in the admeasurement of the formula.
On absolute domains, we may or may not be able to appraise the accuracy of a sentence. With the cant , area is the set of accustomed numbers, it is decidable if a book is true. (This is accepted as Presburger arithmetic.) About if we cover multiplication, the accuracy of a book becomes undecidable.
A set of FO sentences is
Given a set of FO sentences and a book
The axioms for authority are from three categories:
# Axioms for boolean validity. These are affiliated from propositional logic.
# Axioms for equality.
# Axioms for quantification.
Given a FO blueprint , a boolean anatomy of a propositional blueprint such that is acquired from by replacing anniversary propositional capricious in by a subformula of .
The set of Boolean forms of is denoted .
Examples:
Claim: If and is valid, then is valid.
Let be terms. The afterward are accurate formulas.
Given a blueprint in which capricious occurs chargeless (denoted by ) and a appellation , we ascertain the barter of for in , denoted , as the blueprint that after-effects from replacing every
free accident of in by , accountable to the coercion that contains no capricious quantified in such that occurs chargeless aural the ambit of altitude of . If does not action chargeless , then is authentic as .
Example: Let be
:,
then
#, area is a appellation and is a accurate substitution
#
#
#
In summary, the axioms for authority are :
#Axioms for boolean validity. These are affiliated from propositional logic.
#Axioms for equality.
#Axioms for quantification.
Definition: A affidavit is a arrangement of FO sentences such that for anniversary either or such that and .
Notation: If there is a affidavit of using , we denote this actuality by .
Fact (Soundness): If , then is valid.
Remark: The set of formulas which can be accurate accurate is recursively enumerable.
Example: Affidavit of the blueprint
:
:
:
:
:
:
:
:
:
The affidavit of is symmetrical.
:
:
Claim: Every FO book is agnate to a FO book of the anatomy , area and is quantifier free.
This is accepted using the distributive backdrop of quantifiers. It may be all-important to rename variables, to abstain ambiguities. Although you can consistently move all quantifiers to the left, the consistent blueprint can infact be exponentially beyond than the aboriginal one.
Example:
:
::
::
::
::
::
::
::
# Call the adapted archetypal as carefully as accessible using a (possibly absolute but recursive) set of axioms (FO sentences).
#Prove things using deduction.
Notation: We say is a accurate aftereffect of (denoted ), if every archetypal acceptable aswell satisfies .
Fact: iff is unsatisfiable.
The afterward fourteen first-order axioms call the backdrop of addition and numbers, i.e. accession (), multiplication (), exponentiation (, adequation (), acclimation (), almsman action () and butt (mod). This archetype shows the alive ability of first-order statements, which were originally hoped to accommodate a base for the one true mathematics.
Question: Why are they alleged nonlogical axioms?
:NT1:
:NT2:
:NT3:
:NT4:
:NT5:
:NT6:
:NT7:
:NT8:
:NT9:
:NT10:
In propositional logic, we advised formulas create about diminutive objects, which could alone be either true or false. First-order logic, the affair of this chapter, builds aloft propositional argumentation and allows you to attending central the altar discussed in formulas. We can accommodate this added aesthetic akin of granularity by discussing altar as elements of sets that can be beyond than just the set , and aswell cover arbitrarily circuitous relationships with anniversary other.
We activate first by defining the syntax of first-order (FO) logic, and then accord these structures meaning.
The area of address for first adjustment argumentation is first-order structures or models. A first-order anatomy contains
# Relations,
# Functions, and
# Constants (functions of arity 0).
The cant of first-order argumentation is
# a set of affiliation symbols with associated arities, and
# a set of action symbols with associated arities.
Here are some archetype first-order argumentation vocabularies:
# A graph
### Arithmetic
##
Here, a blueprint is a set of vertices and a set of edges . For the addition set agenda that the use of and is absolutely syntactic and we could accept acclimated the symbols additional and times instead. We havent provided the symbols with any acceptation yet.
A appellation denotes an aspect in the first-order structure. A appellation is acclimated to accredit to the elements in our area of discourse. Actuality are the rules that call what a appellation is:
For example, if is a bifold action and is a ternary action then the afterward are all terms: .
An diminutive blueprint is
:,
where is a -ary affiliation and are terms. If examination as a set, then this is just addition way of adage that the tuple
:.
A appropriate affiliation agency according and cannot be interpreted otherwise. For example, stands for
:.
A first-order blueprint is an announcement congenital using a accustomed first-order cant and variables and the symbols . The set of first-order formulas is the minimum set acceptable the following:
#
#
#
#
#
#
A first-order anatomy over a accustomed cant consists of
# A domain, which is a set of elements (also accepted as a universe)
# A mapping advertence to every -ary affiliation attribute in the cant a -ary affiliation over the domain, and to every -ary action attribute a -ary action over the domain.
These apparatus accord acceptation to the symbols.
Example:
:Relation Set =
:Function Set =
A first-order anatomy over this cant is:
# Domain: the set of integers
# Mapping : addition, multiplication, exponentiation, ordering,
In this structure, the formula
:
expresses the account there exists a prime amount (the amount 1 aswell satisfies this statement).
Note actuality that is agnate to .
In the blueprint or , is referred to as the ambit of altitude of the capricious . An accident of a capricious in a blueprint is apprenticed if it is in the ambit of altitude of that variable, contrarily the accident is said to be free. You can accede a quantifier use as a capricious declaration.
A book is a blueprint with no chargeless variables (i.e., all variables are bound). A book is either true or false.
A blueprint with chargeless variable(s) can be advised as anecdotic the backdrop of the chargeless variable(s). For example, denotes a blueprint with occuring chargeless and describes the backdrop of .
If a book evaluates to true over a anatomy , we say satisfies and denote this by .
Note: denotes the aftereffect of substituting for every chargeless accident of in . Barter is covered added after in this chapter.
The axioms are a set of sentences meant to analyze adapted models from others. But typically, aswell accept causeless models, which are alleged non-standard models.
Examples: Accede the cant , area the symbols accept the accepted acceptation (defined by FO sentences over this vocabulary). The accepted estimation for this set of axioms (see the end of this chapter) is the integers, but these are aswell annoyed by the set of integers modulo . This achievability is disqualified out by abacus the afterward book to the axioms:
Question: Can all non-standard models be axiomatized away? The acknowledgment is no. Accede the archetypal apparent in [TODO: acceptation figure] for the cant absolute alone (all elements in the high band are beyond than those on the lower line).
There is no set of first-order sentences that can analyze this archetypal from the accustomed numbers. Intuitively, the cause is that we cannot backtrack arbitrarily (towards ) in a first-order sentence. A agnate non-standard archetypal can be acquired for the abounding cant above.
Given a first-order anatomy and a FO book , can we acquaint if ?
This problem is decidable for bound structures. For example, accept is a bifold affiliation apery the edges of a graph, and the accustomed book is
:.
We can appraise the accuracy of this book by aggravating all accessible ethics for and . (Naive evaluation: nested loop.) This is polynomial time (in area size) but exponential in the admeasurement of the formula.
On absolute domains, we may or may not be able to appraise the accuracy of a sentence. With the cant , area is the set of accustomed numbers, it is decidable if a book is true. (This is accepted as Presburger arithmetic.) About if we cover multiplication, the accuracy of a book becomes undecidable.
A set of FO sentences is
Given a set of FO sentences and a book
The axioms for authority are from three categories:
# Axioms for boolean validity. These are affiliated from propositional logic.
# Axioms for equality.
# Axioms for quantification.
Given a FO blueprint , a boolean anatomy of a propositional blueprint such that is acquired from by replacing anniversary propositional capricious in by a subformula of .
The set of Boolean forms of is denoted .
Examples:
Claim: If and is valid, then is valid.
Let be terms. The afterward are accurate formulas.
Given a blueprint in which capricious occurs chargeless (denoted by ) and a appellation , we ascertain the barter of for in , denoted , as the blueprint that after-effects from replacing every
free accident of in by , accountable to the coercion that contains no capricious quantified in such that occurs chargeless aural the ambit of altitude of . If does not action chargeless , then is authentic as .
Example: Let be
:,
then
#, area is a appellation and is a accurate substitution
#
#
#
In summary, the axioms for authority are :
#Axioms for boolean validity. These are affiliated from propositional logic.
#Axioms for equality.
#Axioms for quantification.
Definition: A affidavit is a arrangement of FO sentences such that for anniversary either or such that and .
Notation: If there is a affidavit of using , we denote this actuality by .
Fact (Soundness): If , then is valid.
Remark: The set of formulas which can be accurate accurate is recursively enumerable.
Example: Affidavit of the blueprint
:
:
:
:
:
:
:
:
:
The affidavit of is symmetrical.
:
:
Claim: Every FO book is agnate to a FO book of the anatomy , area and is quantifier free.
This is accepted using the distributive backdrop of quantifiers. It may be all-important to rename variables, to abstain ambiguities. Although you can consistently move all quantifiers to the left, the consistent blueprint can infact be exponentially beyond than the aboriginal one.
Example:
:
::
::
::
::
::
::
::
# Call the adapted archetypal as carefully as accessible using a (possibly absolute but recursive) set of axioms (FO sentences).
#Prove things using deduction.
Notation: We say is a accurate aftereffect of (denoted ), if every archetypal acceptable aswell satisfies .
Fact: iff is unsatisfiable.
The afterward fourteen first-order axioms call the backdrop of addition and numbers, i.e. accession (), multiplication (), exponentiation (, adequation (), acclimation (), almsman action () and butt (mod). This archetype shows the alive ability of first-order statements, which were originally hoped to accommodate a base for the one true mathematics.
Question: Why are they alleged nonlogical axioms?
:NT1:
:NT2:
:NT3:
:NT4:
:NT5:
:NT6:
:NT7:
:NT8:
:NT9:
:NT10:
|
Tags: computer, example, models, elements, science, symbols, domain, formula, formulas logic, ightarrow, formula, relation, symbols, variable, imes, vocabulary, function, structure, domain, forall, example, models, exists, sentence, occurrence, formulas, ldots, meaning, denotes, elements, variables, objects, , formula with, ary relation, symbols with, symbols with associated, logic first order, science logic first, computer science logic, |
Also see ...
PermalinkArticle In : Computers & Technology - Computer