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.

36 lines
2.0 KiB

2 months ago
  1. We start by translating $\varphi$ to $\hat{\varphi} = \skel$ and assign the following variables to the theory literals:
  2. \begin{itemize}
  3. \item $e_{0}\Leftrightarrow(a=x)$
  4. \item $e_{1}\Leftrightarrow(a=y)$
  5. \item $e_{2}\Leftrightarrow(x=y)$
  6. \item $e_{3}\Leftrightarrow(z=a)$
  7. \item $e_{4}\Leftrightarrow(b=z)$
  8. \end{itemize}
  9. $\hat{\varphi} = (\clause{e_{0}; e_{1}; e_{2}})\land (\clause{\lnot e_{0}; e_{1}})\land (\clause{\lnot e_{1}; e_{2}})\land (\clause{e_{2}; e_{3}})\land (\clause{\lnot e_{2}; e_{4}})\land (\clause{\lnot e_{3}; \lnot e_{4}})$
  10. \hspace{-0.09cm}\scalebox{0.85}{
  11. \begin{dplltabular}{6}
  12. \dpllStep{1|2|3|4|5|6}
  13. \dpllDecL{0|1|2|2|2|2}
  14. \dpllAssi{ - |$\lnot e_{0}$|$\lnot e_{0}, \lnot e_{1}$|$\lnot e_{0}, \lnot e_{1}, e_{2}$|\makecell{$\lnot e_{0}, \lnot e_{1}, e_{2}, $ \\ $e_{4}$}|\makecell{$\lnot e_{0}, \lnot e_{1}, e_{2}, $ \\ $e_{4}, \lnot e_{3}$}}
  15. \dpllClause{1}{$e_{0}, e_{1}, e_{2}$}{$e_{0}, e_{1}, e_{2}$|$e_{1}, e_{2}$|$e_{2}$|\done|\done|\done}
  16. \dpllClause{2}{$\lnot e_{0}, e_{1}$}{$\lnot e_{0}, e_{1}$|\done|\done|\done|\done|\done}
  17. \dpllClause{3}{$\lnot e_{1}, e_{2}$}{$\lnot e_{1}, e_{2}$|$\lnot e_{1}, e_{2}$|\done|\done|\done|\done}
  18. \dpllClause{4}{$e_{2}, e_{3}$}{$e_{2}, e_{3}$|$e_{2}, e_{3}$|$e_{2}, e_{3}$|\done|\done|\done}
  19. \dpllClause{5}{$\lnot e_{2}, e_{4}$}{$\lnot e_{2}, e_{4}$|$\lnot e_{2}, e_{4}$|$\lnot e_{2}, e_{4}$|$e_{4}$|\done|\done}
  20. \dpllClause{6}{$\lnot e_{3}, \lnot e_{4}$}{$\lnot e_{3}, \lnot e_{4}$|$\lnot e_{3}, \lnot e_{4}$|$\lnot e_{3}, \lnot e_{4}$|$\lnot e_{3}, \lnot e_{4}$|$\lnot e_{3}$|\done}
  21. \dpllBCP{ - | - |$e_{2}$|$e_{4}$|$\lnot e_{3}$| - }
  22. \dpllPL{ - | - | - | - | - | - }
  23. \dpllDeci{$\lnot e_{0}$|$\lnot e_{1}$| - | - | - |SAT}
  24. \end{dplltabular}
  25. }
  26. $\Model_{\EUF} := (a \neq x) \land (a \neq y) \land (x = y) \land (z \neq a) \land (b = z) $ \\
  27. Check if the assignment is consistent with the theory:
  28. \begin{align*}
  29. &\{x, y\}, \{b, z\}, \{a\}
  30. \end{align*}
  31. $\Model_{\EUF}$ is consistent with the theory, \\$\Rightarrow \Model_{\EUF}$ is a satisfying assignment and $\varphi$ is SAT.