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.

222 lines
8.1 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|2|2|2|2}
  5. \dpllAssi{ - |$\lnot a$|$\lnot a, \lnot b$|$\lnot a, \lnot b, c$|\makecell{$\lnot a, \lnot b, c, $ \\ $d$}|\makecell{$\lnot a, \lnot b, c, $ \\ $d, \lnot e$}}
  6. \dpllClause{1}{$\lnot a, \lnot d$}{$\lnot a, \lnot d$|\done|\done|\done|\done|\done}
  7. \dpllClause{2}{$a, b, c$}{$a, b, c$|$b, c$|$c$|\done|\done|\done}
  8. \dpllClause{3}{$\lnot a, b$}{$\lnot a, b$|\done|\done|\done|\done|\done}
  9. \dpllClause{4}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|\done|\done|\done|\done}
  10. \dpllClause{5}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$\lnot c, d$|$d$|\done|\done}
  11. \dpllClause{6}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|$e$|$e$|\conflict}
  12. \dpllClause{7}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot e$|\done}
  13. \dpllBCP{ - | - |$c$|$d$|$\lnot e$| - }
  14. \dpllPL{ - | - | - | - | - | - }
  15. \dpllDeci{$\lnot a$|$\lnot b$| - | - | - | - }
  16. \end{dplltabular}
  17. }
  18. Conflict in step 6\\
  19. \scalebox{0.75}{
  20. \begin{tikzpicture}[>=latex,line join=bevel,]
  21. \pgfsetlinewidth{1bp}
  22. %%
  23. \pgfsetcolor{black}
  24. % Edge: 1 -> 4
  25. \draw [->] (21.966bp,68.127bp) .. controls (35.227bp,64.97bp) and (58.98bp,59.314bp) .. (86.047bp,52.87bp);
  26. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  27. \pgfsetstrokecolor{strokecol}
  28. \draw (54.0bp,70.0bp) node {$$2$$};
  29. % Edge: 2 -> 4
  30. \draw [->] (22.172bp,29.583bp) .. controls (33.596bp,28.885bp) and (52.558bp,28.73bp) .. (68.0bp,33.5bp) .. controls (71.81bp,34.677bp) and (75.634bp,36.485bp) .. (87.704bp,43.958bp);
  31. \draw (54.0bp,41.0bp) node {$$2$$};
  32. % Edge: 4 -> 5
  33. \draw [->] (107.97bp,52.873bp) .. controls (121.23bp,56.03bp) and (144.98bp,61.686bp) .. (172.05bp,68.13bp);
  34. \draw (140.0bp,70.0bp) node {$$5$$};
  35. % Edge: 4 -> 6
  36. \draw [->] (107.07bp,45.696bp) .. controls (112.42bp,43.094bp) and (119.42bp,40.094bp) .. (126.0bp,38.5bp) .. controls (152.72bp,32.025bp) and (184.6bp,30.902bp) .. (215.0bp,31.119bp);
  37. \draw (140.0bp,46.0bp) node {$$6$$};
  38. % Edge: 5 -> 7
  39. \draw [->] (194.3bp,70.5bp) .. controls (207.47bp,70.5bp) and (230.58bp,70.5bp) .. (257.88bp,70.5bp);
  40. \draw (226.0bp,78.0bp) node {$$7$$};
  41. % Edge: 6 -> 3
  42. \draw [->] (236.95bp,32.694bp) .. controls (253.12bp,34.634bp) and (285.4bp,38.508bp) .. (316.79bp,42.275bp);
  43. % Edge: 7 -> 3
  44. \draw [->] (279.16bp,66.162bp) .. controls (287.01bp,62.445bp) and (298.56bp,56.972bp) .. (317.68bp,47.917bp);
  45. % Node: 1
  46. \begin{scope}
  47. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  48. \pgfsetstrokecolor{strokecol}
  49. \draw (11.0bp,70.5bp) ellipse (11.0bp and 11.0bp);
  50. \draw (11.0bp,70.5bp) node {$\lnot b$};
  51. \end{scope}
  52. % Node: 4
  53. \begin{scope}
  54. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  55. \pgfsetstrokecolor{strokecol}
  56. \draw (97.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
  57. \draw (97.0bp,50.5bp) node {$c$};
  58. \end{scope}
  59. % Node: 2
  60. \begin{scope}
  61. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  62. \pgfsetstrokecolor{strokecol}
  63. \draw (11.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  64. \draw (11.0bp,30.5bp) node {$\lnot a$};
  65. \end{scope}
  66. % Node: 3
  67. \begin{scope}
  68. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  69. \pgfsetstrokecolor{strokecol}
  70. \draw (328.0bp,43.5bp) ellipse (11.0bp and 11.0bp);
  71. \draw (328.0bp,43.5bp) node {$\bot$};
  72. \end{scope}
  73. % Node: 5
  74. \begin{scope}
  75. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  76. \pgfsetstrokecolor{strokecol}
  77. \draw (183.0bp,70.5bp) ellipse (11.0bp and 11.0bp);
  78. \draw (183.0bp,70.5bp) node {$d$};
  79. \end{scope}
  80. % Node: 6
  81. \begin{scope}
  82. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  83. \pgfsetstrokecolor{strokecol}
  84. \draw (226.0bp,31.5bp) ellipse (11.0bp and 11.0bp);
  85. \draw (226.0bp,31.5bp) node {$e$};
  86. \end{scope}
  87. % Node: 7
  88. \begin{scope}
  89. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  90. \pgfsetstrokecolor{strokecol}
  91. \draw (269.0bp,70.5bp) ellipse (11.0bp and 11.0bp);
  92. \draw (269.0bp,70.5bp) node {$\lnot e$};
  93. \end{scope}
  94. %
  95. \end{tikzpicture}
  96. }
  97. \begin{prooftree}
  98. \AxiomC{$7. \; \lnot d \lor \lnot e$}
  99. \AxiomC{$5. \; \lnot c \lor d$}
  100. \BinaryInfC{$\lnot e \lor \lnot c$}
  101. \AxiomC{$6. \; \lnot c \lor e$}
  102. \BinaryInfC{$\lnot c$}
  103. \AxiomC{$2. \; a \lor b \lor c$}
  104. \BinaryInfC{$a \lor b$}
  105. \end{prooftree}
  106. \hspace{-0.09cm}\scalebox{0.85}{
  107. \begin{dplltabular}{5}
  108. \dpllStep{7|8|9|10|11}
  109. \dpllDecL{1|1|1|1|1}
  110. \dpllAssi{$\lnot a$|$\lnot a, b$|$\lnot a, b, c$|\makecell{$\lnot a, b, c, $ \\ $d$}|\makecell{$\lnot a, b, c, $ \\ $d, \lnot e$}}
  111. \dpllClause{1}{$\lnot a, \lnot d$}{\done|\done|\done|\done|\done}
  112. \dpllClause{2}{$a, b, c$}{$b, c$|\done|\done|\done|\done}
  113. \dpllClause{3}{$\lnot a, b$}{\done|\done|\done|\done|\done}
  114. \dpllClause{4}{$\lnot b, c$}{$\lnot b, c$|$c$|\done|\done|\done}
  115. \dpllClause{5}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$d$|\done|\done}
  116. \dpllClause{6}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$e$|$e$|\conflict}
  117. \dpllClause{7}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot e$|\done}
  118. \dpllClause{8}{$a, b$}{$b$|\done|\done|\done|\done}
  119. \dpllBCP{$b$|$c$|$d$|$\lnot e$| - }
  120. \dpllPL{ - | - | - | - | - }
  121. \dpllDeci{ - | - | - | - | - }
  122. \end{dplltabular}
  123. }
  124. Conflict in step 11\\
  125. \scalebox{0.75}{
  126. \begin{tikzpicture}[>=latex,line join=bevel,]
  127. \pgfsetlinewidth{1bp}
  128. %%
  129. \pgfsetcolor{black}
  130. % Edge: 1 -> 7
  131. \draw [->] (22.3bp,30.5bp) .. controls (35.47bp,30.5bp) and (58.583bp,30.5bp) .. (85.878bp,30.5bp);
  132. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  133. \pgfsetstrokecolor{strokecol}
  134. \draw (54.0bp,38.0bp) node {$$8$$};
  135. % Edge: 3 -> 4
  136. \draw [->] (193.97bp,32.873bp) .. controls (207.23bp,36.03bp) and (230.98bp,41.686bp) .. (258.05bp,48.13bp);
  137. \draw (226.0bp,50.0bp) node {$$5$$};
  138. % Edge: 3 -> 5
  139. \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);
  140. \draw (226.0bp,26.0bp) node {$$6$$};
  141. % Edge: 4 -> 6
  142. \draw [->] (280.3bp,50.5bp) .. controls (293.47bp,50.5bp) and (316.58bp,50.5bp) .. (343.88bp,50.5bp);
  143. \draw (312.0bp,58.0bp) node {$$7$$};
  144. % Edge: 5 -> 2
  145. \draw [->] (322.95bp,12.694bp) .. controls (339.12bp,14.634bp) and (371.4bp,18.508bp) .. (402.79bp,22.275bp);
  146. % Edge: 6 -> 2
  147. \draw [->] (365.16bp,46.162bp) .. controls (373.01bp,42.445bp) and (384.56bp,36.972bp) .. (403.68bp,27.917bp);
  148. % Edge: 7 -> 3
  149. \draw [->] (108.3bp,30.5bp) .. controls (121.47bp,30.5bp) and (144.58bp,30.5bp) .. (171.88bp,30.5bp);
  150. \draw (140.0bp,38.0bp) node {$$4$$};
  151. % Node: 1
  152. \begin{scope}
  153. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  154. \pgfsetstrokecolor{strokecol}
  155. \draw (11.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  156. \draw (11.0bp,30.5bp) node {$\lnot a$};
  157. \end{scope}
  158. % Node: 7
  159. \begin{scope}
  160. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  161. \pgfsetstrokecolor{strokecol}
  162. \draw (97.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  163. \draw (97.0bp,30.5bp) node {$b$};
  164. \end{scope}
  165. % Node: 2
  166. \begin{scope}
  167. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  168. \pgfsetstrokecolor{strokecol}
  169. \draw (414.0bp,23.5bp) ellipse (11.0bp and 11.0bp);
  170. \draw (414.0bp,23.5bp) node {$\bot$};
  171. \end{scope}
  172. % Node: 3
  173. \begin{scope}
  174. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  175. \pgfsetstrokecolor{strokecol}
  176. \draw (183.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  177. \draw (183.0bp,30.5bp) node {$c$};
  178. \end{scope}
  179. % Node: 4
  180. \begin{scope}
  181. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  182. \pgfsetstrokecolor{strokecol}
  183. \draw (269.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
  184. \draw (269.0bp,50.5bp) node {$d$};
  185. \end{scope}
  186. % Node: 5
  187. \begin{scope}
  188. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  189. \pgfsetstrokecolor{strokecol}
  190. \draw (312.0bp,11.5bp) ellipse (11.0bp and 11.0bp);
  191. \draw (312.0bp,11.5bp) node {$e$};
  192. \end{scope}
  193. % Node: 6
  194. \begin{scope}
  195. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  196. \pgfsetstrokecolor{strokecol}
  197. \draw (355.0bp,50.5bp) ellipse (11.0bp and 11.0bp);
  198. \draw (355.0bp,50.5bp) node {$\lnot e$};
  199. \end{scope}
  200. %
  201. \end{tikzpicture}
  202. }
  203. \begin{prooftree}
  204. \AxiomC{$7. \; \lnot d \lor \lnot e$}
  205. \AxiomC{$5. \; \lnot c \lor d$}
  206. \BinaryInfC{$\lnot e \lor \lnot c$}
  207. \AxiomC{$6. \; \lnot c \lor e$}
  208. \BinaryInfC{$\lnot c$}
  209. \AxiomC{$4. \; \lnot b \lor c$}
  210. \BinaryInfC{$\lnot b$}
  211. \AxiomC{$8. \; a \lor b$}
  212. \BinaryInfC{$a$}
  213. \end{prooftree}