You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
399 B

7 months ago
  1. \item \self
  2. Let $p$ and $q$ be Boolean variables.
  3. Complete the python code with the appropriate variable declarations and constraint statements to check whether the following equivalence holds:
  4. $$(p \implies q) \equiv (\lnot p \lor q).$$
  5. \vskip1em
  6. \begin{pythonSourceCode}
  7. from z3 import *
  8. solver = Solver()
  9. result = solver.check()
  10. print(result)
  11. \end{pythonSourceCode}