Subject: Ssreflect Users Discussion List
List archive
- From: Laurent Théry <>
- To: Marcus Ramos <>
- Cc: " >> ssreflect" <>
- Subject: Re: "==" and "="
- Date: Tue, 15 Apr 2014 15:47:10 +0200
On 04/15/2014 03:30 PM, Marcus Ramos
wrote:
Hi,
In library "ssrnat" I find the definition: Lemma addn_eq0 : forall m n, (m + n == 0) = (m == 0) && (n == 0). I can´t, however, figure out the difference between "==" and "=", nor find "==" in the Coq documents. Is this something specific to SSReflect? Yep == represents the equality of an eqtype, = the propositional equality Check (1 = 2). 1 = 2 : Prop Check (1 == 2). 1 == 2 : bool The relation between the two is part of the reflection of SSReflect.
I
also couldn´t find a (nat) lemma like "forall
n: nat, (n = 0) -> n <= 0". Does it exist anywhere?
These lemmas could easily be simulated with that is present in the library (for example the first one is just the reflected verion of your first theorem) |
- "==" and "=", Marcus Ramos, 04/15/2014
- Re: "==" and "=", bertot, 04/15/2014
- Re: "==" and "=", Laurent Théry, 04/15/2014
- Re: "==" and "=", Guillaume Cano, 04/15/2014
- Re: "==" and "=", Enrico Tassi, 04/15/2014
- Re: "==" and "=", Marcus Ramos, 04/16/2014
Archive powered by MHonArc 2.6.18.