Subject: Ssreflect Users Discussion List
List archive
- From: Cyril Cohen <>
- To:
- Subject: Re: about the notation for negative int values
- Date: Wed, 28 Mar 2012 00:36:02 +0200
Hello Frédéric,
First, you should know that you are currently playing with non released (yet)
features of the ssreflect library, and I thank you for this feedback.
On 27/03/2012 23:30, Frédéric Chyzak wrote:
> I find it counter-intuitive that positive and negative numbers get
> displayed in
> so different ways. If Negz cannot be avoided, I wonder if I would not
> prefer
> seeing the Posz for non-negative integers (despite the misnomer). What is
> the
> rationale?
>
> Or, is there a way to get a more "traditional" display (with minus signs)?
I agree this is disturbing, however, (Negz _) is not to be used, one should
prefer form (- _%:Z). Negz can accidentally occur while doing a proof, e.g.
because you did a "case: x" instead of "case: (intP x)". But then one may use
the
rewriting rule NegzE to replace (Negz n) by (- n.+1%:Z). In fact, these two
last
terms are convertible.
Maybe the documentation can be improved to reflect these recommandations.
Best,
--
Cyril Cohen
- about the notation for negative int values, Frédéric Chyzak, 03/27/2012
- Re: about the notation for negative int values, Cyril Cohen, 03/28/2012
Archive powered by MHonArc 2.6.18.