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.

133 lines
5.9 KiB

6 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{5}
  3. \dpllStep{9|10|11|12|13}
  4. \dpllDecL{0|1|1|1|1}
  5. \dpllAssi{ - |$\lnot e_{0}$|$\lnot e_{0}, e_{1}$|$\lnot e_{0}, e_{1}, e_{2}$|\makecell{$\lnot e_{0}, e_{1}, e_{2}, $ \\ $\lnot e_{3}$}}
  6. \dpllClause{1}{$e_{0}, e_{1}, e_{2}$}{$e_{0}, e_{1}, e_{2}$|$e_{1}, e_{2}$|\done|\done|\done}
  7. \dpllClause{2}{$\lnot e_{0}, e_{1}$}{$\lnot e_{0}, e_{1}$|\done|\done|\done|\done}
  8. \dpllClause{3}{$\lnot e_{1}, e_{2}$}{$\lnot e_{1}, e_{2}$|$\lnot e_{1}, e_{2}$|$e_{2}$|\done|\done}
  9. \dpllClause{4}{$e_{2}, e_{3}$}{$e_{2}, e_{3}$|$e_{2}, e_{3}$|$e_{2}, e_{3}$|\done|\done}
  10. \dpllClause{5}{$\lnot e_{2}, e_{1}$}{$\lnot e_{2}, e_{1}$|$\lnot e_{2}, e_{1}$|\done|\done|\done}
  11. \dpllClause{6}{$\lnot e_{3}, \lnot e_{1}$}{$\lnot e_{3}, \lnot e_{1}$|$\lnot e_{3}, \lnot e_{1}$|$\lnot e_{3}$|$\lnot e_{3}$|\done}
  12. \dpllClause{7}{$e_{0}, e_{1}$}{$e_{0}, e_{1}$|$e_{1}$|\done|\done|\done}
  13. \dpllClause{8}{$e_{0}, \lnot e_{1}, \lnot e_{2}, e_{3}$}{\makecell{$e_{0}, \lnot e_{1}, \lnot e_{2}, $ \\ $e_{3}$}|$\lnot e_{1}, \lnot e_{2}, e_{3}$|$\lnot e_{2}, e_{3}$|$e_{3}$|\conflict}
  14. \dpllBCP{ - |$e_{1}$|$e_{2}$|$\lnot e_{3}$| - }
  15. \dpllPL{ - | - | - | - | - }
  16. \dpllDeci{$\lnot e_{0}$| - | - | - | - }
  17. \end{dplltabular}
  18. }
  19. Conflict in step 13\\
  20. \scalebox{0.75}{
  21. \begin{tikzpicture}[>=latex,line join=bevel,]
  22. \pgfsetlinewidth{1bp}
  23. %%
  24. \pgfsetcolor{black}
  25. % Edge: 1 -> 5
  26. \draw [->] (22.3bp,50.0bp) .. controls (35.47bp,50.0bp) and (58.583bp,50.0bp) .. (85.878bp,50.0bp);
  27. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  28. \pgfsetstrokecolor{strokecol}
  29. \draw (54.0bp,57.5bp) node {$$7$$};
  30. % Edge: 3 -> 6
  31. \draw [->] (197.32bp,50.0bp) .. controls (211.2bp,50.0bp) and (236.16bp,50.0bp) .. (263.96bp,50.0bp);
  32. \draw (232.0bp,57.5bp) node {$$8$$};
  33. % Edge: 4 -> 2
  34. \draw [->] (242.95bp,12.194bp) .. controls (259.12bp,14.134bp) and (291.4bp,18.008bp) .. (322.79bp,21.775bp);
  35. % Edge: 5 -> 3
  36. \draw [->] (108.32bp,50.0bp) .. controls (122.2bp,50.0bp) and (147.16bp,50.0bp) .. (174.96bp,50.0bp);
  37. \draw (140.0bp,57.5bp) node {$$3$$};
  38. % Edge: 5 -> 4
  39. \draw [->] (105.82bp,43.402bp) .. controls (111.18bp,39.225bp) and (118.62bp,34.054bp) .. (126.0bp,31.0bp) .. controls (154.04bp,19.403bp) and (189.09bp,14.461bp) .. (220.77bp,11.572bp);
  40. \draw (140.0bp,38.5bp) node {$$6$$};
  41. % Edge: 5 -> 6
  42. \draw [->] (105.67bp,57.009bp) .. controls (110.96bp,61.36bp) and (118.39bp,66.571bp) .. (126.0bp,69.0bp) .. controls (176.81bp,85.217bp) and (195.19bp,85.217bp) .. (246.0bp,69.0bp) .. controls (250.16bp,67.671bp) and (254.27bp,65.511bp) .. (266.33bp,57.009bp);
  43. \draw (186.0bp,89.5bp) node {$$8$$};
  44. % Edge: 6 -> 2
  45. \draw [->] (285.16bp,45.662bp) .. controls (293.01bp,41.945bp) and (304.56bp,36.472bp) .. (323.68bp,27.417bp);
  46. % Node: 1
  47. \begin{scope}
  48. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  49. \pgfsetstrokecolor{strokecol}
  50. \draw (11.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  51. \draw (11.0bp,50.0bp) node {$\lnot e_{0}$};
  52. \end{scope}
  53. % Node: 5
  54. \begin{scope}
  55. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  56. \pgfsetstrokecolor{strokecol}
  57. \draw (97.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  58. \draw (97.0bp,50.0bp) node {$e_{1}$};
  59. \end{scope}
  60. % Node: 2
  61. \begin{scope}
  62. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  63. \pgfsetstrokecolor{strokecol}
  64. \draw (334.0bp,23.0bp) ellipse (11.0bp and 11.0bp);
  65. \draw (334.0bp,23.0bp) node {$\bot$};
  66. \end{scope}
  67. % Node: 3
  68. \begin{scope}
  69. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  70. \pgfsetstrokecolor{strokecol}
  71. \draw (186.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  72. \draw (186.0bp,50.0bp) node {$e_{2}$};
  73. \end{scope}
  74. % Node: 6
  75. \begin{scope}
  76. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  77. \pgfsetstrokecolor{strokecol}
  78. \draw (275.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  79. \draw (275.0bp,50.0bp) node {$e_{3}$};
  80. \end{scope}
  81. % Node: 4
  82. \begin{scope}
  83. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  84. \pgfsetstrokecolor{strokecol}
  85. \draw (232.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  86. \draw (232.0bp,11.0bp) node {$\lnot e_{3}$};
  87. \end{scope}
  88. %
  89. \end{tikzpicture}
  90. }
  91. \begin{prooftree}
  92. \AxiomC{$8. \; e_{0} \lor \lnot e_{1} \lor \lnot e_{2} \lor e_{3}$}
  93. \AxiomC{$3. \; \lnot e_{1} \lor e_{2}$}
  94. \BinaryInfC{$e_{0} \lor \lnot e_{1} \lor e_{3}$}
  95. \AxiomC{$6. \; \lnot e_{3} \lor \lnot e_{1}$}
  96. \BinaryInfC{$e_{0} \lor \lnot e_{1}$}
  97. \AxiomC{$7. \; e_{0} \lor e_{1}$}
  98. \BinaryInfC{$e_{0}$}
  99. \end{prooftree}
  100. \hspace{-0.09cm}\scalebox{0.85}{
  101. \begin{dplltabular}{5}
  102. \dpllStep{14|15|16|17|18}
  103. \dpllDecL{0|0|0|0|0}
  104. \dpllAssi{ - |$e_{0}$|$e_{0}, e_{1}$|$e_{0}, e_{1}, e_{2}$|\makecell{$e_{0}, e_{1}, e_{2}, $ \\ $\lnot e_{3}$}}
  105. \dpllClause{1}{$e_{0}, e_{1}, e_{2}$}{$e_{0}, e_{1}, e_{2}$|\done|\done|\done|\done}
  106. \dpllClause{2}{$\lnot e_{0}, e_{1}$}{$\lnot e_{0}, e_{1}$|$e_{1}$|\done|\done|\done}
  107. \dpllClause{3}{$\lnot e_{1}, e_{2}$}{$\lnot e_{1}, e_{2}$|$\lnot e_{1}, e_{2}$|$e_{2}$|\done|\done}
  108. \dpllClause{4}{$e_{2}, e_{3}$}{$e_{2}, e_{3}$|$e_{2}, e_{3}$|$e_{2}, e_{3}$|\done|\done}
  109. \dpllClause{5}{$\lnot e_{2}, e_{1}$}{$\lnot e_{2}, e_{1}$|$\lnot e_{2}, e_{1}$|\done|\done|\done}
  110. \dpllClause{6}{$\lnot e_{3}, \lnot e_{1}$}{$\lnot e_{3}, \lnot e_{1}$|$\lnot e_{3}, \lnot e_{1}$|$\lnot e_{3}$|$\lnot e_{3}$|\done}
  111. \dpllClause{7}{$e_{0}, e_{1}$}{$e_{0}, e_{1}$|\done|\done|\done|\done}
  112. \dpllClause{8}{$e_{0}, \lnot e_{1}, \lnot e_{2}, e_{3}$}{\makecell{$e_{0}, \lnot e_{1}, \lnot e_{2}, $ \\ $e_{3}$}|\done|\done|\done|\done}
  113. \dpllClause{9}{$e_{0}$}{$e_{0}$|\done|\done|\done|\done}
  114. \dpllBCP{$e_{0}$|$e_{1}$|$e_{2}$|$\lnot e_{3}$| - }
  115. \dpllPL{ - | - | - | - | - }
  116. \dpllDeci{ - | - | - | - |SAT}
  117. \end{dplltabular}
  118. }
  119. $\Model_{\EUF} := (a = b) \land (a = f(a)) \land (b = f(a)) \land (d \neq a) $ \\
  120. Check if the assignment is consistent with the theory:
  121. \begin{align*}
  122. &\{a, b\}, \{a, f(a)\}, \{b, f(a)\}, \{d\}\\
  123. &\{d\}, \{a, b, f(a)\}
  124. \end{align*}
  125. $\Model_{\EUF}$ is consistent with the theory, \\$\Rightarrow \Model_{\EUF}$ is a satisfying assignment and $\varphi$ is SAT.