Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Remove a Hypothesis from the context

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Remove a Hypothesis from the context


Chronological Thread 
  • From: Kiarash Rahmani <rahmank AT purdue.edu>
  • To: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Remove a Hypothesis from the context
  • Date: Mon, 22 Feb 2016 18:12:19 +0000
  • Accept-language: en-US
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=rahmank AT purdue.edu; spf=None smtp.mailfrom=rahmank AT purdue.edu; spf=Pass smtp.helo=postmaster AT na01-by2-obe.outbound.protection.outlook.com
  • Ironport-phdr: 9a23:r8N8+Bx+6FvqINvXCy+O+j09IxM/srCxBDY+r6Qd0ewXIJqq85mqBkHD//Il1AaPBtWEra8YwLOO4ujJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6NyZnrnLnqqtX6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD86Fpy8kVG679ZuEzSaFSJDUgKWE8osPx/1GXRgyWo3AYT28+kxxSAgGD4gusDbnrtS6vlet0wiCBPYXMRLAxUDKjp/NxQR/tgSEEHyYk6m3Kh4p9gL8N80HpnAB234OBONLdD/F5ZK6IJd4=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:23

Thank you so much, Gregory!



From: coq-club-request AT inria.fr <coq-club-request AT inria.fr> on behalf of Gregory Malecha <gmalecha AT cs.harvard.edu>
Sent: Monday, February 22, 2016 12:13 PM
To: Coq Club
Subject: Re: [Coq-Club] Remove a Hypothesis from the context
 
Hello, Kia --

There are a few options here.

1/ You can use the [rename] tactic to rename a hypothesis to another one. So you could do [clear H0. rename H1 into H0. ..] This is a bad solution in general.

2/ You can keep the existing definition (rename it to R') and make a copy of it (call it R) that is extended. Then you can prove that R -> R', for your relation this might look like: forall x y, R x y -> R' x y. Then you can apply that lemma to the hypothesis that you have and then to inversion as before.

In general, it is good practice to avoid automatically generated names but I'm guilty of doing it too.

Good luck.

On Mon, Feb 22, 2016 at 9:05 AM, Kiarash Rahmani <rahmank AT purdue.edu> wrote:

Hello all,


This is Kia Rahmani, and I have been using Coq for a couple of months now.


Here is my question:

I have inductively defined a relation R, and later I have used inversion on R, to complete some large proofs. 

However, now I need to add another assumption to the context of R, which will be used somewhere else (not in the current proofs); but this will result in an additional hypothesis in all the old proofs as well, and change the numbering of assumptions (H1 H2 H3....).  Since the new assumption is not used in the old proofs, is there any way to remove it completely from them? 

I know clear would remove a hypothesis, but it does not change the numbering of others back.




Thank you in advance,

Kia




--



Archive powered by MHonArc 2.6.18.

Top of Page