Skip to Content.
Sympa Menu

ssreflect - Re: Conversion coq_nat ssr_nat

Subject: Ssreflect Users Discussion List

List archive

Re: Conversion coq_nat ssr_nat


Chronological Thread 
  • 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
>
>



Archive powered by MHonArc 2.6.18.

Top of Page