[isabelle-dev] Numerals in non-canonical form [was: NEWS]

Florian Haftmann florian.haftmann at informatik.tu-muenchen.de
Thu Nov 21 11:16:30 CET 2013


> This refers to Isabelle/e7c9a14632d0 and AFP/797f66d26443.
> 
> * Abolished neg_numeral.
>   * Canonical representation for minus one is "- 1".
>   * Canonical representation for other negative numbers is
>     "- (numeral _)".
>   * When devising rule sets for number calculation, consider the
>     following cases: 0, 1, numeral _, - 1, - numeral _.
>   * Syntax for negative numerals is mere input syntax.
> INCOMPATBILITY.

This also means that the set of numerals in non-canonical form has
increased: it does not contain only Numeral1 but also "- 0" and even
things like "- - - 2".

Currently HOLogic.dest_number recognizes all of these.  Maybe this very
liberal semantics deserves reconsideration.  Or maybe there should be
canonical normalizing conversion for numerals:

	Numeral1 = 1
	- 0 = 0
        - - 1 = 1
        - - numeral _ = numeral

Currently different packages have different opinions on that.

	Florian

-- 

PGP available:
http://home.informatik.tu-muenchen.de/haftmann/pgp/florian_haftmann_at_informatik_tu_muenchen_de

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <https://mailman46.in.tum.de/pipermail/isabelle-dev/attachments/20131121/8669e6df/attachment.sig>


More information about the isabelle-dev mailing list