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.

211 lines
7.9 KiB

5 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{6}
  3. \dpllStep{1|2|3|4|5|6}
  4. \dpllDecL{0|0|1|1|1|1}
  5. \dpllAssi{ - |$\lnot a$|$\lnot a, \lnot b$|$\lnot a, \lnot b, c$|\makecell{$\lnot a, \lnot b, c, $ \\ $\lnot e$}|\makecell{$\lnot a, \lnot b, c, $ \\ $\lnot e, \lnot d$}}
  6. \dpllClause{1}{$b, c, d$}{$b, c, d$|$b, c, d$|$c, d$|\done|\done|\done}
  7. \dpllClause{2}{$\lnot a, \lnot c$}{$\lnot a, \lnot c$|\done|\done|\done|\done|\done}
  8. \dpllClause{3}{$b, c$}{$b, c$|$b, c$|$c$|\done|\done|\done}
  9. \dpllClause{4}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot b, \lnot d$|\done|\done|\done|\done}
  10. \dpllClause{5}{$\lnot d, e$}{$\lnot d, e$|$\lnot d, e$|$\lnot d, e$|$\lnot d, e$|$\lnot d$|\done}
  11. \dpllClause{6}{$d, e$}{$d, e$|$d, e$|$d, e$|$d, e$|$d$|\conflict}
  12. \dpllClause{7}{$\lnot c, \lnot e$}{$\lnot c, \lnot e$|$\lnot c, \lnot e$|$\lnot c, \lnot e$|$\lnot e$|\done|\done}
  13. \dpllClause{8}{$\lnot b, c, d$}{$\lnot b, c, d$|$\lnot b, c, d$|\done|\done|\done|\done}
  14. \dpllBCP{ - | - |$c$|$\lnot e$|$\lnot d$| - }
  15. \dpllPL{$\lnot a$| - | - | - | - | - }
  16. \dpllDeci{ - |$\lnot b$| - | - | - | - }
  17. \end{dplltabular}
  18. }
  19. Conflict in step 6\\
  20. \scalebox{0.75}{
  21. \begin{tikzpicture}[>=latex,line join=bevel,]
  22. \pgfsetlinewidth{1bp}
  23. %%
  24. \pgfsetcolor{black}
  25. % Edge: 1 -> 3
  26. \draw [->] (22.3bp,31.0bp) .. controls (35.47bp,31.0bp) and (58.583bp,31.0bp) .. (85.878bp,31.0bp);
  27. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  28. \pgfsetstrokecolor{strokecol}
  29. \draw (54.0bp,38.5bp) node {$$3$$};
  30. % Edge: 3 -> 6
  31. \draw [->] (108.3bp,31.0bp) .. controls (121.47bp,31.0bp) and (144.58bp,31.0bp) .. (171.88bp,31.0bp);
  32. \draw (140.0bp,38.5bp) node {$$7$$};
  33. % Edge: 4 -> 2
  34. \draw [->] (279.67bp,47.438bp) .. controls (287.41bp,44.585bp) and (298.51bp,40.495bp) .. (317.47bp,33.51bp);
  35. % Edge: 5 -> 2
  36. \draw [->] (279.67bp,14.223bp) .. controls (287.24bp,16.746bp) and (298.02bp,20.339bp) .. (317.09bp,26.697bp);
  37. % Edge: 6 -> 4
  38. \draw [->] (193.97bp,33.373bp) .. controls (207.23bp,36.53bp) and (230.98bp,42.186bp) .. (258.05bp,48.63bp);
  39. \draw (226.0bp,50.5bp) node {$$5$$};
  40. % Edge: 6 -> 5
  41. \draw [->] (193.11bp,26.371bp) .. controls (198.48bp,23.828bp) and (205.48bp,20.828bp) .. (212.0bp,19.0bp) .. controls (223.65bp,15.733bp) and (237.06bp,13.758bp) .. (257.92bp,11.639bp);
  42. \draw (226.0bp,26.5bp) node {$$6$$};
  43. % Node: 1
  44. \begin{scope}
  45. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  46. \pgfsetstrokecolor{strokecol}
  47. \draw (11.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  48. \draw (11.0bp,31.0bp) node {$\lnot b$};
  49. \end{scope}
  50. % Node: 3
  51. \begin{scope}
  52. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  53. \pgfsetstrokecolor{strokecol}
  54. \draw (97.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  55. \draw (97.0bp,31.0bp) node {$c$};
  56. \end{scope}
  57. % Node: 2
  58. \begin{scope}
  59. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  60. \pgfsetstrokecolor{strokecol}
  61. \draw (328.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  62. \draw (328.0bp,30.0bp) node {$\bot$};
  63. \end{scope}
  64. % Node: 6
  65. \begin{scope}
  66. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  67. \pgfsetstrokecolor{strokecol}
  68. \draw (183.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  69. \draw (183.0bp,31.0bp) node {$\lnot e$};
  70. \end{scope}
  71. % Node: 4
  72. \begin{scope}
  73. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  74. \pgfsetstrokecolor{strokecol}
  75. \draw (269.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  76. \draw (269.0bp,51.0bp) node {$\lnot d$};
  77. \end{scope}
  78. % Node: 5
  79. \begin{scope}
  80. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  81. \pgfsetstrokecolor{strokecol}
  82. \draw (269.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  83. \draw (269.0bp,11.0bp) node {$d$};
  84. \end{scope}
  85. %
  86. \end{tikzpicture}
  87. }
  88. \begin{prooftree}
  89. \AxiomC{$5. \; \lnot d \lor e$}
  90. \AxiomC{$6. \; d \lor e$}
  91. \BinaryInfC{$e$}
  92. \AxiomC{$7. \; \lnot c \lor \lnot e$}
  93. \BinaryInfC{$\lnot c$}
  94. \AxiomC{$3. \; b \lor c$}
  95. \BinaryInfC{$b$}
  96. \end{prooftree}
  97. \hspace{-0.09cm}\scalebox{0.85}{
  98. \begin{dplltabular}{5}
  99. \dpllStep{7|8|9|10|11}
  100. \dpllDecL{0|0|0|0|0}
  101. \dpllAssi{$\lnot a$|$\lnot a, b$|$\lnot a, b, \lnot d$|\makecell{$\lnot a, b, \lnot d, $ \\ $c$}|\makecell{$\lnot a, b, \lnot d, $ \\ $c, \lnot e$}}
  102. \dpllClause{1}{$b, c, d$}{$b, c, d$|\done|\done|\done|\done}
  103. \dpllClause{2}{$\lnot a, \lnot c$}{\done|\done|\done|\done|\done}
  104. \dpllClause{3}{$b, c$}{$b, c$|\done|\done|\done|\done}
  105. \dpllClause{4}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot d$|\done|\done|\done}
  106. \dpllClause{5}{$\lnot d, e$}{$\lnot d, e$|$\lnot d, e$|\done|\done|\done}
  107. \dpllClause{6}{$d, e$}{$d, e$|$d, e$|$e$|$e$|\conflict}
  108. \dpllClause{7}{$\lnot c, \lnot e$}{$\lnot c, \lnot e$|$\lnot c, \lnot e$|$\lnot c, \lnot e$|$\lnot e$|\done}
  109. \dpllClause{8}{$\lnot b, c, d$}{$\lnot b, c, d$|$c, d$|$c$|\done|\done}
  110. \dpllClause{9}{$b$}{$b$|\done|\done|\done|\done}
  111. \dpllBCP{$b$|$\lnot d$|$c$|$\lnot e$| - }
  112. \dpllPL{ - | - | - | - | - }
  113. \dpllDeci{ - | - | - | - |UNSAT}
  114. \end{dplltabular}
  115. }
  116. Conflict in step 11\\
  117. \scalebox{0.75}{
  118. \begin{tikzpicture}[>=latex,line join=bevel,]
  119. \pgfsetlinewidth{1bp}
  120. %%
  121. \pgfsetcolor{black}
  122. % Edge: 0 -> 6
  123. \draw [->] (1.0536bp,11.0bp) .. controls (2.5071bp,11.0bp) and (33.188bp,11.0bp) .. (64.696bp,11.0bp);
  124. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  125. \pgfsetstrokecolor{strokecol}
  126. \draw (33.0bp,18.5bp) node {$$9$$};
  127. % Edge: 2 -> 3
  128. \draw [->] (176.2bp,41.119bp) .. controls (197.65bp,45.574bp) and (247.78bp,55.985bp) .. (285.85bp,63.891bp);
  129. \draw (211.0bp,57.5bp) node {$$6$$};
  130. % Edge: 2 -> 5
  131. \draw [->] (175.6bp,35.143bp) .. controls (181.64bp,32.91bp) and (189.65bp,30.291bp) .. (197.0bp,29.0bp) .. controls (208.81bp,26.927bp) and (222.22bp,26.386bp) .. (243.0bp,26.532bp);
  132. \draw (211.0bp,36.5bp) node {$$8$$};
  133. % Edge: 3 -> 1
  134. \draw [->] (307.95bp,64.009bp) .. controls (324.28bp,60.745bp) and (357.03bp,54.194bp) .. (388.09bp,47.983bp);
  135. % Edge: 4 -> 1
  136. \draw [->] (350.67bp,30.223bp) .. controls (358.24bp,32.746bp) and (369.02bp,36.339bp) .. (388.09bp,42.697bp);
  137. % Edge: 5 -> 4
  138. \draw [->] (265.3bp,27.0bp) .. controls (278.47bp,27.0bp) and (301.58bp,27.0bp) .. (328.88bp,27.0bp);
  139. \draw (297.0bp,34.5bp) node {$$7$$};
  140. % Edge: 6 -> 2
  141. \draw [->] (86.643bp,14.103bp) .. controls (100.56bp,18.582bp) and (126.57bp,26.952bp) .. (154.31bp,35.883bp);
  142. \draw (119.0bp,35.5bp) node {$$4$$};
  143. % Edge: 6 -> 5
  144. \draw [->] (86.905bp,8.8911bp) .. controls (105.2bp,5.3124bp) and (145.48bp,-1.0889bp) .. (179.0bp,4.0bp) .. controls (198.27bp,6.925bp) and (219.42bp,13.903bp) .. (243.64bp,23.083bp);
  145. \draw (165.0bp,11.5bp) node {$$8$$};
  146. % Node: 6
  147. \begin{scope}
  148. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  149. \pgfsetstrokecolor{strokecol}
  150. \draw (76.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  151. \draw (76.0bp,11.0bp) node {$b$};
  152. \end{scope}
  153. % Node: 1
  154. \begin{scope}
  155. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  156. \pgfsetstrokecolor{strokecol}
  157. \draw (399.0bp,46.0bp) ellipse (11.0bp and 11.0bp);
  158. \draw (399.0bp,46.0bp) node {$\bot$};
  159. \end{scope}
  160. % Node: 2
  161. \begin{scope}
  162. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  163. \pgfsetstrokecolor{strokecol}
  164. \draw (165.0bp,39.0bp) ellipse (11.0bp and 11.0bp);
  165. \draw (165.0bp,39.0bp) node {$\lnot d$};
  166. \end{scope}
  167. % Node: 3
  168. \begin{scope}
  169. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  170. \pgfsetstrokecolor{strokecol}
  171. \draw (297.0bp,66.0bp) ellipse (11.0bp and 11.0bp);
  172. \draw (297.0bp,66.0bp) node {$e$};
  173. \end{scope}
  174. % Node: 5
  175. \begin{scope}
  176. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  177. \pgfsetstrokecolor{strokecol}
  178. \draw (254.0bp,27.0bp) ellipse (11.0bp and 11.0bp);
  179. \draw (254.0bp,27.0bp) node {$c$};
  180. \end{scope}
  181. % Node: 4
  182. \begin{scope}
  183. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  184. \pgfsetstrokecolor{strokecol}
  185. \draw (340.0bp,27.0bp) ellipse (11.0bp and 11.0bp);
  186. \draw (340.0bp,27.0bp) node {$\lnot e$};
  187. \end{scope}
  188. %
  189. \end{tikzpicture}
  190. }
  191. \begin{prooftree}
  192. \AxiomC{$7. \; \lnot c \lor \lnot e$}
  193. \AxiomC{$6. \; d \lor e$}
  194. \BinaryInfC{$\lnot c \lor d$}
  195. \AxiomC{$8. \; \lnot b \lor c \lor d$}
  196. \BinaryInfC{$d \lor \lnot b$}
  197. \AxiomC{$4. \; \lnot b \lor \lnot d$}
  198. \BinaryInfC{$\lnot b$}
  199. \AxiomC{$9. \; b$}
  200. \BinaryInfC{$\bot$}
  201. \end{prooftree}