Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] use the hypothesis "(a ?=0)%Z = Eq"

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] use the hypothesis "(a ?=0)%Z = Eq"


chronological Thread 
  • From: "gallais @ EnsL.org" <guillaume.allais AT ens-lyon.org>
  • To: Tie Cheng <chengtie AT gmail.com>
  • Cc: Viktor Vafeiadis <viktor AT mpi-sws.org>, "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] use the hypothesis "(a ?=0)%Z = Eq"
  • Date: Thu, 17 Feb 2011 22:35:05 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=GsZTmCJxvWKvmPgDhOt8y2nzFNu1Q15X2bD6zhKOfSr9VYpWvu1FPy66BQUUAhiAsy ZwkHZDiIJWVTN7cML0DGlJk0vLE+JJE+ow436GktihOH3jzmXxIWuTET67VfuXOAV0/t O6Kd8wyFRiDSpz32dGxJe5B/MGDfIiun2bhCA=

Hi Tie,

How about rewriting Zcompare_Eq_iff_eq in your hypothesis and then
rewrite / destruct it?

Cheers,

--
gallais



On 17 February 2011 22:31, Tie Cheng 
<chengtie AT gmail.com>
 wrote:
> Hello Viktor,
> Thanks for your reply.
> If I do "apply Zcompare_Eq_eq", it changes the goal to "(a * something
> ?=0)%Z = Eq" which is not what I want. I want the goal to be "(0 *
> something)%Z = 0%Z". Is there a better way to use Zcompare_Eq_eq?
> Regards
> Tie
>
> On Thu, Feb 17, 2011 at 9:25 PM, Viktor Vafeiadis 
> <viktor AT mpi-sws.org>
> wrote:
>>
>> Second lemma in Zcompare standard library.
>> Zcompare_Eq_eq
>>
>>
>> On 17 Feb 2011, at 21:20, Tie Cheng 
>> <chengtie AT gmail.com>
>>  wrote:
>>
>> > hello all,
>> >
>> > I have a hypothesis "e: (a ?=0)%Z = Eq", my goal is " (a * something)%Z
>> > = 0%Z".
>> >
>> > Does anyone know how I could use the hypothesis? Is there a lemma to say
>> > "(a ?=0)%Z = Eq -> a=0%Z"?
>> >
>> > Thanks and regards
>> >
>> > Tie
>
>




Archive powered by MhonArc 2.6.16.

Top of Page