Fix type of rational?.

This commit is contained in:
Vincent St-Amour 2012-08-02 11:31:56 -04:00
parent 38e90b52c4
commit b1fbbafd91

View File

@ -703,7 +703,8 @@
[double-flonum? (make-pred-ty -Flonum)] [double-flonum? (make-pred-ty -Flonum)]
[inexact-real? (make-pred-ty -InexactReal)] [inexact-real? (make-pred-ty -InexactReal)]
[complex? (make-pred-ty N)] [complex? (make-pred-ty N)]
[rational? (make-pred-ty -Real)] ;; `rational?' includes all Reals, except infinities and NaN.
[rational? (asym-pred Univ B (-FS (-filter -Real 0) (-not-filter -Rat 0)))]
[exact? (asym-pred N B (-FS -top (-not-filter -Rat 0)))] [exact? (asym-pred N B (-FS -top (-not-filter -Rat 0)))]
[inexact? (asym-pred N B (-FS -top (-not-filter (Un -InexactReal -FloatComplex) 0)))] [inexact? (asym-pred N B (-FS -top (-not-filter (Un -InexactReal -FloatComplex) 0)))]
[fixnum? (make-pred-ty -Fixnum)] [fixnum? (make-pred-ty -Fixnum)]