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|1|1|1|1|1}
  5. \dpllAssi{ - |$\lnot a$|$\lnot a, b$|$\lnot a, b, c$|\makecell{$\lnot a, b, c, $ \\ $\lnot d$}|\makecell{$\lnot a, b, c, $ \\ $\lnot d, \lnot e$}}
  6. \dpllClause{1}{$b, d$}{$b, d$|$b, d$|\done|\done|\done|\done}
  7. \dpllClause{2}{$b, c$}{$b, c$|$b, c$|\done|\done|\done|\done}
  8. \dpllClause{3}{$\lnot b, \lnot e$}{$\lnot b, \lnot e$|$\lnot b, \lnot e$|$\lnot e$|$\lnot e$|$\lnot e$|\done}
  9. \dpllClause{4}{$\lnot a, \lnot c$}{$\lnot a, \lnot c$|\done|\done|\done|\done|\done}
  10. \dpllClause{5}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot c, \lnot d$|$\lnot c, \lnot d$|$\lnot d$|\done|\done}
  11. \dpllClause{6}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|$c$|\done|\done|\done}
  12. \dpllClause{7}{$a, b$}{$a, b$|$b$|\done|\done|\done|\done}
  13. \dpllClause{8}{$\lnot b, d, e$}{$\lnot b, d, e$|$\lnot b, d, e$|$d, e$|$d, e$|$e$|\conflict}
  14. \dpllBCP{ - |$b$|$c$|$\lnot d$|$\lnot e$| - }
  15. \dpllPL{ - | - | - | - | - | - }
  16. \dpllDeci{$\lnot a$| - | - | - | - | - }
  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 -> 6
  26. \draw [->] (22.3bp,30.5bp) .. controls (35.47bp,30.5bp) and (58.583bp,30.5bp) .. (85.878bp,30.5bp);
  27. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  28. \pgfsetstrokecolor{strokecol}
  29. \draw (54.0bp,38.0bp) node {$$7$$};
  30. % Edge: 3 -> 2
  31. \draw [->] (237.0bp,68.631bp) .. controls (261.99bp,66.427bp) and (329.17bp,60.312bp) .. (385.0bp,53.5bp) .. controls (387.51bp,53.194bp) and (390.14bp,52.849bp) .. (402.9bp,51.044bp);
  32. % Edge: 4 -> 7
  33. \draw [->] (280.3bp,30.5bp) .. controls (293.47bp,30.5bp) and (316.58bp,30.5bp) .. (343.88bp,30.5bp);
  34. \draw (312.0bp,38.0bp) node {$$8$$};
  35. % Edge: 5 -> 4
  36. \draw [->] (194.3bp,30.5bp) .. controls (207.47bp,30.5bp) and (230.58bp,30.5bp) .. (257.88bp,30.5bp);
  37. \draw (226.0bp,38.0bp) node {$$5$$};
  38. % Edge: 6 -> 3
  39. \draw [->] (106.44bp,36.631bp) .. controls (111.81bp,40.268bp) and (119.03bp,44.701bp) .. (126.0bp,47.5bp) .. controls (152.19bp,58.026bp) and (184.4bp,63.996bp) .. (214.84bp,68.355bp);
  40. \draw (140.0bp,63.0bp) node {$$3$$};
  41. % Edge: 6 -> 5
  42. \draw [->] (108.3bp,30.5bp) .. controls (121.47bp,30.5bp) and (144.58bp,30.5bp) .. (171.88bp,30.5bp);
  43. \draw (140.0bp,38.0bp) node {$$6$$};
  44. % Edge: 6 -> 7
  45. \draw [->] (107.88bp,26.93bp) .. controls (121.91bp,22.069bp) and (148.52bp,13.617bp) .. (172.0bp,10.5bp) .. controls (219.58bp,4.1832bp) and (232.42bp,4.1832bp) .. (280.0bp,10.5bp) .. controls (298.9bp,13.009bp) and (319.81bp,18.971bp) .. (344.12bp,26.93bp);
  46. \draw (226.0bp,14.0bp) node {$$8$$};
  47. % Edge: 7 -> 2
  48. \draw [->] (365.67bp,33.723bp) .. controls (373.24bp,36.246bp) and (384.02bp,39.839bp) .. (403.09bp,46.197bp);
  49. % Node: 1
  50. \begin{scope}
  51. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  52. \pgfsetstrokecolor{strokecol}
  53. \draw (11.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  54. \draw (11.0bp,30.5bp) node {$\lnot a$};
  55. \end{scope}
  56. % Node: 6
  57. \begin{scope}
  58. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  59. \pgfsetstrokecolor{strokecol}
  60. \draw (97.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  61. \draw (97.0bp,30.5bp) node {$b$};
  62. \end{scope}
  63. % Node: 2
  64. \begin{scope}
  65. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  66. \pgfsetstrokecolor{strokecol}
  67. \draw (414.0bp,49.5bp) ellipse (11.0bp and 11.0bp);
  68. \draw (414.0bp,49.5bp) node {$\bot$};
  69. \end{scope}
  70. % Node: 3
  71. \begin{scope}
  72. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  73. \pgfsetstrokecolor{strokecol}
  74. \draw (226.0bp,69.5bp) ellipse (11.0bp and 11.0bp);
  75. \draw (226.0bp,69.5bp) node {$\lnot e$};
  76. \end{scope}
  77. % Node: 4
  78. \begin{scope}
  79. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  80. \pgfsetstrokecolor{strokecol}
  81. \draw (269.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  82. \draw (269.0bp,30.5bp) node {$\lnot d$};
  83. \end{scope}
  84. % Node: 7
  85. \begin{scope}
  86. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  87. \pgfsetstrokecolor{strokecol}
  88. \draw (355.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  89. \draw (355.0bp,30.5bp) node {$e$};
  90. \end{scope}
  91. % Node: 5
  92. \begin{scope}
  93. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  94. \pgfsetstrokecolor{strokecol}
  95. \draw (183.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  96. \draw (183.0bp,30.5bp) node {$c$};
  97. \end{scope}
  98. %
  99. \end{tikzpicture}
  100. }
  101. \begin{prooftree}
  102. \AxiomC{$8. \; \lnot b \lor d \lor e$}
  103. \AxiomC{$5. \; \lnot c \lor \lnot d$}
  104. \BinaryInfC{$\lnot b \lor e \lor \lnot c$}
  105. \AxiomC{$3. \; \lnot b \lor \lnot e$}
  106. \BinaryInfC{$\lnot b \lor \lnot c$}
  107. \AxiomC{$6. \; \lnot b \lor c$}
  108. \BinaryInfC{$\lnot b$}
  109. \AxiomC{$7. \; a \lor b$}
  110. \BinaryInfC{$a$}
  111. \end{prooftree}
  112. \hspace{-0.09cm}\scalebox{0.85}{
  113. \begin{dplltabular}{4}
  114. \dpllStep{7|8|9|10}
  115. \dpllDecL{0|0|0|0}
  116. \dpllAssi{ - |$a$|$a, \lnot c$|$a, \lnot c, \lnot b$}
  117. \dpllClause{1}{$b, d$}{$b, d$|$b, d$|$b, d$|$d$}
  118. \dpllClause{2}{$b, c$}{$b, c$|$b, c$|$b$|\conflict}
  119. \dpllClause{3}{$\lnot b, \lnot e$}{$\lnot b, \lnot e$|$\lnot b, \lnot e$|$\lnot b, \lnot e$|\done}
  120. \dpllClause{4}{$\lnot a, \lnot c$}{$\lnot a, \lnot c$|$\lnot c$|\done|\done}
  121. \dpllClause{5}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot c, \lnot d$|\done|\done}
  122. \dpllClause{6}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|$\lnot b$|\done}
  123. \dpllClause{7}{$a, b$}{$a, b$|\done|\done|\done}
  124. \dpllClause{8}{$\lnot b, d, e$}{$\lnot b, d, e$|$\lnot b, d, e$|$\lnot b, d, e$|\done}
  125. \dpllClause{9}{$a$}{$a$|\done|\done|\done}
  126. \dpllBCP{$a$|$\lnot c$|$\lnot b$| - }
  127. \dpllPL{ - | - | - | - }
  128. \dpllDeci{ - | - | - |UNSAT}
  129. \end{dplltabular}
  130. }
  131. Conflict in step 10\\
  132. \scalebox{0.75}{
  133. \begin{tikzpicture}[>=latex,line join=bevel,]
  134. \pgfsetlinewidth{1bp}
  135. %%
  136. \pgfsetcolor{black}
  137. % Edge: 0 -> 5
  138. \draw [->] (1.0536bp,31.0bp) .. controls (2.5071bp,31.0bp) and (33.188bp,31.0bp) .. (64.696bp,31.0bp);
  139. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  140. \pgfsetstrokecolor{strokecol}
  141. \draw (33.0bp,38.5bp) node {$$9$$};
  142. % Edge: 2 -> 1
  143. \draw [->] (258.67bp,47.438bp) .. controls (266.41bp,44.585bp) and (277.51bp,40.495bp) .. (296.47bp,33.51bp);
  144. % Edge: 3 -> 2
  145. \draw [->] (172.97bp,33.373bp) .. controls (186.23bp,36.53bp) and (209.98bp,42.186bp) .. (237.05bp,48.63bp);
  146. \draw (205.0bp,50.5bp) node {$$2$$};
  147. % Edge: 3 -> 4
  148. \draw [->] (172.11bp,26.371bp) .. controls (177.48bp,23.828bp) and (184.48bp,20.828bp) .. (191.0bp,19.0bp) .. controls (202.65bp,15.733bp) and (216.06bp,13.758bp) .. (236.92bp,11.639bp);
  149. \draw (205.0bp,26.5bp) node {$$6$$};
  150. % Edge: 4 -> 1
  151. \draw [->] (258.67bp,14.223bp) .. controls (266.24bp,16.746bp) and (277.02bp,20.339bp) .. (296.09bp,26.697bp);
  152. % Edge: 5 -> 3
  153. \draw [->] (87.3bp,31.0bp) .. controls (100.47bp,31.0bp) and (123.58bp,31.0bp) .. (150.88bp,31.0bp);
  154. \draw (119.0bp,38.5bp) node {$$4$$};
  155. % Node: 5
  156. \begin{scope}
  157. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  158. \pgfsetstrokecolor{strokecol}
  159. \draw (76.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  160. \draw (76.0bp,31.0bp) node {$a$};
  161. \end{scope}
  162. % Node: 1
  163. \begin{scope}
  164. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  165. \pgfsetstrokecolor{strokecol}
  166. \draw (307.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  167. \draw (307.0bp,30.0bp) node {$\bot$};
  168. \end{scope}
  169. % Node: 2
  170. \begin{scope}
  171. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  172. \pgfsetstrokecolor{strokecol}
  173. \draw (248.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  174. \draw (248.0bp,51.0bp) node {$b$};
  175. \end{scope}
  176. % Node: 3
  177. \begin{scope}
  178. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  179. \pgfsetstrokecolor{strokecol}
  180. \draw (162.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  181. \draw (162.0bp,31.0bp) node {$\lnot c$};
  182. \end{scope}
  183. % Node: 4
  184. \begin{scope}
  185. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  186. \pgfsetstrokecolor{strokecol}
  187. \draw (248.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  188. \draw (248.0bp,11.0bp) node {$\lnot b$};
  189. \end{scope}
  190. %
  191. \end{tikzpicture}
  192. }
  193. \begin{prooftree}
  194. \AxiomC{$2. \; b \lor c$}
  195. \AxiomC{$6. \; \lnot b \lor c$}
  196. \BinaryInfC{$c$}
  197. \AxiomC{$4. \; \lnot a \lor \lnot c$}
  198. \BinaryInfC{$\lnot a$}
  199. \AxiomC{$9. \; a$}
  200. \BinaryInfC{$\bot$}
  201. \end{prooftree}