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.

168 lines
5.5 KiB

  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{3}
  3. \dpllStep{1|2|3}
  4. \dpllDecL{0|1|1}
  5. \dpllAssi{ - |$\lnot a$|$\lnot a, \lnot b$}
  6. \dpllClause{1}{$a, b$}{$a, b$|$b$|\conflict}
  7. \dpllClause{2}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|\done}
  8. \dpllClause{3}{$\lnot a, \lnot c$}{$\lnot a, \lnot c$|\done|\done}
  9. \dpllClause{4}{$b, c$}{$b, c$|$b, c$|$c$}
  10. \dpllClause{5}{$a, \lnot b$}{$a, \lnot b$|$\lnot b$|\done}
  11. \dpllClause{6}{$\lnot b, \lnot c$}{$\lnot b, \lnot c$|$\lnot b, \lnot c$|\done}
  12. \dpllBCP{ - |$\lnot b$| - }
  13. \dpllPL{ - | - | - }
  14. \dpllDeci{$\lnot a$| - | - }
  15. \end{dplltabular}
  16. }
  17. Conflict in step 3\\
  18. \scalebox{0.75}{
  19. \begin{tikzpicture}[>=latex,line join=bevel,]
  20. \pgfsetlinewidth{1bp}
  21. %%
  22. \pgfsetcolor{black}
  23. % Edge: 1 -> 3
  24. \draw [->] (21.966bp,33.373bp) .. controls (35.227bp,36.53bp) and (58.98bp,42.186bp) .. (86.047bp,48.63bp);
  25. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  26. \pgfsetstrokecolor{strokecol}
  27. \draw (54.0bp,50.5bp) node {$$1$$};
  28. % Edge: 1 -> 4
  29. \draw [->] (21.111bp,26.371bp) .. controls (26.482bp,23.828bp) and (33.482bp,20.828bp) .. (40.0bp,19.0bp) .. controls (51.65bp,15.733bp) and (65.057bp,13.758bp) .. (85.923bp,11.639bp);
  30. \draw (54.0bp,26.5bp) node {$$5$$};
  31. % Edge: 3 -> 2
  32. \draw [->] (107.67bp,47.438bp) .. controls (115.41bp,44.585bp) and (126.51bp,40.495bp) .. (145.47bp,33.51bp);
  33. % Edge: 4 -> 2
  34. \draw [->] (107.67bp,14.223bp) .. controls (115.24bp,16.746bp) and (126.02bp,20.339bp) .. (145.09bp,26.697bp);
  35. % Node: 1
  36. \begin{scope}
  37. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  38. \pgfsetstrokecolor{strokecol}
  39. \draw (11.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  40. \draw (11.0bp,31.0bp) node {$\lnot a$};
  41. \end{scope}
  42. % Node: 3
  43. \begin{scope}
  44. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  45. \pgfsetstrokecolor{strokecol}
  46. \draw (97.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  47. \draw (97.0bp,51.0bp) node {$b$};
  48. \end{scope}
  49. % Node: 4
  50. \begin{scope}
  51. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  52. \pgfsetstrokecolor{strokecol}
  53. \draw (97.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  54. \draw (97.0bp,11.0bp) node {$\lnot b$};
  55. \end{scope}
  56. % Node: 2
  57. \begin{scope}
  58. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  59. \pgfsetstrokecolor{strokecol}
  60. \draw (156.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  61. \draw (156.0bp,30.0bp) node {$\bot$};
  62. \end{scope}
  63. %
  64. \end{tikzpicture}
  65. }
  66. \begin{prooftree}
  67. \AxiomC{$1. \; a \lor b$}
  68. \AxiomC{$5. \; a \lor \lnot b$}
  69. \BinaryInfC{$a$}
  70. \end{prooftree}
  71. \hspace{-0.09cm}\scalebox{0.85}{
  72. \begin{dplltabular}{4}
  73. \dpllStep{4|5|6|7}
  74. \dpllDecL{0|0|0|0}
  75. \dpllAssi{ - |$a$|$a, \lnot c$|$a, \lnot c, \lnot b$}
  76. \dpllClause{1}{$a, b$}{$a, b$|\done|\done|\done}
  77. \dpllClause{2}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|$\lnot b$|\done}
  78. \dpllClause{3}{$\lnot a, \lnot c$}{$\lnot a, \lnot c$|$\lnot c$|\done|\done}
  79. \dpllClause{4}{$b, c$}{$b, c$|$b, c$|$b$|\conflict}
  80. \dpllClause{5}{$a, \lnot b$}{$a, \lnot b$|\done|\done|\done}
  81. \dpllClause{6}{$\lnot b, \lnot c$}{$\lnot b, \lnot c$|$\lnot b, \lnot c$|\done|\done}
  82. \dpllClause{7}{$a$}{$a$|\done|\done|\done}
  83. \dpllBCP{$a$|$\lnot c$|$\lnot b$| - }
  84. \dpllPL{ - | - | - | - }
  85. \dpllDeci{ - | - | - |UNSAT}
  86. \end{dplltabular}
  87. }
  88. Conflict in step 7\\
  89. \scalebox{0.75}{
  90. \begin{tikzpicture}[>=latex,line join=bevel,]
  91. \pgfsetlinewidth{1bp}
  92. %%
  93. \pgfsetcolor{black}
  94. % Edge: 0 -> 5
  95. \draw [->] (1.0536bp,31.0bp) .. controls (2.5071bp,31.0bp) and (33.188bp,31.0bp) .. (64.696bp,31.0bp);
  96. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  97. \pgfsetstrokecolor{strokecol}
  98. \draw (33.0bp,38.5bp) node {$$7$$};
  99. % Edge: 2 -> 1
  100. \draw [->] (258.67bp,47.438bp) .. controls (266.41bp,44.585bp) and (277.51bp,40.495bp) .. (296.47bp,33.51bp);
  101. % Edge: 3 -> 2
  102. \draw [->] (172.97bp,33.373bp) .. controls (186.23bp,36.53bp) and (209.98bp,42.186bp) .. (237.05bp,48.63bp);
  103. \draw (205.0bp,50.5bp) node {$$2$$};
  104. % Edge: 3 -> 4
  105. \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);
  106. \draw (205.0bp,26.5bp) node {$$4$$};
  107. % Edge: 4 -> 1
  108. \draw [->] (258.67bp,14.223bp) .. controls (266.24bp,16.746bp) and (277.02bp,20.339bp) .. (296.09bp,26.697bp);
  109. % Edge: 5 -> 3
  110. \draw [->] (87.3bp,31.0bp) .. controls (100.47bp,31.0bp) and (123.58bp,31.0bp) .. (150.88bp,31.0bp);
  111. \draw (119.0bp,38.5bp) node {$$3$$};
  112. % Node: 5
  113. \begin{scope}
  114. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  115. \pgfsetstrokecolor{strokecol}
  116. \draw (76.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  117. \draw (76.0bp,31.0bp) node {$a$};
  118. \end{scope}
  119. % Node: 1
  120. \begin{scope}
  121. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  122. \pgfsetstrokecolor{strokecol}
  123. \draw (307.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  124. \draw (307.0bp,30.0bp) node {$\bot$};
  125. \end{scope}
  126. % Node: 2
  127. \begin{scope}
  128. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  129. \pgfsetstrokecolor{strokecol}
  130. \draw (248.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  131. \draw (248.0bp,51.0bp) node {$\lnot b$};
  132. \end{scope}
  133. % Node: 3
  134. \begin{scope}
  135. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  136. \pgfsetstrokecolor{strokecol}
  137. \draw (162.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  138. \draw (162.0bp,31.0bp) node {$\lnot c$};
  139. \end{scope}
  140. % Node: 4
  141. \begin{scope}
  142. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  143. \pgfsetstrokecolor{strokecol}
  144. \draw (248.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  145. \draw (248.0bp,11.0bp) node {$b$};
  146. \end{scope}
  147. %
  148. \end{tikzpicture}
  149. }
  150. \begin{prooftree}
  151. \AxiomC{$2. \; \lnot b \lor c$}
  152. \AxiomC{$4. \; b \lor c$}
  153. \BinaryInfC{$c$}
  154. \AxiomC{$3. \; \lnot a \lor \lnot c$}
  155. \BinaryInfC{$\lnot a$}
  156. \AxiomC{$7. \; a$}
  157. \BinaryInfC{$\bot$}
  158. \end{prooftree}