Fixed-Point Logics and Computation



Similar documents
Decidable Fragments of First-Order and Fixed-Point Logic

The Classes P and NP

CHAPTER 7 GENERAL PROOF SYSTEMS

Formal Verification and Linear-time Model Checking

Software Modeling and Verification

MATHEMATICS: CONCEPTS, AND FOUNDATIONS Vol. III - Logic and Computer Science - Phokion G. Kolaitis

Software Verification and Testing. Lecture Notes: Temporal Logics

Introduction to Logic in Computer Science: Autumn 2006

2. The Language of First-order Logic

CS510 Software Engineering

Logic in general. Inference rules and theorem proving

Path Querying on Graph Databases

ML for the Working Programmer

A Propositional Dynamic Logic for CCS Programs

CODING TRUE ARITHMETIC IN THE MEDVEDEV AND MUCHNIK DEGREES

First-Order Logics and Truth Degrees

(LMCS, p. 317) V.1. First Order Logic. This is the most powerful, most expressive logic that we will examine.

On the Decidability and Complexity of Query Answering over Inconsistent and Incomplete Databases

On the Modeling and Verification of Security-Aware and Process-Aware Information Systems

Testing LTL Formula Translation into Büchi Automata

Query Processing in Data Integration Systems

T Reactive Systems: Introduction and Finite State Automata

o-minimality and Uniformity in n 1 Graphs

How To Understand The Theory Of Hyperreals

Monitoring Metric First-order Temporal Properties

logic language, static/dynamic models SAT solvers Verified Software Systems 1 How can we model check of a program or system?

Diagonalization. Ahto Buldas. Lecture 3 of Complexity Theory October 8, Slides based on S.Aurora, B.Barak. Complexity Theory: A Modern Approach.

Research Note. Bi-intuitionistic Boolean Bunched Logic

Peer Data Exchange. ACM Transactions on Database Systems, Vol. V, No. N, Month 20YY, Pages 1 0??.

Algorithmic Software Verification

EQUATIONAL LOGIC AND ABSTRACT ALGEBRA * ABSTRACT

Journal of Mathematics Volume 1, Number 1, Summer 2006 pp

Schema Mappings and Data Exchange

Eastern Washington University Department of Computer Science. Questionnaire for Prospective Masters in Computer Science Students

Automated Theorem Proving - summary of lecture 1

Computational Logic and Cognitive Science: An Overview

P versus NP, and More

µz An Efficient Engine for Fixed points with Constraints

Lecture 1: Oracle Turing Machines

Which Semantics for Neighbourhood Semantics?

Lecture 2: Universality

Model Checking: An Introduction

P NP for the Reals with various Analytic Functions

Quantum and Non-deterministic computers facing NP-completeness

Model Checking II Temporal Logic Model Checking

6.080/6.089 GITCS Feb 12, Lecture 3

Non-deterministic Semantics and the Undecidability of Boolean BI

Parametric Domain-theoretic models of Linear Abadi & Plotkin Logic

Handout #1: Mathematical Reasoning

Summary Last Lecture. Automated Reasoning. Outline of the Lecture. Definition sequent calculus. Theorem (Normalisation and Strong Normalisation)

Complexity Theory. Jörg Kreiker. Summer term Chair for Theoretical Computer Science Prof. Esparza TU München

This asserts two sets are equal iff they have the same elements, that is, a set is determined by its elements.

Degrees of Truth: the formal logic of classical and quantum probabilities as well as fuzzy sets.

Bindings, mobility of bindings, and the -quantifier

Semantics and Verification of Software

Welcome to... Problem Analysis and Complexity Theory , 3 VU

Formal Verification of Software

Data Integration. Maurizio Lenzerini. Universitá di Roma La Sapienza

Software Model Checking. Equivalence Hierarchy

On the Relationship between Classes P and NP

Foundational Proof Certificates

Rigorous Software Development CSCI-GA

A logical approach to dynamic role-based access control

Automata and Formal Languages

CSE 135: Introduction to Theory of Computation Decidability and Recognizability

x < y iff x < y, or x and y are incomparable and x χ(x,y) < y χ(x,y).

M.S. Computer Science Program

SPARQL: Un Lenguaje de Consulta para la Web

How To Write A Program Verification And Programming Book

Static Program Transformations for Efficient Software Model Checking

The Model Checker SPIN

Introduction to NP-Completeness Written and copyright c by Jie Wang 1

DEFINABLE TYPES IN PRESBURGER ARITHMETIC

ON FUNCTIONAL SYMBOL-FREE LOGIC PROGRAMS

Consistent Query Answering in Databases Under Cardinality-Based Repair Semantics

3515ICT Theory of Computation Turing Machines

Turing Degrees and Definability of the Jump. Theodore A. Slaman. University of California, Berkeley. CJuly, 2005

Introduction to Automata Theory. Reading: Chapter 1

Theory of Computation Chapter 2: Turing Machines

Theoretical Computer Science (Bridging Course) Complexity

Mathematical Induction. Lecture 10-11

Formal Verification by Model Checking

CSC 373: Algorithm Design and Analysis Lecture 16

Cassandra. References:

Chapter 1. Computation theory

Analyzing First-order Role Based Access Control

Software Reliability: Runtime Verification

Repair Checking in Inconsistent Databases: Algorithms and Complexity

Transcription:

1 Fixed-Point Logics and Computation Symposium on the Unusual Effectiveness of Logic in Computer Science University of Cambridge

2 Mathematical Logic Mathematical logic seeks to formalise the process of mathematical reasoning and turn this process itself into a subject of mathematical enquiry. It investigates the relationships among: Structure Language Proof Proof-theoretic vs. Model-theoretic views of logic.

3 Computation as Logic If logic aims to reduce reasoning to symbol manipulation, On the one hand, computation theory provides a formalisation of symbol manipulation. On the other hand, the development of computing machines leads to logic engineering. The validities of first-order logic are r.e.-complete.

4 Proof Theory in Computation As all programs and data are strings of symbols in a formal system, one view sees all computation as inference. For instance, the functional programming view: Propositions are types. Programs are (constructive proofs). Computation is proof transformation.

5 Model Theory in Computation A model-theoretic view of computation aims to distinguish computational structures and languages used to talk about them. Data Structure Database Program/State Space Programming Language Query Language Specification Language The structures involved are rather different from those studied in classical model theory. Finite Model Theory.

6 First-Order Logic terms c, x, f(t 1,..., t a ) atomic formulas R(t 1,..., t a ), t 1 = t 2 boolean operations ϕ ψ, ϕ ψ, ϕ first-order quantifiers xϕ, xϕ Formulae are interpreted in structures: A = (A, R 1,..., R m, f 1,..., f n, c 1,..., c n )

7 Success of First-Order Logic First-order logic is very successful at its intended purpose, the formalisation of mathematics. Many natural mathematical theories can be expressed as first-order theories. These include set theory, fundamental to the foundations of mathematics. Gödel s completeness theorem guarantees that the consequences of these theories can be effectively obtained.

8 Finite Structures The completeness theorem fails when restricted to finite structures. The sentences of first-order logic, valid on finite structures are not recursively enumarable. (Trakhtenbrot 1950) On finite structures, first-order logic is both too strong and too weak.

9 First-Order Logic is too Strong For every finite structure A, there is a sentence ϕ A such that B = ϕ A if, and only if, B = A For any isomorphism-closed class of finite structures, there is a first-order theory that defines it.

10 First-Order Logic is too Weak For any first-order sentence ϕ, its class of finite models Mod F (ϕ) = {A A finite, and A = ϕ} is trivially decidable (in LogSpace). There are computationally easy classes that are not defined by any first-order sentence. The class of sets with an even number of elements. The class of graphs (V, E) that are connected.

11 Inductive Definitions In computing (and logic), many classes of structures are naturally defined inductively. viz. The definition of the terms and formulae of first-order logic. Includes definitions of syntax and semantics of most languages, of data structures (trees, lists, etc.), of arithmetic functions.

12 Definition by Fixed Point The collection of first-order terms can be defined as the least set containing all constants, all variables and such that f(t 1,..., t a ) is a term whenever t 1,..., t a are terms and f is a function symbol of arity a. The addition function is defined as the least function satisfying: x + 0 = x x + s(y) = s(x + y). In each case, the set defined is the least fixed point of a monotone operator on sets.

13 From Metalanguage to Language The logic LFP is formed by closing first-order logic under the rule: If ϕ is a formula, positive in the relational variable R, then so is [lfp R,x ϕ](t). The formula is read as: the tuple t is in the least fixed point of the operator that maps R to ϕ(r, x).

14 Connectivity The formula u v[lfp T,xy (x = y z(e(x, z) T (z, y)))](u, v) is satisfied in a graph (V, E) if, and only if, it is connected. The expressive power of LFP properly extends that of first-order logic.

15 Immerman-Vardi Theorem Consider finite structures with a distinguished relation < that is interpreted as a linear order of the universe. A class of finite ordered structures is definable by a sentence of LFP if, and only if, membership in the class is decidable by a deterministic Turing machine in polynomial time. (Immerman, Vardi 1982). In the absence of the order assumption, there are easily computable properties that are not definable in LFP.

16 Iterated Fixed Points The least fixed point of the operator defined by a formula ϕ(r, x) on a structure A can be obtained by an iterative process: R 0 = R m+1 = {a A, R m = ϕ[a/x]} There is a k such that if A has n elements, the fixed point is reached in at most n k stages. On infinite structures, we have to also take unions at limit stages.

17 Inflationary Fixed Point Logic If ϕ(r, x) is not necessarily positive in R, the following iterative process still gives an increasing sequence of stages: R 0 = R m+1 = R m {a A, R m = ϕ[a/x]} The limit of this sequence is the inflationary fixed point of the operator defined by ϕ. IFP is the set of formulae obtained by closing first-order logic under the formula formation rule: [ifp R,x ϕ](t).

18 LFP vs. IFP It is clear that every formula of LFP is equivalent to one of IFP. Every formula of IFP is equivalent, on finite structures, to one of LFP. (Gurevich-Shelah, 1986) The restriction to finite structures is not necessary. (Kreutzer, 2002)

19 Partial Fixed Point Logic For any formula ϕ(r, x) and structure A, we can define the iterative sequence of stages R 0 = R m+1 = {a A, R m = ϕ[a/x]}. This sequence is not necessarily increasing, and may or may not converge to a fixed point. The partial fixed point is the limit of this sequence if it exists, and otherwise. PFP is the set of formulae obtained by closing first-order logic under the formula formation rule: [pfp R,x ϕ](t).

20 Abiteboul-Vianu Theorem A class of finite ordered structures is definable by a sentence of PFP if, and only if, membership in the class is decidable by a deterministic Turing machine using a polynomial amount of space. Every formula of P F P is equivalent (on finite structures) to one of LFP if, and only if, every polynomial space decidable property is also decidable in polynomial time. (Abiteboul-Vianu 1995) Similar re-formulations of various complexity-theoretic questions (including the P vs. NP question) in terms of fixed-point logics.

21 State Transition Systems lacements A class of structures of great importance in verification are state transition systems, which are models of program behaviour. a q b b p, q p a q a b A = (S, (E a ) a A, (p) p P ), where A is a set of actions and P is a set of propositions.

22 Modal Logic The formulae of Hennessy-Milner logic are given by: T and F p (p P ) ϕ ψ; ϕ ψ; ϕ [a]ϕ; a ϕ (a A). For the semantics, note K, v = a ϕ iff for some w with v a w, we have K, w = ϕ. Dually for [a].

23 Modal µ-calculus Generally, logics more expressive than H-M are considered. The modal µ-calculus (L µ ) extends H-M with recursion (and extends a variety of other extensions, such as CTL, PDL, CTL ). An additional collection of variables X 1, X 2,... µx : ϕ is a formula if ϕ is a formula containing only positive occurrences of X. K, v = µx : ϕ iff v is in the least set X such that X ϕ in (K, X).

24 LFP and the µ-calculus Suppose ϕ is a formula of LFP with no more than k first-order variables (and no parameters to fixed-point operators). There is a formula ˆϕ of the L µ such that A = ϕ if, and only if, Â k = ˆϕ, where Âk is the transition system with states corresponding to k-tuples of A, k actions corresponding to substitutions, and propositions corresponding to the relations of A. This gives a computational equivalence between many problems of LFP and L µ.

25 IFP and the µ-calculus While every formula of IFP is equivalent to one of LFP, the translation does not preserve number of variables. Some of the desirable computational properties of L µ do not lift to IFP. Modal logic with an inflationary fixed point operator is more expressive than L µ.

26 Modal Fixed-Point Logics MIC the modal inflationary calculus. L µ MIC Finite Model Property Yes No Satisfiability Decidable Not Arithmetic Model-checking NP co-np PSPACE-complete Languages defined Regular Some context-sensitive all linear-time. (D., Grädel, Kreutzer 2001) Modal versions of partial and nondeterministic fixed-point logic can also be separated.

27 In Summary Model-theoretic methods concerned with studying the expressive power of logical languages. First-order logic does not occupy a central place. A variety of fixed-point extensions of first-order logic used to study complexity. Convergence of methods with fixed-point modal logics studied in verification. Fine structure of fixed-point logics can be studied in the modal context.