coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Dan Krejsa <dan.krejsa AT gmail.com>
- To: AUGER Cédric <sedrikov AT gmail.com>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Can one pull a 'let' outside a 'match'?
- Date: Mon, 4 Feb 2013 13:12:27 -0800
Hi Cédric,
On Mon, Feb 4, 2013 at 1:01 PM, AUGER Cédric <sedrikov AT gmail.com> wrote:
Yes, case_eq works for what I needed, thanks much!
By the way, the origin of the 'let (x1, x2) := x in ...' _expression_ was one of
my definitions, and I was able to rewrite the definition to avoid the 'let',
which allowed me to avoid the later difficulty in the proof. Still, it's good to have
case_eq in my arsenal!
- Dan
Maybe, you would be interested in the "case_eq" tactic.
case_eq term1.
match (let pattern1 := term1 in E) [in ... return ...] with
| pat1 => v1
| pat2 => v2
...
end
⇓
∀ x1…xn, pattern1 <using x1…xn> = term1 →
match E [in ... return ...] withwhich is similar to what you wanted (but not the same…).
| pat1 => v1
| pat2 => v2
...
end
Yes, case_eq works for what I needed, thanks much!
By the way, the origin of the 'let (x1, x2) := x in ...' _expression_ was one of
my definitions, and I was able to rewrite the definition to avoid the 'let',
which allowed me to avoid the later difficulty in the proof. Still, it's good to have
case_eq in my arsenal!
- Dan
- [Coq-Club] Can one pull a 'let' outside a 'match'?, Dan Krejsa, 02/04/2013
- Re: [Coq-Club] Can one pull a 'let' outside a 'match'?, AUGER Cédric, 02/04/2013
- Re: [Coq-Club] Can one pull a 'let' outside a 'match'?, Dan Krejsa, 02/04/2013
- Re: [Coq-Club] Can one pull a 'let' outside a 'match'?, Jason Gross, 02/05/2013
- Re: [Coq-Club] Can one pull a 'let' outside a 'match'?, Dan Krejsa, 02/04/2013
- Re: [Coq-Club] Can one pull a 'let' outside a 'match'?, AUGER Cédric, 02/04/2013
Archive powered by MHonArc 2.6.18.