Last active
January 3, 2022 15:25
-
-
Save victornicolet/6b57c35720773b7904b57b865275bedd to your computer and use it in GitHub Desktop.
This file contains 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
;; Machine 0- only 2 tasks, it's easy | |
(assert (or | |
(and (<= (+ t00 3) t10)) | |
(and (<= (+ t10 2) t00)))) | |
;; Machine 1: three tasks, so 6 possible sequences! | |
(assert (or | |
(and (<= (+ t01 2) t12) (<= (+ t12 4) t20)) | |
(and (<= (+ t01 2) t20) (<= (+ t20 4) t12)) | |
(and (<= (+ t12 4) t01) (<= (+ t01 2) t20)) | |
(and (<= (+ t12 4) t20) (<= (+ t20 4) t01)) | |
(and (<= (+ t20 4) t01) (<= (+ t01 2) t12)) | |
(and (<= (+ t20 4) t12) (<= (+ t12 4) t01)))) | |
;; Machine 2 : same problem | |
(assert (or | |
(and (<= (+ t02 2) t11) (<= (+ t11 1) t21)) | |
(and (<= (+ t02 2) t21) (<= (+ t21 3) t11)) | |
(and (<= (+ t11 1) t02) (<= (+ t02 2) t21)) | |
(and (<= (+ t11 1) t21) (<= (+ t21 3) t02)) | |
(and (<= (+ t21 3) t02) (<= (+ t02 2) t11)) | |
(and (<= (+ t21 3) t11) (<= (+ t11 1) t02)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment