Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] tactics for Z

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] tactics for Z


chronological Thread 
  • From: Jianzhou Zhao <jianzhou AT seas.upenn.edu>
  • To: Fr�d�ric Besson <frederic.besson AT inria.fr>
  • Cc: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] tactics for Z
  • Date: Wed, 15 Jun 2011 12:08:09 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=gRKLSEaTrY9yZFXA8mfLBT/EUyAPSC88eKZAbiZyM8r/lOWDbpYBrNtJcHQHzxUw3R OriCVtjExc1VHT3IeMa+WYdFJrvdHH3g/r8xTQfv2/TrIwFbab3OVVGMdAxtRv/EWvgT rxyLsMiB7fx0KazjPaNEJ8X8IoEE0HYnxsQW8=

2011/6/15 Frédéric Besson 
<frederic.besson AT inria.fr>:
> Hello,
>
> The psatz tactic does the job (Chapter 20 of the refman).
> Note that it requires an external tool csdp.

Thanks. It solves the goal after I installed csdp.

> In the trunk, there is also an alternative experimental tactic nlia.

Does nlia reply on any external tools? I think it is not included in
the 8.3 release. Where can I access the tactic?

> Require Import ZArith.
> Require Import Psatz.
> Open Scope Z_scope.
>
> Goal forall a b, a > 0 -> b < 0 -> a * b < 0.
> Proof.
>  intros.
>  psatz Z. (* nlia. *)
> Qed.
>
> Best,
> --
> Frédéric
>
> On 15 juin 2011, at 16:30, Jianzhou Zhao wrote:
>
>> Hi,
>>
>> I am trying to solve a goal for Z arithmetic, for example
>>   a > 0 -> b < 0 -> a * b < 0
>>
>> The Zhint db works for many cases, but does not solve the goal. I
>> looked into the tactics lia, psatzl at
>>  http://coq.inria.fr/stdlib/Coq.micromega.Psatz.html
>> They still cannot solve the goal.
>>
>> Do we have any other tactics in the stdlib for Z, rather than proving
>> the lemma manually?
>>
>> Thanks.
>> --
>> Jianzhou
>
>
>



-- 
Jianzhou




Archive powered by MhonArc 2.6.16.

Top of Page