Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Newbie question on proofs with reals

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Newbie question on proofs with reals


chronological Thread 
  • From: David MENTRE <dmentre AT linux-france.org>
  • To: "gallais @ ensl.org" <guillaume.allais AT ens-lyon.org>
  • Cc: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Newbie question on proofs with reals
  • Date: Thu, 5 Apr 2012 17:44:05 +0200

Hello,

2012/4/5 gallais @ ensl.org 
<guillaume.allais AT ens-lyon.org>:
> In the stdlib, there is a theorem doing exactly what
> you are looking for:
>
> Rlt_not_eq
>     : forall r1 r2 : R, (r1 < r2)%R -> r1 <> r2

Thank you for pointing it out! I tried to use search features to look
for relevant theorems but overlooked this one.

In fact, theorem Rgt_not_eq is needed in my case.

Theorem b_div_b_is_one_2 : forall (b:R), (0%R <  b)%R -> (1%R = (Rdiv b b)%R).
intros.
field.
apply Rgt_not_eq.
assumption.
Qed.



BTW, is there a way in ProofGeneral to look for theorems having
notation like "<>" or "/"? For "<>", I had to search for Rdiv.

I tried [Search <>] or [Search "<>"] but it failed. I assume I need
some kind of "helper" for this specific notation?

"""
Toplevel input, characters 27-29:
> Search <>.
>        ^^
Syntax error: [constr:constr_pattern] expected after 'Search' (in
[vernac:command]).
"""

However [Print "<"] works.

Best regards,
d.




Archive powered by MhonArc 2.6.16.

Top of Page