Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for +-rule-down #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 25, 2013

  1. Fix for +-rule-down

    Argument presented in the source code was
      ;; note: We can't assert that X and Y are integers when Z is an integer since
      ;;       Z may be an integer when X and Y are Gaussian integers. But we can
      ;;       make such an assertion if either X or Y is real. If the Screamer
      ;;       type system could distinguish Gaussian integers from other complex
      ;;       numbers we could make such an assertion whenever either X or Y was
      ;;       not a Gaussian integer.
    The argument above must surely be incorrect. If Z is an integer, and Y is a real
     say 2.5 then X will surely not be an integer. The argument *does* work if eithe
    r X or Y are integers. So changed things so that Z being an integer and X OR Y being an INTEGER means that X AND Y are both integers. (Note the assertion is only for X, but this is correct given that the assertion for Y happens in another call to this rule.
    Hennie de Villiers authored and Hennie de Villiers committed Feb 25, 2013
    Configuration menu
    Copy the full SHA
    0bca5b8 View commit details
    Browse the repository at this point in the history