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.

208 lines
7.5 KiB

5 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{5}
  3. \dpllStep{1|2|3|4|5}
  4. \dpllDecL{0|0|1|1|1}
  5. \dpllAssi{ - |$a$|$a, \lnot b$|$a, \lnot b, d$|\makecell{$a, \lnot b, d, $ \\ $\lnot e$}}
  6. \dpllClause{1}{$b, d$}{$b, d$|$b, d$|$d$|\done|\done}
  7. \dpllClause{2}{$\lnot d, e$}{$\lnot d, e$|$\lnot d, e$|$\lnot d, e$|$e$|\conflict}
  8. \dpllClause{3}{$a, d$}{$a, d$|\done|\done|\done|\done}
  9. \dpllClause{4}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|\done|\done|\done}
  10. \dpllClause{5}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$\lnot c, d$|\done|\done}
  11. \dpllClause{6}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|$\lnot c$}
  12. \dpllClause{7}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot e$|\done}
  13. \dpllBCP{ - | - |$d$|$\lnot e$| - }
  14. \dpllPL{$a$| - | - | - | - }
  15. \dpllDeci{ - |$\lnot b$| - | - | - }
  16. \end{dplltabular}
  17. }
  18. Conflict in step 5\\
  19. \scalebox{0.75}{
  20. \begin{tikzpicture}[>=latex,line join=bevel,]
  21. \pgfsetlinewidth{1bp}
  22. %%
  23. \pgfsetcolor{black}
  24. % Edge: 1 -> 3
  25. \draw [->] (22.3bp,31.0bp) .. controls (35.47bp,31.0bp) and (58.583bp,31.0bp) .. (85.878bp,31.0bp);
  26. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  27. \pgfsetstrokecolor{strokecol}
  28. \draw (54.0bp,38.5bp) node {$$1$$};
  29. % Edge: 3 -> 4
  30. \draw [->] (107.97bp,33.373bp) .. controls (121.23bp,36.53bp) and (144.98bp,42.186bp) .. (172.05bp,48.63bp);
  31. \draw (140.0bp,50.5bp) node {$$2$$};
  32. % Edge: 3 -> 5
  33. \draw [->] (107.11bp,26.371bp) .. controls (112.48bp,23.828bp) and (119.48bp,20.828bp) .. (126.0bp,19.0bp) .. controls (137.65bp,15.733bp) and (151.06bp,13.758bp) .. (171.92bp,11.639bp);
  34. \draw (140.0bp,26.5bp) node {$$7$$};
  35. % Edge: 4 -> 2
  36. \draw [->] (193.67bp,47.438bp) .. controls (201.41bp,44.585bp) and (212.51bp,40.495bp) .. (231.47bp,33.51bp);
  37. % Edge: 5 -> 2
  38. \draw [->] (193.67bp,14.223bp) .. controls (201.24bp,16.746bp) and (212.02bp,20.339bp) .. (231.09bp,26.697bp);
  39. % Node: 1
  40. \begin{scope}
  41. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  42. \pgfsetstrokecolor{strokecol}
  43. \draw (11.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  44. \draw (11.0bp,31.0bp) node {$\lnot b$};
  45. \end{scope}
  46. % Node: 3
  47. \begin{scope}
  48. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  49. \pgfsetstrokecolor{strokecol}
  50. \draw (97.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  51. \draw (97.0bp,31.0bp) node {$d$};
  52. \end{scope}
  53. % Node: 2
  54. \begin{scope}
  55. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  56. \pgfsetstrokecolor{strokecol}
  57. \draw (242.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  58. \draw (242.0bp,30.0bp) node {$\bot$};
  59. \end{scope}
  60. % Node: 4
  61. \begin{scope}
  62. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  63. \pgfsetstrokecolor{strokecol}
  64. \draw (183.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  65. \draw (183.0bp,51.0bp) node {$e$};
  66. \end{scope}
  67. % Node: 5
  68. \begin{scope}
  69. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  70. \pgfsetstrokecolor{strokecol}
  71. \draw (183.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  72. \draw (183.0bp,11.0bp) node {$\lnot e$};
  73. \end{scope}
  74. %
  75. \end{tikzpicture}
  76. }
  77. \begin{prooftree}
  78. \AxiomC{$2. \; \lnot d \lor e$}
  79. \AxiomC{$7. \; \lnot d \lor \lnot e$}
  80. \BinaryInfC{$\lnot d$}
  81. \AxiomC{$1. \; b \lor d$}
  82. \BinaryInfC{$b$}
  83. \end{prooftree}
  84. \hspace{-0.09cm}\scalebox{0.85}{
  85. \begin{dplltabular}{5}
  86. \dpllStep{6|7|8|9|10}
  87. \dpllDecL{0|0|0|0|0}
  88. \dpllAssi{$a$|$a, b$|$a, b, c$|\makecell{$a, b, c, $ \\ $d$}|\makecell{$a, b, c, $ \\ $d, \lnot e$}}
  89. \dpllClause{1}{$b, d$}{$b, d$|\done|\done|\done|\done}
  90. \dpllClause{2}{$\lnot d, e$}{$\lnot d, e$|$\lnot d, e$|$\lnot d, e$|$e$|\done}
  91. \dpllClause{3}{$a, d$}{\done|\done|\done|\done|\done}
  92. \dpllClause{4}{$\lnot b, c$}{$\lnot b, c$|$c$|\done|\done|\done}
  93. \dpllClause{5}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$d$|\done|\done}
  94. \dpllClause{6}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$e$|$e$|\conflict}
  95. \dpllClause{7}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot e$|\done}
  96. \dpllClause{8}{$b$}{$b$|\done|\done|\done|\done}
  97. \dpllBCP{$b$|$c$|$d$|$\lnot e$| - }
  98. \dpllPL{ - | - | - | - | - }
  99. \dpllDeci{ - | - | - | - |UNSAT}
  100. \end{dplltabular}
  101. }
  102. Conflict in step 10\\
  103. \scalebox{0.75}{
  104. \begin{tikzpicture}[>=latex,line join=bevel,]
  105. \pgfsetlinewidth{1bp}
  106. %%
  107. \pgfsetcolor{black}
  108. % Edge: 0 -> 7
  109. \draw [->] (1.0536bp,30.0bp) .. controls (2.5071bp,30.0bp) and (33.188bp,30.0bp) .. (64.696bp,30.0bp);
  110. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  111. \pgfsetstrokecolor{strokecol}
  112. \draw (33.0bp,37.5bp) node {$$8$$};
  113. % Edge: 2 -> 1
  114. \draw [->] (343.41bp,84.098bp) .. controls (351.75bp,78.249bp) and (364.75bp,69.126bp) .. (383.55bp,55.926bp);
  115. % Edge: 3 -> 4
  116. \draw [->] (172.97bp,32.373bp) .. controls (186.23bp,35.53bp) and (209.98bp,41.186bp) .. (237.05bp,47.63bp);
  117. \draw (205.0bp,49.5bp) node {$$5$$};
  118. % Edge: 3 -> 5
  119. \draw [->] (172.07bp,25.196bp) .. controls (177.42bp,22.594bp) and (184.42bp,19.594bp) .. (191.0bp,18.0bp) .. controls (217.72bp,11.525bp) and (249.6bp,10.402bp) .. (280.0bp,10.619bp);
  120. \draw (205.0bp,25.5bp) node {$$6$$};
  121. % Edge: 4 -> 2
  122. \draw [->] (257.63bp,55.72bp) .. controls (263.06bp,59.202bp) and (270.3bp,63.616bp) .. (277.0bp,67.0bp) .. controls (288.94bp,73.032bp) and (302.86bp,78.753bp) .. (323.28bp,86.537bp);
  123. \draw (291.0bp,86.5bp) node {$$2$$};
  124. % Edge: 4 -> 6
  125. \draw [->] (259.3bp,50.0bp) .. controls (272.47bp,50.0bp) and (295.58bp,50.0bp) .. (322.88bp,50.0bp);
  126. \draw (291.0bp,57.5bp) node {$$7$$};
  127. % Edge: 5 -> 1
  128. \draw [->] (301.83bp,14.333bp) .. controls (312.52bp,18.001bp) and (330.07bp,24.154bp) .. (345.0bp,30.0bp) .. controls (354.39bp,33.678bp) and (364.72bp,38.037bp) .. (382.7bp,45.855bp);
  129. % Edge: 6 -> 1
  130. \draw [->] (345.19bp,50.0bp) .. controls (352.57bp,50.0bp) and (362.78bp,50.0bp) .. (381.9bp,50.0bp);
  131. % Edge: 7 -> 3
  132. \draw [->] (87.3bp,30.0bp) .. controls (100.47bp,30.0bp) and (123.58bp,30.0bp) .. (150.88bp,30.0bp);
  133. \draw (119.0bp,37.5bp) node {$$4$$};
  134. % Node: 7
  135. \begin{scope}
  136. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  137. \pgfsetstrokecolor{strokecol}
  138. \draw (76.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  139. \draw (76.0bp,30.0bp) node {$b$};
  140. \end{scope}
  141. % Node: 1
  142. \begin{scope}
  143. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  144. \pgfsetstrokecolor{strokecol}
  145. \draw (393.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  146. \draw (393.0bp,50.0bp) node {$\bot$};
  147. \end{scope}
  148. % Node: 2
  149. \begin{scope}
  150. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  151. \pgfsetstrokecolor{strokecol}
  152. \draw (334.0bp,90.0bp) ellipse (11.0bp and 11.0bp);
  153. \draw (334.0bp,90.0bp) node {$e$};
  154. \end{scope}
  155. % Node: 3
  156. \begin{scope}
  157. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  158. \pgfsetstrokecolor{strokecol}
  159. \draw (162.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  160. \draw (162.0bp,30.0bp) node {$c$};
  161. \end{scope}
  162. % Node: 4
  163. \begin{scope}
  164. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  165. \pgfsetstrokecolor{strokecol}
  166. \draw (248.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  167. \draw (248.0bp,50.0bp) node {$d$};
  168. \end{scope}
  169. % Node: 5
  170. \begin{scope}
  171. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  172. \pgfsetstrokecolor{strokecol}
  173. \draw (291.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  174. \draw (291.0bp,11.0bp) node {$e$};
  175. \end{scope}
  176. % Node: 6
  177. \begin{scope}
  178. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  179. \pgfsetstrokecolor{strokecol}
  180. \draw (334.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  181. \draw (334.0bp,50.0bp) node {$\lnot e$};
  182. \end{scope}
  183. %
  184. \end{tikzpicture}
  185. }
  186. \begin{prooftree}
  187. \AxiomC{$2. \; \lnot d \lor e$}
  188. \AxiomC{$7. \; \lnot d \lor \lnot e$}
  189. \BinaryInfC{$\lnot d$}
  190. \AxiomC{$5. \; \lnot c \lor d$}
  191. \BinaryInfC{$\lnot c$}
  192. \AxiomC{$6. \; \lnot c \lor e$}
  193. \BinaryInfC{$\lnot c \lor e$}
  194. \AxiomC{$4. \; \lnot b \lor c$}
  195. \BinaryInfC{$e \lor \lnot b$}
  196. \AxiomC{$8. \; b$}
  197. \BinaryInfC{$e$}
  198. \end{prooftree}