*To*: attarzadeh at ee.sharif.ir*Subject*: Re: [isabelle] Pattern Matching Problem*From*: Alexander Krauss <krauss at in.tum.de>*Date*: Mon, 22 Nov 2010 09:54:04 +0100*Cc*: isabelle-users at cl.cam.ac.uk*In-reply-to*: <450804ea6783913128cf6e9ff25a8b1e.squirrel@ee.sharif.ir>*References*: <450804ea6783913128cf6e9ff25a8b1e.squirrel@ee.sharif.ir>*User-agent*: Mozilla-Thunderbird 2.0.0.22 (X11/20091109)

Dear Hoorie,

I need to define a function (say g) that involves non-constructor pattern matching. Say S, C, and A are datatype constructors and f is a function(f:: “a => nat”), I want to see if the argument of g matches with the pattern “ S (C f(A 0))” or not, but it fails because f is not a datatype constructor. How can I define such a function in HOL?

The "fun" command requires all patterns to be datatype constructors.

http://isabelle.in.tum.de/dist/Isabelle/doc/functions.pdf

Hope this helps, Alex

**Follow-Ups**:**Re: [isabelle] Pattern Matching Problem***From:*Thomas Sewell

**References**:**[isabelle] Pattern Matching Problem***From:*attarzadeh

- Previous by Date: [isabelle] Pattern Matching Problem
- Next by Date: [isabelle] A beginner's questionu
- Previous by Thread: [isabelle] Pattern Matching Problem
- Next by Thread: Re: [isabelle] Pattern Matching Problem
- Cl-isabelle-users November 2010 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