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
19 lines
399 B
\item \self
|
|
Let $p$ and $q$ be Boolean variables.
|
|
Complete the python code with the appropriate variable declarations and constraint statements to check whether the following equivalence holds:
|
|
$$(p \implies q) \equiv (\lnot p \lor q).$$
|
|
\vskip1em
|
|
|
|
\begin{pythonSourceCode}
|
|
from z3 import *
|
|
|
|
solver = Solver()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result = solver.check()
|
|
print(result)
|
|
\end{pythonSourceCode}
|