Created
February 27, 2026 19:18
-
-
Save josepablocam/78282c068f774961f1f4ab1330174c90 to your computer and use it in GitHub Desktop.
pizza puzzles
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
| (declare-datatypes () ((Pizza Pepperoni Margherita BBQ Hawaiian Peppers Cheese Sausage))) | |
| (declare-const emily Pizza) | |
| (declare-const owen Pizza) | |
| (declare-const yasmine Pizza) | |
| (declare-const nathan Pizza) | |
| (declare-const wendy Pizza) | |
| (declare-const rachel Pizza) | |
| (declare-const kevin Pizza) | |
| (assert | |
| (and | |
| (or (= emily Margherita) (= emily Peppers) (= emily Cheese)) | |
| (or (= owen Margherita) (= owen Peppers) (= owen Cheese)) | |
| (not (= yasmine Cheese )) | |
| (or (= nathan Cheese) (= nathan Pepperoni) (= nathan Margherita)) | |
| (not (= emily Peppers)) | |
| (not (= wendy Hawaiian)) | |
| (= rachel Cheese) | |
| (or (= kevin Pepperoni) (= kevin BBQ) (= kevin Sausage) (= kevin Hawaiian)) | |
| (distinct emily owen yasmine nathan wendy rachel kevin) | |
| ) | |
| ) | |
| (check-sat) | |
| (get-model) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment