maude-help AT lists.siebelschool.illinois.edu
Subject: Maude-help mailing list
List archive
- From: PATRICK BROWNE <patrick.browne AT dit.ie>
- To: maude-help AT lists.cs.illinois.edu
- Subject: Re: [[Maude-help] ] First Order Predicate Logic in Maude
- Date: Sun, 1 May 2016 17:37:06 +0100
Hi,I am trying to represent theories expressed in first order predicate logic as Maude theories. I am not sure if this can be done! Below is one of my effortsI use the BOOL module for predicates, Skolem functions for existential variables, and the deduction theorem for proof.Any feedback on my efforts would be welcome.Regards,Pat*** Example from http://www.indiana.edu/~gasser/Q351/rtp_example.html*** Tuna is a cat*** All cats are animals*** Jack owns a dog.*** Every dog owner is an animal lover.*** No animal lover kills an animal.*** Either Jack or Curiosity killed the cat, who is named Tuna.*** Prove Curiosity killed the catfth CURIOSITY isprotecting BOOL .sort Elt .ops dog cat animal : Elt -> Bool .op animalLover : Elt -> Bool .op owns : Elt Elt -> Bool .op kill : Elt Elt -> Bool .ops Jack Tuna Curiosity : -> Elt .*** The function id is used to denote non-dependent existential variablesop id : Elt -> Elt .*** A Skolem function to denote existential variables that depends on a universalop sk : Elt -> Elt .*** LHS of each equation includes information on wheather the variable is universal or existential (lazy).op s1 : Elt -> Bool [strat (0)] .op s2 : Elt Elt -> Bool [strat (1 0)] .op s3 : Elt Elt -> Bool .ops s4 s5 : -> Bool .op s6 : Elt -> Bool .vars x y : Elt .eq s1(id(x)) = dog(x) and owns(Jack,x) .eq s2(x,sk(y)) = dog(sk(y)) and owns(x,sk(y)) implies animalLover(x) .eq s3(x,y) = animalLover(x) implies (animal(y) implies not kill(x,y)) .eq s4 = kill(Jack,Tuna) or kill(Curiosity,Tuna) .eq s5 = cat(Tuna) .eq s6(x) = cat(x) implies animal(x) .endfthfth PROOF isincluding CURIOSITY .*** Existential instantiation: Assumes that both existentials have the same value.op aDog : -> Elt .eq id(aDog) = aDog .eq sk(Jack) = aDog .endfth*** Deduction theorem with Universal and Existential instantiation.red (s1(id(aDog)) and s2(Jack,sk(Jack)) and s3(Jack,Tuna) and s4 and s5 and s6(Tuna)) implies kill(Curiosity,Tuna) .
This email originated from DIT. If you received this email in error, please delete it from your system. Please note that if you are not the named addressee, disclosing, copying, distributing or taking any action based on the contents of this email or attachments is prohibited. www.dit.ie
Is ó ITBÁC a tháinig an ríomhphost seo. Má fuair tú an ríomhphost seo trí earráid, scrios de do chóras é le do thoil. Tabhair ar aird, mura tú an seolaí ainmnithe, go bhfuil dianchosc ar aon nochtadh, aon chóipeáil, aon dáileadh nó ar aon ghníomh a dhéanfar bunaithe ar an ábhar atá sa ríomhphost nó sna hiatáin seo. www.dit.ie
Tá ITBÁC ag aistriú go Gráinseach Ghormáin – DIT is on the move to Grangegorman
- [[Maude-help] ] First Order Predicate Logic in Maude, PATRICK BROWNE, 05/01/2016
- Re: [[Maude-help] ] First Order Predicate Logic in Maude, PATRICK BROWNE, 05/01/2016
Archive powered by MHonArc 2.6.16.