Open sbp opened 7 years ago
Just to make things extra confusing, Coq also immediately defines a way to get the denominator as a positive Z, i.e. BizP
in our nomenclature, which is then apparently used quite a lot.
Sounds good, but we should probably finish P/N/Z first :)
Whilst I only envisaged porting the P, N, and Z arithmetics from Coq, it might be nice to go for full-on completion and port QArith too. I'm not sure what the type should be, but probably something like this:
The constructor could be
Rational
instead ofRatio
, though by convention it should really beMkBiq
. Coq usesnum
andden
for the field names. I don't like "num", but perhapsn
andd
, ornumer
anddenom
would be okay.