Skip to Content.
Sympa Menu

ssreflect - Re: [ssreflect] = vs ==

Subject: Ssreflect Users Discussion List

List archive

Re: [ssreflect] = vs ==


Chronological Thread 
  • From: Florent Hivert <>
  • To:
  • Subject: Re: [ssreflect] = vs ==
  • Date: Thu, 1 Aug 2019 14:21:38 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:e1wL3x9QU+1AI/9uRHKM819IXTAuvvDOBiVQ1KB40ugcTK2v8tzYMVDF4r011RmVBN+duq0P17qempujcFRI2YyGvnEGfc4EfD4+ouJSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgppPOT1HZPZg9iq2+yo9JDffhtEiCC5bL5wIxm7ogbcvdQKjIV/Lao81gHHqWZSdeRMwmNoK1OTnxLi6cq14ZVu7Sdete8/+sBZSan1cLg2QrJeDDQ9LmA6/9brugXZTQuO/XQTTGMbmQdVDgff7RH6WpDxsjbmtud4xSKXM9H6QawyVD+/6apgVR3mhzodNzMh/m/ZitJ+gr9YrhKvqBNw35Pbb4ObO/dlYqPRYc8WSXZdUstLSSBMBJ63YYsVD+oGOOZVt4nzp18JrRukGwasAv/vwSJKiH/3w601zf4hER3b1wEnH9wOtHPUrM/rO6cUTeC51qvGzTTdb/xIwzf99JPFchQ7ofGNR75wf9DRxFApGgjYjVuQsZToMy6L2ukJqWSX8uhtWOK1h2I6qwx9uCWjytsqh4LUnIwa0ErE+j98wIstJd23Vkp7Ydm8HZtVrS6aNo92Td0tQmF0oio6zqcGuZ+hcCgE0pQr3x/fa/qZfIiU+h/vSfidLDNiiH54er+yhwy+/VWgx+HmS8W4zE5Gri9fndnNsnAN2QbT6s+CSvZl/kmh3TGP1xrN5eFCPUA4j6jVK58/wrEujJoTrV/OHivsmEX3lqOWeF8k9vCy6+v7erXmuoOcN4hshwHlKaQugNKwAeo8MgcQQ2eb5f+x1Kbj/E38WLVFlOc6kqjfsJDAJMQUvLS1AwFP0tVr1xHqFCy83dockHIbBFdeYleGiZLoMhfPJur5BLGxmQeCijBukt7COafsBImFDnndna39NeJT70lGxQwvi/Be+Z9OFpkFOvO1VFWn54+QNQMwLwHhm7WvM956zI5LATvTUJ/cC7vbtBqz3sxqO/OFNN0Roje7JeJ3v6e/3098okcUeOyS5bVSbXm5Gvp8JEDJM372g5EPCzVT51dsfKnRkFSHFAVrSTOyUqY7v29pDYunCYrTWsapmr3H0j3pRpA=

Hi Cyril,

On Thu, Aug 01, 2019 at 01:03:39PM +0200, Cyril wrote:
> this "always" rule is in fact always valid for "`<>` vs `!=`": we prefer to
> write `_ != _` and we never use `<>` on an `eqType`. Their are some
> exceptions where we write `(_ == _) = false` as a conclusion, to make the
> pattern more general to rewrite with...
>
> However, for "`=` vs `==`" it is actually more subtle: generally, `==` is
> used only when necessary, e.g. in the body of a boolean predicate (e.g.
> `[pred x | f x == y]` of `[forall x, exists y, f x == y]`). Otherwise we
> prefer `=` to make the lemma ready to rewrite with.

This is more or less what I had reverse engineered from the MathComp
sources. You probably should replace the sentence by this explanation in the
book.

Thanks for the clarification,

Florent



Archive powered by MHonArc 2.6.18.

Top of Page