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.

228 lines
8.8 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, e$|\makecell{$\lnot a, \lnot b, e, $ \\ $\lnot c$}|\makecell{$\lnot a, \lnot b, e, $ \\ $\lnot c, \lnot d$}}
  6. \dpllClause{1}{$\lnot b, d, e$}{$\lnot b, d, e$|$\lnot b, d, e$|\done|\done|\done|\done}
  7. \dpllClause{2}{$b, e$}{$b, e$|$b, e$|$e$|\done|\done|\done}
  8. \dpllClause{3}{$c, d$}{$c, d$|$c, d$|$c, d$|$c, d$|$d$|\conflict}
  9. \dpllClause{4}{$\lnot a, \lnot e$}{$\lnot a, \lnot e$|\done|\done|\done|\done|\done}
  10. \dpllClause{5}{$a, \lnot c, \lnot e$}{$a, \lnot c, \lnot e$|$\lnot c, \lnot e$|$\lnot c, \lnot e$|$\lnot c$|\done|\done}
  11. \dpllClause{6}{$c, \lnot d$}{$c, \lnot d$|$c, \lnot d$|$c, \lnot d$|$c, \lnot d$|$\lnot d$|\done}
  12. \dpllClause{7}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot b, \lnot d$|\done|\done|\done|\done}
  13. \dpllBCP{ - | - |$e$|$\lnot c$|$\lnot d$| - }
  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 [->] (22.3bp,52.0bp) .. controls (35.47bp,52.0bp) and (58.583bp,52.0bp) .. (85.878bp,52.0bp);
  26. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  27. \pgfsetstrokecolor{strokecol}
  28. \draw (54.0bp,59.5bp) node {$$2$$};
  29. % Edge: 2 -> 6
  30. \draw [->] (108.16bp,10.852bp) .. controls (119.58bp,9.9047bp) and (138.53bp,9.3716bp) .. (154.0bp,14.0bp) .. controls (157.82bp,15.143bp) and (161.65bp,16.935bp) .. (173.72bp,24.413bp);
  31. \draw (140.0bp,21.5bp) node {$$5$$};
  32. % Edge: 4 -> 6
  33. \draw [->] (107.97bp,49.509bp) .. controls (121.23bp,46.193bp) and (144.98bp,40.255bp) .. (172.05bp,33.488bp);
  34. \draw (140.0bp,51.5bp) node {$$5$$};
  35. % Edge: 5 -> 3
  36. \draw [->] (279.67bp,47.438bp) .. controls (287.41bp,44.585bp) and (298.51bp,40.495bp) .. (317.47bp,33.51bp);
  37. % Edge: 6 -> 5
  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 {$$3$$};
  40. % Edge: 6 -> 7
  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. % Edge: 7 -> 3
  44. \draw [->] (279.67bp,14.223bp) .. controls (287.24bp,16.746bp) and (298.02bp,20.339bp) .. (317.09bp,26.697bp);
  45. % Node: 1
  46. \begin{scope}
  47. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  48. \pgfsetstrokecolor{strokecol}
  49. \draw (11.0bp,52.0bp) ellipse (11.0bp and 11.0bp);
  50. \draw (11.0bp,52.0bp) 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,52.0bp) ellipse (11.0bp and 11.0bp);
  57. \draw (97.0bp,52.0bp) node {$e$};
  58. \end{scope}
  59. % Node: 2
  60. \begin{scope}
  61. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  62. \pgfsetstrokecolor{strokecol}
  63. \draw (97.0bp,12.0bp) ellipse (11.0bp and 11.0bp);
  64. \draw (97.0bp,12.0bp) node {$\lnot a$};
  65. \end{scope}
  66. % Node: 6
  67. \begin{scope}
  68. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  69. \pgfsetstrokecolor{strokecol}
  70. \draw (183.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  71. \draw (183.0bp,31.0bp) node {$\lnot c$};
  72. \end{scope}
  73. % Node: 3
  74. \begin{scope}
  75. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  76. \pgfsetstrokecolor{strokecol}
  77. \draw (328.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  78. \draw (328.0bp,30.0bp) node {$\bot$};
  79. \end{scope}
  80. % Node: 5
  81. \begin{scope}
  82. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  83. \pgfsetstrokecolor{strokecol}
  84. \draw (269.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  85. \draw (269.0bp,51.0bp) node {$d$};
  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,11.0bp) ellipse (11.0bp and 11.0bp);
  92. \draw (269.0bp,11.0bp) node {$\lnot d$};
  93. \end{scope}
  94. %
  95. \end{tikzpicture}
  96. }
  97. \begin{prooftree}
  98. \AxiomC{$3. \; c \lor d$}
  99. \AxiomC{$6. \; c \lor \lnot d$}
  100. \BinaryInfC{$c$}
  101. \AxiomC{$5. \; a \lor \lnot c \lor \lnot e$}
  102. \BinaryInfC{$a \lor \lnot e$}
  103. \AxiomC{$2. \; b \lor e$}
  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, \lnot d$|\makecell{$\lnot a, b, \lnot d, $ \\ $c$}|\makecell{$\lnot a, b, \lnot d, $ \\ $c, \lnot e$}}
  111. \dpllClause{1}{$\lnot b, d, e$}{$\lnot b, d, e$|$d, e$|$e$|$e$|\conflict}
  112. \dpllClause{2}{$b, e$}{$b, e$|\done|\done|\done|\done}
  113. \dpllClause{3}{$c, d$}{$c, d$|$c, d$|$c$|\done|\done}
  114. \dpllClause{4}{$\lnot a, \lnot e$}{\done|\done|\done|\done|\done}
  115. \dpllClause{5}{$a, \lnot c, \lnot e$}{$\lnot c, \lnot e$|$\lnot c, \lnot e$|$\lnot c, \lnot e$|$\lnot e$|\done}
  116. \dpllClause{6}{$c, \lnot d$}{$c, \lnot d$|$c, \lnot d$|\done|\done|\done}
  117. \dpllClause{7}{$\lnot b, \lnot d$}{$\lnot b, \lnot d$|$\lnot d$|\done|\done|\done}
  118. \dpllClause{8}{$a, b$}{$b$|\done|\done|\done|\done}
  119. \dpllBCP{$b$|$\lnot d$|$c$|$\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 -> 5
  131. \draw [->] (21.668bp,76.625bp) .. controls (37.13bp,82.146bp) and (68.489bp,91.962bp) .. (96.0bp,91.962bp) .. controls (96.0bp,91.962bp) and (96.0bp,91.962bp) .. (276.0bp,91.962bp) .. controls (301.27bp,91.962bp) and (327.17bp,77.264bp) .. (351.77bp,59.755bp);
  132. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  133. \pgfsetstrokecolor{strokecol}
  134. \draw (186.0bp,99.462bp) node {$$5$$};
  135. % Edge: 1 -> 7
  136. \draw [->] (21.31bp,69.082bp) .. controls (34.682bp,63.511bp) and (59.622bp,53.119bp) .. (86.648bp,41.859bp);
  137. \draw (54.0bp,68.462bp) node {$$8$$};
  138. % Edge: 3 -> 2
  139. \draw [->] (286.28bp,13.897bp) .. controls (309.78bp,16.033bp) and (367.77bp,21.304bp) .. (408.81bp,25.035bp);
  140. % Edge: 4 -> 5
  141. \draw [->] (286.3bp,52.962bp) .. controls (299.47bp,52.962bp) and (322.58bp,52.962bp) .. (349.88bp,52.962bp);
  142. \draw (318.0bp,60.462bp) node {$$5$$};
  143. % Edge: 5 -> 2
  144. \draw [->] (371.16bp,48.624bp) .. controls (379.01bp,44.906bp) and (390.56bp,39.434bp) .. (409.68bp,30.379bp);
  145. % Edge: 6 -> 3
  146. \draw [->] (196.33bp,33.514bp) .. controls (202.39bp,30.755bp) and (210.54bp,27.303bp) .. (218.0bp,24.962bp) .. controls (229.69bp,21.294bp) and (243.1bp,18.377bp) .. (263.94bp,14.536bp);
  147. \draw (232.0bp,32.462bp) node {$$1$$};
  148. % Edge: 6 -> 4
  149. \draw [->] (196.98bp,39.683bp) .. controls (210.8bp,42.066bp) and (236.09bp,46.425bp) .. (263.87bp,51.215bp);
  150. \draw (232.0bp,56.462bp) node {$$3$$};
  151. % Edge: 7 -> 3
  152. \draw [->] (106.65bp,32.3bp) .. controls (120.01bp,23.928bp) and (146.76bp,8.629bp) .. (172.0bp,2.9618bp) .. controls (200.25bp,-3.3831bp) and (233.81bp,2.3811bp) .. (264.31bp,9.9958bp);
  153. \draw (186.0bp,10.462bp) node {$$1$$};
  154. % Edge: 7 -> 6
  155. \draw [->] (108.32bp,37.962bp) .. controls (122.2bp,37.962bp) and (147.16bp,37.962bp) .. (174.96bp,37.962bp);
  156. \draw (140.0bp,45.462bp) node {$$7$$};
  157. % Node: 1
  158. \begin{scope}
  159. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  160. \pgfsetstrokecolor{strokecol}
  161. \draw (11.0bp,72.96bp) ellipse (11.0bp and 11.0bp);
  162. \draw (11.0bp,72.962bp) node {$\lnot a$};
  163. \end{scope}
  164. % Node: 5
  165. \begin{scope}
  166. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  167. \pgfsetstrokecolor{strokecol}
  168. \draw (361.0bp,52.96bp) ellipse (11.0bp and 11.0bp);
  169. \draw (361.0bp,52.962bp) node {$\lnot e$};
  170. \end{scope}
  171. % Node: 7
  172. \begin{scope}
  173. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  174. \pgfsetstrokecolor{strokecol}
  175. \draw (97.0bp,37.96bp) ellipse (11.0bp and 11.0bp);
  176. \draw (97.0bp,37.962bp) node {$b$};
  177. \end{scope}
  178. % Node: 2
  179. \begin{scope}
  180. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  181. \pgfsetstrokecolor{strokecol}
  182. \draw (420.0bp,25.96bp) ellipse (11.0bp and 11.0bp);
  183. \draw (420.0bp,25.962bp) node {$\bot$};
  184. \end{scope}
  185. % Node: 3
  186. \begin{scope}
  187. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  188. \pgfsetstrokecolor{strokecol}
  189. \draw (275.0bp,12.96bp) ellipse (11.0bp and 11.0bp);
  190. \draw (275.0bp,12.962bp) node {$e$};
  191. \end{scope}
  192. % Node: 4
  193. \begin{scope}
  194. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  195. \pgfsetstrokecolor{strokecol}
  196. \draw (275.0bp,52.96bp) ellipse (11.0bp and 11.0bp);
  197. \draw (275.0bp,52.962bp) node {$c$};
  198. \end{scope}
  199. % Node: 6
  200. \begin{scope}
  201. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  202. \pgfsetstrokecolor{strokecol}
  203. \draw (186.0bp,37.96bp) ellipse (11.0bp and 11.0bp);
  204. \draw (186.0bp,37.962bp) node {$\lnot d$};
  205. \end{scope}
  206. %
  207. \end{tikzpicture}
  208. }
  209. \begin{prooftree}
  210. \AxiomC{$5. \; a \lor \lnot c \lor \lnot e$}
  211. \AxiomC{$1. \; \lnot b \lor d \lor e$}
  212. \BinaryInfC{$a \lor \lnot c \lor \lnot b \lor d$}
  213. \AxiomC{$3. \; c \lor d$}
  214. \BinaryInfC{$a \lor \lnot b \lor d$}
  215. \AxiomC{$7. \; \lnot b \lor \lnot d$}
  216. \BinaryInfC{$a \lor \lnot b$}
  217. \AxiomC{$8. \; a \lor b$}
  218. \BinaryInfC{$a$}
  219. \end{prooftree}