Re: [isabelle-dev] NEWS: Rat in Isabelle/ML

2016-06-02 Thread Manuel Eberl
Very good! This is very convenient. On 01/06/16 21:42, Makarius wrote: *** ML *** * Structure Rat for rational numbers is now an integral part of Isabelle/ML, with special notation @int/nat or @int for numerals (an abbreviation for antiquotation @{Pure.rat argument}) and ML pretty printing.

Re: [isabelle-dev] NEWS: Rat in Isabelle/ML

2016-06-01 Thread Makarius
On 01/06/16 21:47, Lawrence Paulson wrote: > Doesn’t Poly/ML include an option to support GCDs (if not rationals) > efficiently? Do you mean PolyML.IntInf.gcd and PolyML.IntInf.lcm? That is already used (da38571dd5bd). These operations normally use GNU MP, but on Mac OS X only the old builtin

Re: [isabelle-dev] NEWS: Rat in Isabelle/ML

2016-06-01 Thread Makarius
On 01/06/16 21:58, Florian Haftmann wrote: > > One could regard the dedicated literal syntax for rationals a little bit > oversophisticated; maybe an infix // for Rat.make would serve better. > Or we could A matter of personal taste, though. There is a delicate point here: our antiquotation

Re: [isabelle-dev] NEWS: Rat in Isabelle/ML

2016-06-01 Thread Florian Haftmann
> * Structure Rat for rational numbers is now an integral part of > Isabelle/ML, with special notation @int/nat or @int for numerals (an > abbreviation for antiquotation @{Pure.rat argument}) and ML pretty > printing. Standard operations on type Rat.rat are provided via ad-hoc > overloading of + -