coq-club AT inria.fr
Subject: The Coq mailing list
List archive
Re: [Coq-Club] Elim of existential hypothesis => Error: Cannot find the elimination combinator ex_rect
Chronological Thread
- From: Adam Chlipala <adamc AT csail.mit.edu>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Elim of existential hypothesis => Error: Cannot find the elimination combinator ex_rect
- Date: Mon, 30 May 2016 11:57:02 -0400
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=adamc AT csail.mit.edu; spf=Pass smtp.mailfrom=adamc AT csail.mit.edu; spf=None smtp.helo=postmaster AT outgoing-tmp.csail.mit.edu
- Ironport-phdr: 9a23:G64mEB/bgHrNO/9uRHKM819IXTAuvvDOBiVQ1KB90OwcTK2v8tzYMVDF4r011RmSDdSdtqkP2rCempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lS8iP1I/mjaibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYh/V0/MlZFK7+Yq4QTLpCDT1gPXpmytfssEzqQQKKrlAcVmQOmx5BS1zM4Bj/Vb/6qSL7sqx42TXcMMHrG+NnEQ++5rtmHUe7wBwMMCQ0pTna
[exists] produces [Prop]s, while your predicate [p] returns [Type].
It is a fundamental property of Coq that details of proofs of
[Prop]s can never influence non-[Prop]-y things. Your [p] is an
example of a non-[Prop]-y thing here. In deriving a proof-relevant recursion principle like this one, you should only rely on lemmas that use proof-relevant types. For instance, you can use [sig] instead of [exists]. On 05/30/2016 11:44 AM, Soegtrop, Michael wrote: I am way stuck trying to use an
existential hypothesis with elim:
1 subgoal t : Type p : list t -> Type H0 : p [ ] HS : forall (x : t) (l : list t), p (l ++ [x]) x : t l : list t HM : exists (x2 : t) (l2 : list t), l ++ [x] = [x2] ++ l2 ______________________________________(1/1) p ([x] ++ l) |
- [Coq-Club] Elim of existential hypothesis => Error: Cannot find the elimination combinator ex_rect, Soegtrop, Michael, 05/30/2016
- Re: [Coq-Club] Elim of existential hypothesis => Error: Cannot find the elimination combinator ex_rect, Adam Chlipala, 05/30/2016
- Re: [Coq-Club] Elim of existential hypothesis => Error: Cannot find the elimination combinator ex_rect, Jonathan Leivent, 05/30/2016
- RE: [Coq-Club] Elim of existential hypothesis => Error: Cannot find the elimination combinator ex_rect, Soegtrop, Michael, 05/30/2016
- Re: [Coq-Club] Elim of existential hypothesis => Error: Cannot find the elimination combinator ex_rect, Tej Chajed, 05/30/2016
- RE: [Coq-Club] Elim of existential hypothesis => Error: Cannot find the elimination combinator ex_rect, Soegtrop, Michael, 05/31/2016
- Re: [Coq-Club] Elim of existential hypothesis => Error: Cannot find the elimination combinator ex_rect, Dominique Larchey-Wendling, 05/31/2016
- Re: [Coq-Club] Elim of existential hypothesis => Error: Cannot find the elimination combinator ex_rect, Arnaud Spiwack, 05/31/2016
Archive powered by MHonArc 2.6.18.