Subject: Ssreflect Users Discussion List
List archive
- From: Vincent Siles <>
- To: Reynald Affeldt <>
- Cc:
- Subject: Re: Conversion coq_nat ssr_nat
- Date: Wed, 8 Jun 2011 08:17:23 +0200
More precisely, ssrnat and coqnat are the exact same type, but
the lt function is different. ssr function is a decidable function
nat -> nat -> bool whereas coq's function is nat -> nat -> Prop.
The lemma ltP is the one that links both functions.
Cheers,
Vincent
2011/6/8 Reynald Affeldt <>:
>
>> Require Import ssrbool ssrnat.
>> Lemma nat_conv : forall (n m: nat),
>> (n < m)%nat -> (n < m)%coq_nat.
>
> by move=>*; apply/ltP.
>
> does it
>
>
- Conversion coq_nat ssr_nat, Allyx FONTAINE, 06/08/2011
- Re: Conversion coq_nat ssr_nat, Reynald Affeldt, 06/08/2011
- Re: Conversion coq_nat ssr_nat, Vincent Siles, 06/08/2011
- Re: Conversion coq_nat ssr_nat, Assia Mahboubi, 06/08/2011
- Re: Conversion coq_nat ssr_nat, Allyx FONTAINE, 06/08/2011
- Re: Conversion coq_nat ssr_nat, Reynald Affeldt, 06/08/2011
Archive powered by MHonArc 2.6.18.