Re:Which answer in this list is the correct answer to this q...
by Recursing on Friday November 15, 2019 @09:52AM
(#21545246)
I posted a solution using the python z3 library, which might be easier to use for people used to python, here: https://news.ycombinator.com/item?id=21545143
Re:Which answer in this list is the correct answer to this q...
by Recursing on Monday November 18, 2019 @04:17PM
(#21568226)
That solution was not correct, see https://news.ycombinator.com/item?id=21568151
Additionally forcing a5 to be false by adding the following to the list of assertions:
And the model becomes unsatisfiable.Edit: Finally, to make sure there's not some possible solution where a5 is true as well as another assertion you could alternatively add this assertion:
And the model also becomes unsatisfiable. So 5 only seems to be the correct answer.[0] https://github.com/Z3Prover/z3
[1] https://rise4fun.com/Z3/1DMW