Rewriting Logic As a Logic of Special Relations

Rewriting Logic As a Logic of Special Relations

Electronic Notes in Theoretical Computer Science URL httpwwwelsevier nl lo ca te ent cs vol ume htm l pages Rewriting Logic as a Logic of Sp ecial Relations W Marco Schorlemmer Institut dInvestigacio en Intelligencia Articial Consel l Superior dInvestigacions Cientques Campus UAB E Bel laterra Barcelona Catalunya Abstract I formally dene a logic of special relations with the purp ose of capturing those logics that by using several binary relations b esides equality in their logical sen tences enhance the expressiveness of ordersorted equational logic I b elievethata general notion of rewriting along binary relations that I briey intro duce in this pap er may constitute a kernel up on which particular rewriting based pro of calculi for these logics can be constructed As an example I show how rewriting logic is captured in this logic of sp ecial relations by means of a map of logics as dened in Meseguers framework of general logics This map highlights the expressivegainof this framework since the prop erties of the rewrite relation are stated explicitly while keeping a rewritebased pro of calculus I also discuss on the example of mem b ership equational logic how the general p ersp ective of term rewriting presented in this pap er unies under a unique notion of lo cal conuence several up to now distinct decidability conditions for logical theories Intro duction Rewriting Logic is the inherent logic underlying rewrite systems A rewrite relation is dened as a reexive and transitive binary relation on terms that is closed under substitutions and context application In general rewrite relations are nonsymmetric and consequently mo dels of rewrite systems are to be constructed beyond the traditional mo dels of equational logic if we want to take advantage of all their expressiveness In fact rewriting logic has shown to be very suitable as a logical and semantic framework and several system implementations are based on it Maude ELAN and CafeOBJ are some examples But rewrite systems are not limited to handle one unique kind of rewrite relation Birewrite systems provide decision pro cedures for inclusional theories by handling two distinct rewrite relations and can also be used as Supp orted by pro ject MODELOGOS funded by CICYT TIC C c Published by Elsevier Science B V Schorlemmer pro of calculus for rewriting logic itself Indeed the idea underlying bi rewrite systems namely that rewriting is done along a binary relation distinct from equality inclusion in that case can be brought a little bit further in order to think of rewrite systems dealing with multiple rewrite relations that capture many distinct special relations b esides equality Special Relations Many logics enhance the expressiveness of ordersorted equational logic by means of a semantic treatment of sorts using several additional binary rela tions b esides equality in their logical sentences Some examples are classied algebras unied algebras typ e algebras galactic algebras and memb ership algebras For instance Manca Salibra and Scollos equational type logic can be viewed as Horn clausal logic with equality and one binary predicate viz typ e assignment I will call these binary re lations that play a central role in the theories of these logics special relations b ecause they have certain prop erties I claim can b e computationally exploited by term rewriting I am thinking of prop erties like reexivity symmetry or antisymmetry monotonicity or antimonotonicity congruence transitivity or comp ositeness with other sp ecial relations For instance in the ab ove men tioned equational typ e logic the following prop erties or relationships b etween sp ecial relations equality and typ e assignment hold for all x y z x y y z x z x y y z x z x y y z x z These relationships are actually sp ecic instances of a general relationalgebra sentence v where and denote arbitrary binary relations is comp osition of relations and partial order v captures implication Further more in equational typ e logic every function symbol f is monotonic in all its argument p ositions i with resp ect to sp ecial relation equality i i y x f x y f In general a sp ecic function symbol f that is monotone in its ith argument p osition with resp ect to a pair of relations and satises the following implication i i y x x y f f The Essence of Term Rewriting As mentioned b efore I b elieve that the basic prop erties of sp ecial relations can be captured by term rewriting and that some interesting computational Schorlemmer issues can be naturally studied within a pro of calculus relying on a suitable notion of term rewriting along binary relations as dened in Section which fo cuses on what I think constitute the bare b ones of term rewriting namely i the replacement of a term by another applying a given rewrite rule ii the successive and meaningful composition of several replacements and iii the p ossible but not necessary application of replacements within the structure of a term It turns out that for instance in the particular case of memb ership equa tional logic suchkernel of term rewriting along binary relations uniformly captures under a unique general notion of lo cal conuence some imp ortant decidability prop erties of its theories like sortdecreasingness or descending ness Because of these observations I lo ok at memb ership equational logic rewriting logic or other extensions of ordersorted equational logic as partic ular instances of a more general logic of special relations that I intro duce in Section By providing this logic with a quite general mo del theory based on the categorical theory of relations or al legories I aim at capturing very disparate sp ecication paradigms and supplying them with the kernel of a powerful rewritebased pro of calculus In Section I show how for instance rewriting logic is captured within this logic of sp ecial relations through a con servative map of logics as dened in Its result is that the prop erties of the rewrite relation of the original rewriting logic are explicitly set forth bya partial order b etween relational expressions Consequently we dealwithathe oretically more expressive language while attempting to keep the advantages of a rewritebased op erational semantics But in Section we will discuss why this is not always p ossible A Logic of Sp ecial Relations Theories of the logic of sp ecial relations are actually sp ecic relation alge bra theories Consequently sp ecications in such a logic are very close to Berghammer and Schmidts relational specications They can be seen as particular customizations of these more general relational sp ecications in order to meet the requirements for a rewritingbased pro of calculus Signatures Signatures of the logic of sp ecial relations are tuples S where S v forms a partially ordered free monoid with an antiinvolu tion generated over a set S of sp ecial binary relation symbols ie for all I m following the notation of relation algebra given in Schorlemmer S v v v v is a ranked alphab et of function symb ols which may be monotonic or antimonotonic in their argument p ositions with resp ect to a pair of sp ecial relation symb ols of S Polarity Im going to treat monotonicityand antimonotonicityas inherent features of the signatures function symb ols in the same sense as their arities For this purp ose I use the notion of polarity inspired by Manna and Waldingers work on sp ecialrelation rules For example let jxj denote the cardinality function applied to the set x We have that for all x y x y jxjjy j ie the cardinality function is monotonic in its unique argument p osition I will say that its argument p osition has positive p olarity or is p ositive with resp ect to In another example let x n y denote set dierence b etween sets x and y We have that for all x y z x y z n y z n x ie the set dierence function is antimonotonic in its second argument I will say that its second argument p osition has negative p olarity or is negative with resp ect to When I say that an argument p osition is p ositive or negative I do not exclude the p ossibility that it has both p olarities In general when an argu ment p osition has some p olarity either p ositive negative or b oth I will just say that it is polarized Without loss of generality in the rest of this pap er I will only refer to p os itive p olarities of argument p osition since if a p osition has negative p olarity with resp ect to to a pair of relations I express this p olarityas a p ositive one in the following way For any argument p osition i of any function symbol f in the ith argument p osition of f is negative with resp ect to if and only if it is p ositivewithresp ect to Schorlemmer the ith argument p osition of f is negative with resp ect to if and only if it is p ositive with resp ect to I also extend p olarities with resp ect to comp osite relations and with resp ect to the identity relation in the following way For any argument p osition i of any function symbol f in if the ith argument p osition of f is p ositive with resp ect to b oth and then it is also p ositive with resp ect to the ith argument p osition of f is p ositive with resp ect to There is a relationship b etween p olarities and the partial order relation v on relations which determines a signature to b e correctly stated Denition A signature S is said to b e correct if for any argu ment

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    22 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us