Lossless Horizontal Decomposition with Domain Constraints on Interpreted Attributes

Size: px
Start display at page:

Download "Lossless Horizontal Decomposition with Domain Constraints on Interpreted Attributes"

Transcription

1 Lossless Horizontal Decomposition with Domain Constraints on Interpreted Attributes Ingo Feinerer 1 and Enrico Franconi 2 and Paolo Guagliardo 2 1 Vienna University of Technology 2 Free University of Bozen-Bolzano 9 th July 2013 BNCOD 2013, Oxford (UK)

2 Horizontal Decomposition R 1 / 19

3 Horizontal Decomposition V 1 selection R 1 / 19

4 Horizontal Decomposition V 2 V 1 selection selection R 1 / 19

5 Horizontal Decomposition V 2 V 1 V 3 selection selection selection R 1 / 19

6 Horizontal Decomposition V 2 V 1 V 3 R 1 / 19

7 Horizontal Decomposition V 2 V 1 V 3? R 1 / 19

8 Interpreted Attributes Data values from special domains (e.g., the integers or the reals) on which a set of predicates (e.g., smaller/greater than) and functions (e.g., addition and subtraction) are defined, according to a first-order theory C 2 / 19

9 Interpreted Attributes Data values from special domains (e.g., the integers or the reals) on which a set of predicates (e.g., smaller/greater than) and functions (e.g., addition and subtraction) are defined, according to a first-order theory C Notation R( x 1,..., x k, y 1,..., y n ) x 1,..., x k non-interpreted (values from dom) y 1,..., y n interpreted over idom associated with C 2 / 19

10 Interpreted Attributes Data values from special domains (e.g., the integers or the reals) on which a set of predicates (e.g., smaller/greater than) and functions (e.g., addition and subtraction) are defined, according to a first-order theory C Notation R( x 1,..., x k, y 1,..., y n ) x 1,..., x k non-interpreted (values from dom) y 1,..., y n interpreted over idom associated with C We assume C to be closed under negation 2 / 19

11 Conditional Domain Constraints (CDC) A conditional domain constraint is a formula of the form x, y. R(x, y) λ(x) δ(y) where λ(x) conjunction of (possibly negated) equalities x = a, with x from x and a from dom δ(y) a formula in C For short R: λ(x) δ(y) 3 / 19

12 View Definitions (Selections) Each view symbol V is defined by a formula of the form x, y. V (x, y) ( R(x, y) λ(x) σ(y) ) where λ(x) conjunction of (possibly negated) equalities x = a, with x from x and a from dom δ(y) a formula in C For short V : λ(x) σ(y) 4 / 19

13 Unit Two-Variable Per Inequality (UTVPI) Constraints A UTVPI constraint is a formula of the form ax + by d where x, y integer variables a, b { 1, 0, 1} (unit coefficients) d Z (an integer) 5 / 19

14 Unit Two-Variable Per Inequality (UTVPI) Constraints A UTVPI constraint is a formula of the form ax + by d where x, y integer variables a, b { 1, 0, 1} (unit coefficients) d Z (an integer) Fragment of linear arithmetic constraints over the integers Satisfiability of UTVPIs is decidable in polynomial time 5 / 19

15 Unit Two-Variable Per Inequality (UTVPI) Constraints A UTVPI constraint is a formula of the form ax + by d where x, y integer variables a, b { 1, 0, 1} (unit coefficients) d Z (an integer) Fragment of linear arithmetic constraints over the integers Satisfiability of UTVPIs is decidable in polynomial time butvpi = a Boolean combination of UTVPIs Satisfiability of butvpis is NP-complete 5 / 19

16 Running Example (1) Employee( x 1, x 2, x 3, y 1, y 2 ) Name Department Position Salary Bonus non-interpreted interpreted over Z 6 / 19

17 Running Example (1) Employee( x 1, x 2, x 3, y 1, y 2 ) Name Department Position Salary Bonus non-interpreted interpreted over Z Let y 1, y 2 be expressed in thousands of euros per month Let a = ICT and b = Manager 6 / 19

18 Running Example (2) Integrity constraints x 2 = a y 1 + y 2 5 x 3 = b y 2 2 y 1 y 2 0 Employees in ICT gain at most 5 Managers receive a bonus of at least 2 Bonus is never greater than salary 7 / 19

19 Running Example (2) Integrity constraints x 2 = a y 1 + y 2 5 x 3 = b y 2 2 y 1 y 2 0 Employees in ICT gain at most 5 Managers receive a bonus of at least 2 Bonus is never greater than salary View definitions Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b Managers in departments other than ICT Employees getting strictly less than 4 as bonus Employees not working as managers 7 / 19

20 Outline Losslessness General method (independent of C) for checking losslessness under CDCs Separability Capture interaction between CDCs and other types of constraints w.r.t. losslessness 8 / 19

21 Checking for Losslessness: Overview 1. Build propositional theories Π and Π Σ associated with and Σ, respectively 2. Build an auxiliary theory Π for Π = Π Π Σ 3. For every valuation α of the propositional variables in Π consider the α-filtering Π α consisting of consequents of the C-CDCs in that are applicable under α negated C-formulae appearing in selections of Σ whose equalities and inequalities are satisfied by α 9 / 19

22 Checking for Losslessness: Overview 1. Build propositional theories Π and Π Σ associated with and Σ, respectively 2. Build an auxiliary theory Π for Π = Π Π Σ 3. For every valuation α of the propositional variables in Π consider the α-filtering Π α consisting of consequents of the C-CDCs in that are applicable under α negated C-formulae appearing in selections of Σ whose equalities and inequalities are satisfied by α Theorem A horizontal decomposition Σ is lossless under if and only if the α-filtering Π α = Π α Πα Σ of Π is unsatisfiable for every valuation α of pvar(π) satisfying Π 9 / 19

23 Propositional Theories For ϕ Σ, let where prop(ϕ) = P v P propositional formula (possibly ) obtained from λ(x) in the antecedent of ϕ by replacing each x i = a with p a i v fresh propositional variable (possibly ) associated with the C-formula δ(y) or σ(y) appearing in ϕ 10 / 19

24 Propositional Theories For ϕ Σ, let where prop(ϕ) = P v P propositional formula (possibly ) obtained from λ(x) in the antecedent of ϕ by replacing each x i = a with p a i v fresh propositional variable (possibly ) associated with the C-formula δ(y) or σ(y) appearing in ϕ Propositional theories associated with and Σ: Π = { prop(ϕ) ϕ } Π Σ = { prop(ϕ) ϕ Σ } 10 / 19

25 Running Example Building the Propositional Theories Π and Π Σ x 2 = a y 1 + y 2 5 x 3 = b y 2 2 y 1 y 2 0 Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b 11 / 19

26 Running Example Building the Propositional Theories Π and Π Σ x 2 = a y 1 + y 2 5 x 3 = b y 2 2 y 1 y 2 0 Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b 11 / 19

27 Running Example Building the Propositional Theories Π and Π Σ p a 2 y 1 + y 2 5 x 3 = b y 2 2 y 1 y 2 0 Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b 11 / 19

28 Running Example Building the Propositional Theories Π and Π Σ p a 2 y 1 + y 2 5 x 3 = b y 2 2 y 1 y 2 0 Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b 11 / 19

29 Running Example Building the Propositional Theories Π and Π Σ p a 2 v 1 x 3 = b y 2 2 y 1 y 2 0 Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b constr = v 1 y 1 + y / 19

30 Running Example Building the Propositional Theories Π and Π Σ p a 2 v 1 x 3 = b y 2 2 y 1 y 2 0 Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b constr = v 1 y 1 + y / 19

31 Running Example Building the Propositional Theories Π and Π Σ p a 2 v 1 p b 3 y 2 2 y 1 y 2 0 Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b constr = v 1 y 1 + y / 19

32 Running Example Building the Propositional Theories Π and Π Σ p a 2 v 1 p b 3 y 2 2 y 1 y 2 0 Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b constr = v 1 y 1 + y / 19

33 Running Example Building the Propositional Theories Π and Π Σ p a 2 v 1 p b 3 v 2 y 1 y 2 0 Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b constr = v 1 y 1 + y 2 5 v 2 y / 19

34 Running Example Building the Propositional Theories Π and Π Σ p a 2 v 1 p b 3 v 2 y 1 y 2 0 Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b constr = v 1 y 1 + y 2 5 v 2 y / 19

35 Running Example Building the Propositional Theories Π and Π Σ p a 2 v 1 p b 3 v 2 v 3 Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b constr = v 1 y 1 + y 2 5 v 2 y 2 2 v 3 y 1 y / 19

36 Running Example Building the Propositional Theories Π and Π Σ Π p a 2 v 1 p b 3 v 2 v 3 Σ V 1 : x 2 a x 3 = b V 2 : y 2 < 4 V 3 : x 3 b constr = v 1 y 1 + y 2 5 v 2 y 2 2 v 3 y 1 y / 19

37 Running Example Building the Propositional Theories Π and Π Σ Π p a 2 v 1 p b 3 v 2 v 3 Σ V 1 : p a 2 pb 3 V 2 : y 2 < 4 V 3 : x 3 b constr = v 1 y 1 + y 2 5 v 2 y 2 2 v 3 y 1 y / 19

38 Running Example Building the Propositional Theories Π and Π Σ Π p a 2 v 1 p b 3 v 2 v 3 Σ V 1 : p a 2 pb 3 V 2 : y 2 < 4 V 3 : x 3 b constr = v 1 y 1 + y 2 5 v 2 y 2 2 v 3 y 1 y / 19

39 Running Example Building the Propositional Theories Π and Π Σ Π p a 2 v 1 p b 3 v 2 v 3 Σ V 1 : p a 2 pb 3 V 2 : v 4 V 3 : x 3 b constr = v 1 y 1 + y 2 5 v 2 y 2 2 v 3 y 1 y 2 0 v 4 y 2 > 4 11 / 19

40 Running Example Building the Propositional Theories Π and Π Σ Π p a 2 v 1 p b 3 v 2 v 3 Σ V 1 : p a 2 pb 3 V 2 : v 4 V 3 : x 3 b constr = v 1 y 1 + y 2 5 v 2 y 2 2 v 3 y 1 y 2 0 v 4 y 2 > 4 11 / 19

41 Running Example Building the Propositional Theories Π and Π Σ Π p a 2 v 1 p b 3 v 2 v 3 Σ V 1 : p a 2 pb 3 V 2 : v 4 V 3 : p b 3 constr = v 1 y 1 + y 2 5 v 2 y 2 2 v 3 y 1 y 2 0 v 4 y 2 > 4 11 / 19

42 Running Example Building the Propositional Theories Π and Π Σ Π p a 2 v 1 p b 3 v 2 v 3 Π Σ V 1 : p a 2 pb 3 V 2 : v 4 V 3 : p b 3 constr = v 1 y 1 + y 2 5 v 2 y 2 2 v 3 y 1 y 2 0 v 4 y 2 > 4 11 / 19

43 Running Example Building the Propositional Theories Π and Π Σ Π p a 2 v 1 p b 3 v 2 v 3 Π Σ V 1 : p a 2 pb 3 V 2 : v 4 V 3 : p b 3 constr = v 1 y 1 + y 2 5 v 2 y 2 2 v 3 y 1 y 2 0 v 4 y 2 > 4 Π = Π Π Σ ; pvar(π) = { p a 2, pb 3 } ; cvar(π) = { v 1, v 2, v 3, v 4 } 11 / 19

44 Auxiliary Theory no two distinct values in the same position Π = { p a i pb i a b, pa i, pb i pvar(π)} { (P ) Π Σ } 12 / 19

45 Auxiliary Theory no two distinct values in the same position Π = { p a i pb i a b, pa i, pb i pvar(π)} { (P ) Π Σ } In our running example: Π = { p a 2 pb 3, pb 3 } 12 / 19

46 Filtering α-filtering For a valuation α of pvar(π) Π α = { constr(v) (P v) Π, α(p ) = T } Π α Σ = { constr(v) (P v) Π Σ, α(p ) = T, v } 13 / 19

47 Filtering α-filtering For a valuation α of pvar(π) Π α = { constr(v) (P v) Π, α(p ) = T } Π α Σ = { constr(v) (P v) Π Σ, α(p ) = T, v } Theorem A horizontal decomposition Σ is lossless under if and only if the α-filtering Π α = Π α Πα Σ of Π is unsatisfiable for every valuation α of pvar(π) satisfying Π 13 / 19

48 Filtering α-filtering For a valuation α of pvar(π) Π α = { constr(v) (P v) Π, α(p ) = T } Π α Σ = { constr(v) (P v) Π Σ, α(p ) = T, v } Theorem A horizontal decomposition Σ is lossless under if and only if the α-filtering Π α = Π α Πα Σ of Π is unsatisfiable for every valuation α of pvar(π) satisfying Π Running Example The only valuation satisfying Π = { p a 2 pb 3, pb 3 } is α = { p b 3 T, pa 2 T } 13 / 19

49 Running Example: Checking for Losslessness α = { p b 3 T, pa 2 T } Π p a 2 v 1 p b 3 v 2 Π α = { constr(v 1), constr(v 2 ), constr(v 3 ) } v 3 Π Σ p a 2 pb 3 v 4 p b 3 Π α Σ = { constr(v 4) } 14 / 19

50 Running Example: Checking for Losslessness α = { p b 3 T, pa 2 T } Π p a 2 v 1 p b 3 v 2 v 3 Π Σ p a 2 pb 3 v 4 Π α = { constr(v 1), constr(v 2 ), constr(v 3 ) } y 1 + y 2 5 y 2 2 y 1 y 2 0 y 2 4 Π α Σ = { constr(v 4) } p b 3 14 / 19

51 Running Example: Checking for Losslessness α = { p b 3 T, pa 2 T } Π p a 2 v 1 p b 3 v 2 v 3 Π Σ p a 2 pb 3 v 4 Π α = { constr(v 1), constr(v 2 ), constr(v 3 ) } y 1 + y 2 5 y 2 2 y 1 y 2 0 y 2 4 Π α Σ = { constr(v 4) } p b 3 14 / 19

52 Running Example: Checking for Losslessness α = { p b 3 T, pa 2 T } Π p a 2 v 1 p b 3 v 2 v 3 Π Σ p a 2 pb 3 v 4 p b 3 Π α = { constr(v 1), constr(v 2 ), constr(v 3 ) } y 1 3 y 1 y 2 0 y 2 4 Π α Σ = { constr(v 4) } 14 / 19

53 Running Example: Checking for Losslessness α = { p b 3 T, pa 2 T } Π p a 2 v 1 p b 3 v 2 v 3 Π Σ p a 2 pb 3 v 4 p b 3 Π α = { constr(v 1), constr(v 2 ), constr(v 3 ) } y 1 3 y 1 + y 2 0 y 2 4 Π α Σ = { constr(v 4) } 14 / 19

54 Running Example: Checking for Losslessness α = { p b 3 T, pa 2 T } Π p a 2 v 1 p b 3 v 2 v 3 Π Σ p a 2 pb 3 v 4 p b 3 Π α = { constr(v 1), constr(v 2 ), constr(v 3 ) } y 1 3 y 2 3 y 2 4 Π α Σ = { constr(v 4) } 14 / 19

55 Additional Integrity Constraints: FDs Does allowing other types of integrity constraints along with CDCs make a difference w.r.t. losslessness? 15 / 19

56 Additional Integrity Constraints: FDs Does allowing other types of integrity constraints along with CDCs make a difference w.r.t. losslessness? For functional dependencies (FDs) the answer is NO Theorem Let consist of FDs and CDCs, and let consist of all the CDCs in. Then, a horizontal decomposition is lossless under if and only if it is lossless under. 15 / 19

57 Additional Integrity Constraints: FDs Does allowing other types of integrity constraints along with CDCs make a difference w.r.t. losslessness? For functional dependencies (FDs) the answer is NO Theorem Let consist of FDs and CDCs, and let consist of all the CDCs in. Then, a horizontal decomposition is lossless under if and only if it is lossless under. A horizontal decomposition is lossy under CDCs iff there is a one-tuple counter-example to its losslessness, and an FD violation always involves at least two tuples 15 / 19

58 Additional Integrity Constraints: UINDs What about unary inclusion dependencies (UINDs)? 16 / 19

59 Additional Integrity Constraints: UINDs What about unary inclusion dependencies (UINDs)? Example R(y 1, y 2 ) with y 1, y 2 interpreted over Z = { y 2 > 4, R[1] R[2] } Σ = {V 1 : y 1 > 3} 16 / 19

60 Additional Integrity Constraints: UINDs What about unary inclusion dependencies (UINDs)? Example R(y 1, y 2 ) with y 1, y 2 interpreted over Z = { y 2 > 4, R[1] R[2] } Σ = {V 1 : y 1 > 3} Does V 1 select all of the tuples in R? 16 / 19

61 Additional Integrity Constraints: UINDs What about unary inclusion dependencies (UINDs)? Example R(y 1, y 2 ) with y 1, y 2 interpreted over Z = { y 2 > 4, R[1] R[2] } Σ = {V 1 : y 1 > 3} Does V 1 select all of the tuples in R? YES! because = y 1 > 4 There is some interaction between CDCs and UINDs that influences losslessness 16 / 19

62 Separability C a class of integrity constraints S a finite set of sound inference rules for C extended with CDCs a set of CDCs and C-constraints 17 / 19

63 Separability C a class of integrity constraints S a finite set of sound inference rules for C extended with CDCs a set of CDCs and C-constraints Definition The C-constraints are S-separable in from the CDCs iff every horizontal decomposition is lossless under precisely when it is lossless under = {φ φ is a CDC}, where is the closure of w.r.t. S 17 / 19

64 Separability C a class of integrity constraints S a finite set of sound inference rules for C extended with CDCs a set of CDCs and C-constraints Definition The C-constraints are S-separable in from the CDCs iff every horizontal decomposition is lossless under precisely when it is lossless under = {φ φ is a CDC}, where is the closure of w.r.t. S S fully captures the interaction between C-constraints and CDCs w.r.t. losslessness losslessness can be checked by making explicit such interaction and then disregarding all constraints other than CDCs 17 / 19

65 Domain Propagation Can we fully capture the interaction between CDCs and UINDs? 18 / 19

66 Domain Propagation Can we fully capture the interaction between CDCs and UINDs? Domain Propagation Rule δ(y i ) R[y j ] R[y i ] δ(y j ) (dp) 18 / 19

67 Domain Propagation Can we fully capture the interaction between CDCs and UINDs? Domain Propagation Rule δ(y i ) R[y j ] R[y i ] δ(y j ) (dp) Theorem Let be a set of UINDs on interpreted positions and CDCs such that, for every UIND R[y i ] R[y j ] in, all of the CDCs in that mention y, where y is y i or y j, are of the form δ(y) Then, the UINDs are {(dp)}-separable in from the CDCs 18 / 19

68 Future Work Separability of FDs and UINDs (together) FDs and UINDs interact between them Interaction with other constraints (e.g., order dependencies) Turn a lossy decomposition into a lossless one find minimal fix: select exactly the missing tuples Update a fragment independently of the others 19 / 19

Translatable Updates of Selection Views under Constant Complement

Translatable Updates of Selection Views under Constant Complement Translatable Updates of Selection Views under Constant Complement Enrico Franconi and Paolo Guagliardo Free University of Bozen-Bolzano, Italy 4 th September 2014 DEXA 2014, Munich (Germany) KRDB Research

More information

THE problem of updating a database through a set

THE problem of updating a database through a set FULL VERSION WITH COMPLETE PROOFS 1 Lossless Selection Views under Conditional Domain Constraints Ingo Feinerer, Enrico Franconi and Paolo Guagliardo name suggests, prescribes how a database relation can

More information

Enhancing the Updatability of Projective Views

Enhancing the Updatability of Projective Views Enhancing the Updatability of Projective Views (Extended Abstract) Paolo Guagliardo 1, Reinhard Pichler 2, and Emanuel Sallinger 2 1 KRDB Research Centre, Free University of Bozen-Bolzano 2 Vienna University

More information

Propositional Logic: Models and Proofs

Propositional Logic: Models and Proofs Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505

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

INF3170 Logikk Spring Homework #8 For Friday, March 18

INF3170 Logikk Spring Homework #8 For Friday, March 18 INF3170 Logikk Spring 2011 Homework #8 For Friday, March 18 Problems 2 6 have to do with a more explicit proof of the restricted version of the completeness theorem: if = ϕ, then ϕ. Note that, other than

More information

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Description Logics. Deduction in Propositional Logic.   franconi. Enrico Franconi (1/20) Description Logics Deduction in Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/20) Decision

More information

Logic: Propositional Logic (Part I)

Logic: Propositional Logic (Part I) Logic: Propositional Logic (Part I) Alessandro Artale Free University of Bozen-Bolzano Faculty of Computer Science http://www.inf.unibz.it/ artale Descrete Mathematics and Logic BSc course Thanks to Prof.

More information

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler Complexity Theory Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Reinhard

More information

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181. Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität

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

Integer vs. constraint programming. IP vs. CP: Language

Integer vs. constraint programming. IP vs. CP: Language Discrete Math for Bioinformatics WS 0/, by A. Bockmayr/K. Reinert,. Januar 0, 0:6 00 Integer vs. constraint programming Practical Problem Solving Model building: Language Model solving: Algorithms IP vs.

More information

Fuzzy Sets. Mirko Navara navara/fl/fset printe.pdf February 28, 2019

Fuzzy Sets. Mirko Navara   navara/fl/fset printe.pdf February 28, 2019 The notion of fuzzy set. Minimum about classical) sets Fuzzy ets Mirko Navara http://cmp.felk.cvut.cz/ navara/fl/fset printe.pdf February 8, 09 To aviod problems of the set theory, we restrict ourselves

More information

Propositional Logic: Syntax

Propositional Logic: Syntax Logic Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and programs) epistemic

More information

Problem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B.

Problem 1: Suppose A, B, C and D are finite sets such that A B = C D and C = D. Prove or disprove: A = B. Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination III (Spring 2007) Problem 1: Suppose A, B, C and D are finite sets

More information

Fuzzy Description Logics

Fuzzy Description Logics Fuzzy Description Logics 1. Introduction to Description Logics Rafael Peñaloza Rende, January 2016 Literature Description Logics Baader, Calvanese, McGuinness, Nardi, Patel-Schneider (eds.) The Description

More information

Algebraic Proof Systems

Algebraic Proof Systems Algebraic Proof Systems Pavel Pudlák Mathematical Institute, Academy of Sciences, Prague and Charles University, Prague Fall School of Logic, Prague, 2009 2 Overview 1 a survey of proof systems 2 a lower

More information

03 Review of First-Order Logic

03 Review of First-Order Logic CAS 734 Winter 2014 03 Review of First-Order Logic William M. Farmer Department of Computing and Software McMaster University 18 January 2014 What is First-Order Logic? First-order logic is the study of

More information

The Potential and Challenges of CAD with Equational Constraints for SC-Square

The Potential and Challenges of CAD with Equational Constraints for SC-Square The Potential and Challenges of with Equational Constraints for SC-Square Matthew England (Coventry University) Joint work with: James H. Davenport (University of Bath) 7th International Conference on

More information

Propositional logic (revision) & semantic entailment. p. 1/34

Propositional logic (revision) & semantic entailment. p. 1/34 Propositional logic (revision) & semantic entailment p. 1/34 Reading The background reading for propositional logic is Chapter 1 of Huth/Ryan. (This will cover approximately the first three lectures.)

More information

Propositional Logic Language

Propositional Logic Language Propositional Logic Language A logic consists of: an alphabet A, a language L, i.e., a set of formulas, and a binary relation = between a set of formulas and a formula. An alphabet A consists of a finite

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

Single-Round Multi-Join Evaluation. Bas Ketsman

Single-Round Multi-Join Evaluation. Bas Ketsman Single-Round Multi-Join Evaluation Bas Ketsman Outline 1. Introduction 2. Parallel-Correctness 3. Transferability 4. Special Cases 2 Motivation Single-round Multi-joins Less rounds / barriers Formal framework

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

Logic: Propositional Logic Truth Tables

Logic: Propositional Logic Truth Tables Logic: Propositional Logic Truth Tables Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of Bolzano-Bozen http://www.inf.unibz.it/~bernardi/courses/logic06

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

Comp487/587 - Boolean Formulas

Comp487/587 - Boolean Formulas Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested

More information

Lightweight Description Logics: DL-Lite A and EL ++

Lightweight Description Logics: DL-Lite A and EL ++ Lightweight Description Logics: DL-Lite A and EL ++ Elena Botoeva 1 KRDB Research Centre Free University of Bozen-Bolzano January 13, 2011 Departamento de Ciencias de la Computación Universidad de Chile,

More information

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler Database Theory Database Theory VU 181.140, SS 2018 5. Complexity of Query Evaluation Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 17 April, 2018 Pichler

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

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

Fuzzy Answer Set semantics for Residuated Logic programs

Fuzzy Answer Set semantics for Residuated Logic programs semantics for Logic Nicolás Madrid & Universidad de Málaga September 23, 2009 Aims of this paper We are studying the introduction of two kinds of negations into residuated : Default negation: This negation

More information

Team Semantics and Recursive Enumerability

Team Semantics and Recursive Enumerability Team Semantics and Recursive Enumerability Antti Kuusisto University of Wroc law, Poland, Technical University of Denmark Stockholm University, Sweden antti.j.kuusisto@uta.fi Abstract. It is well known

More information

Propositional and Predicate Logic

Propositional and Predicate Logic Formal Verification of Software Propositional and Predicate Logic Bernhard Beckert UNIVERSITÄT KOBLENZ-LANDAU B. Beckert: Formal Verification of Software p.1 Propositional Logic: Syntax Special symbols

More information

UVA UVA UVA UVA. Database Design. Relational Database Design. Functional Dependency. Loss of Information

UVA UVA UVA UVA. Database Design. Relational Database Design. Functional Dependency. Loss of Information Relational Database Design Database Design To generate a set of relation schemas that allows - to store information without unnecessary redundancy - to retrieve desired information easily Approach - design

More information

Predicate Logic: Sematics Part 1

Predicate Logic: Sematics Part 1 Predicate Logic: Sematics Part 1 CS402, Spring 2018 Shin Yoo Predicate Calculus Propositional logic is also called sentential logic, i.e. a logical system that deals with whole sentences connected with

More information

Existence and Consistency in Bounded Arithmetic

Existence and Consistency in Bounded Arithmetic Existence and Consistency in Bounded Arithmetic Yoriyuki Yamagata National Institute of Advanced Science and Technology (AIST) Kusatsu, August 30, 2011 Outline Self introduction Summary Theories of PV

More information

Logic. Propositional Logic: Syntax

Logic. Propositional Logic: Syntax Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about

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

Entity-Relationship Diagrams and FOL

Entity-Relationship Diagrams and FOL Free University of Bozen-Bolzano Faculty of Computer Science http://www.inf.unibz.it/ artale Descrete Mathematics and Logic BSc course Thanks to Prof. Enrico Franconi for provoding the slides What is a

More information

NP-Complete Reductions 2

NP-Complete Reductions 2 x 1 x 1 x 2 x 2 x 3 x 3 x 4 x 4 12 22 32 CS 447 11 13 21 23 31 33 Algorithms NP-Complete Reductions 2 Prof. Gregory Provan Department of Computer Science University College Cork 1 Lecture Outline NP-Complete

More information

Tecniche di Verifica. Introduction to Propositional Logic

Tecniche di Verifica. Introduction to Propositional Logic Tecniche di Verifica Introduction to Propositional Logic 1 Logic A formal logic is defined by its syntax and semantics. Syntax An alphabet is a set of symbols. A finite sequence of these symbols is called

More information

The Bayesian Ontology Language BEL

The Bayesian Ontology Language BEL Journal of Automated Reasoning manuscript No. (will be inserted by the editor) The Bayesian Ontology Language BEL İsmail İlkan Ceylan Rafael Peñaloza Received: date / Accepted: date Abstract We introduce

More information

Two hours. Examination definition sheet is available at the back of the examination. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

Two hours. Examination definition sheet is available at the back of the examination. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE COMP 60332 Two hours Examination definition sheet is available at the back of the examination. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE Automated Reasoning and Verification Date: Wednesday 30th

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

Exercises for the Logic Course

Exercises for the Logic Course Exercises for the Logic Course First Order Logic Course Web Page http://www.inf.unibz.it/~artale/dml/dml.htm Computer Science Free University of Bozen-Bolzano December 22, 2017 1 Exercises 1.1 Formalisation

More information

Expressive number restrictions in Description Logics

Expressive number restrictions in Description Logics Expressive number restrictions in Description Logics Franz Baader and Ulrike Sattler August 12, 1999 Abstract Number restrictions are concept constructors that are available in almost all implemented Description

More information

MAT 243 Test 1 SOLUTIONS, FORM A

MAT 243 Test 1 SOLUTIONS, FORM A t MAT 243 Test 1 SOLUTIONS, FORM A 1. [10 points] Rewrite the statement below in positive form (i.e., so that all negation symbols immediately precede a predicate). ( x IR)( y IR)((T (x, y) Q(x, y)) R(x,

More information

07 Equational Logic and Algebraic Reasoning

07 Equational Logic and Algebraic Reasoning CAS 701 Fall 2004 07 Equational Logic and Algebraic Reasoning Instructor: W. M. Farmer Revised: 17 November 2004 1 What is Equational Logic? Equational logic is first-order logic restricted to languages

More information

With Question/Answer Animations. Chapter 2

With Question/Answer Animations. Chapter 2 With Question/Answer Animations Chapter 2 Chapter Summary Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Sequences and Summations Types of

More information

1 Solving Algebraic Equations

1 Solving Algebraic Equations Arkansas Tech University MATH 1203: Trigonometry Dr. Marcel B. Finan 1 Solving Algebraic Equations This section illustrates the processes of solving linear and quadratic equations. The Geometry of Real

More information

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Description Logics. Foundations of Propositional Logic.   franconi. Enrico Franconi (1/27) Description Logics Foundations of Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/27) Knowledge

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

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation Knowledge Bases and Databases Part 1: First-Order Queries Diego Calvanese Faculty of Computer Science Master of Science in Computer Science A.Y. 2007/2008 Overview of Part 1: First-order queries 1 First-order

More information

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30) Computational Logic Davide Martinenghi Free University of Bozen-Bolzano Spring 2010 Computational Logic Davide Martinenghi (1/30) Propositional Logic - sequent calculus To overcome the problems of natural

More information

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) B.Y. Choueiry 1 Instructor s notes #12 Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) Introduction to Artificial Intelligence CSCE 476-876, Fall 2018 URL: www.cse.unl.edu/ choueiry/f18-476-876

More information

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014

Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014 Sample Problems for all sections of CMSC250, Midterm 1 Fall 2014 1. Translate each of the following English sentences into formal statements using the logical operators (,,,,, and ). You may also use mathematical

More information

CS156: The Calculus of Computation

CS156: The Calculus of Computation Page 1 of 31 CS156: The Calculus of Computation Zohar Manna Winter 2010 Chapter 3: First-Order Theories Page 2 of 31 First-Order Theories I First-order theory T consists of Signature Σ T - set of constant,

More information

03 Propositional Logic II

03 Propositional Logic II Martin Henz February 12, 2014 Generated on Wednesday 12 th February, 2014, 09:49 1 Review: Syntax and Semantics of Propositional Logic 2 3 Propositional Atoms and Propositions Semantics of Formulas Validity,

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

Informal Statement Calculus

Informal Statement Calculus FOUNDATIONS OF MATHEMATICS Branches of Logic 1. Theory of Computations (i.e. Recursion Theory). 2. Proof Theory. 3. Model Theory. 4. Set Theory. Informal Statement Calculus STATEMENTS AND CONNECTIVES Example

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

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas. 1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is

More information

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method Overview CS389L: Automated Logical Reasoning Lecture 7: Validity Proofs and Properties of FOL Agenda for today: Semantic argument method for proving FOL validity Işıl Dillig Important properties of FOL

More information

Chapter 2. Logical Notation. Bahar Aameri. Department of Computer Science University of Toronto. Jan 16, Mathematical Expression and Reasoning 1

Chapter 2. Logical Notation. Bahar Aameri. Department of Computer Science University of Toronto. Jan 16, Mathematical Expression and Reasoning 1 Chapter 2 Logical Notation Bahar Aameri Department of Computer Science University of Toronto Jan 16, 2015 Mathematical Expression and Reasoning 1 Announcements Assignment 1: Assignment 1 will be posted

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

Parallel-Correctness and Transferability for Conjunctive Queries

Parallel-Correctness and Transferability for Conjunctive Queries Parallel-Correctness and Transferability for Conjunctive Queries Tom J. Ameloot1 Gaetano Geck2 Bas Ketsman1 Frank Neven1 Thomas Schwentick2 1 Hasselt University 2 Dortmund University Big Data Too large

More information

Predicate Logic. CSE 595 Semantic Web Instructor: Dr. Paul Fodor Stony Brook University

Predicate Logic. CSE 595 Semantic Web Instructor: Dr. Paul Fodor Stony Brook University Predicate Logic CSE 595 Semantic Web Instructor: Dr. Paul Fodor Stony Brook University http://www3.cs.stonybrook.edu/~pfodor/courses/cse595.html 1 The alphabet of predicate logic Variables Constants (identifiers,

More information

First-Order Logic (FOL)

First-Order Logic (FOL) First-Order Logic (FOL) Also called Predicate Logic or Predicate Calculus 2. First-Order Logic (FOL) FOL Syntax variables x, y, z, constants a, b, c, functions f, g, h, terms variables, constants or n-ary

More information

Logic. Propositional Logic: Syntax. Wffs

Logic. Propositional Logic: Syntax. Wffs Logic Propositional Logic: Syntax Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about

More information

Propositional and Predicate Logic - VII

Propositional and Predicate Logic - VII Propositional and Predicate Logic - VII Petr Gregor KTIML MFF UK WS 2015/2016 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - VII WS 2015/2016 1 / 11 Theory Validity in a theory A theory

More information

Modal logics and their semantics

Modal logics and their semantics Modal logics and their semantics Joshua Sack Department of Mathematics and Statistics, California State University Long Beach California State University Dominguez Hills Feb 22, 2012 Relational structures

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

Normal Forms of Propositional Logic

Normal Forms of Propositional Logic Normal Forms of Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 12, 2017 Bow-Yaw Wang (Academia Sinica) Normal Forms of Propositional Logic September

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

Umans Complexity Theory Lectures

Umans Complexity Theory Lectures Complexity Theory Umans Complexity Theory Lectures Lecture 1a: Problems and Languages Classify problems according to the computational resources required running time storage space parallelism randomness

More information

Logic: First Order Logic

Logic: First Order Logic Logic: First Order Logic Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of Bolzano-Bozen http://www.inf.unibz.it/~bernardi/courses/logic06

More information

Data Dependencies in the Presence of Difference

Data Dependencies in the Presence of Difference Data Dependencies in the Presence of Difference Tsinghua University sxsong@tsinghua.edu.cn Outline Introduction Application Foundation Discovery Conclusion and Future Work Data Dependencies in the Presence

More information

Propositional logic. First order logic. Alexander Clark. Autumn 2014

Propositional logic. First order logic. Alexander Clark. Autumn 2014 Propositional logic First order logic Alexander Clark Autumn 2014 Formal Logic Logical arguments are valid because of their form. Formal languages are devised to express exactly that relevant form and

More information

From Satisfiability to Linear Algebra

From Satisfiability to Linear Algebra From Satisfiability to Linear Algebra Fangzhen Lin Department of Computer Science Hong Kong University of Science and Technology Clear Water Bay, Kowloon, Hong Kong Technical Report August 2013 1 Introduction

More information

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008 Chapter 3: Propositional Calculus: Deductive Systems September 19, 2008 Outline 1 3.1 Deductive (Proof) System 2 3.2 Gentzen System G 3 3.3 Hilbert System H 4 3.4 Soundness and Completeness; Consistency

More information

Relational Database Design

Relational Database Design Relational Database Design Jan Chomicki University at Buffalo Jan Chomicki () Relational database design 1 / 16 Outline 1 Functional dependencies 2 Normal forms 3 Multivalued dependencies Jan Chomicki

More information

Notes for Lecture 2. Statement of the PCP Theorem and Constraint Satisfaction

Notes for Lecture 2. Statement of the PCP Theorem and Constraint Satisfaction U.C. Berkeley Handout N2 CS294: PCP and Hardness of Approximation January 23, 2006 Professor Luca Trevisan Scribe: Luca Trevisan Notes for Lecture 2 These notes are based on my survey paper [5]. L.T. Statement

More information

Database Design and Normalization

Database Design and Normalization Database Design and Normalization Chapter 12 (Week 13) EE562 Slides and Modified Slides from Database Management Systems, R. Ramakrishnan 1 Multivalued Dependencies Employee Child Salary Year Hilbert Hubert

More information

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World

Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World Inf2D 06: Logical Agents: Knowledge Bases and the Wumpus World School of Informatics, University of Edinburgh 26/01/18 Slide Credits: Jacques Fleuriot, Michael Rovatsos, Michael Herrmann Outline Knowledge-based

More information

Kleene realizability and negative translations

Kleene realizability and negative translations Q E I U G I C Kleene realizability and negative translations Alexandre Miquel O P. D E. L Ō A U D E L A R April 21th, IMERL Plan 1 Kleene realizability 2 Gödel-Gentzen negative translation 3 Lafont-Reus-Streicher

More information

Constraints: Functional Dependencies

Constraints: Functional Dependencies Constraints: Functional Dependencies Spring 2018 School of Computer Science University of Waterloo Databases CS348 (University of Waterloo) Functional Dependencies 1 / 32 Schema Design When we get a relational

More information

Introduction to first-order logic:

Introduction to first-order logic: Introduction to first-order logic: First-order structures and languages. Terms and formulae in first-order logic. Interpretations, truth, validity, and satisfaction. Valentin Goranko DTU Informatics September

More information

Schema Refinement and Normalization

Schema Refinement and Normalization Schema Refinement and Normalization Schema Refinements and FDs Redundancy is at the root of several problems associated with relational schemas. redundant storage, I/D/U anomalies Integrity constraints,

More information

Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations

Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations preprint Lauri Hella University of Tampere Antti Kuusisto University of Bremen Abstract This article investigates

More information

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula:

Examples: P: it is not the case that P. P Q: P or Q P Q: P implies Q (if P then Q) Typical formula: Logic: The Big Picture Logic is a tool for formalizing reasoning. There are lots of different logics: probabilistic logic: for reasoning about probability temporal logic: for reasoning about time (and

More information

NP-Complete Problems. Complexity Class P. .. Cal Poly CSC 349: Design and Analyis of Algorithms Alexander Dekhtyar..

NP-Complete Problems. Complexity Class P. .. Cal Poly CSC 349: Design and Analyis of Algorithms Alexander Dekhtyar.. .. Cal Poly CSC 349: Design and Analyis of Algorithms Alexander Dekhtyar.. Complexity Class P NP-Complete Problems Abstract Problems. An abstract problem Q is a binary relation on sets I of input instances

More information

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel Propositional Logic Methods & Tools for Software Engineering (MTSE) Fall 2017 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland Discrete Mathematics W. Ethan Duckworth Fall 2017, Loyola University Maryland Contents 1 Introduction 4 1.1 Statements......................................... 4 1.2 Constructing Direct Proofs................................

More information

Example. Lemma. Proof Sketch. 1 let A be a formula that expresses that node t is reachable from s

Example. Lemma. Proof Sketch. 1 let A be a formula that expresses that node t is reachable from s Summary Summary Last Lecture Computational Logic Π 1 Γ, x : σ M : τ Γ λxm : σ τ Γ (λxm)n : τ Π 2 Γ N : τ = Π 1 [x\π 2 ] Γ M[x := N] Georg Moser Institute of Computer Science @ UIBK Winter 2012 the proof

More information

What s Decidable About Arrays?

What s Decidable About Arrays? What s Decidable About Arrays? Aaron R. Bradley Zohar Manna Henny B. Sipma Computer Science Department Stanford University 1 Outline 0. Motivation 1. Theories of Arrays 2. SAT A 4. Undecidable Problems

More information

AAA615: Formal Methods. Lecture 2 First-Order Logic

AAA615: Formal Methods. Lecture 2 First-Order Logic AAA615: Formal Methods Lecture 2 First-Order Logic Hakjoo Oh 2017 Fall Hakjoo Oh AAA615 2017 Fall, Lecture 2 September 24, 2017 1 / 29 First-Order Logic An extension of propositional logic with predicates,

More information

CS156: The Calculus of Computation Zohar Manna Winter 2010

CS156: The Calculus of Computation Zohar Manna Winter 2010 Page 3 of 35 Page 4 of 35 quantifiers CS156: The Calculus of Computation Zohar Manna Winter 2010 Chapter 2: First-Order Logic (FOL) existential quantifier x. F [x] there exists an x such that F [x] Note:

More information

Unranked Tree Automata with Sibling Equalities and Disequalities

Unranked Tree Automata with Sibling Equalities and Disequalities Unranked Tree Automata with Sibling Equalities and Disequalities Wong Karianto Christof Löding Lehrstuhl für Informatik 7, RWTH Aachen, Germany 34th International Colloquium, ICALP 2007 Xu Gao (NFS) Unranked

More information

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel Propositional Logic Testing, Quality Assurance, and Maintenance Winter 2018 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information