Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] name of binded variables

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] name of binded variables


chronological Thread 
  • From: Lo�c Pottier <pottier.mayaffre AT wanadoo.fr>
  • To: Lo�c Pottier <Loic.Pottier AT sophia.inria.fr>, <coq-club AT pauillac.inria.fr>
  • Subject: Re: [Coq-Club] name of binded variables
  • Date: Fri, 12 Nov 2004 11:58:55 +0100
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hi,
I found a "stone age" solution to my problem:
 
Ltac elimex h :=
  let th:= type of h in
  let h1:=fresh "H" in
  match th with
    | (ex_T _ (fun x:_ => _)) => let v:=fresh "x" in (generalize h;clear h; intros (v,h1))
    | (ex_T _ (fun l:_ => _)) => let v:=fresh "l" in (generalize h;clear h; intros (v,h1))
    | (ex_T _ (fun eta:_ => _)) => let v:=fresh "eta" in (generalize h;clear h; intros (v,h1))
    ...
  end.
 
Loïc
----- Original Message -----
Sent: Monday, November 08, 2004 9:36 AM
Subject: [Coq-Club] name of binded variables

 
Hi,
 I have a goal
 
H: ex_T R (fun eta:R => P eta)
======================
...
 
with
 
elim H; intros
 
the name of the existemtial variable eta is forgotten and replaced with x!
 
How to keep trace of this name and obtain a goal:
 
eta:R
H0: P eta
==========================
...
 
???
 
Loïc
 

 



Archive powered by MhonArc 2.6.16.

Top of Page