Repository navigation
Optical flow with no shift allowed; True and False as constants in propositional sentences - #1398
Merged
Merged
Conversation
to_cnf raised AttributeError on A & False, and expr turned ~False into -1; now A & False is False, A | False is A, A | True is True and ~False is True, for to_cnf, dpll_satisfiable, cdcl_satisfiable, WalkSAT and pl_resolution.
False |'==>'| A failed on bool | str: the infix operators are now InfixOp strings, whose __ror__ takes a left operand that is not an Expr, and pl_true builds the negations of ==> and <== as Expr, so that ~False is not -1.
…sjunct At(B, RightNet) The goal put one player at both nets, and the doctest reached it with a third move; now the joint plan of Figure 18.2, Go(A, RightBaseLine) and Hit(A, Ball), reaches it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
every edge case of the matrix now has a test in Python, the only one missing was optical flow with no shift allowed
sum_squared_difference takes a max_shift (30 by default, as before), as in the Julia and JavaScript ports
True and False inside a propositional sentence are now constants: A & False is unsatisfiable, A | False is A, A | True is valid, ~False is True (to_cnf crashed on them, and expr made ~False the integer -1), also as operands of ==>, <== and <=>
the goal of double_tennis_problem put one player at both nets, the book (Figure 18.1) wants some player at either net: it is now the disjunct At(B, RightNet), and the doctest uses the joint plan of Figure 18.2