The Impact of Craig s Interpolation Theorem. in Computer Science

Size: px
Start display at page:

Download "The Impact of Craig s Interpolation Theorem. in Computer Science"

Transcription

1 The Impact of Craig s Interpolation Theorem in Computer Science Cesare Tinelli tinelli@cs.uiowa.edu The University of Iowa Berkeley, May 2007 p.1/28

2 The Role of Logic in Computer Science Mathematical logic is central to Computer Science Berkeley, May 2007 p.2/28

3 The Role of Logic in Computer Science Mathematical logic is central to Computer Science It provides formal foundations for Programming languages Relational databases Computational complexity Hardware design and validation Formal methods in software engineering Artificial Intelligence... Berkeley, May 2007 p.2/28

4 Craig s Interpolation Theorem in CS has had a strong and lasting impact in several CS areas, both at the theoretical and the practical level Berkeley, May 2007 p.3/28

5 Craig s Interpolation Theorem in CS has had a strong and lasting impact in several CS areas, both at the theoretical and the practical level has been generalized to many other logics used in CS (sorted, equational, modal, intuitionistic,... ) Berkeley, May 2007 p.3/28

6 Craig s Interpolation Theorem in CS has had a strong and lasting impact in several CS areas, both at the theoretical and the practical level has been generalized to many other logics used in CS (sorted, equational, modal, intuitionistic,... ) together with compactness, is considered a crucial property of any new logic for CS Berkeley, May 2007 p.3/28

7 Craig s Interpolation Theorem in CS has had a strong and lasting impact in several CS areas, both at the theoretical and the practical level has been generalized to many other logics used in CS (sorted, equational, modal, intuitionistic,... ) together with compactness, is considered a crucial property of any new logic for CS comes up in any formal method based on modular decomposition of complex systems Berkeley, May 2007 p.3/28

8 Craig s Interpolation Some applications: Hardware/software specification (Diaconescu et al., 93, Rosu & Goguen, 2000, Bicarregui et al., 2000) Berkeley, May 2007 p.4/28

9 Craig s Interpolation Some applications: Hardware/software specification (Diaconescu et al., 93, Rosu & Goguen, 2000, Bicarregui et al., 2000) Reasoning with large knowledge bases (Amir & McIlraith, 2005) Berkeley, May 2007 p.4/28

10 Craig s Interpolation Some applications: Hardware/software specification (Diaconescu et al., 93, Rosu & Goguen, 2000, Bicarregui et al., 2000) Reasoning with large knowledge bases (Amir & McIlraith, 2005) Type inference (Jhala et al., 2007) Berkeley, May 2007 p.4/28

11 Craig s Interpolation Some applications: Hardware/software specification (Diaconescu et al., 93, Rosu & Goguen, 2000, Bicarregui et al., 2000) Reasoning with large knowledge bases (Amir & McIlraith, 2005) Type inference (Jhala et al., 2007) Combination of theorem provers for different theories (Nelson& Oppen, 1979; Tinelli, 2003; Ghilardi, 2005) Berkeley, May 2007 p.4/28

12 Craig s Interpolation Some applications: Hardware/software specification (Diaconescu et al., 93, Rosu & Goguen, 2000, Bicarregui et al., 2000) Reasoning with large knowledge bases (Amir & McIlraith, 2005) Type inference (Jhala et al., 2007) Combination of theorem provers for different theories (Nelson& Oppen, 1979; Tinelli, 2003; Ghilardi, 2005) Model checking of finite- and infinite-state systems (McMillan, 2003, Henzinger et al., 2004) Berkeley, May 2007 p.4/28

13 Craig s Interpolation Some applications: Hardware/software specification (Diaconescu et al., 93, Rosu & Goguen, 2000, Bicarregui et al., 2000) Reasoning with large knowledge bases (Amir & McIlraith, 2005) Type inference (Jhala et al., 2007) Combination of theorem provers for different theories (Nelson& Oppen, 1979; Tinelli, 2003; Ghilardi, 2005) Model checking of finite- and infinite-state systems (McMillan, 2003, Henzinger et al., 2004) Berkeley, May 2007 p.5/28

14 The Essence of Craig s Interpolation for CS Craig s Interpolation: If ϕ 1 and ϕ 2 are inconsistent, there is a ϕ in their shared language such that ϕ 1 = ψ and ψ ϕ 2 is inconsistent. Berkeley, May 2007 p.6/28

15 The Essence of Craig s Interpolation for CS Craig s Interpolation: If ϕ 1 and ϕ 2 are inconsistent, there is a ϕ in their shared language such that ϕ 1 = ψ and ψ ϕ 2 is inconsistent. Intuitively, ψ is an abstraction of ϕ 1 from the viewpoint of ϕ 2 ; ψ summarizes and translates in the shared language why ϕ 1 is inconsistent with ϕ 2. Berkeley, May 2007 p.6/28

16 Part I: Craig Interpolation for Prover Combinations Berkeley, May 2007 p.7/28

17 Satisfiability Modulo Theories In some areas of Computer Science, one is interested in the satisfiability in a particular theory of certain classes of formulas. Berkeley, May 2007 p.8/28

18 Satisfiability Modulo Theories In some areas of Computer Science, one is interested in the satisfiability in a particular theory of certain classes of formulas. Microprocessors design: theory of equality, atoms like f(g(a,b),c) = g(c,a). Berkeley, May 2007 p.8/28

19 Satisfiability Modulo Theories In some areas of Computer Science, one is interested in the satisfiability in a particular theory of certain classes of formulas. Microprocessors design: theory of equality, atoms like f(g(a,b),c) = g(c,a). Timed automata, planning: theory of integers/reals, atoms like x y < 2. Berkeley, May 2007 p.8/28

20 Satisfiability Modulo Theories In some areas of Computer Science, one is interested in the satisfiability in a particular theory of certain classes of formulas. Microprocessors design: theory of equality, atoms like f(g(a,b),c) = g(c,a). Timed automata, planning: theory of integers/reals, atoms like x y < 2. Software verification/model checking: combination of theories, atoms like 5 + first((x + 2) :: l) = a[j] + 1. Berkeley, May 2007 p.8/28

21 Satisfiability Modulo Theories In some areas of Computer Science, one is interested in the satisfiability in a particular theory of certain classes of formulas. Microprocessors design: theory of equality, atoms like f(g(a,b),c) = g(c,a). Timed automata, planning: theory of integers/reals, atoms like x y < 2. Software verification/model checking: combination of theories, atoms like 5 + first((x + 2) :: l) = a[j] + 1. We refer to this general problem as Satisfiability Modulo Theories, or SMT. Berkeley, May 2007 p.8/28

22 Satisfiability Modulo Theories In some areas of Computer Science, one is interested in the satisfiability in a particular theory of certain classes of formulas. Microprocessors design: theory of equality, atoms like f(g(a,b),c) = g(c,a). Timed automata, planning: theory of integers/reals, atoms like x y < 2. Software verification/model checking: combination of theories, atoms like 5 + first((x + 2) :: l) = a[j] + 1. We refer to this general problem as Satisfiability Modulo Theories, or SMT. Berkeley, May 2007 p.8/28

23 Satisfiability Modulo Theories Let T be a first-order theory of signature Σ and L Σ a class of Σ-formulas. Berkeley, May 2007 p.9/28

24 Satisfiability Modulo Theories Let T be a first-order theory of signature Σ and L Σ a class of Σ-formulas. The T -satisfiability problem for L Σ consists in deciding for any formula ϕ[x] L Σ whether T { x.ϕ} is satisfiable. Berkeley, May 2007 p.9/28

25 Satisfiability Modulo Theories Let T be a first-order theory of signature Σ and L Σ a class of Σ-formulas. The T -satisfiability problem for L Σ consists in deciding for any formula ϕ[x] L Σ whether T { x.ϕ} is satisfiable. Some relevant theories in SMT Equality with Uninterpreted Function Symbols Linear Arithmetic (Real and Integer) Arrays (i.e., updatable maps) Bit vectors Finite trees Berkeley, May 2007 p.9/28

26 Solving Combined SMT Problems For many theories T and some formula classes L there exist (efficient) decision procedures for the T -satisfiability problem for L Σ. Berkeley, May 2007 p.10/28

27 Solving Combined SMT Problems For many theories T and some formula classes L there exist (efficient) decision procedures for the T -satisfiability problem for L Σ. Problem: In practice, we often need to deal with mixed formulas in L Σ 1 Σ n modulo a combined theory T 1 T n. Berkeley, May 2007 p.10/28

28 Solving Combined SMT Problems For many theories T and some formula classes L there exist (efficient) decision procedures for the T -satisfiability problem for L Σ. Problem: In practice, we often need to deal with mixed formulas in L Σ 1 Σ n modulo a combined theory T 1 T n. In that case, it helps if we can combine modularly decision procedures for the individual T 1,...,T n into a decision procedure for T 1 T n. Berkeley, May 2007 p.10/28

29 The General Combined Satisfiability Problem For i = 1, 2, let T i a first-order theory of signature Σ i and let L Σ i be a class of Σ i -formulas such that the T i -satisfiability problem for L Σ i is decidable. Berkeley, May 2007 p.11/28

30 The General Combined Satisfiability Problem For i = 1, 2, let T i a first-order theory of signature Σ i and let L Σ i be a class of Σ i -formulas such that the T i -satisfiability problem for L Σ i is decidable. Combination methods apply to languages L Σ 1 Σ 2 that are effectively purifiable for T 1 and T 2 Berkeley, May 2007 p.11/28

31 The General Combined Satisfiability Problem For i = 1, 2, let T i a first-order theory of signature Σ i and let L Σ i be a class of Σ i -formulas such that the T i -satisfiability problem for L Σ i is decidable. Combination methods apply to languages L Σ 1 Σ 2 that are effectively purifiable for T 1 and T 2, i.e., such that the (T 1 T 2 )-satisfiability of a formula ϕ L Σ 1 Σ 2 is effectively reducible to the (T 1 T 2 )-satisfiability of formulas of the form ϕ 1 ϕ 2 with ϕ i L Σ i for i = 1, 2. Berkeley, May 2007 p.11/28

32 The General Combined Satisfiability Problem For i = 1, 2, let T i a first-order theory of signature Σ i and let L Σ i be a class of Σ i -formulas such that the T i -satisfiability problem for L Σ i is decidable. Combination methods apply to languages L Σ 1 Σ 2 that are effectively purifiable for T 1 and T 2 Observation: For purifiable languages, (T 1 T 2 )-satisfiability is at heart an interpolation problem. Berkeley, May 2007 p.11/28

33 Combined Satisfiability as Interpolation For i = 1, 2, let T i -be a Σ i -theory and ϕ i [x i ] a Σ i -formula. ϕ 1 ϕ 2 is (T 1 T 2 )-unsatisfiable Berkeley, May 2007 p.12/28

34 Combined Satisfiability as Interpolation For i = 1, 2, let T i -be a Σ i -theory and ϕ i [x i ] a Σ i -formula. ϕ 1 ϕ 2 is (T 1 T 2 )-unsatisfiable iff T 1,ϕ 1,T 2,ϕ 2 = Berkeley, May 2007 p.12/28

35 Combined Satisfiability as Interpolation For i = 1, 2, let T i -be a Σ i -theory and ϕ i [x i ] a Σ i -formula. ϕ 1 ϕ 2 is (T 1 T 2 )-unsatisfiable iff T 1,ϕ 1,T 2,ϕ 2 = iff, by an application of Craig s interpolation theorem, there is a (Σ 1 Σ 2 )-formula ϕ(x) with x = x 1 x 2 s.t. T 1,ϕ 1 = ϕ and T 2,ϕ 2,ϕ = Berkeley, May 2007 p.12/28

36 Combined Satisfiability as Interpolation For i = 1, 2, let T i -be a Σ i -theory and ϕ i [x i ] a Σ i -formula. ϕ 1 ϕ 2 is (T 1 T 2 )-unsatisfiable iff T 1,ϕ 1,T 2,ϕ 2 = iff, by an application of Craig s interpolation theorem, there is a (Σ 1 Σ 2 )-formula ϕ(x) with x = x 1 x 2 s.t. T 1,ϕ 1 = ϕ and T 2,ϕ 2,ϕ = The problem then is just computing the interpolant ϕ. Berkeley, May 2007 p.12/28

37 Combined Satisfiability as Interpolation For i = 1, 2, let T i -be a Σ i -theory and ϕ i [x i ] a Σ i -formula. ϕ 1 ϕ 2 is (T 1 T 2 )-unsatisfiable iff T 1,ϕ 1,T 2,ϕ 2 = iff, by an application of Craig s interpolation theorem, there is a (Σ 1 Σ 2 )-formula ϕ(x) with x = x 1 x 2 s.t. T 1,ϕ 1 = ϕ and T 2,ϕ 2,ϕ = All existing combination methods are in essence ways to compute ϕ, possibly incrementally, in finite time, without building a direct proof that T 1,ϕ 1,T 2,ϕ 2 = Berkeley, May 2007 p.12/28

38 Combined Satisfiability as Interpolation For i = 1, 2, let T i -be a Σ i -theory and ϕ i [x i ] a Σ i -formula. ϕ 1 ϕ 2 is (T 1 T 2 )-unsatisfiable iff T 1,ϕ 1,T 2,ϕ 2 = iff, by an application of Craig s interpolation theorem, there is a (Σ 1 Σ 2 )-formula ϕ(x) with x = x 1 x 2 s.t. T 1,ϕ 1 = ϕ and T 2,ϕ 2,ϕ = Historical note: The original correctness proof of the foremost combination method for SMT (Nelson & Oppen, 1979) relies directly on Craig s interpolation theorem. Berkeley, May 2007 p.12/28

39 An Effectively Purifiable Language The class of quantifier-free formulas is effectively purifiable for any Σ 1 and Σ 2 Berkeley, May 2007 p.13/28

40 An Effectively Purifiable Language The class of quantifier-free formulas is effectively purifiable for any Σ 1 and Σ 2 : Given a quantifier-free (Σ 1 Σ 2 )-formula ϕ we can compute Σ 1 -qffs ϕ ϕn 1 and Σ 2-qffs ϕ ϕn 2 s.t. for every (Σ 1 Σ 2 )-structure A, ϕ is satisfiable in A iff ϕ j 1 ϕ j 2 is satisfiable in A for some j. Berkeley, May 2007 p.13/28

41 An Effectively Purifiable Language The class of quantifier-free formulas is effectively purifiable for any Σ 1 and Σ 2. Moreover, the T -satisfiability problem for qffs is decidable for a very large number of theories of interest in CS. Berkeley, May 2007 p.13/28

42 An Effectively Purifiable Language The class of quantifier-free formulas is effectively purifiable for any Σ 1 and Σ 2. Moreover, the T -satisfiability problem for qffs is decidable for a very large number of theories of interest in CS. Let s focus then on quantifier-free formulas. Berkeley, May 2007 p.13/28

43 An Effectively Purifiable Language The class of quantifier-free formulas is effectively purifiable for any Σ 1 and Σ 2. Moreover, the T -satisfiability problem for qffs is decidable for a very large number of theories of interest in CS. Let s focus then on quantifier-free formulas. For simplicity, but wlog, let s consider only combined satisfiability problems of the form Γ 1 Γ 2 where each Γ i is a finite set of Σ i -literals (i.e., atomic formulas and negated atomic formulas) Berkeley, May 2007 p.13/28

44 The Combined Satisfiability Problem for QFFs For i = 1, 2, let T i -be a Σ i -theory and Γ i [x i ] a set of Σ i -literals. Berkeley, May 2007 p.14/28

45 The Combined Satisfiability Problem for QFFs For i = 1, 2, let T i -be a Σ i -theory and Γ i [x i ] a set of Σ i -literals. Let ψ 1,...,ψ n be (Σ 1 Σ 2 )-formulas over x = x 1 x 2. Berkeley, May 2007 p.14/28

46 The Combined Satisfiability Problem for QFFs For i = 1, 2, let T i -be a Σ i -theory and Γ i [x i ] a set of Σ i -literals. Let ψ 1,...,ψ n be (Σ 1 Σ 2 )-formulas over x = x 1 x 2. ψ 1,...,ψ n is an interpolation chain if for each k = 1,...,m there is an i {1, 2} s.t. T i, Γ i,ψ 1,...,ψ k 1 = ψ k Berkeley, May 2007 p.14/28

47 The Combined Satisfiability Problem for QFFs For i = 1, 2, let T i -be a Σ i -theory and Γ i [x i ] a set of Σ i -literals. Let ψ 1,...,ψ n be (Σ 1 Σ 2 )-formulas over x = x 1 x 2. ψ 1,...,ψ n is an interpolation chain if for each k = 1,...,m there is an i {1, 2} s.t. Under the right conditions: T i, Γ i,ψ 1,...,ψ k 1 = ψ k 1. Γ 1 Γ 2 is (T 1 T 2 )-unsatisfiable iff there is an interpolation chain ψ 1,...,ψ m with ψ n =, and 2. each ψ i is a disjunction of atoms and is computable using one of the decision procedures for T 1 and T 2. Berkeley, May 2007 p.14/28

48 The Combined Satisfiability Problem for QFFs Sufficient conditions on T 1 and T 2 (Ghilardi, 2005) Where Σ 0 = Σ 1 Σ 2, there is a universal Σ 0 -theory T 0 that is: Berkeley, May 2007 p.15/28

49 The Combined Satisfiability Problem for QFFs Sufficient conditions on T 1 and T 2 (Ghilardi, 2005) Where Σ 0 = Σ 1 Σ 2, there is a universal Σ 0 -theory T 0 that is: 1. T i -compatible for i = 1, 2: (a) is enclosed in T i (b) admits a model completion T 0 (c) every model of T i embeds into a model of T i T 0 Berkeley, May 2007 p.15/28

50 The Combined Satisfiability Problem for QFFs Sufficient conditions on T 1 and T 2 (Ghilardi, 2005) Where Σ 0 = Σ 1 Σ 2, there is a universal Σ 0 -theory T 0 that is: 1. T i -compatible for i = 1, 2: (a) is enclosed in T i (b) admits a model completion T 0 (c) every model of T i embeds into a model of T i T 0 2. effectively locally finite: For any x we can compute a set {t 1,...t n } of Σ 0 -terms over x s.t. every Σ 0 -term t[x] is T 0 -equivalent to some t i Berkeley, May 2007 p.15/28

51 The Combined Satisfiability Problem for QFFs Sufficient conditions on T 1 and T 2 (Ghilardi, 2005) Where Σ 0 = Σ 1 Σ 2, there is a universal Σ 0 -theory T 0 that is: 1. T i -compatible for i = 1, 2: (a) is enclosed in T i (b) admits a model completion T 0 (c) every model of T i embeds into a model of T i T 0 2. effectively locally finite: For any x we can compute a set {t 1,...t n } of Σ 0 -terms over x s.t. every Σ 0 -term t[x] is T 0 -equivalent to some t i Nelson-Oppen Method: Σ 0 = and each T i is stably infinite. Berkeley, May 2007 p.15/28

52 Stably Infinite Theories A Σ-theory T is stably infinite iff every quantifier-free T -satisfiable formula is satisfiable in an infinite model of T. Berkeley, May 2007 p.16/28

53 Stably Infinite Theories A Σ-theory T is stably infinite iff every quantifier-free T -satisfiable formula is satisfiable in an infinite model of T. Many interesting theories are stably infinite: Theories of an infinite structure. Complete theories with an infinite model. Convex theories with no trivial models. Berkeley, May 2007 p.16/28

54 Stably Infinite Theories A Σ-theory T is stably infinite iff every quantifier-free T -satisfiable formula is satisfiable in an infinite model of T. Many interesting theories are stably infinite: Theories of an infinite structure. Complete theories with an infinite model. Convex theories with no trivial models. But others are not: Theories of a finite structure. Theories with models of bounded cardinality. Some equational/horn theories. Berkeley, May 2007 p.16/28

55 Beyond Stable Infiniteness Recent extensions of the Nelson-Oppen method partially lift the stable infiniteness requirement (Tinelli & Zarba, 2004; Ranise et al., 2005) Berkeley, May 2007 p.17/28

56 Beyond Stable Infiniteness Recent extensions of the Nelson-Oppen method partially lift the stable infiniteness requirement (Tinelli & Zarba, 2004; Ranise et al., 2005) The trick is to require the decision procedures to also exchange finite-cardinality constraints. Berkeley, May 2007 p.17/28

57 Beyond Stable Infiniteness Recent extensions of the Nelson-Oppen method partially lift the stable infiniteness requirement (Tinelli & Zarba, 2004; Ranise et al., 2005) The trick is to require the decision procedures to also exchange finite-cardinality constraints. These extensions are still instances of Craig interpolation. Berkeley, May 2007 p.17/28

58 Beyond Stable Infiniteness Recent extensions of the Nelson-Oppen method partially lift the stable infiniteness requirement (Tinelli & Zarba, 2004; Ranise et al., 2005) The trick is to require the decision procedures to also exchange finite-cardinality constraints. These extensions are still instances of Craig interpolation. However, they now consider interpolation chains that also include quantified formulas like x,y,z. x = y x = z Berkeley, May 2007 p.17/28

59 The Combined Satisfiability Problem for QFFs SMT provers based on some variant of the Nelson-Oppen method are widely used in academia and industry. Berkeley, May 2007 p.18/28

60 The Combined Satisfiability Problem for QFFs SMT provers based on some variant of the Nelson-Oppen method are widely used in academia and industry. The generalized results by Ghilardi have several additional applications. For instance, they can be used in the combination of modals logics. Berkeley, May 2007 p.18/28

61 Part II: Craig Interpolation in Model Checking Berkeley, May 2007 p.19/28

62 Modeling Computer Systems Software or hardware systems can be often modeled as state transition systems M = (S,I,R,L) where S is a set of states I S is a set of initial states R S S is a total transition relation L : S 2 At is a labelling function into sets of atomic formulas in some base logic Berkeley, May 2007 p.20/28

63 Modeling Computer Systems Software or hardware systems can be often modeled as state transition systems M = (S,I,R,L) where S is a set of states I S is a set of initial states R S S is a total transition relation L : S 2 At is a labelling function into sets of atomic formulas in some base logic Note: M is a Kripke model (in the sense modal logic). Berkeley, May 2007 p.20/28

64 Model Checking Software or hardware systems can be often modeled as state transition systems, or model, M = (S,I,R,L) Berkeley, May 2007 p.21/28

65 Model Checking Software or hardware systems can be often modeled as state transition systems, or model, M = (S,I,R,L) Most system correctness properties can be expressed as a safety property for a suitable model M: M is safe wrt a property ψ if no state R-reachable from an initial state satisfies ψ. Berkeley, May 2007 p.21/28

66 Model Checking Software or hardware systems can be often modeled as state transition systems, or model, M = (S,I,R,L) Most system correctness properties can be expressed as a safety property for a suitable model M: M is safe wrt a property ψ if no state R-reachable from an initial state satisfies ψ. Model checking is one of the most successful areas of formal verification. Model checking technologies are now routinely used in industry. Berkeley, May 2007 p.21/28

67 Symbolic Model Checking A model M = (S, I, R, L:S 2 At ) can be expressed symbolically by fixing a set X of variables and a first-order Σ-structure A with universe A. Berkeley, May 2007 p.22/28

68 Symbolic Model Checking A model M = (S, I, R, L:S 2 At ) can be expressed symbolically by fixing a set X of variables and a first-order Σ-structure A with universe A. Then: Every state σ S is a mapping in [X A] At is a set of atomic Σ-formulas over X I is characterized by a qff ϕ I [x] s.t. σ I iff A = ϕ I [σ] R is characterized by a qff ϕ R [x,x ] such that (σ,σ ) R iff A = ϕ R [σ,σ ] Notation: if x = x 1,...,x n then ψ[σ] = ψ[σ(x 1 ),...,σ(x n )] Berkeley, May 2007 p.22/28

69 Some Terminology A state σ is reachable (in k steps) iff there is a sequence of states σ 0,...,σ k = σ such that A = ϕ I [σ 0 ] ϕ R [σ 0,σ 1 ] ϕ R [σ k 1,σ k ] A formula ψ[x] is reachable (in k steps) from a formula ϕ[x] iff there is a sequence of states σ 0,...,σ k = σ s.t. A = ϕ[σ 0 ] ϕ R [σ 0,σ 1 ] ϕ R [σ k 1,σ k ] ψ[σ k ] Berkeley, May 2007 p.23/28

70 Some Terminology A state σ is reachable (in k steps) iff there is a sequence of states σ 0,...,σ k = σ such that A = ϕ I [σ 0 ] ϕ R [σ 0,σ 1 ] ϕ R [σ k 1,σ k ] A formula ψ[x] is reachable (in k steps) from a formula ϕ[x] iff there is a sequence of states σ 0,...,σ k = σ s.t. A = ϕ[σ 0 ] ϕ R [σ 0,σ 1 ] ϕ R [σ k 1,σ k ] ψ[σ k ] Observation: M is safe wrt ψ iff ψ is not reachable from ϕ I iff ϕ I [x 0 ] ϕ R [x 0,x 1 ] ϕ R [x k 1,x k ] ψ[x k ] is unsatisfiable in A for all k 0. Berkeley, May 2007 p.23/28

71 Strongest Inductive Invariant For a large class of systems M, we can compute from ϕ I and ϕ R the strongest inductive invariant ϕ IR for M: Berkeley, May 2007 p.24/28

72 Strongest Inductive Invariant For a large class of systems M, we can compute from ϕ I and ϕ R the strongest inductive invariant ϕ IR for M: for all σ S, A = ϕ IR [σ] exactly when σ is reachable. Berkeley, May 2007 p.24/28

73 Strongest Inductive Invariant For a large class of systems M, we can compute from ϕ I and ϕ R the strongest inductive invariant ϕ IR for M: for all σ S, A = ϕ IR [σ] exactly when σ is reachable. Then, to check that M is safe wrt to a property ψ it suffices to check that ϕ IR [x] ψ[x] is unsatisfiable in A. Berkeley, May 2007 p.24/28

74 Strongest Inductive Invariant For a large class of systems M, we can compute from ϕ I and ϕ R the strongest inductive invariant ϕ IR for M: for all σ S, A = ϕ IR [σ] exactly when σ is reachable. Then, to check that M is safe wrt to a property ψ it suffices to check that ϕ IR [x] ψ[x] is unsatisfiable in A. This can be completely automated if the satisfiability in A of qffs is decidable. Berkeley, May 2007 p.24/28

75 Strongest Inductive Invariant For a large class of systems M, we can compute from ϕ I and ϕ R the strongest inductive invariant ϕ IR for M: for all σ S, A = ϕ IR [σ] exactly when σ is reachable. Then, to check that M is safe wrt to a property ψ it suffices to check that ϕ IR [x] ψ[x] is unsatisfiable in A. This can be completely automated if the satisfiability in A of qffs is decidable. Problem: Computing ϕ IR can be very expensive. Berkeley, May 2007 p.24/28

76 Strongest Inductive Invariant For a large class of systems M, we can compute from ϕ I and ϕ R the strongest inductive invariant ϕ IR for M: for all σ S, A = ϕ IR [σ] exactly when σ is reachable. Then, to check that M is safe wrt to a property ψ it suffices to check that ϕ IR [x] ψ[x] is unsatisfiable in A. This can be completely automated if the satisfiability in A of qffs is decidable. Problem: Computing ϕ IR can be very expensive. Good news: Craig interpolation can be used to reduce this cost. Berkeley, May 2007 p.24/28

77 Computing Strongest Inductive Invariants When ϕ IR is computable it is because it is the least fix point of an image operator Img : QFF QFF where Img(ϕ[x]) is the strongest (wrt = A, entailment in A) qff ϕ p [x] such that ϕ[x] ϕ R [x,x ] = A ϕ p [x ] ϕ IR = i 0 ϕi with ϕ 0 = ϕ I and ϕ i+1 = ϕ i Img(ϕ i ) Berkeley, May 2007 p.25/28

78 Computing Strongest Inductive Invariants When ϕ IR is computable it is because it is the least fix point of an image operator Img : QFF QFF where Img(ϕ[x]) is the strongest (wrt = A, entailment in A) qff ϕ p [x] such that ϕ[x] ϕ R [x,x ] = A ϕ p [x ] ϕ IR = i 0 ϕi with ϕ 0 = ϕ I and ϕ i+1 = ϕ i Img(ϕ i ) Computing Img, and so ϕ IR, is expensive because it involves quantifier elimination. Berkeley, May 2007 p.25/28

79 Computing Strongest Inductive Invariants When ϕ IR is computable it is because it is the least fix point of an image operator Img : QFF QFF where Img(ϕ[x]) is the strongest (wrt = A, entailment in A) qff ϕ p [x] such that ϕ[x] ϕ R [x,x ] = A ϕ p [x ] ϕ IR = i 0 ϕi with ϕ 0 = ϕ I and ϕ i+1 = ϕ i Img(ϕ i ) Computing Img, and so ϕ IR, is expensive because it involves quantifier elimination. However, Img might be much stronger than needed for proving that a property ψ is unreachable. Berkeley, May 2007 p.25/28

80 Computing Strongest Inductive Invariants When ϕ IR is computable it is because it is the least fix point of an image operator Img : QFF QFF where Img(ϕ[x]) is the strongest (wrt = A, entailment in A) qff ϕ p [x] such that ϕ[x] ϕ R [x,x ] = A ϕ p [x ] ϕ IR = i 0 ϕi with ϕ 0 = ϕ I and ϕ i+1 = ϕ i Img(ϕ i ) Computing Img, and so ϕ IR, is expensive because it involves quantifier elimination. Idea (McMillan, 2003): use interpolation to compute for each i 0 an adequate over-approximation ˆϕ i of ϕ i wrt ψ Berkeley, May 2007 p.25/28

81 How to compute ˆϕ IR for ψ incrementally Let k > 0, ˆϕ 0 = ϕ I [x] Base Case) Let: Γ 1 = ˆϕ 0 [x 0 ] ϕ R [x 0,x 1 ] Γ 2 = ϕ R [x 1,x 2 ] ϕ R [x k 1,x k ] (ψ[x 1 ] ψ[x k ]) Berkeley, May 2007 p.26/28

82 How to compute ˆϕ IR for ψ incrementally Let k > 0, ˆϕ 0 = ϕ I [x] Base Case) Let: Γ 1 = ˆϕ 0 [x 0 ] ϕ R [x 0,x 1 ] Γ 2 = ϕ R [x 1,x 2 ] ϕ R [x k 1,x k ] (ψ[x 1 ] ψ[x k ]) If Γ 1 Γ 2 is satisfiable in A, we are done: ψ is reachable from ϕ I in 1 to k steps. Berkeley, May 2007 p.26/28

83 How to compute ˆϕ IR for ψ incrementally Let k > 0, ˆϕ 0 = ϕ I [x] Base Case) Let: Γ 1 = ˆϕ 0 [x 0 ] ϕ R [x 0,x 1 ] Γ 2 = ϕ R [x 1,x 2 ] ϕ R [x k 1,x k ] (ψ[x 1 ] ψ[x k ]) If Γ 1 Γ 2 is unsatisfiable in A, compute an interpolant Γ[x 1 ] (wrt to = A ). Berkeley, May 2007 p.26/28

84 How to compute ˆϕ IR for ψ incrementally Let k > 0, ˆϕ 0 = ϕ I [x] Base Case) Let: Γ 1 = ˆϕ 0 [x 0 ] ϕ R [x 0,x 1 ] Γ 2 = ϕ R [x 1,x 2 ] ϕ R [x k 1,x k ] (ψ[x 1 ] ψ[x k ]) If Γ 1 Γ 2 is unsatisfiable in A, compute an interpolant Γ[x 1 ] (wrt to = A ). Γ[x] is an adequate over-approximation of Img(ϕ 0 ): Γ 1 = A Γ[x 1 ] = every state reachable from ϕ I is in Γ Γ Γ 2 = A = no state in Γ leads to ψ within k steps Berkeley, May 2007 p.26/28

85 How to compute ˆϕ IR for ψ incrementally Let k > 0, ˆϕ 0 = ϕ I [x] Base Case) Let: Γ 1 = ˆϕ 0 [x 0 ] ϕ R [x 0,x 1 ] Γ 2 = ϕ R [x 1,x 2 ] ϕ R [x k 1,x k ] (ψ[x 1 ] ψ[x k ]) If Γ 1 Γ 2 is unsatisfiable in A, compute an interpolant Γ[x 1 ] (wrt to = A ). Γ[x] is an adequate over-approximation of Img(ϕ 0 ): Γ 1 = A Γ[x 1 ] = every state reachable from ϕ I is in Γ Γ Γ 2 = A = no state in Γ leads to ψ within k steps Set ˆϕ 1 = ˆϕ 0 [x] Γ[x] Berkeley, May 2007 p.26/28

86 How to compute ˆϕ IR for ψ incrementally Assume we have computed ˆϕ i for i > 0. Step case) Let Γ 1 = ˆϕ i [x 0 ] ϕ R [x 0,x 1 ] Γ 2 = ϕ R [x 1,x 2 ] ϕ R [x k 1,x k ] (ψ[x 1 ] ψ[x k ]) Berkeley, May 2007 p.27/28

87 How to compute ˆϕ IR for ψ incrementally Assume we have computed ˆϕ i for i > 0. Step case) Let Γ 1 = ˆϕ i [x 0 ] ϕ R [x 0,x 1 ] Γ 2 = ϕ R [x 1,x 2 ] ϕ R [x k 1,x k ] (ψ[x 1 ] ψ[x k ]) If Γ 1 Γ 2 is unsatisfiable in A, compute an interpolant Γ as before Let ˆϕ i+1 = ˆϕ i [x] Γ[x] Berkeley, May 2007 p.27/28

88 How to compute ˆϕ IR for ψ incrementally Assume we have computed ˆϕ i for i > 0. Step case) Let Γ 1 = ˆϕ i [x 0 ] ϕ R [x 0,x 1 ] Γ 2 = ϕ R [x 1,x 2 ] ϕ R [x k 1,x k ] (ψ[x 1 ] ψ[x k ]) If Γ 1 Γ 2 is satisfiable in A, ψ is reachable from ϕ I in i + 1 to i + k steps in the overapproximated closure of ϕ R So, the satisfying paths of states might not be paths in the original system M. Berkeley, May 2007 p.27/28

89 How to compute ˆϕ IR for ψ incrementally Assume we have computed ˆϕ i for i > 0. Step case) Let Γ 1 = ˆϕ i [x 0 ] ϕ R [x 0,x 1 ] Γ 2 = ϕ R [x 1,x 2 ] ϕ R [x k 1,x k ] (ψ[x 1 ] ψ[x k ]) If Γ 1 Γ 2 is satisfiable in A, ψ is reachable from ϕ I in i + 1 to i + k steps in the overapproximated closure of ϕ R So, the satisfying paths of states might not be paths in the original system M. Then, increase k by 1 and restart the whole process. Berkeley, May 2007 p.27/28

90 Thank you Berkeley, May 2007 p.28/28

Combining Decision Procedures

Combining Decision Procedures Combining Decision Procedures Ashish Tiwari tiwari@csl.sri.com http://www.csl.sri.com/. Computer Science Laboratory SRI International 333 Ravenswood Menlo Park, CA 94025 Combining Decision Procedures (p.1

More information

Combined Satisfiability Modulo Parametric Theories

Combined Satisfiability Modulo Parametric Theories Intel 07 p.1/39 Combined Satisfiability Modulo Parametric Theories Sava Krstić*, Amit Goel*, Jim Grundy*, and Cesare Tinelli** *Strategic CAD Labs, Intel **The University of Iowa Intel 07 p.2/39 This Talk

More information

WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008

WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008 WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008 WHAT I LL TALK ABOUT Propositional Logic Terminology, Satisfiability, Decision Procedure First-Order Logic Terminology, Background Theories Satisfiability

More information

Applications of Craig Interpolants in Model Checking

Applications of Craig Interpolants in Model Checking Applications of Craig Interpolants in Model Checking K. L. McMillan Cadence Berkeley Labs Abstract. A Craig interpolant for a mutually inconsistent pair of formulas (A, B) is a formula that is (1) implied

More information

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing Cesare Tinelli tinelli@cs.uiowa.edu Department of Computer Science The University of Iowa Report No. 02-03 May 2002 i Cooperation

More information

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing

Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing Cooperation of Background Reasoners in Theory Reasoning by Residue Sharing Cesare Tinelli (tinelli@cs.uiowa.edu) Department of Computer Science The University of Iowa Iowa City, IA, USA Abstract. We propose

More information

Rewriting for Satisfiability Modulo Theories

Rewriting for Satisfiability Modulo Theories 1 Dipartimento di Informatica Università degli Studi di Verona Verona, Italy July 10, 2010 1 Joint work with Chris Lynch (Department of Mathematics and Computer Science, Clarkson University, NY, USA) and

More information

Constraint Solving for Finite Model Finding in SMT Solvers

Constraint Solving for Finite Model Finding in SMT Solvers myjournal manuscript No. (will be inserted by the editor) Constraint Solving for Finite Model Finding in SMT Solvers Andrew Reynolds Cesare Tinelli Clark Barrett Received: date / Accepted: date Abstract

More information

Polite Theories Revisited

Polite Theories Revisited Polite Theories Revisited Dejan Jovanović and Clark Barrett New York University dejan@cs.nyu.edu, barrett@cs.nyu.edu c Springer-Verlag Abstract. The classic method of Nelson and Oppen for combining decision

More information

Scalable and Accurate Verification of Data Flow Systems. Cesare Tinelli The University of Iowa

Scalable and Accurate Verification of Data Flow Systems. Cesare Tinelli The University of Iowa Scalable and Accurate Verification of Data Flow Systems Cesare Tinelli The University of Iowa Overview AFOSR Supported Research Collaborations NYU (project partner) Chalmers University (research collaborator)

More information

Topics in Model-Based Reasoning

Topics in Model-Based Reasoning Towards Integration of Proving and Solving Dipartimento di Informatica Università degli Studi di Verona Verona, Italy March, 2014 Automated reasoning Artificial Intelligence Automated Reasoning Computational

More information

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig First-Order Logic First-Order Theories Roopsha Samanta Partly based on slides by Aaron Bradley and Isil Dillig Roadmap Review: propositional logic Syntax and semantics of first-order logic (FOL) Semantic

More information

Dipartimento di Scienze dell Informazione

Dipartimento di Scienze dell Informazione UNIVERSITÀ DEGLI STUDI DI MILANO Dipartimento di Scienze dell Informazione RAPPORTO INTERNO N 313-07 Combination Methods for Satisfiability and Model-Checking of Infinite-State Systems Silvio Ghilardi,

More information

Satisfiability Modulo Theories

Satisfiability Modulo Theories Satisfiability Modulo Theories Clark Barrett and Cesare Tinelli Abstract Satisfiability Modulo Theories (SMT) refers to the problem of determining whether a first-order formula is satisfiable with respect

More information

Theory Combination. Clark Barrett. New York University. CS357, Stanford University, Nov 2, p. 1/24

Theory Combination. Clark Barrett. New York University. CS357, Stanford University, Nov 2, p. 1/24 CS357, Stanford University, Nov 2, 2015. p. 1/24 Theory Combination Clark Barrett barrett@cs.nyu.edu New York University CS357, Stanford University, Nov 2, 2015. p. 2/24 Combining Theory Solvers Given

More information

Combinations of Theories for Decidable Fragments of First-order Logic

Combinations of Theories for Decidable Fragments of First-order Logic Combinations of Theories for Decidable Fragments of First-order Logic Pascal Fontaine Loria, INRIA, Université de Nancy (France) Montreal August 2, 2009 Montreal, August 2, 2009 1 / 15 Context / Motivation

More information

Tutorial 1: Modern SMT Solvers and Verification

Tutorial 1: Modern SMT Solvers and Verification University of Illinois at Urbana-Champaign Tutorial 1: Modern SMT Solvers and Verification Sayan Mitra Electrical & Computer Engineering Coordinated Science Laboratory University of Illinois at Urbana

More information

Learning Goals of CS245 Logic and Computation

Learning Goals of CS245 Logic and Computation Learning Goals of CS245 Logic and Computation Alice Gao April 27, 2018 Contents 1 Propositional Logic 2 2 Predicate Logic 4 3 Program Verification 6 4 Undecidability 7 1 1 Propositional Logic Introduction

More information

SMT BASICS WS 2017/2018 ( ) LOGIC SATISFIABILITY MODULO THEORIES. Institute for Formal Models and Verification Johannes Kepler Universität Linz

SMT BASICS WS 2017/2018 ( ) LOGIC SATISFIABILITY MODULO THEORIES. Institute for Formal Models and Verification Johannes Kepler Universität Linz LOGIC SATISFIABILITY MODULO THEORIES SMT BASICS WS 2017/2018 (342.208) Armin Biere Martina Seidl biere@jku.at martina.seidl@jku.at Institute for Formal Models and Verification Johannes Kepler Universität

More information

Solving SAT Modulo Theories

Solving SAT Modulo Theories Solving SAT Modulo Theories R. Nieuwenhuis, A. Oliveras, and C.Tinelli. Solving SAT and SAT Modulo Theories: from an Abstract Davis-Putnam-Logemann-Loveland Procedure to DPLL(T) Mooly Sagiv Motivation

More information

Computation and Inference

Computation and Inference Computation and Inference N. Shankar Computer Science Laboratory SRI International Menlo Park, CA July 13, 2018 Length of the Longest Increasing Subsequence You have a sequence of numbers, e.g., 9, 7,

More information

Data Structures with Arithmetic Constraints: a Non-Disjoint Combination

Data Structures with Arithmetic Constraints: a Non-Disjoint Combination Data Structures with Arithmetic Constraints: a Non-Disjoint Combination E. Nicolini, C. Ringeissen, and M. Rusinowitch LORIA & INRIA Nancy Grand Est FroCoS 09 E. Nicolini et al. (LORIA & INRIA) Data structures

More information

CS156: The Calculus of Computation

CS156: The Calculus of Computation CS156: The Calculus of Computation Zohar Manna Winter 2010 It is reasonable to hope that the relationship between computation and mathematical logic will be as fruitful in the next century as that between

More information

Foundations of Lazy SMT and DPLL(T)

Foundations of Lazy SMT and DPLL(T) Foundations of Lazy SMT and DPLL(T) Cesare Tinelli The University of Iowa Foundations of Lazy SMT and DPLL(T) p.1/86 Acknowledgments: Many thanks to Albert Oliveras for contributing some of the material

More information

ME(LIA) - Model Evolution With Linear Integer Arithmetic Constraints

ME(LIA) - Model Evolution With Linear Integer Arithmetic Constraints ME(LIA) - Model Evolution With Linear Integer Arithmetic Constraints Peter Baumgartner NICTA, Canberra, Australia PeterBaumgartner@nictacomau Alexander Fuchs Department of Computer Science The University

More information

Non-linear Interpolant Generation and Its Application to Program Verification

Non-linear Interpolant Generation and Its Application to Program Verification Non-linear Interpolant Generation and Its Application to Program Verification Naijun Zhan State Key Laboratory of Computer Science, Institute of Software, CAS Joint work with Liyun Dai, Ting Gan, Bow-Yaw

More information

ME(LIA) - Model Evolution With Linear Integer Arithmetic Constraints

ME(LIA) - Model Evolution With Linear Integer Arithmetic Constraints ME(LIA) - Model Evolution With Linear Integer Arithmetic Constraints Peter Baumgartner NICTA, Canberra, Australia PeterBaumgartner@nictacomau Alexander Fuchs Department of Computer Science The University

More information

Data structures with arithmetic constraints: non-disjoint combinations

Data structures with arithmetic constraints: non-disjoint combinations Data structures with arithmetic constraints: non-disjoint combinations E. Nicolini, C. Ringeissen, and M. Rusinowitch LORIA & INRIA-Lorraine ADDCT-UNIF 09 E. Nicolini et al. (LORIA & INRIA-Lorraine) Data

More information

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory Motivation CS389L: Automated Logical Reasoning Lecture 10: Overview of First-Order Theories Işıl Dillig Last few lectures: Full first-order logic In FOL, functions/predicates are uninterpreted (i.e., structure

More information

Propositional Reasoning

Propositional Reasoning Propositional Reasoning CS 440 / ECE 448 Introduction to Artificial Intelligence Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri Spring 2010 Intro to AI (CS

More information

Interpolant-based Transition Relation Approximation

Interpolant-based Transition Relation Approximation Interpolant-based Transition Relation Approximation Ranjit Jhala and K. L. McMillan 1 University of California, San Diego 2 Cadence Berkeley Labs Abstract. In predicate abstraction, exact image computation

More information

22c:145 Artificial Intelligence

22c:145 Artificial Intelligence 22c:145 Artificial Intelligence Fall 2005 Propositional Logic Cesare Tinelli The University of Iowa Copyright 2001-05 Cesare Tinelli and Hantao Zhang. a a These notes are copyrighted material and may not

More information

Logical Abstract Domains and Interpretations

Logical Abstract Domains and Interpretations Logical Abstract Domains and Interpretations Patrick Cousot 2,3, Radhia Cousot 3,1, and Laurent Mauborgne 3,4 1 Centre National de la Recherche Scientifique, Paris 2 Courant Institute of Mathematical Sciences,

More information

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms First-Order Logic 1 Syntax Domain of Discourse The domain of discourse for first order logic is FO structures or models. A FO structure contains Relations Functions Constants (functions of arity 0) FO

More information

CSE507. Satisfiability Modulo Theories. Computer-Aided Reasoning for Software. Emina Torlak

CSE507. Satisfiability Modulo Theories. Computer-Aided Reasoning for Software. Emina Torlak Computer-Aided Reasoning for Software CSE507 Satisfiability Modulo Theories courses.cs.washington.edu/courses/cse507/18sp/ Emina Torlak emina@cs.washington.edu Today Last lecture Practical applications

More information

Satisfiability Modulo Theories (SMT)

Satisfiability Modulo Theories (SMT) CS510 Software Engineering Satisfiability Modulo Theories (SMT) Slides modified from those by Aarti Gupta Textbook: The Calculus of Computation by A. Bradley and Z. Manna 1 Satisfiability Modulo Theory

More information

Beyond Quantifier-Free Interpolation in Extensions of Presburger Arithmetic

Beyond Quantifier-Free Interpolation in Extensions of Presburger Arithmetic Beyond Quantifier-Free Interpolation in Extensions of Presburger Arithmetic Angelo Brillout, 1 Daniel Kroening, 2 Philipp Rümmer, 3 Thomas Wahl 2 1 ETH Zurich 2 Oxford University 3 Uppsala University Deduction

More information

Decision Procedures for Term Algebras with Integer Constraints

Decision Procedures for Term Algebras with Integer Constraints Decision Procedures for Term Algebras with Integer Constraints Ting Zhang, Henny B. Sipma, and Zohar Manna 1 Computer Science Department, Stanford University Abstract Term algebras can model recursive

More information

Dipartimento di Scienze dell Informazione

Dipartimento di Scienze dell Informazione UNIVERSITÀ DEGLI STUDI DI MILANO Dipartimento di Scienze dell Informazione RAPPORTO INTERNO N 318-08 Towards SMT Model Checking of Array-based Systems Silvio Ghilardi, Enrica Nicolini, Silvio Ranise, Daniele

More information

First-Order Theorem Proving and Vampire. Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester)

First-Order Theorem Proving and Vampire. Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester) First-Order Theorem Proving and Vampire Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester) Outline Introduction First-Order Logic and TPTP Inference Systems

More information

LOGIC PROPOSITIONAL REASONING

LOGIC PROPOSITIONAL REASONING LOGIC PROPOSITIONAL REASONING WS 2017/2018 (342.208) Armin Biere Martina Seidl biere@jku.at martina.seidl@jku.at Institute for Formal Models and Verification Johannes Kepler Universität Linz Version 2018.1

More information

Strategies for Combining Decision Procedures

Strategies for Combining Decision Procedures Strategies for Combining Decision Procedures Sylvain Conchon 1 and Sava Krstić 2 1 École des Mines de Nantes 2 OGI School of Science & Engineering at Oregon Health & Sciences University Abstract. Implementing

More information

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Introduction to Artificial Intelligence Propositional Logic & SAT Solving UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Today Representation in Propositional Logic Semantics & Deduction

More information

UNIVERSITÀ DEGLI STUDI DI MILANO

UNIVERSITÀ DEGLI STUDI DI MILANO UNIVERSITÀ DEGLI STUDI DI MILANO FACOLTÀ DI SCIENZE MATEMATICHE, FISICHE E NATURALI Dipartimento di Matematica DOTTORATO DI RICERCA IN MATEMATICA Settore scientifico-disciplinare MAT/01 XIX CICLO COMBINED

More information

SMT: Satisfiability Modulo Theories

SMT: Satisfiability Modulo Theories SMT: Satisfiability Modulo Theories Ranjit Jhala, UC San Diego April 9, 2013 Decision Procedures Last Time Propositional Logic Today 1. Combining SAT and Theory Solvers 2. Theory Solvers Theory of Equality

More information

Matching Logic: Syntax and Semantics

Matching Logic: Syntax and Semantics Matching Logic: Syntax and Semantics Grigore Roșu 1 and Traian Florin Șerbănuță 2 1 University of Illinois at Urbana-Champaign, USA grosu@illinois.edu 2 University of Bucharest, Romania traian.serbanuta@unibuc.ro

More information

Predicate Abstraction via Symbolic Decision Procedures

Predicate Abstraction via Symbolic Decision Procedures Predicate Abstraction via Symbolic Decision Procedures Shuvendu K. Lahiri Thomas Ball Byron Cook May 26, 2005 Technical Report MSR-TR-2005-53 Microsoft Research Microsoft Corporation One Microsoft Way

More information

Notes. Corneliu Popeea. May 3, 2013

Notes. Corneliu Popeea. May 3, 2013 Notes Corneliu Popeea May 3, 2013 1 Propositional logic Syntax We rely on a set of atomic propositions, AP, containing atoms like p, q. A propositional logic formula φ Formula is then defined by the following

More information

CS:4420 Artificial Intelligence

CS:4420 Artificial Intelligence CS:4420 Artificial Intelligence Spring 2018 Propositional Logic Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart

More information

Interpolation: Theory and Applications

Interpolation: Theory and Applications Interpolation: Theory and Applications Vijay D Silva Google Inc., San Francisco Logic Colloquium, U.C. Berkeley 2016 Interpolation Lemma (1957) William Craig in 1988 http://sophos.berkeley.edu/interpolations/

More information

Automated Synthesis of Tableau Calculi

Automated Synthesis of Tableau Calculi Automated Synthesis of Tableau Calculi Renate A. Schmidt 1 and Dmitry Tishkovsky 1 School of Computer Science, The University of Manchester Abstract This paper presents a method for synthesising sound

More information

Finite model finding in satisfiability modulo theories

Finite model finding in satisfiability modulo theories University of Iowa Iowa Research Online Theses and Dissertations Fall 2013 Finite model finding in satisfiability modulo theories Andrew Joseph Reynolds University of Iowa Copyright 2013 Andrew J. Reynolds

More information

Computation Tree Logic (CTL) & Basic Model Checking Algorithms

Computation Tree Logic (CTL) & Basic Model Checking Algorithms Computation Tree Logic (CTL) & Basic Model Checking Algorithms Martin Fränzle Carl von Ossietzky Universität Dpt. of Computing Science Res. Grp. Hybride Systeme Oldenburg, Germany 02917: CTL & Model Checking

More information

The Simplify Theorem Prover

The Simplify Theorem Prover The Simplify Theorem Prover Class Notes for Lecture No.8 by Mooly Sagiv Notes prepared by Daniel Deutch Introduction This lecture will present key aspects in the leading theorem proving systems existing

More information

Interpolation, Amalgamation and Combination (the non-disjoint signatures case)

Interpolation, Amalgamation and Combination (the non-disjoint signatures case) UNIVERSITÀ DEGLI STUDI DI MILANO Dipartimento di Matematica Interpolation, Amalgamation and Combination (the non-disjoint signatures case) Extended Version Silvio Ghilardi and Alessandro Gianola Interpolation,

More information

Logical Abduction and its Applications in Program Verification. Isil Dillig MSR Cambridge

Logical Abduction and its Applications in Program Verification. Isil Dillig MSR Cambridge Logical Abduction and its Applications in Program Verification? Isil Dillig MSR Cambridge What is Abduction? Abduction: Opposite of deduction 2 / 21 What is Abduction? Abduction: Opposite of deduction

More information

An Introduction to Satisfiability Modulo Theories

An Introduction to Satisfiability Modulo Theories ICCAD 2009 Tutorial p. 1/78 An Introduction to Satisfiability Modulo Theories Clark Barrett and Sanjit Seshia ICCAD 2009 Tutorial p. 2/78 Roadmap Theory Solvers Examples of Theory Solvers Combining Theory

More information

Vinter: A Vampire-Based Tool for Interpolation

Vinter: A Vampire-Based Tool for Interpolation Vinter: A Vampire-Based Tool for Interpolation Kryštof Hoder 1, Andreas Holzer 2, Laura Kovács 2, and Andrei Voronkov 1 1 University of Manchester 2 TU Vienna Abstract. This paper describes the Vinter

More information

AVACS Automatic Verification and Analysis of Complex Systems REPORTS. of SFB/TR 14 AVACS. Editors: Board of SFB/TR 14 AVACS

AVACS Automatic Verification and Analysis of Complex Systems REPORTS. of SFB/TR 14 AVACS. Editors: Board of SFB/TR 14 AVACS AVACS Automatic Verification and Analysis of Complex Systems REPORTS of SFB/TR 14 AVACS Editors: Board of SFB/TR 14 AVACS Constraint Solving for Interpolation Andrey Rybalchenko by Viorica Sofronie-Stokkermans

More information

On the Complexity of the Reflected Logic of Proofs

On the Complexity of the Reflected Logic of Proofs On the Complexity of the Reflected Logic of Proofs Nikolai V. Krupski Department of Math. Logic and the Theory of Algorithms, Faculty of Mechanics and Mathematics, Moscow State University, Moscow 119899,

More information

CS156: The Calculus of Computation Zohar Manna Autumn 2008

CS156: The Calculus of Computation Zohar Manna Autumn 2008 Page 3 of 52 Page 4 of 52 CS156: The Calculus of Computation Zohar Manna Autumn 2008 Lecturer: Zohar Manna (manna@cs.stanford.edu) Office Hours: MW 12:30-1:00 at Gates 481 TAs: Boyu Wang (wangboyu@stanford.edu)

More information

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw

Applied Logic. Lecture 1 - Propositional logic. Marcin Szczuka. Institute of Informatics, The University of Warsaw Applied Logic Lecture 1 - Propositional logic Marcin Szczuka Institute of Informatics, The University of Warsaw Monographic lecture, Spring semester 2017/2018 Marcin Szczuka (MIMUW) Applied Logic 2018

More information

Arithmetic Integration of Decision Procedures

Arithmetic Integration of Decision Procedures Arithmetic Integration of Decision Procedures Ting Zhang Stanford University Chapter 1. Introduction Decision procedures are algorithms that can determine whether a formula in a given logical theory is

More information

Classical Propositional Logic

Classical Propositional Logic Classical Propositional Logic Peter Baumgartner http://users.cecs.anu.edu.au/~baumgart/ Ph: 02 6218 3717 Data61/CSIRO and ANU July 2017 1 / 71 Classical Logic and Reasoning Problems A 1 : Socrates is a

More information

Model Based Theory Combination

Model Based Theory Combination Model Based Theory Combination SMT 2007 Leonardo de Moura and Nikolaj Bjørner {leonardo, nbjorner}@microsoft.com. Microsoft Research Model Based Theory Combination p.1/20 Combination of Theories In practice,

More information

Hoare Logic I. Introduction to Deductive Program Verification. Simple Imperative Programming Language. Hoare Logic. Meaning of Hoare Triples

Hoare Logic I. Introduction to Deductive Program Verification. Simple Imperative Programming Language. Hoare Logic. Meaning of Hoare Triples Hoare Logic I Introduction to Deductive Program Verification Işıl Dillig Program Spec Deductive verifier FOL formula Theorem prover valid contingent Example specs: safety (no crashes), absence of arithmetic

More information

An Interpolating Theorem Prover

An Interpolating Theorem Prover An Interpolating Theorem Prover K.L. McMillan Cadence Berkeley Labs Abstract. We present a method of deriving Craig interpolants from proofs in the quantifier-free theory of linear inequality and uninterpreted

More information

First-Order Theorem Proving and Vampire

First-Order Theorem Proving and Vampire First-Order Theorem Proving and Vampire Laura Kovács 1,2 and Martin Suda 2 1 TU Wien 2 Chalmers Outline Introduction First-Order Logic and TPTP Inference Systems Saturation Algorithms Redundancy Elimination

More information

Overview, cont. Overview, cont. Logistics. Optional Reference #1. Optional Reference #2. Workload and Grading

Overview, cont. Overview, cont. Logistics. Optional Reference #1. Optional Reference #2. Workload and Grading Course staff CS389L: Automated Logical Reasoning Lecture 1: ntroduction and Review of Basics şıl Dillig nstructor: şil Dillig E-mail: isil@cs.utexas.edu Office hours: Thursday after class until 6:30 pm

More information

Solving Quantified Linear Arithmetic by Counterexample- Guided Instantiation

Solving Quantified Linear Arithmetic by Counterexample- Guided Instantiation Noname manuscript No. (will be inserted by the editor) Solving Quantified Linear Arithmetic by Counterexample- Guided Instantiation Andrew Reynolds Tim King Viktor Kuncak Received: date / Accepted: date

More information

UNIVERSITA DEGLI STUDI DI MILANO. Dipartimento di Scienze dell Informazione

UNIVERSITA DEGLI STUDI DI MILANO. Dipartimento di Scienze dell Informazione UNIVERSITA DEGLI STUDI DI MILANO Dipartimento di Scienze dell Informazione RAPPORTO INTERNO N RI 337-12 From Strong Amalgamability to Modularity of Quantifier-Free Interpolation Roberto Bruttomesso, Silvio

More information

Combining Non-Stably Infinite Theories

Combining Non-Stably Infinite Theories Combining Non-Stably Infinite Theories Cesare Tinelli Calogero G. Zarba 1 tinelli@cs.uiowa.edu zarba@theory.stanford.edu Department of Computer Science The University of Iowa Report No. 03-01 April 2003

More information

A Constructor-Based Reachability Logic for Rewrite Theories

A Constructor-Based Reachability Logic for Rewrite Theories A Constructor-Based Reachability Logic for Rewrite Theories Stephen Skeirik, Andrei Stefanescu, Jose Meseguer October 10th, 2017 Outline 1 Introduction 2 Reachability Logic Semantics 3 The Invariant Paradox

More information

COLORS MAKE THEORIES HARD

COLORS MAKE THEORIES HARD DISI - Via Sommarive, 9-38123 POVO, Trento - Italy http://disi.unitn.it COLORS MAKE THEORIES HARD Roberto Sebastiani First version: February 1 2016, Latest update: July 25, 2016 Technical Report # DISI-16-001

More information

IC3, PDR, and Friends

IC3, PDR, and Friends IC3, PDR, and Friends Arie Gurfinkel Department of Electrical and Computer Engineering University of Waterloo arie.gurfinkel@uwaterloo.ca Abstract. We describe the IC3/PDR algorithms and their various

More information

A DPLL(T ) Theory Solver for a Theory of Strings and Regular Expressions

A DPLL(T ) Theory Solver for a Theory of Strings and Regular Expressions A DPLL(T ) Theory Solver for a Theory of Strings and Regular Expressions Tianyi Liang 1, Andrew Reynolds 1, Cesare Tinelli 1, Clark Barrett 2, and Morgan Deters 2 1 Department of Computer Science, The

More information

Reasoning with Quantified Boolean Formulas

Reasoning with Quantified Boolean Formulas Reasoning with Quantified Boolean Formulas Martina Seidl Institute for Formal Models and Verification Johannes Kepler University Linz 1 What are QBF? Quantified Boolean formulas (QBF) are formulas of propositional

More information

Quantifiers. Leonardo de Moura Microsoft Research

Quantifiers. Leonardo de Moura Microsoft Research Quantifiers Leonardo de Moura Microsoft Research Satisfiability a > b + 2, a = 2c + 10, c + b 1000 SAT a = 0, b = 3, c = 5 Model 0 > 3 + 2, 0 = 2 5 + 10, 5 + ( 3) 1000 Quantifiers x y x > 0 f x, y = 0

More information

Model Checking, Theorem Proving, and Abstract Interpretation: The Convergence of Formal Verification Technologies

Model Checking, Theorem Proving, and Abstract Interpretation: The Convergence of Formal Verification Technologies Model Checking, Theorem Proving, and Abstract Interpretation: The Convergence of Formal Verification Technologies Tom Henzinger EPFL Three Verification Communities Model checking: -automatic, but inefficient

More information

Dipartimento di Scienze dell Informazione

Dipartimento di Scienze dell Informazione UNIVERSITÀ DEGLI STUDI DI MILANO Dipartimento di Scienze dell Informazione RAPPORTO INTERNO N 309-06 Deciding Extensions of the Theory of Arrays by Integrating Decision Procedures and Instantiation Strategies

More information

Interpolation: Theory and Applications

Interpolation: Theory and Applications Interpolation: Theory and Applications Vijay D Silva Google Inc., San Francisco SAT/SMT Summer School 2015 1 Conceptual Overview 2 A Brief History of Interpolation 3 Interpolant Construction 4 Verification

More information

Interpolation. Seminar Slides. Betim Musa. 27 th June Albert-Ludwigs-Universität Freiburg

Interpolation. Seminar Slides. Betim Musa. 27 th June Albert-Ludwigs-Universität Freiburg Interpolation Seminar Slides Albert-Ludwigs-Universität Freiburg Betim Musa 27 th June 2015 Motivation program add(int a, int b) { var x,i : int; l 0 assume(b 0); l 1 x := a; l 2 i := 0; while(i < b) {

More information

Lecturecise 22 Weak monadic second-order theory of one successor (WS1S)

Lecturecise 22 Weak monadic second-order theory of one successor (WS1S) Lecturecise 22 Weak monadic second-order theory of one successor (WS1S) 2013 Reachability in the Heap Many programs manipulate linked data structures (lists, trees). To express many important properties

More information

Classical Propositional Logic

Classical Propositional Logic The Language of A Henkin-style Proof for Natural Deduction January 16, 2013 The Language of A Henkin-style Proof for Natural Deduction Logic Logic is the science of inference. Given a body of information,

More information

On simulations and bisimulations of general flow systems

On simulations and bisimulations of general flow systems On simulations and bisimulations of general flow systems Jen Davoren Department of Electrical & Electronic Engineering The University of Melbourne, AUSTRALIA and Paulo Tabuada Department of Electrical

More information

Propositional Logic: Evaluating the Formulas

Propositional Logic: Evaluating the Formulas Institute for Formal Models and Verification Johannes Kepler University Linz VL Logik (LVA-Nr. 342208) Winter Semester 2015/2016 Propositional Logic: Evaluating the Formulas Version 2015.2 Armin Biere

More information

A Gentle Non-Disjoint Combination of Satisfiability Procedures

A Gentle Non-Disjoint Combination of Satisfiability Procedures A Gentle Non-Disjoint Combination of Satisfiability Procedures Paula Chocron 1,3, Pascal Fontaine 2, and Christophe Ringeissen 3 1 Universidad de Buenos Aires, Argentina 2 INRIA, Université de Lorraine

More information

Introduction to Artificial Intelligence. Logical Agents

Introduction to Artificial Intelligence. Logical Agents Introduction to Artificial Intelligence Logical Agents (Logic, Deduction, Knowledge Representation) Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU Winter Term 2004/2005 B. Beckert: KI für IM p.1 Outline Knowledge-based

More information

1.5 Non-linear Real Arithmetic

1.5 Non-linear Real Arithmetic A Simplex variant: Transform the satisfiability problem into the form A x = 0 l x u (where l i may be and u i may be + ). Relation to optimization problem is obscured. But: More efficient if one needs

More information

On evaluating decision procedures for modal logic

On evaluating decision procedures for modal logic On evaluating decision procedures for modal logic Ullrich Hustadt and Renate A. Schmidt Max-Planck-Institut fur Informatik, 66123 Saarbriicken, Germany {hustadt, schmidt} topi-sb.mpg.de Abstract This paper

More information

Fixed-point elimination in Heyting algebras 1

Fixed-point elimination in Heyting algebras 1 1/32 Fixed-point elimination in Heyting algebras 1 Silvio Ghilardi, Università di Milano Maria João Gouveia, Universidade de Lisboa Luigi Santocanale, Aix-Marseille Université TACL@Praha, June 2017 1 See

More information

VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0. Contents

VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0. Contents VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0 BENJAMIN LEDEAUX Abstract. This expository paper introduces model theory with a focus on countable models of complete theories. Vaught

More information

On the Progression of Situation Calculus Basic Action Theories: Resolving a 10-year-old Conjecture

On the Progression of Situation Calculus Basic Action Theories: Resolving a 10-year-old Conjecture On the Progression of Situation Calculus Basic Action Theories: Resolving a 10-year-old Conjecture Stavros Vassos and Hector J Levesque Department of Computer Science University of Toronto Toronto, ON,

More information

SAT/SMT/AR Introduction and Applications

SAT/SMT/AR Introduction and Applications SAT/SMT/AR Introduction and Applications Ákos Hajdu Budapest University of Technology and Economics Department of Measurement and Information Systems 1 Ákos Hajdu About me o PhD student at BME MIT (2016

More information

Satisfiability Modulo Theories

Satisfiability Modulo Theories Satisfiability Modulo Theories Summer School on Formal Methods Menlo College, 2011 Bruno Dutertre and Leonardo de Moura bruno@csl.sri.com, leonardo@microsoft.com SRI International, Microsoft Research SAT/SMT

More information

Part 1: Propositional Logic

Part 1: Propositional Logic Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax

More information

EECS 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization

EECS 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization EECS 144/244: Fundamental Algorithms for System Modeling, Analysis, and Optimization Discrete Systems Lecture: State-Space Exploration Stavros Tripakis University of California, Berkeley Stavros Tripakis:

More information

Decision Procedures in Verification

Decision Procedures in Verification Decision Procedures in Verification Applications 6.2.2014 Viorica Sofronie-Stokkermans e-mail: sofronie@uni-koblenz.de 1 Verification Modeling/Formalization System Specifications Complex theories Automated

More information

This is logically equivalent to the conjunction of the positive assertion Minimal Arithmetic and Representability

This is logically equivalent to the conjunction of the positive assertion Minimal Arithmetic and Representability 16.2. MINIMAL ARITHMETIC AND REPRESENTABILITY 207 If T is a consistent theory in the language of arithmetic, we say a set S is defined in T by D(x) if for all n, if n is in S, then D(n) is a theorem of

More information

09 Modal Logic II. CS 3234: Logic and Formal Systems. October 14, Martin Henz and Aquinas Hobor

09 Modal Logic II. CS 3234: Logic and Formal Systems. October 14, Martin Henz and Aquinas Hobor Martin Henz and Aquinas Hobor October 14, 2010 Generated on Thursday 14 th October, 2010, 11:40 1 Review of Modal Logic 2 3 4 Motivation Syntax and Semantics Valid Formulas wrt Modalities Correspondence

More information