Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Finite model theory

From Wikipedia, the free encyclopedia
Branch of logic

Finite model theory is a subarea ofmodel theory. Model theory is the branch oflogic which deals with the relation between a formal language (syntax) and its interpretations (semantics). Finite model theory is a restriction of model theory tointerpretations on finitestructures, which have a finite universe.

Since many central theorems of model theory do not hold when restricted to finite structures, finite model theory is quite different from model theory in its methods of proof. Central results of classical model theory that fail for finite structures under finite model theory include thecompactness theorem,Gödel's completeness theorem, and the method ofultraproducts forfirst-order logic (FO). These invalidities all follow fromTrakhtenbrot's theorem.[1]

While model theory has many applications tomathematical algebra, finite model theory became an "unusually effective"[2] instrument in computer science. In other words: "In the history of mathematical logic most interest has concentrated on infinite structures. [...] Yet, the objects computers have and hold are always finite. To study computation we need a theory of finite structures."[3] Thus the main application areas of finite model theory are:descriptive complexity theory,database theory andformal language theory.

Axiomatisability

[edit]

A common motivating question in finite model theory is whether a given class of structures can be described in a given language. For instance, one might ask whether the class of cyclic graphs can be distinguished among graphs by a FO sentence, which can also be phrased as asking whether cyclicity is FO-expressible.

A single finite structure can always be axiomatized in first-order logic, where axiomatized in a languageL means described uniquely up to isomorphism by a singleL-sentence. Similarly, any finite collection of finite structures can always be axiomatized in first-order logic. Some, but not all, infinite collections of finite structures can also be axiomatized by a single first-order sentence.

Characterisation of a single structure

[edit]

Is a languageL expressive enough to axiomatize a single finite structureS?

Single graphs (1) and (1') having common properties.

Problem

[edit]

A structure like (1) in the figure can be described by FO sentences in thelogic of graphs like

  1. Every node has an edge to another node:xyG(x,y).{\displaystyle \forall _{x}\exists _{y}G(x,y).}
  2. No node has an edge to itself:x,y(G(x,y)xy).{\displaystyle \forall _{x,y}(G(x,y)\Rightarrow x\neq y).}
  3. There is at least onenode that is connected to all others:xy(xyG(x,y)).{\displaystyle \exists _{x}\forall _{y}(x\neq y\Rightarrow G(x,y)).}

However, these properties do not axiomatize the structure, since for structure (1') the above properties hold as well, yet structures (1) and (1') are not isomorphic.

Informally the question is whether by adding enough properties, these properties together describe exactly (1) and are valid (all together) for no other structure (up to isomorphism).

Approach

[edit]

For a single finite structure it is always possible to precisely describe the structure by a single FO sentence. The principle is illustrated here for a structure with one binary relationR{\displaystyle R} and without constants:

  1. say that there are at leastn{\displaystyle n} elements:φ1=ij¬(xi=xj){\displaystyle \varphi _{1}=\bigwedge _{i\neq j}\neg (x_{i}=x_{j})}
  2. say that there are at mostn{\displaystyle n} elements:φ2=yi(xi=y){\displaystyle \varphi _{2}=\forall _{y}\bigvee _{i}(x_{i}=y)}
  3. state every element of the relationR{\displaystyle R}:φ3=(ai,aj)RR(xi,xj){\displaystyle \varphi _{3}=\bigwedge _{(a_{i},a_{j})\in R}R(x_{i},x_{j})}
  4. state every non-element of the relationR{\displaystyle R}:φ4=(ai,aj)R¬R(xi,xj){\displaystyle \varphi _{4}=\bigwedge _{(a_{i},a_{j})\notin R}\neg R(x_{i},x_{j})}

all for the same tuplex1..xn{\displaystyle x_{1}..x_{n}}, yielding the FO sentencex1xn(φ1φ2φ3φ4){\displaystyle \exists _{x_{1}}\dots \exists _{x_{n}}(\varphi _{1}\land \varphi _{2}\land \varphi _{3}\land \varphi _{4})}.

Extension to a fixed number of structures

[edit]

The method of describing a single finite structure by means of a first-order sentence can easily be extended for any fixed number of structures. A unique description can be obtained by the disjunction of the descriptions for each structure. For instance, for two finite structuresA{\displaystyle A} andB{\displaystyle B} with defining sentencesφA{\displaystyle \varphi _{A}} andφB{\displaystyle \varphi _{B}} this would be

φAφB.{\displaystyle \varphi _{A}\lor \varphi _{B}.}

Extension to an infinite structure

[edit]

By definition, a set containing an infinite structure falls outside the area that FMT deals with. Note that infinite structures can never be discriminated in FO, because of theLöwenheim–Skolem theorem, which implies that no first-order theory with an infinite model can have a unique model up to isomorphism.

The most famous example is probablySkolem's theorem, that there is a countable non-standard model of arithmetic.

Characterisation of a class of structures

[edit]

Is a languageL expressive enough to describe exactly (up to isomorphism) those finite structures that have certain propertyP?

Set of up ton structures.

Problem

[edit]

The descriptions given so far all specify the number of elements of the universe. Unfortunately most interesting sets of structures are not restricted to a certain size, like all graphs that are trees, are connected or are acyclic. Thus to discriminate a finite number of structures is of special importance.

Approach

[edit]

Instead of a general statement, the following is a sketch of a methodology to differentiate between structures that can and cannot be discriminated.

  1. The core idea is that whenever one wants to see if a propertyP can be expressed in FO, one chooses structuresA andB, whereA does haveP andB doesn't. If forA andB the same FO sentences hold, thenP cannot be expressed in FO. In short:
    AP,BP{\displaystyle A\in P,B\not \in P} andAB,{\displaystyle A\equiv B,}
    whereAB{\displaystyle A\equiv B} is shorthand forAαBα{\displaystyle A\models \alpha \Leftrightarrow B\models \alpha } for all FO-sentences α, andP represents the class of structures with propertyP.
  2. The methodology considers countably many subsets of the language, the union of which forms the language itself. For instance, for FO consider classes FO[m] for eachm. For eachm the above core idea then has to be shown. That is:
    AP,BP{\displaystyle A\in P,B\not \in P} andAmB{\displaystyle A\equiv _{m}B}
    with a pairA,B{\displaystyle A,B} for eachm{\displaystyle m} and α (in ≡) from FO[m]. It may be appropriate to choose the classes FO[m] to form a partition of the language.
  3. One common way to define FO[m] is by means of thequantifier rank qr(α) of a FO formula α, which expresses the depth ofquantifier nesting. For example, for a formula inprenex normal form, qr is simply the total number of its quantifiers. Then FO[m] can be defined as all FO formulas α with qr(α) ≤m (or, if a partition is desired, as those FO formulas with quantifier rank equal tom).
  4. Thus it all comes down to showingAαBα{\displaystyle A\models \alpha \Leftrightarrow B\models \alpha } on the subsets FO[m]. The main approach here is to use the algebraic characterization provided byEhrenfeucht–Fraïssé games. Informally, these take a single partial isomorphism onA andB and extend itm times, in order to either prove or disproveAmB{\displaystyle A\equiv _{m}B}, dependent on who wins the game.

Example

[edit]

We want to show that the property that the size of an ordered structureA = (A, ≤) is even, can not be expressed in FO.

  1. The idea is to pickA ∈ EVEN andB ∉ EVEN, where EVEN is the class of all structures of even size.
  2. We start with two ordered structuresA2 andB2 with universes A2 = {1, 2, 3, 4} and B2 = {1, 2, 3}. ObviouslyA2 ∈ EVEN andB2 ∉ EVEN.
  3. Form = 2, we can now show* that in a 2-moveEhrenfeucht–Fraïssé game onA2 andB2 the duplicator always wins, and thusA2 andB2 cannot be discriminated in FO[2], i.e.A2αB2α{\displaystyle \mathbf {A} _{2}\models \alpha \iff \mathbf {B} _{2}\models \alpha } for everyα ∈ FO[2].
  4. Next we have to scale the structures up by increasingm. For example, form = 3 we must find anA3 andB3 such that the duplicator always wins the 3-move game. This can be achieved by A3 = {1, ..., 8} and B3 = {1, ..., 7}. More generally, we can choose Am = {1, ..., 2m} and Bm = {1, ..., 2m−1}; for anym the duplicator always wins them-move game for this pair of structures*.
  5. Thus EVEN on finite ordered structures cannot be expressed in FO.

(*) Note that the proof of the result of theEhrenfeucht–Fraïssé game has been omitted, since it is not the main focus here.

Zero-one laws

[edit]

Glebskiĭ et al. (1969) and, independently,Fagin (1976) proved a zero–one law for first-order sentences in finite models; Fagin's proof used thecompactness theorem. According to this result, every first-order sentence in a relational signatureσ{\displaystyle \sigma } is eitheralmost always true or almost always false in finiteσ{\displaystyle \sigma }-structures. That is, letS be a fixed first-order sentence, and choose a randomσ{\displaystyle \sigma }-structureGn{\displaystyle G_{n}} with domain{1,,n}{\displaystyle \{1,\dots ,n\}}, uniformly among allσ{\displaystyle \sigma }-structures with domain{1,,n}{\displaystyle \{1,\dots ,n\}}. Then in the limit asn tends to infinity, the probability thatGn modelsS will tend either to zero or to one:

limnPr[GnS]{0,1}.{\displaystyle \lim _{n\to \infty }\operatorname {Pr} [G_{n}\models S]\in \{0,1\}.}

The problem of determining whether a given sentence has probability tending to zero or to one isPSPACE-complete.[4]

A similar analysis has been performed for more expressive logics than first-order logic. The 0-1 law has been shown to hold for sentences inFO(LFP), first-order logic augmented with a least fixed point operator, and more generally for sentences in the infinitary logicLωω{\displaystyle L_{\infty \omega }^{\omega }}, which allows for potentially arbitrarily long conjunctions and disjunctions.Another important variant is the unlabelled 0-1 law, where instead of considering the fraction of structures with domain{1,,n}{\displaystyle \{1,\dots ,n\}}, one considers the fraction of isomorphism classes of structures withn elements. This fraction is well-defined, since any two isomorphic structures satisfy the same sentences. The unlabelled 0-1 law also holds forLωω{\displaystyle L_{\infty \omega }^{\omega }} and therefore in particular for FO(LFP) and first-order logic.[5]

Descriptive complexity theory

[edit]
Main article:Descriptive complexity theory

An important goal of finite model theory is the characterisation ofcomplexity classes by the type oflogic needed to express the languages in them. For example,PH, the union of all complexity classes in the polynomial hierarchy, is precisely the class of languages expressible by statements ofsecond-order logic. This connection between complexity and the logic of finite structures allows results to be transferred easily from one area to the other, facilitating new proof methods and providing additional evidence that the main complexity classes are somehow "natural" and not tied to the specificabstract machines used to define them.

Specifically, eachlogical system produces a set ofqueries expressible in it. The queries – when restricted to finite structures – correspond to thecomputational problems of traditional complexity theory.

Some well-known complexity classes are captured by logical languages as follows:

  • In the presence of a linear order, first-order logic with a commutative,transitive closure operator added yieldsL, problems solvable in logarithmic space.
  • In the presence of a linear order, first-order logic with atransitive closure operator yieldsNL, the problems solvable in nondeterministic logarithmic space.
  • In the presence of a linear order, first-order logic with aleast fixed point operator givesP, the problems solvable in deterministic polynomial time.
  • On all finite structures (regardless of whether they are ordered),Existential second-order logic givesNP (Fagin's theorem).[6]

Applications

[edit]

Database theory

[edit]
Main article:Database theory

A substantial fragment ofSQL (namely that which is effectivelyrelational algebra) is based on first-order logic (more precisely can be translated indomain relational calculus by means ofCodd's theorem), as the following example illustrates: Think of a database table "GIRLS" with the columns "FIRST_NAME" and "LAST_NAME". This corresponds to a binary relation, say G(f, l) on FIRST_NAME × LAST_NAME. The FO queryl:G('Judy',l){\displaystyle {l:G({\text{'Judy'}},l)}}, which returns all the last names where the first name is 'Judy', would look in SQL like this:

selectLAST_NAMEfromGIRLSwhereFIRST_NAME='Judy'

Notice, we assume here, that all last names appear only once (or we should use SELECT DISTINCT since we assume that relations and answers are sets, not bags).

Next we want to make a more complex statement. Therefore, in addition to the "GIRLS" table we have a table "BOYS" also with the columns "FIRST_NAME" and "LAST_NAME". Now we want to query the names of all the girls that have the same last name as at least one of the boys. The FO query is(f,l):h(G(f,l)B(h,l)){\displaystyle {(f,l):\exists h(G(f,l)\land B(h,l))}}, and the corresponding SQL statement is:

selectFIRST_NAME,LAST_NAMEfromGIRLSwhereLAST_NAMEIN(selectLAST_NAMEfromBOYS);

Notice that in order to express the "∧" we introduced the new language element "IN" with a subsequent select statement. This makes the language more expressive for the price of higher difficulty to learn and implement. This is a common trade-off in formal language design. The way shown above ("IN") is by far not the only one to extend the language. An alternative way is e.g. to introduce a "JOIN" operator, that is:

selectdistinctg.FIRST_NAME,g.LAST_NAMEfromGIRLSg,BOYSbwhereg.LAST_NAME=b.LAST_NAME;

First-order logic is too restrictive for some database applications, for instance because of its inability to expresstransitive closure. This has led to more powerful constructs being added to database query languages, such asrecursive WITH inSQL:1999. More expressive logics, likefixpoint logics, have therefore been studied in finite model theory because of their relevance to database theory and applications.

Querying and search

[edit]

Narrative data contains no defined relations. Thus the logical structure of text search queries can be expressed inpropositional logic, like in:

("Java" AND NOT "island") OR ("C#" AND NOT "music")

Note that the challenges in full text search are different from database querying, like ranking of results.

History

[edit]
  • Trakhtenbrot 1950: failure of completeness theorem in first-order logic
  • Scholz 1952: characterisation ofspectra in first-order logic
  • Fagin 1974: the set of all properties expressible in existential second-order logic is precisely the complexity class NP
  • Chandra, Harel 1979/80: fixed-point first-order logic extension for database query languages capable of expressing transitive closure -> queries as central objects of FMT
  • Immerman,Vardi 1982: fixed-point logic over ordered structures captures PTIME -> descriptive complexity (Immerman–Szelepcsényi theorem)
  • Ebbinghaus, Flum 1995: first comprehensive book "Finite Model Theory"
  • Abiteboul, Hull,Vianu 1995: book "Foundations of Databases"
  • Immerman 1999: book "Descriptive Complexity"
  • Kuper, Libkin, Paredaens 2000: book "Constraint Databases"
  • Darmstadt 2005/ Aachen 2006: first international workshops on "Algorithmic Model Theory"

Citations

[edit]
  1. ^Ebbinghaus, Heinz-Dieter; Flum, Jörg (2006).Finite Model Theory (2nd ed.). Springer. pp. 62,127–129.
  2. ^Fagin, Ronald (1993)."Finite-model theory – a personal perspective".Theoretical Computer Science.116:3–31.doi:10.1016/0304-3975(93)90218-I.
  3. ^Immerman, Neil (1999).Descriptive Complexity. New York: Springer-Verlag. p. 6.ISBN 0-387-98600-6.
  4. ^Grandjean, Etienne (1983)."Complexity of the first-order theory of almost all finite structures".Information and Control.57 (2–3):180–204.doi:10.1016/S0019-9958(83)80043-6.
  5. ^Ebbinghaus, Heinz-Dieter; Flum, Jörg (1995). "4".Finite Model Theory. Perspectives in Mathematical Logic.doi:10.1007/978-3-662-03182-7.ISBN 978-3-662-03184-1.
  6. ^Ebbinghaus, Heinz-Dieter; Flum, Jörg (1995). "7".Finite Model Theory. Perspectives in Mathematical Logic.doi:10.1007/978-3-662-03182-7.

References

[edit]
  • Fagin, Ronald (1976). "Probabilities on Finite Models".The Journal of Symbolic Logic.41 (1):50–58.doi:10.2307/2272945.JSTOR 2272945.
  • Glebskiĭ, Yu V.; Kogan, D. I.; Liogon'kiĭ, M. I.; Talanov, V. A. (1969). "Объем и доля выполнимости формул узкого исчисления предикатов" [Volume and fraction of satisfiability of formulae of the first-order predicate calculus].Kibernetika.5 (2):17–27. Also available as;"Range and degree of realizability of formulas in the restricted predicate calculus".Cybernetics.5 (2):142–154. 1972.doi:10.1007/BF01071084.
  • Libkin, Leonid (2004).Elements of Finite Model Theory.Springer.ISBN 3-540-21202-7.

Further reading

[edit]

External links

[edit]
Wikibooks has a book on the topic of:Finite Model Theory
General
Theorems
(list),
paradoxes
Logics
Traditional
Propositional
Predicate
Set theory
Types
ofsets
Maps,
cardinality
Theories
Formal
systems

(list),
language,
syntax
Example
axiomatic
systems

(list)
Proof theory
Model theory
Computability
theory
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=Finite_model_theory&oldid=1325478825"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp