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.

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