*To*: Florian Haftmann <florian.haftmann at informatik.tu-muenchen.de>, usr Isabelle Mailinglist <isabelle-users at cl.cam.ac.uk>*Subject*: Re: [isabelle] Isabelle2014-RC4: Eta-contraction of expression over paired patterns*From*: Dmitriy Traytel <traytel at in.tum.de>*Date*: Mon, 25 Aug 2014 11:58:12 +0200*In-reply-to*: <53F8CD96.6030009@informatik.tu-muenchen.de>*References*: <53F8CD96.6030009@informatik.tu-muenchen.de>*User-agent*: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

Hi Florian,

Dmitriy

On 23.08.2014 19:21, Florian Haftmann wrote:

It is maybe too late to do any work on the following issue which I have stumbled over today. In Product_Type.thy there is some syntax fiddling to print binders over product values conveniently, as in the following statements: lemma "∀(a, b) ∈ A. P b a" apply simp -- {* and this is what we get *} oops lemma Collect_Pair_syntax: "{(x, y). P x y} = {p. (case p of (x, y) ⇒ P x y)}" -- {* and this is what we get for Collect *} oops This works only if those expressions are proper eta-contracted. For this sake there are print translations in Product_Type.thy. Alas, as the examples above demonstrate, they seem to be inoperative. A superficial analysis is presented in the attached theory: the print translations try to match against @{const_syntax case_prod}, but this never occurs in the terms to be translated! I did not attempt to do a bisection so far. Maybe something got broken during refinements of the case pattern syntax. Any suspicions? Cheers, Florian

**Follow-Ups**:**[isabelle] Binders and (product) patterns***From:*Florian Haftmann

**References**:**[isabelle] Isabelle2014-RC4: Eta-contraction of expression over paired patterns***From:*Florian Haftmann

- Previous by Date: Re: [isabelle] Behaviour of Variable.variant_fixes
- Next by Date: Re: [isabelle] Multiset elements
- Previous by Thread: [isabelle] Isabelle2014-RC4: Eta-contraction of expression over paired patterns
- Next by Thread: [isabelle] Binders and (product) patterns
- Cl-isabelle-users August 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