coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: CHAUVIN Barnabe <barnabe.chauvin AT gmail.com>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Using the [cut] tactic in hypothesis
- Date: Wed, 24 Dec 2014 19:09:07 +0100
Hello club ! I'm trying to simplify an hypothesis which contains something like this [a + - a = _] over Z (Let's call this hypothesis H). So I thought it would be good to use the Zegal_left to do it, but Zegal_left do it the other way .. (i.e. It prove that [forall n m : Z, n = m -> n + - m = 0]) If H was a (sub)goal, I could have used the [cut] tactic, and it would have generated the [a=a] subgoal. But because it's an hypothesis, I cannot use this tactic .. I guess there is an easy workaround to do such a simplification in hypothesis ? By the way, is-it possible, to directly rewrite this hypothesis ? Now, assume the hypothesis is of the form [0 = x0 * (x1 * a) + - a] (still over Z). How can simplify it like [0=a * (x0 * x1 - 1)] ? (And how can I simplify it if it was a goal ?)
I
take this email to ask one little
question that has no relation to the
original subject.
What is the best to do a case disjunction on the value of a term during a proof ? For example, if there is the term z:Z in the current goal, how do I create two subgoals with the hypothesis z=0 and z<>0 ? Someone answered me on IRC to use the {}+{} types (sorry, I don't remember his name ..). It works very well, but I still have to prove the disjunction. So here is the extra question, how do I prove this : Thanks in advance ! |
- [Coq-Club] Using the [cut] tactic in hypothesis, CHAUVIN Barnabe, 12/24/2014
- Re: [Coq-Club] Using the [cut] tactic in hypothesis, Abhishek Anand, 12/25/2014
- Re: [Coq-Club] Using the [cut] tactic in hypothesis, Jonathan Leivent, 12/25/2014
- Re: [Coq-Club] Using the [cut] tactic in hypothesis, CHAUVIN Barnabe, 12/28/2014
- Re: [Coq-Club] Using the [cut] tactic in hypothesis, Frédéric Besson, 12/28/2014
- Re: [Coq-Club] Using the [cut] tactic in hypothesis, Abhishek Anand, 12/25/2014
Archive powered by MHonArc 2.6.18.