8000 Missing results for logo · Issue #1 · shouya/ckini · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Missing results for logo #1

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

Open
shouya opened this issue Feb 11, 2021 · 0 comments
Open

Missing results for logo #1

shouya opened this issue Feb 11, 2021 · 0 comments

Comments

@shouya
Copy link
Owner
shouya commented Feb 11, 2021

If we try to find first 9 tuples of {b,q,r} that satisfies 68 = b*q + r, we get this result:

     doctest:
       iex> use Ckini
       iex> [b, q, r] = Var.new_many(3)
       iex> run(9, {b, q, r}, [logo(from_number(68), b, q, r), gt1o(q)])
       []
     code:  run(9, {b, q, r}, [logo(from_number(68), b, q, r), gt1o(q)]) === []
     left:  [
              {[1], [:_0, :_1 | :_2], [1, 1, 0, 0, 0, 0, 1]},
              {[], [:_0, :_1 | :_2], [0, 0, 1, 0, 0, 0, 1]},
              {[0, 1], [0, 1, 1], [0, 0, 1]},
              {[0, 0, 1], [1, 1], [0, 0, 1]},
              {[1, 0, 1], [0, 1], [1, 1, 0, 1, 0, 1]},
              {[0, 1, 1], [0, 1], [0, 0, 0, 0, 0, 1]},
              {[1, 1, 1], [0, 1], [1, 1, 0, 0, 1]}
            ]
     right: []

(Finished in 590.2 seconds)

The answers given is not wrong, but incomplete. This example is extracted from from the book (pg. 55):

image

The book show the correct 9 results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0