Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] type of multiplication between a N and a R

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] type of multiplication between a N and a R


chronological Thread 
  • From: Fr�d�ric Besson <frederic.besson AT inria.fr>
  • To: "Lucian M. Patcas" <lucian.patcas AT gmail.com>
  • Cc: coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] type of multiplication between a N and a R
  • Date: Thu, 28 Jul 2011 10:04:32 +0200

Hi,

You can either:

* inject N into R
   Apparently, this is not part of the library.

  Definition IBinNatR (n:N) : R :=
  match n with
    | N0 => IZR 0%Z
    | Npos p => IZR (Zpos p)
  end.

* use Peano integers instead of N
  Raxioms.INR : nat -> R injects nat into R

I would favor option 2...

Best,
--
Frédéric Besson


On 28 juil. 2011, at 08:09, Lucian M. Patcas wrote:

> Hello,
> 
> I have these positive reals: 
> 
> Variable delta : posreal.
> Variable x : nonnegreal.
> 
> and my development has propositions such as:
> 
> exists n : N, x = n * delta.
> 
> which don't type check as n does not have type R.  How should I deal with 
> this?
> 
> Thanks,
> Lucian





Archive powered by MhonArc 2.6.16.

Top of Page