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.

250 lines
9.4 KiB

9 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{6}
  3. \dpllStep{1|2|3|4|5|6}
  4. \dpllDecL{0|1|1|1|1|1}
  5. \dpllAssi{ - |$\lnot u$|$\lnot u, v$|$\lnot u, v, \lnot y$|\makecell{$\lnot u, v, \lnot y, $ \\ $w$}|\makecell{$\lnot u, v, \lnot y, $ \\ $w, \lnot z$}}
  6. \dpllClause{1}{$u, v$}{$u, v$|$v$|\done|\done|\done|\done}
  7. \dpllClause{2}{$\lnot u, w$}{$\lnot u, w$|\done|\done|\done|\done|\done}
  8. \dpllClause{3}{$v, \lnot x$}{$v, \lnot x$|$v, \lnot x$|\done|\done|\done|\done}
  9. \dpllClause{4}{$w, y$}{$w, y$|$w, y$|$w, y$|$w$|\done|\done}
  10. \dpllClause{5}{$\lnot v, \lnot y$}{$\lnot v, \lnot y$|$\lnot v, \lnot y$|$\lnot y$|\done|\done|\done}
  11. \dpllClause{6}{$\lnot w, z$}{$\lnot w, z$|$\lnot w, z$|$\lnot w, z$|$\lnot w, z$|$z$|\conflict}
  12. \dpllClause{7}{$\lnot z, x$}{$\lnot z, x$|$\lnot z, x$|$\lnot z, x$|$\lnot z, x$|$\lnot z, x$|\done}
  13. \dpllClause{8}{$y, \lnot z$}{$y, \lnot z$|$y, \lnot z$|$y, \lnot z$|$\lnot z$|$\lnot z$|\done}
  14. \dpllClause{9}{$x, \lnot u$}{$x, \lnot u$|\done|\done|\done|\done|\done}
  15. \dpllBCP{ - |$v$|$\lnot y$|$w$|$\lnot z$| - }
  16. \dpllPL{ - | - | - | - | - | - }
  17. \dpllDeci{$\lnot u$| - | - | - | - | - }
  18. \end{dplltabular}
  19. }
  20. Conflict in step 6\\
  21. \scalebox{0.75}{
  22. \begin{tikzpicture}[>=latex,line join=bevel,]
  23. \pgfsetlinewidth{1bp}
  24. %%
  25. \pgfsetcolor{black}
  26. % Edge: 1 -> 3
  27. \draw [->] (22.3bp,30.5bp) .. controls (35.47bp,30.5bp) and (58.583bp,30.5bp) .. (85.878bp,30.5bp);
  28. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  29. \pgfsetstrokecolor{strokecol}
  30. \draw (54.0bp,38.0bp) node {$$1$$};
  31. % Edge: 3 -> 5
  32. \draw [->] (108.3bp,30.5bp) .. controls (121.47bp,30.5bp) and (144.58bp,30.5bp) .. (171.88bp,30.5bp);
  33. \draw (140.0bp,38.0bp) node {$$5$$};
  34. % Edge: 4 -> 6
  35. \draw [->] (280.3bp,50.5bp) .. controls (293.47bp,50.5bp) and (316.58bp,50.5bp) .. (343.88bp,50.5bp);
  36. \draw (312.0bp,58.0bp) node {$$6$$};
  37. % Edge: 5 -> 4
  38. \draw [->] (193.97bp,32.873bp) .. controls (207.23bp,36.03bp) and (230.98bp,41.686bp) .. (258.05bp,48.13bp);
  39. \draw (226.0bp,50.0bp) node {$$4$$};
  40. % Edge: 5 -> 7
  41. \draw [->] (193.07bp,25.696bp) .. controls (198.42bp,23.094bp) and (205.42bp,20.094bp) .. (212.0bp,18.5bp) .. controls (238.72bp,12.025bp) and (270.6bp,10.902bp) .. (301.0bp,11.119bp);
  42. \draw (226.0bp,26.0bp) node {$$8$$};
  43. % Edge: 6 -> 2
  44. \draw [->] (365.16bp,46.162bp) .. controls (373.01bp,42.445bp) and (384.56bp,36.972bp) .. (403.68bp,27.917bp);
  45. % Edge: 7 -> 2
  46. \draw [->] (322.95bp,12.694bp) .. controls (339.12bp,14.634bp) and (371.4bp,18.508bp) .. (402.79bp,22.275bp);
  47. % Node: 1
  48. \begin{scope}
  49. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  50. \pgfsetstrokecolor{strokecol}
  51. \draw (11.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  52. \draw (11.0bp,30.5bp) node {$\lnot u$};
  53. \end{scope}
  54. % Node: 3
  55. \begin{scope}
  56. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  57. \pgfsetstrokecolor{strokecol}
  58. \draw (97.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  59. \draw (97.0bp,30.5bp) node {$v$};
  60. \end{scope}
  61. % Node: 2
  62. \begin{scope}
  63. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  64. \pgfsetstrokecolor{strokecol}
  65. \draw (414.0bp,23.5bp) ellipse (11.0bp and 11.0bp);
  66. \draw (414.0bp,23.5bp) node {$\bot$};
  67. \end{scope}
  68. % Node: 5
  69. \begin{scope}
  70. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  71. \pgfsetstrokecolor{strokecol}
  72. \draw (183.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  73. \draw (183.0bp,30.5bp) node {$\lnot y$};
  74. \end{scope}
  75. % Node: 4
  76. \begin{scope}
  77. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  78. \pgfsetstrokecolor{strokecol}
  79. \draw (269.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
  80. \draw (269.0bp,50.5bp) node {$w$};
  81. \end{scope}
  82. % Node: 6
  83. \begin{scope}
  84. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  85. \pgfsetstrokecolor{strokecol}
  86. \draw (355.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
  87. \draw (355.0bp,50.5bp) node {$z$};
  88. \end{scope}
  89. % Node: 7
  90. \begin{scope}
  91. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  92. \pgfsetstrokecolor{strokecol}
  93. \draw (312.0bp,11.5bp) ellipse (11.0bp and 11.0bp);
  94. \draw (312.0bp,11.5bp) node {$\lnot z$};
  95. \end{scope}
  96. %
  97. \end{tikzpicture}
  98. }
  99. \begin{prooftree}
  100. \AxiomC{$6. \; \lnot w \lor z$}
  101. \AxiomC{$4. \; w \lor y$}
  102. \BinaryInfC{$z \lor y$}
  103. \AxiomC{$8. \; y \lor \lnot z$}
  104. \BinaryInfC{$y$}
  105. \AxiomC{$5. \; \lnot v \lor \lnot y$}
  106. \BinaryInfC{$\lnot v$}
  107. \AxiomC{$1. \; u \lor v$}
  108. \BinaryInfC{$u$}
  109. \end{prooftree}
  110. \hspace{-0.09cm}\scalebox{0.85}{
  111. \begin{dplltabular}{7}
  112. \dpllStep{7|8|9|10|11|12|13}
  113. \dpllDecL{0|0|0|0|0|0|0}
  114. \dpllAssi{ - |$u$|$u, w$|$u, w, x$|\makecell{$u, w, x, $ \\ $v$}|\makecell{$u, w, x, $ \\ $v, \lnot y$}|\makecell{$u, w, x, $ \\ $v, \lnot y, \lnot z$}}
  115. \dpllClause{1}{$u, v$}{$u, v$|\done|\done|\done|\done|\done|\done}
  116. \dpllClause{2}{$\lnot u, w$}{$\lnot u, w$|$w$|\done|\done|\done|\done|\done}
  117. \dpllClause{3}{$v, \lnot x$}{$v, \lnot x$|$v, \lnot x$|$v, \lnot x$|$v$|\done|\done|\done}
  118. \dpllClause{4}{$w, y$}{$w, y$|$w, y$|\done|\done|\done|\done|\done}
  119. \dpllClause{5}{$\lnot v, \lnot y$}{$\lnot v, \lnot y$|$\lnot v, \lnot y$|$\lnot v, \lnot y$|$\lnot v, \lnot y$|$\lnot y$|\done|\done}
  120. \dpllClause{6}{$\lnot w, z$}{$\lnot w, z$|$\lnot w, z$|$z$|$z$|$z$|$z$|\conflict}
  121. \dpllClause{7}{$\lnot z, x$}{$\lnot z, x$|$\lnot z, x$|$\lnot z, x$|\done|\done|\done|\done}
  122. \dpllClause{8}{$y, \lnot z$}{$y, \lnot z$|$y, \lnot z$|$y, \lnot z$|$y, \lnot z$|$y, \lnot z$|$\lnot z$|\done}
  123. \dpllClause{9}{$x, \lnot u$}{$x, \lnot u$|$x$|$x$|\done|\done|\done|\done}
  124. \dpllClause{10}{$u$}{$u$|\done|\done|\done|\done|\done|\done}
  125. \dpllBCP{$u$|$w$|$x$|$v$|$\lnot y$|$\lnot z$| - }
  126. \dpllPL{ - | - | - | - | - | - | - }
  127. \dpllDeci{ - | - | - | - | - | - |UNSAT}
  128. \end{dplltabular}
  129. }
  130. Conflict in step 13\\
  131. \scalebox{0.75}{
  132. \begin{tikzpicture}[>=latex,line join=bevel,]
  133. \pgfsetlinewidth{1bp}
  134. %%
  135. \pgfsetcolor{black}
  136. % Edge: 0 -> 8
  137. \draw [->] (1.0602bp,31.0bp) .. controls (2.7468bp,31.0bp) and (39.52bp,31.0bp) .. (73.786bp,31.0bp);
  138. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  139. \pgfsetstrokecolor{strokecol}
  140. \draw (37.5bp,38.5bp) node {$$10$$};
  141. % Edge: 2 -> 5
  142. \draw [->] (182.39bp,50.918bp) .. controls (203.43bp,50.753bp) and (251.37bp,50.375bp) .. (288.82bp,50.08bp);
  143. \draw (214.0bp,57.5bp) node {$$6$$};
  144. % Edge: 3 -> 4
  145. \draw [->] (268.3bp,11.0bp) .. controls (281.47bp,11.0bp) and (304.58bp,11.0bp) .. (331.88bp,11.0bp);
  146. \draw (300.0bp,18.5bp) node {$$5$$};
  147. % Edge: 4 -> 6
  148. \draw [->] (354.3bp,11.0bp) .. controls (367.47bp,11.0bp) and (390.58bp,11.0bp) .. (417.88bp,11.0bp);
  149. \draw (386.0bp,18.5bp) node {$$8$$};
  150. % Edge: 5 -> 1
  151. \draw [->] (311.0bp,49.131bp) .. controls (335.99bp,46.927bp) and (403.17bp,40.812bp) .. (459.0bp,34.0bp) .. controls (461.51bp,33.694bp) and (464.14bp,33.349bp) .. (476.9bp,31.544bp);
  152. % Edge: 6 -> 1
  153. \draw [->] (439.67bp,14.223bp) .. controls (447.24bp,16.746bp) and (458.02bp,20.339bp) .. (477.09bp,26.697bp);
  154. % Edge: 7 -> 3
  155. \draw [->] (182.3bp,11.0bp) .. controls (195.47bp,11.0bp) and (218.58bp,11.0bp) .. (245.88bp,11.0bp);
  156. \draw (214.0bp,18.5bp) node {$$3$$};
  157. % Edge: 8 -> 2
  158. \draw [->] (95.966bp,33.373bp) .. controls (109.23bp,36.53bp) and (132.98bp,42.186bp) .. (160.05bp,48.63bp);
  159. \draw (128.0bp,50.5bp) node {$$2$$};
  160. % Edge: 8 -> 7
  161. \draw [->] (95.111bp,26.371bp) .. controls (100.48bp,23.828bp) and (107.48bp,20.828bp) .. (114.0bp,19.0bp) .. controls (125.65bp,15.733bp) and (139.06bp,13.758bp) .. (159.92bp,11.639bp);
  162. \draw (128.0bp,26.5bp) node {$$9$$};
  163. % Node: 8
  164. \begin{scope}
  165. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  166. \pgfsetstrokecolor{strokecol}
  167. \draw (85.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  168. \draw (85.0bp,31.0bp) node {$u$};
  169. \end{scope}
  170. % Node: 1
  171. \begin{scope}
  172. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  173. \pgfsetstrokecolor{strokecol}
  174. \draw (488.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  175. \draw (488.0bp,30.0bp) node {$\bot$};
  176. \end{scope}
  177. % Node: 2
  178. \begin{scope}
  179. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  180. \pgfsetstrokecolor{strokecol}
  181. \draw (171.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  182. \draw (171.0bp,51.0bp) node {$w$};
  183. \end{scope}
  184. % Node: 5
  185. \begin{scope}
  186. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  187. \pgfsetstrokecolor{strokecol}
  188. \draw (300.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  189. \draw (300.0bp,50.0bp) node {$z$};
  190. \end{scope}
  191. % Node: 3
  192. \begin{scope}
  193. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  194. \pgfsetstrokecolor{strokecol}
  195. \draw (257.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  196. \draw (257.0bp,11.0bp) node {$v$};
  197. \end{scope}
  198. % Node: 4
  199. \begin{scope}
  200. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  201. \pgfsetstrokecolor{strokecol}
  202. \draw (343.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  203. \draw (343.0bp,11.0bp) node {$\lnot y$};
  204. \end{scope}
  205. % Node: 6
  206. \begin{scope}
  207. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  208. \pgfsetstrokecolor{strokecol}
  209. \draw (429.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  210. \draw (429.0bp,11.0bp) node {$\lnot z$};
  211. \end{scope}
  212. % Node: 7
  213. \begin{scope}
  214. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  215. \pgfsetstrokecolor{strokecol}
  216. \draw (171.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  217. \draw (171.0bp,11.0bp) node {$x$};
  218. \end{scope}
  219. %
  220. \end{tikzpicture}
  221. }
  222. \scalebox{0.95}{
  223. \parbox{1cm}{
  224. \begin{prooftree}
  225. \AxiomC{$8. \; y \lor \lnot z$}
  226. \AxiomC{$5. \; \lnot v \lor \lnot y$}
  227. \BinaryInfC{$\lnot z \lor \lnot v$}
  228. \AxiomC{$3. \; v \lor \lnot x$}
  229. \BinaryInfC{$\lnot z \lor \lnot x$}
  230. \AxiomC{$6. \; \lnot w \lor z$}
  231. \BinaryInfC{$\lnot x \lor \lnot w$}
  232. \AxiomC{$2. \; \lnot u \lor w$}
  233. \BinaryInfC{$\lnot x \lor \lnot u$}
  234. \AxiomC{$9. \; x \lor \lnot u$}
  235. \BinaryInfC{$\lnot u$}
  236. \AxiomC{$10. \; u$}
  237. \BinaryInfC{$\bot$}
  238. \end{prooftree}
  239. }
  240. }