coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- 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
- [Coq-Club] type of multiplication between a N and a R, Lucian M. Patcas
- Re: [Coq-Club] type of multiplication between a N and a R, Frédéric Besson
Archive powered by MhonArc 2.6.16.