Decidable Fragments of First-Order and Fixed-Point Logic From - - PowerPoint PPT Presentation

decidable fragments of first order and fixed point logic
SMART_READER_LITE
LIVE PREVIEW

Decidable Fragments of First-Order and Fixed-Point Logic From - - PowerPoint PPT Presentation

Decidable Fragments of First-Order and Fixed-Point Logic From prefix-vocabulary classes to guarded logics Erich Grdel graedel@rwth-aachen.de. Aachen University The classical decision problem part of Hilberts formalist programme for the


slide-1
SLIDE 1

Decidable Fragments of First-Order and Fixed-Point Logic

From prefix-vocabulary classes to guarded logics Erich Grädel

graedel@rwth-aachen.de.

Aachen University

slide-2
SLIDE 2

The classical decision problem

part of Hilbert’s formalist programme for the foundations of mathematics in modern terminology: find an algorithm that solves the satisfiability problem for first-order logic

  • D. Hilbert and W. Ackermann:

“Das Entscheidungsproblem ist gelöst, wenn man ein Verfahren kennt, das bei einem vorgelegten logischen Ausdruck durch endlich viele Operationen die Entscheidung über die Allgemeingültigkeit bzw. Erfüllbarkeit erlaubt. (. . .) Das Entscheidungsproblem muss als das Hauptproblem der mathematischen Logik bezeichnet werden.” Grundzüge der theoretischen Logik (1928), pp 73ff

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-3
SLIDE 3

The classical decision problem

part of Hilbert’s formalist programme for the foundations of mathematics in modern terminology: find an algorithm that solves the satisfiability problem for first-order logic

  • D. Hilbert and W. Ackermann:

“The decision problem is solved when we know a procedure that allows, for any given logical expression, to decide by finitely many operations its validity or satisfiability. (. . .) The decision problem must be considered the main problem of mathematical logic.” Grundzüge der theoretischen Logik (1928), pp 73ff

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-4
SLIDE 4

The classical decision problem

part of Hilbert’s formalist programme for the foundations of mathematics in modern terminology: find an algorithm that solves the satisfiability problem for first-order logic

  • D. Hilbert and W. Ackermann:

“The decision problem is solved when we know a procedure that allows, for any given logical expression, to decide by finitely many operations its validity or satisfiability. (. . .) The decision problem must be considered the main problem of mathematical logic.” Grundzüge der theoretischen Logik (1928), pp 73ff Similar statements by many other logicians, including Bernays, Schönfinkel, Herbrand, von Neumann, . . .

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-5
SLIDE 5

Early results: decision procedures

Decision algorithms for fragments of first-order logic

  • the monadic predicate calculus (Löwenheim 1915, Kalmár 1929)
  • the prefix class ∃∗∀∗

(Bernays–Schönfinkel 1928, Ramsey 1932)

  • the ∃∗∀∃∗-prefix class

(Ackermann 1928)

  • the ∃∗∀2∃∗-prefix class, without equality

(Gödel, Kalmár, Schütte 1932-1934)

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-6
SLIDE 6

Early results: decision procedures

Decision algorithms for fragments of first-order logic

  • the monadic predicate calculus (Löwenheim 1915, Kalmár 1929)
  • the prefix class ∃∗∀∗

(Bernays–Schönfinkel 1928, Ramsey 1932)

  • the ∃∗∀∃∗-prefix class

(Ackermann 1928)

  • the ∃∗∀2∃∗-prefix class, without equality

(Gödel, Kalmár, Schütte 1932-1934) These are often called the classical solvable cases of the decision problem.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-7
SLIDE 7

Early results: reduction classes

A fragment X ⊆ FO is a reduction class if there is a computable function f : FO → X such that ψ satisfiable ⇐ ⇒ f (ψ) satisfiable Early reduction classes:

  • relational sentences without =

(the pure predicate calculus)

  • dyadic sentences (only predicates of arity 2)
  • ∀∗-sentences, or relational ∀∗∃∗-sentences

(Skolem normal form)

  • only one binary predicate

(Kalmár 1936)

  • relational ∀3∃∗-sentences

(Gödel 1933)

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-8
SLIDE 8

The undecidability of first-order logic

Theorem (Church 1936, Turing 1937) The satisfiability problem for first-order logic is undecidable.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-9
SLIDE 9

The undecidability of first-order logic

Theorem (Church 1936, Turing 1937) The satisfiability problem for first-order logic is undecidable. Theorem (Trakhtenbrot 1950, Craig 1950) The satisfiability problem for first-order logic on finite structures is undecidable.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-10
SLIDE 10

The undecidability of first-order logic

Theorem (Church 1936, Turing 1937) The satisfiability problem for first-order logic is undecidable. Theorem (Trakhtenbrot 1950, Craig 1950) The satisfiability problem for first-order logic on finite structures is undecidable. = ⇒ there is no sound and complete proof system for validity on finite structures

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-11
SLIDE 11

The undecidability of first-order logic

Theorem (Church 1936, Turing 1937) The satisfiability problem for first-order logic is undecidable. Theorem (Trakhtenbrot 1950, Craig 1950) The satisfiability problem for first-order logic on finite structures is undecidable. = ⇒ there is no sound and complete proof system for validity on finite structures After the negative solution, the decision problem did not disappear, but became a classification problem.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-12
SLIDE 12

The decision problem as a classification problem

  • For which classes X ⊆ FO is Sat(X) decidable,

which are reduction classes ?

  • Similarly for satisfiablity on finite structures

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-13
SLIDE 13

The decision problem as a classification problem

  • For which classes X ⊆ FO is Sat(X) decidable,

which are reduction classes ?

  • Similarly for satisfiablity on finite structures
  • Which classes have the finite model property,

which contain infinity axioms ?

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-14
SLIDE 14

The decision problem as a classification problem

  • For which classes X ⊆ FO is Sat(X) decidable,

which are reduction classes ?

  • Similarly for satisfiablity on finite structures
  • Which classes have the finite model property,

which contain infinity axioms ?

  • Complexity of decidable cases ?

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-15
SLIDE 15

The decision problem as a classification problem

  • For which classes X ⊆ FO is Sat(X) decidable,

which are reduction classes ?

  • Similarly for satisfiablity on finite structures
  • Which classes have the finite model property,

which contain infinity axioms ?

  • Complexity of decidable cases ?

What kind of classes X ⊆ FO should be considered? There are continuum many such classes, one cannot study all of them. A direction is needed.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-16
SLIDE 16

The decision problem as a classification problem

  • For which classes X ⊆ FO is Sat(X) decidable,

which are reduction classes ?

  • Similarly for satisfiablity on finite structures
  • Which classes have the finite model property,

which contain infinity axioms ?

  • Complexity of decidable cases ?

What kind of classes X ⊆ FO should be considered? There are continuum many such classes, one cannot study all of them. A direction is needed. In view of the early results, most attention (in logic) was given to classes determined by quantifier prefix and vocabulary, i.e. the number and arity

  • f relation and function symbols.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-17
SLIDE 17

Prefix-vocabulary classes

[Π, (p1, p2, . . .), (f1, f2, . . .)](=)

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-18
SLIDE 18

Prefix-vocabulary classes

[Π, (p1, p2, . . .), (f1, f2, . . .)](=)

  • Π is a word over {∃, ∀, ∃∗, ∀∗}, describing set of quantifier prefixes

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-19
SLIDE 19

Prefix-vocabulary classes

[Π, (p1, p2, . . .), (f1, f2, . . .)](=)

  • Π is a word over {∃, ∀, ∃∗, ∀∗}, describing set of quantifier prefixes
  • pm, fm ≤ ω indicate how many relation and function symbols of

arity m may occur

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-20
SLIDE 20

Prefix-vocabulary classes

[Π, (p1, p2, . . .), (f1, f2, . . .)](=)

  • Π is a word over {∃, ∀, ∃∗, ∀∗}, describing set of quantifier prefixes
  • pm, fm ≤ ω indicate how many relation and function symbols of

arity m may occur

  • presence or absence of = indicates whether the formulae may

contain equality

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-21
SLIDE 21

Prefix-vocabulary classes

[Π, (p1, p2, . . .), (f1, f2, . . .)](=)

  • Π is a word over {∃, ∀, ∃∗, ∀∗}, describing set of quantifier prefixes
  • pm, fm ≤ ω indicate how many relation and function symbols of

arity m may occur

  • presence or absence of = indicates whether the formulae may

contain equality Example: [∃∗∀∃∗, (ω, 1), all]=

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-22
SLIDE 22

Prefix-vocabulary classes

[Π, (p1, p2, . . .), (f1, f2, . . .)](=)

  • Π is a word over {∃, ∀, ∃∗, ∀∗}, describing set of quantifier prefixes
  • pm, fm ≤ ω indicate how many relation and function symbols of

arity m may occur

  • presence or absence of = indicates whether the formulae may

contain equality Example: [∃∗∀∃∗, (ω, 1), all]= sentences ∃x1 . . . ∃xm∀y∃z1 . . . ∃znφ where φ is quantifier-free and – contains at most one binary predicate, and no predicates of arity ≥ 3, – may contain any number of monadic predicates, – may contain any number of function symbols of any arity, – may contain equality.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-23
SLIDE 23

The complete classification: undecidable cases

A: Pure predicate logic (without functions, without =) (1) [∀∃∀, (ω, 1), (0)] (Kahr 1962) (2) [∀3∃, (ω, 1), (0)] (Surányi 1959) (3) [∀∗∃, (0, 1), (0)] (Kalmár-Surányi 1950) (4) [∀∃∀∗, (0, 1), (0)] (Denton 1963) (5) [∀∃∀∃∗, (0, 1), (0)] (Gurevich 1966) (6) [∀3∃∗, (0, 1), (0)] (Kalmár-Surányi 1947) (7) [∀∃∗∀, (0, 1), (0)] (Kostyrko-Genenz 1964) (8) [∃∗∀∃∀, (0, 1), (0)] (Surányi 1959) (9) [∃∗∀3∃, (0, 1), (0)] (Surányi 1959)

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-24
SLIDE 24

The complete classification: undecidable cases

B: Classes with functions or equality (10) [∀, (0), (2)]= (Gurevich 1976) (11) [∀, (0), (0, 1)]= (Gurevich 1976) (12) [∀2, (0, 1), (1)] (Gurevich 1969) (13) [∀2, (1), (0, 1)] (Gurevich 1969) (14) [∀2∃, (ω, 1), (0)]= (Goldfarb 1984) (15) [∃∗∀2∃, (0, 1), (0)]= (Goldfarb 1984) (16) [∀2∃∗, (0, 1), (0)]= (Goldfarb 1984)

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-25
SLIDE 25

The complete classification: decidable cases

(Exclude the trivial classes: finite prefix and finite relational vocabulary) A: Classes with the finite model property (1) [∃∗∀∗, all, (0)]= (Bernays, Schönfinkel 1928) (2) [∃∗∀2∃∗, all, (0)] (Gödel 1932, Kalmár 1933, Schütte 1934) (3) [all, (ω), (ω)] (Löb 1967, Gurevich 1969) (4) [∃∗∀∃∗, all, all] (Gurevich 1973) (5) [∃∗, all, all]= (Gurevich 1976) B: Classes with infinity axioms (6) [all, (ω), (1)]= (Rabin 1969) (7) [∃∗∀∃∗, all, (1)]= (Shelah 1977)

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-26
SLIDE 26

Why prefix-vocabulary classes?

  • historical reasons

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-27
SLIDE 27

Why prefix-vocabulary classes?

  • historical reasons
  • simple, syntactically defined classes

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-28
SLIDE 28

Why prefix-vocabulary classes?

  • historical reasons
  • simple, syntactically defined classes
  • a finite classification can a priori be proved to exist.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-29
SLIDE 29

Why prefix-vocabulary classes?

  • historical reasons
  • simple, syntactically defined classes
  • a finite classification can a priori be proved to exist.

Classifiability Theorem (Gurevich) Let P be a property of prefix vocabulary classes that is closed under subsets and under union: X ∈ P, Y ⊆ X = ⇒ Y ∈ P X, Y ∈ P = ⇒ X ∪ Y ∈ P Then there is a finite list MIN of prefix vocabulary classes such that X ∈ P ⇐ ⇒ ∃Y ∈ MIN : Y ⊆ X

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-30
SLIDE 30

Why prefix-vocabulary classes?

  • historical reasons
  • simple, syntactically defined classes
  • a finite classification can a priori be proved to exist.

Classifiability Theorem (Gurevich) Let P be a property of prefix vocabulary classes that is closed under subsets and under union: X ∈ P, Y ⊆ X = ⇒ Y ∈ P X, Y ∈ P = ⇒ X ∪ Y ∈ P Then there is a finite list MIN of prefix vocabulary classes such that X ∈ P ⇐ ⇒ ∃Y ∈ MIN : Y ⊆ X Take P = {X : Sat(X) decidable}. = ⇒ there is a finite list of minimal undecidable prefix-vocabulary classes.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-31
SLIDE 31

Why prefix-vocabulary classes?

  • historical reasons
  • simple, syntactically defined classes
  • a finite classification can a priori be proved to exist.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-32
SLIDE 32

Why prefix-vocabulary classes?

  • historical reasons
  • simple, syntactically defined classes
  • a finite classification can a priori be proved to exist.

Good question !

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-33
SLIDE 33

Why prefix-vocabulary classes?

  • historical reasons
  • simple, syntactically defined classes
  • a finite classification can a priori be proved to exist.

Good question ! Modern applications of logic in computer science often lead to quite different classes. For instance: modal logics, two-variable logics, guarded logics. On the other side the restriction to first-order logic is often too restrictive. Consider instead (fragments of) fixed point logics

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-34
SLIDE 34

ML: propositional modal logic

Transition systems = Kripke structures = labeled graphs K = ( V , (Ea)a∈A , (Pi)i∈I )

states elements actions binary relations atomic propositions unary relations

Syntax of ML: ψ ::= Pi | ¬Pi | ψ ∧ ψ | ψ ∨ ψ | aψ | [a]ψ Example: P1 ∨ a(P2 ∧ [b]P1) Semantics: [ [ψ] ]K = {v : K, v | = ψ} = {v : ψ holds at state v in K}. K, v | = aψ [a]ψ :⇐ ⇒ K, w | = ψ for some all w with (v, w) ∈ Ea

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-35
SLIDE 35

ML as a fragment of first-order logic

There is standard translation, taking every ψ ∈ ML to a formula ψ∗(x) ∈ FO such that K, v | = ψ ⇐ ⇒ K | = ψ∗(v) Pi − → Pix aψ − → ∃y(Eaxy ∧ ψ∗(y)) [a]ψ − → ∀y(Eaxy → ψ∗(y))

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-36
SLIDE 36

Properties of modal logic

Good algorithmic properties:

  • Sat(ML) is decidable and P-complete
  • efficient model checking:

time O(|ψ| · K)

  • automata-based algorithms

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-37
SLIDE 37

Properties of modal logic

Good algorithmic properties:

  • Sat(ML) is decidable and P-complete
  • efficient model checking:

time O(|ψ| · K)

  • automata-based algorithms

Interesting model-theoretic properties:

  • invariance under bisimulation:

K, v | = ψ, K, v ∼ K′, v′ = ⇒ K′, v′ | = ψ in fact ML is the bisimulation-invariant fragment of first-order logic

  • ML has the tree model property
  • ML has the finite model property
  • . . .

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-38
SLIDE 38

Limitations of propositional modal logic

ML has very limited expressive power

  • no equality
  • no unbounded quantification
  • no possibility to define new transition relations, not even on the

quantifier-free level

  • no counting mechanism
  • no recursion mechanism: reachability problems, game problems, etc.

are not expressible

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-39
SLIDE 39

Limitations of propositional modal logic

ML has very limited expressive power

  • no equality
  • no unbounded quantification
  • no possibility to define new transition relations, not even on the

quantifier-free level

  • no counting mechanism
  • no recursion mechanism: reachability problems, game problems, etc.

are not expressible Note: The absence of a recursion mechanism is also a limitation of FO For numerous applications, in particular for reasoning about computation, reachability problems and game problems are essential. = ⇒ numerous logics that extend ML by recursion mechanisms

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-40
SLIDE 40

Computation tree logic CTL

ML + path quantification + temporal operators on paths CTL is a very important logic for hardware verification. Good balance between expressive power and algorithmic manageability

  • A P U Q

≡ (∀ paths) (P until Q)

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-41
SLIDE 41

Computation tree logic CTL

ML + path quantification + temporal operators on paths CTL is a very important logic for hardware verification. Good balance between expressive power and algorithmic manageability

  • A P U Q

≡ (∀ paths) (P until Q)

  • E G P

≡ (∃ path) always P

  • A F P

≡ (∀ paths) eventually P

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-42
SLIDE 42

Computation tree logic CTL

ML + path quantification + temporal operators on paths CTL is a very important logic for hardware verification. Good balance between expressive power and algorithmic manageability

  • A P U Q

≡ (∀ paths) (P until Q)

  • E G P

≡ (∃ path) always P

  • A F P

≡ (∀ paths) eventually P

  • A G A F P

≡ (∀ paths) always (∀ paths) eventually P ≡ (∀ paths) infinitely often P

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-43
SLIDE 43

µ µ: modal µ

µ µ-calculus

ML + least and greatest fixed points For any definable monotone relational operator Fφ : X → {w : φ(X) true at w} make also the least and the greatest fixed point of Fφ definable: K, w | = µX.φ ⇐ ⇒ w ∈

  • {X : Fφ(X) = X}

(least fixed point) K, w | = νX.φ ⇐ ⇒ w ∈

  • {X : Fφ(X) = X}

(greatest fixed point)

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-44
SLIDE 44

Lµ: Examples

  • K, w |

= νX . aX ⇐ ⇒ there is an infinite a-path from w in K K, w | = µX . P ∨ [a]X ⇐ ⇒ every infinite a-path from w eventually hits P

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-45
SLIDE 45

Lµ: Examples

  • K, w |

= νX . aX ⇐ ⇒ there is an infinite a-path from w in K K, w | = µX . P ∨ [a]X ⇐ ⇒ every infinite a-path from w eventually hits P

  • Two player game on graph G = (V, E).

Players alternate, moves along edges, who cannot move, loses. Player 0 has winning strategy for game G from position w ⇐ ⇒ G, w | = µX . ♦X

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-46
SLIDE 46

Lµ: Examples

  • K, w |

= νX . aX ⇐ ⇒ there is an infinite a-path from w in K K, w | = µX . P ∨ [a]X ⇐ ⇒ every infinite a-path from w eventually hits P

  • Two player game on graph G = (V, E).

Players alternate, moves along edges, who cannot move, loses. Player 0 has winning strategy for game G from position w ⇐ ⇒ G, w | = µX . ♦X

  • K, w |

= νX µY . ♦((P ∧ X) ∨ Y) ⇐ ⇒

  • n some path from w, P occurs infinitely often

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-47
SLIDE 47

Importance of CTL and modal µ-calculus

  • ML

⊆ CTL ⊆ Lµ

  • µ-calculus encompasses most of the popular logics used in hardware

verification: LTL, CTL, CTL∗, PDL,. . . , and also many logics from

  • ther fields: game logic, description logics, etc.
  • reasonably good algorithmic properties:
  • satisfiability problem decidable (E-complete)
  • efficient model checking for CTL and other important fragments
  • f µ-calculus
  • automata-based algorithms
  • nice model-theoretic properties:
  • finite model property
  • tree model property
  • Lµ is the bisimulation-invariant fragment of MSO

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-48
SLIDE 48

Summery: properties of modal logics

The basic modal logic ML has good algorithmic and model-theoretic properties, but for most applications in computer science, it is not expressive enough

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-49
SLIDE 49

Summery: properties of modal logics

The basic modal logic ML has good algorithmic and model-theoretic properties, but for most applications in computer science, it is not expressive enough There are numerous modal logics, that extend ML by recursion mechanisms and other features. These extensions are practically important because the provide the necessary expressive power for applications, while preserving the good algorithmic properties. Of particular importance for theoretical studies: modal µ-calculus (modal fixed point logic)

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-50
SLIDE 50

Summery: properties of modal logics

The basic modal logic ML has good algorithmic and model-theoretic properties, but for most applications in computer science, it is not expressive enough There are numerous modal logics, that extend ML by recursion mechanisms and other features. These extensions are practically important because the provide the necessary expressive power for applications, while preserving the good algorithmic properties. Of particular importance for theoretical studies: modal µ-calculus (modal fixed point logic)

  • Question. (Vardi 96)

Why have modal logics so robust decidability properties ?

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-51
SLIDE 51

Bounded variable logics

FOk: relational first-order logic with only k variables

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-52
SLIDE 52

Bounded variable logics

FOk: relational first-order logic with only k variables we may re-use variables: “there is a path of length 17” ∈ FO2 ∃x∃y(Exy ∧ ∃x(Eyx ∧ ∃y(Exy ∧ . . . . . . ∃yExy )· · · )))

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-53
SLIDE 53

Bounded variable logics

FOk: relational first-order logic with only k variables we may re-use variables: “there is a path of length 17” ∈ FO2 ∃x∃y(Exy ∧ ∃x(Eyx ∧ ∃y(Exy ∧ . . . . . . ∃yExy )· · · ))) Note: instead of the number of variables, we can restrict the width width(ψ): maximal number of free variables in subformulae of ψ

  • Proposition. FOk ≡ {ψ ∈ FO : width(ψ) ≤ k}

Proposition. Sat(FOk) is undecidable for all k ≥ 3 indeed, even the ∀∃∀-prefix class is undecidable Question: What about FO2 ?

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-54
SLIDE 54

Decidability of FO2

Theorem (Mortimer 75) FO2 has the finite model property. Mortimer’s proof implies: every satisfiable ψ ∈ FO2 has a model with at most 22O(|ψ|) elements. = ⇒ Sat(FO2) ∈ 2-N

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-55
SLIDE 55

Decidability of FO2

Theorem (Mortimer 75) FO2 has the finite model property. Mortimer’s proof implies: every satisfiable ψ ∈ FO2 has a model with at most 22O(|ψ|) elements. = ⇒ Sat(FO2) ∈ 2-N Theorem (Lewis 80, Fürer 84) Sat(FO2) is N-hard. holds even for sentences of form ∀x∀y α ∧ ∀x∃y β (α and β quantifier-free), with only monadic predicates

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-56
SLIDE 56

Decidability of FO2

Theorem (Mortimer 75) FO2 has the finite model property. Mortimer’s proof implies: every satisfiable ψ ∈ FO2 has a model with at most 22O(|ψ|) elements. = ⇒ Sat(FO2) ∈ 2-N Theorem (Lewis 80, Fürer 84) Sat(FO2) is N-hard. holds even for sentences of form ∀x∀y α ∧ ∀x∃y β (α and β quantifier-free), with only monadic predicates Theorem (Grädel, Kolaitis, Vardi 97) Every satisfiable ψ ∈ FO2 has a model with at most 2O(|ψ|) elements. Corollary Sat(FO2) is N-complete

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-57
SLIDE 57

Modal logic and two-variable logic

ML is a fragment of FO2. The standard translation, taking ψ ∈ ML to ψ∗(x) ∈ FO does not need more than two variables: Pi − → Pix aψ − → ∃y(Eaxy ∧ ψ∗(y)) [a]ψ − → ∀y(Eaxy → ψ∗(y))

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-58
SLIDE 58

Modal logic and two-variable logic

ML is a fragment of FO2. The standard translation, taking ψ ∈ ML to ψ∗(x) ∈ FO does not need more than two variables: Pi − → Pix aψ − → ∃y(Eaxy ∧ ψ∗(y)) [a]ψ − → ∀y(Eaxy → ψ∗(y)) Traditionally the embedding into two-variable logic has been used as an explanation for the good algorithmic properties of modal logics. Is this explanation convincing ?

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-59
SLIDE 59

Modal logic and two-variable logic

ML is a fragment of FO2. The standard translation, taking ψ ∈ ML to ψ∗(x) ∈ FO does not need more than two variables: Pi − → Pix aψ − → ∃y(Eaxy ∧ ψ∗(y)) [a]ψ − → ∀y(Eaxy → ψ∗(y)) Traditionally the embedding into two-variable logic has been used as an explanation for the good algorithmic properties of modal logics. Is this explanation convincing ? Answer: No !!!

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-60
SLIDE 60

Stronger two-variable logics

Challenge: Extend FO2 in a similar way, as CTL and µ-calculus extend propositional modal logic. Are the resulting logics still decidable ? FO2

? ?

ML CTL Lµ

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-61
SLIDE 61

Stronger two-variable logics

TC2 = FO2 + transitive closures (TC φ)(x, y) CL2 = least common natural extension of CTL and FO2 FO2 + β(x, y)∗φ + [β(x, y)]∗φ LFP2 = FO2 monadic least and greatest fixed points [lfp Tx . φ(T, x)](x)

  • Theorem. (Grädel, Otto, Rosen)

Sat(TC2), Sat(CL2), and Sat(LFP2) are highly undecidable (Σ1

1-hard).

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-62
SLIDE 62

Two-variable logics

FO2 CL2 LFP2 TC2 . ML CTL Lµ Two-variable logics do not have the robust decidability properties

  • f modal logics.

Is there another explanation?

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-63
SLIDE 63

The guarded fragment of first-order logic (GF)

Fragment of first-order logic with only guarded quantification ∃y(α(x, y) ∧ φ(x, y)) ∀y(α(x, y) → φ(x, y)) with guards α : atomic formulae containing all free variables of φ

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-64
SLIDE 64

The guarded fragment of first-order logic (GF)

Fragment of first-order logic with only guarded quantification ∃y(α(x, y) ∧ φ(x, y)) ∀y(α(x, y) → φ(x, y)) with guards α : atomic formulae containing all free variables of φ Generalizes modal quantification: ML ⊆ GF ⊆ FO aφ ≡ ∃y(Eaxy ∧ φ(y)) [a]φ ≡ ∀y(Eaxy → φ(y))

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-65
SLIDE 65

Model-theoretic and algorithmic properties of GF

  • Satisfiability for GF is decidable

(Andréka, van Benthem, Németi)

  • GF has finite model property (Andréka, Hodkinson, Németi; Grädel)
  • GF has (generalized) tree model property:

every satisfiable formula has model of small tree width (Grädel)

  • Sat(GF) is 2E-complete

and E-complete for formulae of bounded width (Grädel)

  • Guarded logics have small model checking games:

G(A, ψ) = O(|ψ| · A) = ⇒ efficient game-based model checking algorithms

  • GF is invariant under guarded bisimulation

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-66
SLIDE 66

A thesis – and a challenge

Thesis: (Andréka, van Benthem, Németi) The guarded nature of quantification in modal logics is the real reason for their good algorithmic and model-theoretic properties.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-67
SLIDE 67

A thesis – and a challenge

Thesis: (Andréka, van Benthem, Németi) The guarded nature of quantification in modal logics is the real reason for their good algorithmic and model-theoretic properties. Results on GF provide some evidence for this thesis. Real test: algorithmic properties of stronger guarded logics than GF. Challenge: Extend GF in a similar way, as µ-calculus extends ML. Is the resulting guarded fixed-point logic still decidable ? Lµ

µ µ

?

LFP ML GF FO

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-68
SLIDE 68

A thesis – and a challenge

Thesis: (Andréka, van Benthem, Németi) The guarded nature of quantification in modal logics is the real reason for their good algorithmic and model-theoretic properties. Results on GF provide some evidence for this thesis. Real test: algorithmic properties of stronger guarded logics than GF. Challenge: Extend GF in a similar way, as µ-calculus extends ML. Is the resulting guarded fixed-point logic still decidable ? Lµ

µ µ

µ µ µGF LFP ML GF FO

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-69
SLIDE 69

Guarded fixed-point logic

µGF = GF + least and greatest fixed points

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-70
SLIDE 70

Guarded fixed-point logic

µGF = GF + least and greatest fixed points For every formula ψ(T, x1 . . . xk), where T is a k-ary relation variable,

  • ccuring only positive in ψ,

build formulae [lfp Tx . ψ](x) and [gfp Tx . ψ](x)

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-71
SLIDE 71

Guarded fixed-point logic

µGF = GF + least and greatest fixed points For every formula ψ(T, x1 . . . xk), where T is a k-ary relation variable,

  • ccuring only positive in ψ,

build formulae [lfp Tx . ψ](x) and [gfp Tx . ψ](x) On every structure A, ψ(T, x) defines monotone operator ψA : P(Ak) − → P(Ak) T − → {a : (A, T) | = ψ(T, a)} ψA has a least fixed point lfp(ψA) and a greatest fixed point gfp(ψA) A | = [lfp Tx . ψ(T, x)](a) :⇐ ⇒ a ∈ lfp(ψA) A | = [gfp Tx . ψ(T, x)](a) :⇐ ⇒ a ∈ gfp(ψA)

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-72
SLIDE 72

Guarded fixed point logic

Example. ψ := ∃xyFxy ∧ (∀xy . Fxy)∃zFyz ∧ (∀xy . Fxy) [lfp Wy . (∀x . Fxy)Wx]

  • (y)

{y : there is no infinite chain y ← y1 ← y2 ← · · · }

  • ψ is satisfiable:

(ω, <) | = ψ

  • ψ has no finite models

Proposition. µGF does not have the finite model property.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-73
SLIDE 73

Decidability of guarded fixed point logic

  • Theorem. (Grädel, Walukiewicz)

Sat(µGF) 2-E-complete, and E-complete for formulae of bounded width. same complexity bounds as for GF: no penalty for fixed points !

  • Proof. Relies on generalized tree model property:

Every satisfiable ψ ∈ µGF has a model of small tree width Reduction of Sat(µGF) to emptiness problem for certain automata (alternating two-way tree automata with parity acceptance condition).

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-74
SLIDE 74

Final remarks

The world of guarded logics is much richer than shown in this talk:

  • more liberal guardedness conditions: loosely guarded, clique guarded,

action guarded, packed logics

  • guarded fragments of other logics, e.g. GSO, Datalog LITE, . . .

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-75
SLIDE 75

Final remarks

The world of guarded logics is much richer than shown in this talk:

  • more liberal guardedness conditions: loosely guarded, clique guarded,

action guarded, packed logics

  • guarded fragments of other logics, e.g. GSO, Datalog LITE, . . .

While modal logics talk only about graphs, guarded logics are applicable to arbitrary relational structures. Many of the mathematical tools used for analysing modal logics have their counterpart in the world of guarded logics: bisimulation, automata, . . .

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic

slide-76
SLIDE 76

Final remarks

The world of guarded logics is much richer than shown in this talk:

  • more liberal guardedness conditions: loosely guarded, clique guarded,

action guarded, packed logics

  • guarded fragments of other logics, e.g. GSO, Datalog LITE, . . .

While modal logics talk only about graphs, guarded logics are applicable to arbitrary relational structures. Many of the mathematical tools used for analysing modal logics have their counterpart in the world of guarded logics: bisimulation, automata, . . .

  • Conclusion. Guarded logics provide a general and versatile family of

logical systems that generalise, and to a large extent explain the good algorithmic and model-theoretic properties of modal logics.

Erich Grädel Decidable Fragments of First-Order and Fixed-Point Logic