*To*: lucas cavalcante <thesupervisar at gmail.com>*Subject*: Re: [isabelle] simple question*From*: John Ridgway <john at jacelridge.com>*Date*: Sat, 4 Aug 2007 23:18:37 -0400*Cc*: John Ridgway <john at jacelridge.com>, cl-isabelle-users at lists.cam.ac.uk*In-reply-to*: <b4d8f2180708031553k69554d9ck389befdf234b842d@mail.gmail.com>*References*: <b4d8f2180708031553k69554d9ck389befdf234b842d@mail.gmail.com>

On Aug 3, 2007, at 6:53 PM, lucas cavalcante wrote:

Hello all,The function 'f' (above) does not work, returning the fallowingmessage.I'd like to know what's wrong in this definition. typedecl sbf datatype frm = At sbf | Nt frm consts f :: "frm => frm" primrec "f (At x) = At x" "f (Nt x) = Nt(x)" "f (Nt(Nt x)) = f (x)" *** Primrec definition error: *** illegal argument in pattern *** in *** "f (Nt (Nt x)) = f x" *** At command "primrec". Thank you, Lucas Cavalcante

"reduction rules specify one or more equations of the form: f x1 ... xm (C y1...yk) z1...zn = r

least).

Peace - John

**References**:**[isabelle] simple question***From:*lucas cavalcante

- Previous by Date: Re: [isabelle] simple question
- Next by Date: Re: [isabelle] simple question
- Previous by Thread: Re: [isabelle] simple question
- Next by Thread: Re: [isabelle] simple question
- Cl-isabelle-users August 2007 archives indexes sorted by: [ thread ] [ subject ] [ author ] [ date ]
- Cl-isabelle-users list archive Table of Contents
- More information about the Cl-isabelle-users mailing list