*To*: Florian Haftmann <florian.haftmann at informatik.tu-muenchen.de>, <cl-isabelle-users at lists.cam.ac.uk>*Subject*: Re: [isabelle] Bound variables in Code_Evaluation.term*From*: Andreas Lochbihler <andreas.lochbihler at inf.ethz.ch>*Date*: Thu, 19 Jun 2014 08:06:46 +0200*In-reply-to*: <53A1F136.4040709@informatik.tu-muenchen.de>*References*: <539AA971.8090909@inf.ethz.ch> <53A1F136.4040709@informatik.tu-muenchen.de>*User-agent*: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

Hi Florian,

Cheers, Andreas On 18/06/14 22:06, Florian Haftmann wrote:

Hi Andreas,I am trying to understand how the term representation in Code_Evaluation deals with variables. The pseudo-constructors Const, App and Abs clearly model constants, application and abstraction, but I am having difficulties with the purpose of Free. Is Free supposed to model both bound and free variables? For example, how is the Isabelle term "x (%x :: nat. x)" to be represented in Code_Evaluation? Omitting the types, I came up with the following. App (Free x ...) (Abs "x" ... (Free x ...)) However, it seems strange that the second occurrence of Free actually denotes a bound variable. Is that intended?the classical code evaluation (code_evaluation.ML and particularly HOLogic.reflect_term) do not cover variables at all. This is an extensions of quickcheck narrowing. You might start your investigation there (grep -rIFn Code_Evaluation.Free .). Hope this helps, Florian

**References**:**[isabelle] Bound variables in Code_Evaluation.term***From:*Andreas Lochbihler

**Re: [isabelle] Bound variables in Code_Evaluation.term***From:*Florian Haftmann

- Previous by Date: Re: [isabelle] I need a fixed mutable array
- Next by Date: [isabelle] types in higher order logic
- Previous by Thread: Re: [isabelle] Bound variables in Code_Evaluation.term
- Next by Thread: [isabelle] using AFP
- Cl-isabelle-users June 2014 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