A Semantic Criterion for Proving Infeasibility in Conditional Rewriting

Size: px
Start display at page:

Download "A Semantic Criterion for Proving Infeasibility in Conditional Rewriting"

Transcription

1 A Semantic Criterion for Proving Infeasibility in Conditional Rewriting Salvador Lucas Raúl Gutiérrez DSIC, Universitat Politècnica de València, Spain 6 th International Workshop on Confluence, IWC Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 1 / 1

2 Motivation Conditional Term Rewriting Systems (CTRSs) consist of rules of the following general form: l r c where the conditional part c is used as a test for the application of (an instance of) l and r in any rewriting step σ(l) σ(r), i.e., σ(c) must be satisfied. Infeasible rules Some conditional parts cannot be used with any substitution! a b a c In this case, the test specified by the conditional part is a reachability test a c (as for oriented CTRSs) which never succeeds. 2 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 2 / 1

3 Motivation In the analysis of computational properties of CTRSs R, the conditional part of the rules is often used to investigate them. 1 Confluence is analyzed by means of conditional critical pairs s, t c, where c is obtained from two rules l r d and l r d in R. 2 Operational termination is analyzed by means of conditional dependency pairs u v c where c is obtained from the conditional part d of a rule l r d in R. Feasibility tests In all these cases, the following question is relevant: Is there any substitution σ such that σ(c) holds using R? Or, assuming a logic-based operational semantics for CTRSs: Is there any substitution σ such that R σ(c)? 3 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 3 / 1

4 Motivation A negative answer to this question, i.e., ensuring that R σ(c) does not hold for any substitution σ (i.e., proving c infeasible), can be useful: Rules l r c R will never be used when rewriting with R. Joinability of s and t in conditional critical pairs s, t c does not matter in the analysis of confluence of R. Conditional dependency pairs u v c can be safely discarded in the analysis of operational termination of R. Analyzing infeasibility How to prove the conditional part of a conditional rule/critical pair/dependency pair infeasible? This problem has been addressed before; several approaches have been proposed. Our contribution exploits the logical approach sketched above. 4 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 4 / 1

5 Infeasibility problems In the following, we focus on oriented CTRSs R, with rules l r s 1 t 1,..., s n t n whose operational semantics is given by the following inference system: (Rf) x x (C) x i y i f (x 1,..., x i,..., x k ) f (x 1,..., y i,..., x k ) for all f F and 1 i k = arity(f ) (T) x z z y x y (Rp) s 1 t 1... s n t n l r for all l r s 1 t 1 s n t n R Definition Let R be a CTRS. A sequence s 1 t 1,..., s n t n, where s i and t i are terms for all 1 i n is called a feasibility sequence. It is called R-feasible if there is a substitution σ such that for all 1 i n, σ(s i ) R σ(t i). Otherwise, it is called R-infeasible. 5 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 5 / 1

6 CTRSs as First-Order Theories The first-order theory R for a CTRS R is obtained by specializing (C) and (Rp) as above. Inference rules B 1 B n A become universally quantified implications B 1 B n A. Example For the CTRS R (from [Giesl & Arts, AAECC 01]) a b g(x) g(a) f(x) x f(a) b its associated theory R is ( x) x x ( x, y, z) x y y z x z ( x, y) x y f(x) f(y) a b f(a) b ( x) f(x) x g(x) g(a) ( x, y) x y g(x) g(y) 6 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 6 / 1

7 A semantic criterion for infeasibility A structure (or interpretation) A for a first-order language gives meaning to function and predicate symbols as mappings and relations on a given set. The usual interpretation of first-order formulas with respect to the structure is then considered. A model for a set S of first-order sentences (i.e., formulas without free variables) is a structure that makes them all true, written A = S. Proposition Let R be a CTRS, s 1 t 1,..., s n t n be a feasibility sequence, and A be a structure with nonempty domain. The sequence is R-infeasible if holds. A = R { ( x) (s 1 t 1 s n t n )} 7 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 7 / 1

8 A semantic criterion for infeasibility Proof by contradiction 1 R-feasiblity implies that σ(s i ) R σ(t i) (i.e., R σ(s i ) σ(t i )) for some substitution σ and all 1 i n. 8 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 8 / 1

9 A semantic criterion for infeasibility Proof by contradiction 1 R-feasiblity implies that σ(s i ) R σ(t i) (i.e., R σ(s i ) σ(t i )) for some substitution σ and all 1 i n. 2 Since A = R, by correctness, A = ( y i ) σ(s i ) σ(t i ) for all 1 i n, where y i are the variables in Var(σ(s i )) Var(σ(t i )). 8 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 8 / 1

10 A semantic criterion for infeasibility Proof by contradiction 1 R-feasiblity implies that σ(s i ) R σ(t i) (i.e., R σ(s i ) σ(t i )) for some substitution σ and all 1 i n. 2 Since A = R, by correctness, A = ( y i ) σ(s i ) σ(t i ) for all 1 i n, where y i are the variables in Var(σ(s i )) Var(σ(t i )). 3 Thus, A = ( y) (σ(s 1 ) σ(t 1 ) σ(s n ) σ(t n )). 8 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 8 / 1

11 A semantic criterion for infeasibility Proof by contradiction 1 R-feasiblity implies that σ(s i ) R σ(t i) (i.e., R σ(s i ) σ(t i )) for some substitution σ and all 1 i n. 2 Since A = R, by correctness, A = ( y i ) σ(s i ) σ(t i ) for all 1 i n, where y i are the variables in Var(σ(s i )) Var(σ(t i )). 3 Thus, A = ( y) (σ(s 1 ) σ(t 1 ) σ(s n ) σ(t n )). 4 For all ν : y A, [σ(s 1 ) σ(t 1 ) σ(s n ) σ(t n )] A ν, is true. 8 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 8 / 1

12 A semantic criterion for infeasibility Proof by contradiction 1 R-feasiblity implies that σ(s i ) R σ(t i) (i.e., R σ(s i ) σ(t i )) for some substitution σ and all 1 i n. 2 Since A = R, by correctness, A = ( y i ) σ(s i ) σ(t i ) for all 1 i n, where y i are the variables in Var(σ(s i )) Var(σ(t i )). 3 Thus, A = ( y) (σ(s 1 ) σ(t 1 ) σ(s n ) σ(t n )). 4 For all ν : y A, [σ(s 1 ) σ(t 1 ) σ(s n ) σ(t n )] A ν, is true. 5 Since A has a nonempty domain, there is a valuation ν : x A given by ν (x) = [σ(x)] A ν for all variable x in x = n i=1 Var(s i) Var(t i ), such that [s 1 t 1 s n t n ] A ν is true. 8 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 8 / 1

13 A semantic criterion for infeasibility Proof by contradiction 1 R-feasiblity implies that σ(s i ) R σ(t i) (i.e., R σ(s i ) σ(t i )) for some substitution σ and all 1 i n. 2 Since A = R, by correctness, A = ( y i ) σ(s i ) σ(t i ) for all 1 i n, where y i are the variables in Var(σ(s i )) Var(σ(t i )). 3 Thus, A = ( y) (σ(s 1 ) σ(t 1 ) σ(s n ) σ(t n )). 4 For all ν : y A, [σ(s 1 ) σ(t 1 ) σ(s n ) σ(t n )] A ν, is true. 5 Since A has a nonempty domain, there is a valuation ν : x A given by ν (x) = [σ(x)] A ν for all variable x in x = n i=1 Var(s i) Var(t i ), such that [s 1 t 1 s n t n ] A ν is true. 6 This contradicts A = ( x) (s 1 t 1 s n t n ). 8 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 8 / 1

14 Examples of use Infeasible rule The following structure A over N {0}: a A = 1 b A = 2 f A (x) = x + 1 g A (x) = 1 x A y y x x ( ) A y y x is a model of R { ( x) f(x) x} for our running CTRS R. Automation This model has been automatically generated by using the tool AGES: Thus, rule is proved R-infeasible. g(x) g(a) f(x) x 9 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 9 / 1

15 Examples of use Infeasible critical pair The following CTRS R (Example 23 in [Sternagel & Sternagel, FSCD 16]) g(x) f(x, x) (1) g(x) g(x) g(x) f(a, b) (2) has a conditional critical pair f(x, x) g(x) g(x) f(a, b). The following structure A over the finite domain {0, 1}: { a A = 1 b A = 0 f A x y + 1 if x y (x, y) = y x + 1 otherwise g A (x) = 1 x A y x = y x ( ) A y x y is a model R { ( x) g(x) f(a, b)}. The critical pair is infeasible. In the FSCD 16 paper, this is proved by using unification tests together with a transformation. It is discussed that the alternative tree automata techniques investigated in the paper do not work for this example. 10 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 10 / 1

16 Examples of use Non-joinable terms Proposition (Joinability and feasibility) Let R be a CTRS, s, t be terms, and x be a fresh variable not occurring in s or t. If s and t are joinable, then s x, t x is R-feasible. If s and t are ground and s x, t x is R-feasible, then s and t are joinable. Consider the following CTRS R (Example in Ohlebusch s book): a b (3) f(x) c x a (4) Although there is no critical pair, the system is not (locally) confluent because f(a) R f(b) and f(a) R c but c and f(b) are not joinable. The following structure A over N { 1}: a A = 0 b A = 1 c A = 1 f A (x) = x + 1 x A y x = y x ( ) A y x = y is a model of U(R, f(b), c) { ( x) (f(b) x c x)}, where U(R, f(b), c) = {(4)} is the set of usable rules (from R) for f(b) and c. Therefore, f(b) and c are proved non-joinable. 11 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 11 / 1

17 Conclusions and future work We have presented a semantic approach to prove infeasibility in conditional rewriting. We could handle many examples coming from papers developing different specific techniques to deal with these problems We do not have a dedicated, fully automated infeasibility checker yet. Instead we just encode the problem we want to deal with (e.g., infeasibility of a critical pair, or rule; or non-joinability) as an specific infeasibility sequence and then use AGES to find a model. Future work Improving automation, and the connection of AGES as a backend for other (confluence) tools are interesting subjects for future work. 12 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 12 / 1

18 Conclusions and future work This paper defines feasibility problems as (instantiated) reachability problems, which corresponds to the use oriented CTRSs. As shown in [Lucas, LOPSTR 2017], the current treatment can be generalized to deal with more general notions of CTRSs, with many-sorted signatures, alternative satisfiability notions for the conditions (e.g., joinability), or more general components there (e.g., memberships). Future work The use of our semantic techniques in proofs of confluence of Maude programs is also an interesting subject for future work. 13 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 13 / 1

19 Conclusions and future work Thanks! 14 Salvador Lucas and Raúl Gutiérrez A Semantic Criterion for Proving Infeasibility IWC 17, September 8 14 / 1

A Semantic Criterion for Proving Infeasibility in Conditional Rewriting

A Semantic Criterion for Proving Infeasibility in Conditional Rewriting A Semantic Criterion for Proving Infeasibility in Conditional Rewriting Salvador Lucas and Raúl Gutiérrez DSIC, Universitat Politècnica de València, Spain 1 Introduction In the literature about confluence

More information

A Dependency Pair Framework for A C-Termination

A Dependency Pair Framework for A C-Termination A Dependency Pair Framework for A C-Termination Beatriz Alarcón Raúl Gutiérrez Salvador Lucas José Meseguer* DSIC, Universidad Politécnica de Valencia Camino de Vera s/n, E-46022 Valencia, Spain {balarcon,rgutierrez,slucas}@dsic.upv.es

More information

Notes on Confluence of Ultra-Weakly-Left-Linear SDCTRSs via a Structure-Preserving Transformation

Notes on Confluence of Ultra-Weakly-Left-Linear SDCTRSs via a Structure-Preserving Transformation Notes on Confluence of Ultra-Weakly-Left-Linear SDCTRSs via a Structure-Preserving Transformation Naoki Nishida Nagoya University IWC 2016, Obergurgl, Austria, September 8 9, 2016 Oriented Conditional

More information

Theorem 4.18 ( Critical Pair Theorem ) A TRS R is locally confluent if and only if all its critical pairs are joinable.

Theorem 4.18 ( Critical Pair Theorem ) A TRS R is locally confluent if and only if all its critical pairs are joinable. 4.4 Critical Pairs Showing local confluence (Sketch): Problem: If t 1 E t 0 E t 2, does there exist a term s such that t 1 E s E t 2? If the two rewrite steps happen in different subtrees (disjoint redexes):

More information

Order-Sorted Equality Enrichments Modulo Axioms

Order-Sorted Equality Enrichments Modulo Axioms Order-Sorted Equality Enrichments Modulo Axioms Raúl Gutiérrez, José Meseguer, and Camilo Rocha Department of Computer Science University of Illinois at Urbana-Champaign 201 N. Goodwin Ave., Urbana, IL

More information

Equational Logic. Chapter 4

Equational Logic. Chapter 4 Chapter 4 Equational Logic From now on First-order Logic is considered with equality. In this chapter, I investigate properties of a set of unit equations. For a set of unit equations I write E. Full first-order

More information

Informe Técnico / Technical Report

Informe Técnico / Technical Report DEPARTAMENTO DE SISTEMAS INFORMÁTICOS Y COMPUTACIÓN UNIVERSIDAD POLITÉCNICA DE VALENCIA P.O. Box: 22012 E-46071 Valencia (SPAIN) Informe Técnico / Technical Report Ref. No.: DSIC-II/10/08 Pages: 72 Title:

More information

Innermost Reductions Find All Normal Forms on Right-Linear Terminating Overlay TRSs

Innermost Reductions Find All Normal Forms on Right-Linear Terminating Overlay TRSs Innermost Reductions Find All Normal Forms on Right-Linear Terminating Overlay TRSs Masahiko Sakai,Kouji Okamoto,Toshiki Sakabe Graduate School of Information Science, Nagoya University, Furo-cho, Chikusa-ku,

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

Introduction to Logic in Computer Science: Autumn 2006

Introduction to Logic in Computer Science: Autumn 2006 Introduction to Logic in Computer Science: Autumn 2006 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Plan for Today Today s class will be an introduction

More information

02 Propositional Logic

02 Propositional Logic SE 2F03 Fall 2005 02 Propositional Logic Instructor: W. M. Farmer Revised: 25 September 2005 1 What is Propositional Logic? Propositional logic is the study of the truth or falsehood of propositions or

More information

8 General first order representation

8 General first order representation Intro. to Artificial Intelligence: Dale Schuurmans, Relu Patrascu 1 8 General first order representation 8.1 First order language Propositional core constants A, B, C, D predicates on(, ) associated arity,

More information

Cheat Sheet Equational Logic (Spring 2013) Terms. Inductive Construction. Positions: Denoting Subterms TERMS

Cheat Sheet Equational Logic (Spring 2013) Terms. Inductive Construction. Positions: Denoting Subterms TERMS TERMS Cheat Sheet Equational Logic (Spring 2013) The material given here summarizes those notions from the course s textbook [1] that occur frequently. The goal is to have them at hand, as a quick reminder

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

Termination of LCTRSs

Termination of LCTRSs Termination of LCTRSs Cynthia Kop 1 1 Department of Computer Science, University of Innsbruck Technikerstraße 21a, 6020 Innsbruck, Austria Cynthia.Kop@uibk.ac.at Abstract Logically Constrained Term Rewriting

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

A Polynomial Algorithm for Uniqueness of Normal Forms of Linear Shallow Term Rewrite Systems 1. Julian Zinn 2 and Rakesh Verma

A Polynomial Algorithm for Uniqueness of Normal Forms of Linear Shallow Term Rewrite Systems 1. Julian Zinn 2 and Rakesh Verma A Polynomial Algorithm for Uniqueness of Normal Forms of Linear Shallow Term Rewrite Systems 1 Julian Zinn 2 and Rakesh Verma Computer Science Department University of Houston Houston, TX, 77204, USA http://www.cs.uh.edu

More information

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω 1 Preliminaries In this chapter we first give a summary of the basic notations, terminology and results which will be used in this thesis. The treatment here is reduced to a list of definitions. For the

More information

Transformation for Refining Unraveled Conditional Term Rewriting Systems

Transformation for Refining Unraveled Conditional Term Rewriting Systems Electronic Notes in Theoretical Computer Science 174 (2007) 75 95 www.elsevier.com/locate/entcs Transformation for Refining Unraveled Conditional Term Rewriting Systems Naoki Nishida 1 Tomohiro Mizutani

More information

Asymmetric Unification: A New Unification Paradigm for Cryptographic Protocol Analysis

Asymmetric Unification: A New Unification Paradigm for Cryptographic Protocol Analysis Asymmetric Unification: A New Unification Paradigm for Cryptographic Protocol Analysis Serdar Erbatur 6, Santiago Escobar 1, Deepak Kapur 2, Zhiqiang Liu 3, Christopher Lynch 3, Catherine Meadows 4, José

More information

Constraint Solving for Program Verification: Theory and Practice by Example

Constraint Solving for Program Verification: Theory and Practice by Example Constraint Solving for Program Verification: Theory and Practice by Example Andrey Rybalchenko Technische Universität München Abstract. Program verification relies on the construction of auxiliary assertions

More information

G52DOA - Derivation of Algorithms Predicate Logic

G52DOA - Derivation of Algorithms Predicate Logic G52DOA - Derivation of Algorithms Predicate Logic Venanzio Capretta Predicate Logic So far, we studied propositional logic, in which we started with unspecified propositional variables A, B, C, and combined

More information

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates

All psychiatrists are doctors All doctors are college graduates All psychiatrists are college graduates Predicate Logic In what we ve discussed thus far, we haven t addressed other kinds of valid inferences: those involving quantification and predication. For example: All philosophers are wise Socrates is

More information

Language Definitions as Rewrite Theories

Language Definitions as Rewrite Theories Language Definitions as Rewrite Theories Vlad Rusu, Dorel Lucanu, Traian-Florin Şerbănuţă, Andrei Arusoaie, Andrei Ştefănescu, Grigore Roşu To cite this version: Vlad Rusu, Dorel Lucanu, Traian-Florin

More information

1 Introduction to Predicate Resolution

1 Introduction to Predicate Resolution 1 Introduction to Predicate Resolution The resolution proof system for Predicate Logic operates, as in propositional case on sets of clauses and uses a resolution rule as the only rule of inference. The

More information

IAENG International Journal of Computer Science, 42:3, IJCS_42_3_13

IAENG International Journal of Computer Science, 42:3, IJCS_42_3_13 Lazy Evaluation Schemes for Efficient Implementation of Multi-Context Algebraic Completion System ChengCheng Ji, Haruhiko Sato and Masahito Kurihara Abstract Lazy evaluation is a computational scheme which

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

Modular Termination Proofs for Rewriting Using Dependency Pairs

Modular Termination Proofs for Rewriting Using Dependency Pairs J. Symbolic Computation (2002) 34, 21 58 doi:10.1006/jsco.2002.0541 Available online at http://www.idealibrary.com on Modular Termination Proofs for Rewriting Using Dependency Pairs JÜRGEN GIESL, THOMAS

More information

The TLA + proof system

The TLA + proof system The TLA + proof system Stephan Merz Kaustuv Chaudhuri, Damien Doligez, Leslie Lamport INRIA Nancy & INRIA-MSR Joint Centre, France Amir Pnueli Memorial Symposium New York University, May 8, 2010 Stephan

More information

mu-term: A Tool for Proving Termination of Context-Sensitive Rewriting

mu-term: A Tool for Proving Termination of Context-Sensitive Rewriting mu-term: A Tool for Proving Termination of Context-Sensitive Rewriting Salvador Lucas DSIC, Universidad Politécnica de Valencia Camino de Vera s/n, E-46022 Valencia, Spain e.mail: slucas@dsic.upv.es Abstract.

More information

Outline. Overview. Introduction. Well-Founded Monotone Algebras. Monotone algebras. Polynomial Interpretations. Dependency Pairs

Outline. Overview. Introduction. Well-Founded Monotone Algebras. Monotone algebras. Polynomial Interpretations. Dependency Pairs Overview Lecture 1: Introduction, Abstract Rewriting Lecture 2: Term Rewriting Lecture 3: Combinatory Logic Lecture 4: Termination Lecture 5: Matching, Unification Lecture 6: Equational Reasoning, Completion

More information

Advanced Topics in LP and FP

Advanced Topics in LP and FP Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection

More information

Symbolic execution based on language transformation

Symbolic execution based on language transformation Symbolic execution based on language transformation Andrei Arusoaie, Dorel Lucanu, Vlad Rusu To cite this version: Andrei Arusoaie, Dorel Lucanu, Vlad Rusu. Symbolic execution based on language transformation.

More information

Predicate Logic: Semantics

Predicate Logic: Semantics Predicate Logic: Semantics Alice Gao Lecture 13 Based on work by J. Buss, L. Kari, A. Lubiw, B. Bonakdarpour, D. Maftuleac, C. Roberts, R. Trefler, and P. Van Beek 1/34 Outline Semantics of Predicate Logic

More information

Part II. Logic and Set Theory. Year

Part II. Logic and Set Theory. Year Part II Year 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2018 60 Paper 4, Section II 16G State and prove the ǫ-recursion Theorem. [You may assume the Principle of ǫ- Induction.]

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

On Proving Confluence of Conditional Term Rewriting Systems via the Computationally Equivalent Transformation

On Proving Confluence of Conditional Term Rewriting Systems via the Computationally Equivalent Transformation On Proving Confluence of Conditional Term Rewriting Systems via the Computationally Equivalent Transformation Naoki Nishida 1,MakishiYanagisawa 1 and Karl Gmeiner 2 1 Graduate School of Information Science,

More information

Pattern Matching of Compressed Terms and Contexts and Polynomial Rewriting

Pattern Matching of Compressed Terms and Contexts and Polynomial Rewriting Pattern Matching of Compressed Terms and Contexts and Polynomial Rewriting Manfred Schmidt-Schauß 1 Institut für Informatik Johann Wolfgang Goethe-Universität Postfach 11 19 32 D-60054 Frankfurt, Germany

More information

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P. First-Order Logic Syntax The alphabet of a first-order language is organised into the following categories. Logical connectives:,,,,, and. Auxiliary symbols:.,,, ( and ). Variables: we assume a countable

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

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof

The following techniques for methods of proofs are discussed in our text: - Vacuous proof - Trivial proof Ch. 1.6 Introduction to Proofs The following techniques for methods of proofs are discussed in our text - Vacuous proof - Trivial proof - Direct proof - Indirect proof (our book calls this by contraposition)

More information

On Rewrite Constraints and Context Unification

On Rewrite Constraints and Context Unification On Rewrite Constraints and Context Unification Joachim Niehren 1,2,3 Universität des Saarlandes, Postfach 15 11 50, D-66041 Saarbrücken, Germany Sophie Tison 1,2 LIFL, Unicersité Lille 1, F-59655 Villeneuve

More information

Theory of Computer Science

Theory of Computer Science Theory of Computer Science B4. Predicate Logic II Malte Helmert University of Basel March 9, 2016 Free and Bound Variables Free and Bound Variables: Motivation Question: Consider a signature with variable

More information

NICTA Advanced Course. Theorem Proving Principles, Techniques, Applications

NICTA Advanced Course. Theorem Proving Principles, Techniques, Applications NICTA Advanced Course Theorem Proving Principles, Techniques, Applications λ 1 CONTENT Intro & motivation, getting started with Isabelle Foundations & Principles Lambda Calculus Higher Order Logic, natural

More information

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning. 3: Logic Why logic? Logic about inference or argument Start from assumptions or axioms Make deductions according to rules of reasoning Logic 3-1 Why logic? (continued) If I don t buy a lottery ticket on

More information

Classes and conversions

Classes and conversions Classes and conversions Regular expressions Syntax: r = ε a r r r + r r Semantics: The language L r of a regular expression r is inductively defined as follows: L =, L ε = {ε}, L a = a L r r = L r L r

More information

Nominal Completion for Rewrite Systems with Binders

Nominal Completion for Rewrite Systems with Binders Nominal Completion for Rewrite Systems with Binders Maribel Fernández King s College London July 2012 Joint work with Albert Rubio Summary Motivations Nominal Rewriting Closed nominal rules Confluence

More information

On Proving Operational Termination Incrementally with Modular Conditional Dependency Pairs

On Proving Operational Termination Incrementally with Modular Conditional Dependency Pairs On Proving Operational Termination Incrementally with Modular Conditional Dependency Pairs Masaki Nakamura, Kazuhiro Ogata and Kokichi Futatsugi Abstract OBJ algebraic specification languages support semi-automated

More information

Informe Técnico / Technical Report

Informe Técnico / Technical Report DPARTAMNTO D SISTMAS INFORMÁTICOS Y COMPUTACIÓN UNIVRSIDAD POLITÉCNICA D VALNCIA P.O. Box: 22012-46071 Valencia (SPAIN) Informe Técnico / Technical Report Ref. No.: DSIC-II/06/08 Pages:10 Title: A Modular

More information

Rule-based computation and deduction

Rule-based computation and deduction Rule-based computation and deduction Hélène Kirchner and Pierre-Etienne Moreau LORIA CNRS INRIA Nancy, France ESSLII 2001 Rule-based computation and deduction 1 Rules are ubiquitous in Computer Science

More information

Encoding Dependency Pair Techniques and Control Strategies for Maximal Completion

Encoding Dependency Pair Techniques and Control Strategies for Maximal Completion Encoding Dependency Pair Techniques and Control Strategies for Maximal Completion Haruhiko Sato and Sarah Winkler Graduate School of Information Science and Technology, Hokkaido University, Sapporo, Japan

More information

Definition: For nonempty sets X and Y, a function, f, from X to Y is a relation that associates with each element of X exactly one element of Y.

Definition: For nonempty sets X and Y, a function, f, from X to Y is a relation that associates with each element of X exactly one element of Y. Functions Definition: A relation is a correspondence between two sets. If x and y are two elements in these sets and if a relation exists between x and y, then we say that x corresponds to y or that y

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

Mixing Finite Success and Finite Failure. Automated Prover

Mixing Finite Success and Finite Failure. Automated Prover in an Automated Prover Alwen Tiu 1, Gopalan Nadathur 2 and Dale Miller 3 1 INRIA Lorraine, France 2 University of Minnesota, USA 3 INRIA Futurs/École polytechnique, France ESHOL 2005 Montego Bay, Jamaica

More information

Interpolation in Logics with Constructors

Interpolation in Logics with Constructors Interpolation in Logics with Constructors Daniel Găină Japan Advanced Institute of Science and Technology School of Information Science Abstract We present a generic method for establishing the interpolation

More information

Natural Narrowing for General Term Rewriting Systems

Natural Narrowing for General Term Rewriting Systems Natural Narrowing for General Term Rewriting Systems Santiago Escobar 1, José Meseguer 2, and Prasanna Thati 3 1 Universidad Politécnica de Valencia, Spain. sescobar@dsic.upv.es 2 University of Illinois

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

A Sufficient Completeness Reasoning Tool for Partial Specifications

A Sufficient Completeness Reasoning Tool for Partial Specifications 165 A Sufficient Completeness Reasoning Tool for Partial Specifications Joe Hendrix 1,ManuelClavel 2,andJosé Meseguer 1 1 University of Illinois at Urbana-Champaign, USA 2 Universidad Complutense de Madrid,

More information

Confluence of Shallow Right-Linear Rewrite Systems

Confluence of Shallow Right-Linear Rewrite Systems Confluence of Shallow Right-Linear Rewrite Systems Guillem Godoy 1 and Ashish Tiwari 2 1 Technical University of Catalonia Jordi Girona 1, Barcelona, Spain ggodoy@lsi.upc.es 2 SRI International, Menlo

More information

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic

The Importance of Being Formal. Martin Henz. February 5, Propositional Logic The Importance of Being Formal Martin Henz February 5, 2014 Propositional Logic 1 Motivation In traditional logic, terms represent sets, and therefore, propositions are limited to stating facts on sets

More information

Level-Conuence of Conditional Rewrite Systems. with Extra Variables in Right-Hand Sides. Taro Suzuki Aart Middeldorp Tetsuo Ida.

Level-Conuence of Conditional Rewrite Systems. with Extra Variables in Right-Hand Sides. Taro Suzuki Aart Middeldorp Tetsuo Ida. Level-Conuence of Conditional Rewrite Systems with Extra Variables in Right-Hand Sides Taro Suzuki Aart Middeldorp Tetsuo Ida Institute of Information Sciences and Electronics and Center for Tsukuba Advanced

More information

Reachability Analysis with State-Compatible Automata

Reachability Analysis with State-Compatible Automata Reachability nalysis with State-Compatible utomata Bertram Felgenhauer and René Thiemann Institute of Computer Science, University of Innsbruck, Innsbruck, ustria {bertram.felgenhauer,rene.thiemann}@uibk.ac.at

More information

LOGIC. Mathematics. Computer Science. Stanley N. Burris

LOGIC. Mathematics. Computer Science. Stanley N. Burris LOGIC for Mathematics and Computer Science Stanley N. Burris Department of Pure Mathematics University of Waterloo Prentice Hall Upper Saddle River, New Jersey 07458 Contents Preface The Flow of Topics

More information

Natural Deduction for Propositional Logic

Natural Deduction for Propositional Logic Natural Deduction for Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 10, 2018 Bow-Yaw Wang (Academia Sinica) Natural Deduction for Propositional Logic

More information

The Curry-Howard Isomorphism

The Curry-Howard Isomorphism The Curry-Howard Isomorphism Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) The Curry-Howard Isomorphism MFES 2008/09

More information

Towards Correctness of Program Transformations Through Unification and Critical Pair Computation

Towards Correctness of Program Transformations Through Unification and Critical Pair Computation Towards Correctness of Program Transformations Through Unification and Critical Pair Computation Conrad Rau and Manfred Schmidt-Schauß Institut für Informatik Johann Wolfgang Goethe-Universität Postfach

More information

Finding positive instances of parametric polynomials

Finding positive instances of parametric polynomials Finding positive instances of parametric polynomials Salvador Lucas Departamento de Sistemas Informáticos y Computación (DSIC) Universidad Politécnica de Valencia, Spain 1 Motivation: automatic proofs

More information

Polynomial Interpretations with Nega Coefficients. Lecture Notes in Computer Science,

Polynomial Interpretations with Nega Coefficients. Lecture Notes in Computer Science, JAIST Reposi https://dspace.j Title Polynomial Interpretations with Nega Coefficients Author(s)Hirokawa, Nao; Middeldorp, Aart Citation Lecture Notes in Computer Science, 3 185-198 Issue Date 2004 Type

More information

Equational Reasoning and Completion. Dominik Klein

Equational Reasoning and Completion. Dominik Klein Equational Reasoning and Completion by Dominik Klein submitted to Japan Advanced Institute of Science and Technology in partial fulfillment of the requirements for the degree of Doctor of Philosophy Supervisor:

More information

CTL-RP: A Computational Tree Logic Resolution Prover

CTL-RP: A Computational Tree Logic Resolution Prover 1 -RP: A Computational Tree Logic Resolution Prover Lan Zhang a,, Ullrich Hustadt a and Clare Dixon a a Department of Computer Science, University of Liverpool Liverpool, L69 3BX, UK E-mail: {Lan.Zhang,

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

Superposition for Fixed Domains. Matthias Horbach and Christoph Weidenbach

Superposition for Fixed Domains. Matthias Horbach and Christoph Weidenbach Superposition for Fixed Domains Matthias Horbach and Christoph Weidenbach MPI I 2009 RG1 005 Oct. 2009 Authors Addresses Matthias Horbach and Christoph Weidenbach Max Planck Institute for Informatics Campus

More information

A Maude Coherence Checker Tool for Conditional Order-Sorted Rewrite Theories

A Maude Coherence Checker Tool for Conditional Order-Sorted Rewrite Theories Maude Coherence Checker Tool for Conditional Order-Sorted Rewrite Theories Francisco Durán 1 and José Meseguer 2 1 Universidad de Málaga, Spain. 2 University of Illinois at Urbana-Champaign, IL, US. bstract.

More information

Introduction to Logic in Computer Science: Autumn 2007

Introduction to Logic in Computer Science: Autumn 2007 Introduction to Logic in Computer Science: Autumn 2007 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Tableaux for First-order Logic The next part of

More information

Syntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2)

Syntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2) Syntax of FOL Introduction to Logic in Computer Science: Autumn 2007 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam The syntax of a language defines the way in which

More information

Modular Termination of r-consistent and Left-Linear, Term Rewriting Systems

Modular Termination of r-consistent and Left-Linear, Term Rewriting Systems Modular Termination of r-consistent and Left-Linear, Term Rewriting Systems Manfred Schmidt-Schauß, Massimo Marchiori, Sven Eric Panitz Fachbereich Informatik, J.W.Goethe-Universität Frankfurt, PO-Box

More information

Maximal Introspection of Agents

Maximal Introspection of Agents Electronic Notes in Theoretical Computer Science 70 No. 5 (2002) URL: http://www.elsevier.nl/locate/entcs/volume70.html 16 pages Maximal Introspection of Agents Thomas 1 Informatics and Mathematical Modelling

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

Reversible Computation in Term Rewriting

Reversible Computation in Term Rewriting Reversible Computation in Term Rewriting Naoki Nishida a, Adrián Palacios b, Germán Vidal b, a Graduate School of Informatics, Nagoya University Furo-cho, Chikusa-ku, 4648603 Nagoya, Japan b MiST, DSIC,

More information

Propositional Logic: Review

Propositional Logic: Review Propositional Logic: Review Propositional logic Logical constants: true, false Propositional symbols: P, Q, S,... (atomic sentences) Wrapping parentheses: ( ) Sentences are combined by connectives:...and...or

More information

1 Completeness Theorem for Classical Predicate

1 Completeness Theorem for Classical Predicate 1 Completeness Theorem for Classical Predicate Logic The relationship between the first order models defined in terms of structures M = [M, I] and valuations s : V AR M and propositional models defined

More information

Inference in first-order logic

Inference in first-order logic CS 57 Introduction to AI Lecture 5 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Logical inference in FOL Logical inference problem: Given a knowledge base KB (a

More information

Formal Logic Lecture 11

Formal Logic Lecture 11 Faculty of Philosophy Formal Logic Lecture 11 Peter Smith Peter Smith: Formal Logic, Lecture 11 1 Outline Where next? Introducing PL trees Branching trees Peter Smith: Formal Logic, Lecture 11 2 Where

More information

Outline. Formale Methoden der Informatik First-Order Logic for Forgetters. Why PL1? Why PL1? Cont d. Motivation

Outline. Formale Methoden der Informatik First-Order Logic for Forgetters. Why PL1? Why PL1? Cont d. Motivation Outline Formale Methoden der Informatik First-Order Logic for Forgetters Uwe Egly Vienna University of Technology Institute of Information Systems Knowledge-Based Systems Group Motivation Syntax of PL1

More information

Yoshiharu Kojima 1,2

Yoshiharu Kojima 1,2 Reachability Problems for Controlled Rewriting Systems Yoshiharu Kojima 1,2 joint work with Masahiko Sakai 1 and Florent Jacquemard 3 1 Nagoya University 2 Research Fellow of JSPS 3 INRIA Sacray, LSV AJSW2010,

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

Algebraic Abstract Data Types

Algebraic Abstract Data Types Introduction AADT Proofs Theories Hierarchies Rewriting in Algebraic Specifications Université de Genève 16 mars 2009 1/79 Introduction AADT Proofs Theories Hierarchies Rewriting in Algebraic Specifications

More information

DERIVATIONS IN SYMBOLIC LOGIC I

DERIVATIONS IN SYMBOLIC LOGIC I DERIVATIONS IN SYMBOLIC LOGIC I Tomoya Sato Department of Philosophy University of California, San Diego Phil120: Symbolic Logic Summer 2014 TOMOYA SATO LECTURE 5: DERIVATIONS IN SYMBOLIC LOGIC I 1 / 40

More information

Classical First-Order Logic

Classical First-Order Logic Classical First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) First-Order Logic (Classical) MFES 2008/09

More information

CS411 Notes 3 Induction and Recursion

CS411 Notes 3 Induction and Recursion CS411 Notes 3 Induction and Recursion A. Demers 5 Feb 2001 These notes present inductive techniques for defining sets and subsets, for defining functions over sets, and for proving that a property holds

More information

Automated Reasoning Lecture 2: Propositional Logic and Natural Deduction

Automated Reasoning Lecture 2: Propositional Logic and Natural Deduction Automated Reasoning Lecture 2: Propositional Logic and Natural Deduction Jacques Fleuriot jdf@inf.ed.ac.uk Logic Puzzles 1. Tomorrow will be sunny or rainy. Tomorrow will not be sunny. What will the weather

More information

1.1 Language and Logic

1.1 Language and Logic c Oksana Shatalov, Fall 2017 1 1.1 Language and Logic Mathematical Statements DEFINITION 1. A proposition is any declarative sentence (i.e. it has both a subject and a verb) that is either true or false,

More information

Π 0 1-presentations of algebras

Π 0 1-presentations of algebras Π 0 1-presentations of algebras Bakhadyr Khoussainov Department of Computer Science, the University of Auckland, New Zealand bmk@cs.auckland.ac.nz Theodore Slaman Department of Mathematics, The University

More information

Forcing in Lukasiewicz logic

Forcing in Lukasiewicz logic Forcing in Lukasiewicz logic a joint work with Antonio Di Nola and George Georgescu Luca Spada lspada@unisa.it Department of Mathematics University of Salerno 3 rd MATHLOGAPS Workshop Aussois, 24 th 30

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

Constraint Solving for Program Verification: Theory and Practice by Example

Constraint Solving for Program Verification: Theory and Practice by Example Constraint Solving for Program Verification: Theory and Practice by Example Andrey Rybalchenko Technische Universität München Abstract. Program verification relies on the construction of auxiliary assertions

More information

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ

A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ A MODEL-THEORETIC PROOF OF HILBERT S NULLSTELLENSATZ NICOLAS FORD Abstract. The goal of this paper is to present a proof of the Nullstellensatz using tools from a branch of logic called model theory. In

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

1.3. BASIC COMPUTER SCIENCE PREREQUISITES 15

1.3. BASIC COMPUTER SCIENCE PREREQUISITES 15 1.3. BASIC COMPUTER SCIENCE PREREQUISITES 15 For example, if L is reducible to L and L P then L P. A decision problem is NP-hard if every problem in NP is polynomial time reducible to it. A decision problem

More information

Equational Abstractions

Equational Abstractions Equational Abstractions José Meseguer 1, Miguel Palomino 2, and Narciso Martí-Oliet 2 1 Computer Science Department, University of Illinois at Urbana-Champaign 2 Departamento de Sistemas Informáticos,

More information