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.

202 lines
6.8 KiB

9 months ago
  1. \hspace{-0.09cm}\scalebox{0.87}{
  2. \begin{dplltabular}{7}
  3. \dpllStep{1|2|3|4|5|6|7}
  4. \dpllDecL{0|1|2|2|2|2|1}
  5. \dpllAssi{-|
  6. $\lnot a$|
  7. $\lnot a, \lnot b$|
  8. $\lnot a, \lnot b, c$|
  9. $\lnot a, \lnot b, c, \lnot e$|
  10. $\lnot a, \lnot b, c, \lnot e, \lnot d$|
  11. $\lnot a$}
  12. \dpllClause{1}{$\lnot a,\lnot c$}
  13. {$\lnot a,\lnot c$|\done|\done|\done|\done|\done|\done}
  14. \dpllClause{2}{$b,c$}
  15. {$b,c$|$b,c$|$c$|\done|\done|\done|$b,c$}
  16. \dpllClause{3}{$\lnot b, \lnot d$}
  17. {$\lnot b,\lnot d$|$\lnot b,\lnot d$|\done|\done|\done|\done|$\lnot b,\lnot d$}
  18. \dpllClause{4}{$\lnot d, e$}
  19. {$\lnot d,e$|$\lnot d,e$|$\lnot d,e$|$\lnot d,e$|$\lnot d$|\done|$\lnot d,e$}
  20. \dpllClause{5}{$d, e$}
  21. {$d.e$|$d.e$|$d.e$|$d.e$|$d$|\conflict|$d,e$}
  22. \dpllClause{6}{$a, \lnot c, \lnot e$}
  23. {$a, \lnot c, \lnot e$|$\lnot c,\lnot e$|$\lnot c, \lnot e$|$\lnot e$|\done|\done|$\lnot c, \lnot e$}
  24. \dpllClause{7}{$\lnot b, c, d$}
  25. {$\lnot b,c,d$|$\lnot b,c,d$|\done|\done|\done|\done|$\lnot b,c,d$}
  26. \dpllClause{8}{\textcolor{gray}{$a.b$}}
  27. {-|-|-|-|-|$a,b$|$b$}
  28. \dpllClause{9}{\textcolor{gray}{$a$}}
  29. {-|-|-|-|-|-|-}
  30. \dpllBCP{-|-|$c$|$\lnot e$|\lnot d|-|$b$}
  31. \dpllPL{-|-|-|-|-|-|-}
  32. \dpllDeci{$\lnot a$|$\lnot b$|-|-|-|-|-}
  33. \end{dplltabular}
  34. }
  35. First Conflict in Step 6: \\
  36. \begin{conflictgraph}
  37. \node[base node] (notA) {$\lnot a$};
  38. \node[base node] (notB) [below of=notA] {$\lnot b$};
  39. \node[base node] (C) [right of=notB] {$c$};
  40. \node[base node] (notE) [above right of=C] {$\lnot e$};
  41. \node[base node] (D) [above right of=notE] {$d$};
  42. \node[base node] (notD) [below right of=notE] {$\lnot d$};
  43. \node[base node] (bot) [below right of=D] {$\bot$};
  44. \path[]
  45. (notA) edge [] node {$6$} (notE)
  46. (notB) edge [] node {$2$} (C)
  47. (C) edge [] node {$6$} (notE)
  48. (notE) edge [] node {$4$} (D)
  49. (notE) edge [] node {$5$} (notD)
  50. (notD) edge [] node {} (bot)
  51. (D) edge [] node {} (bot);
  52. \end{conflictgraph}
  53. \begin{prooftree}
  54. \AxiomC{$4. \; \lnot d \lor e$}
  55. \AxiomC{$5. \; d \lor e$}
  56. \BinaryInfC{$e$}
  57. \AxiomC{$6. \; a \lor \lnot c \lor \lnot e$}
  58. \BinaryInfC{$a \lor \lnot c$}
  59. \AxiomC{$2. \; b \lor c$}
  60. \BinaryInfC{$ a \lor b$}
  61. \end{prooftree}
  62. \vspace{1cm}
  63. \scalebox{0.87}{
  64. \begin{dplltabular}{8}
  65. \dpllStep{8|9|10|11|12|13|14}
  66. \dpllDecL{1|1|1|1|0|0|0}
  67. \dpllAssi{ $\lnot a, b$|
  68. $\lnot a, b, \lnot d$|
  69. $\lnot a, b, \lnot d, c$|
  70. $\lnot a, b, \lnot d, c, \lnot e$|
  71. -|
  72. $a$|
  73. $a, \lnot c$}
  74. \dpllClause{1}{$\lnot a,\lnot c$}
  75. {\done|\done|\done|\done|$\lnot a,\lnot c$|$\lnot c$|\done}
  76. \dpllClause{2}{$b,c$}
  77. {\done|\done|\done|\done|$b,c$|$b,c$|$b$}
  78. \dpllClause{3}{$\lnot b, \lnot d$}
  79. {$\lnot d$|\done|\done|\done|$\lnot b,\lnot d$|$\lnot b,\lnot d$|$\lnot b,\lnot d$}
  80. \dpllClause{4}{$\lnot d, e$}
  81. {$\lnot d,e$|\done|\done|\done|$\lnot d,e$|$\lnot d,e$|$\lnot d,e$}
  82. \dpllClause{5}{$d, e$}
  83. {$d,e$|$e$|$e$|\conflict|$d,e$|$d,e$|$d,e$}
  84. \dpllClause{6}{$a, \lnot c, \lnot e$}
  85. {$\lnot c,\lnot e$|$\lnot c,\lnot e$|$\lnot e$|\done|$a, \lnot c, \lnot e$|\done|\done}
  86. \dpllClause{7}{$\lnot b, c, d$}
  87. {$d,c$|$c$|\done|\done|$\lnot b, c, d$|$\lnot b, c, d$|$\lnot b, d$}
  88. \dpllClause{8}{\textcolor{gray}{$a.b$}}
  89. {\done|\done|\done|\done|$a,b$|\done|\done}
  90. \dpllClause{9}{\textcolor{gray}{$a$}}
  91. {-|-|-|$a$|$a$|\done|\done}
  92. \dpllBCP{$\lnot d$|$c$|$\lnot e$|-|$a$|$\lnot c$|$b$}
  93. \dpllPL{-|-|-|-|-|-|-}
  94. \dpllDeci{-|-|-|-|-|-|-}
  95. \end{dplltabular}
  96. }
  97. Second Conflict in Step 11: \\
  98. \begin{conflictgraph}
  99. \node[base node] (notA) {$\lnot a$};
  100. \node[base node] (B) [right of=notA] {$b$};
  101. \node[base node] (notD) [right of=B] {$\lnot d$};
  102. \node[base node] (E) [right of=notD] {$e$};
  103. \node[base node] (C) [below of=E] {$c$};
  104. \node[base node] (notE) [right of=C] {$\lnot e$};
  105. \node[base node] (bot) [above right of=notE] {$\bot$};
  106. \path[]
  107. (notA) edge [] node {$8$} (B)
  108. (B) edge [] node {$3$} (notD)
  109. (notD) edge [] node {$5$} (E)
  110. (notD) edge [] node {$7$} (C)
  111. (C) edge [] node {$6$} (notE)
  112. (notE) edge [] node {} (bot)
  113. (E) edge [] node {} (bot);
  114. \end{conflictgraph}
  115. \begin{prooftree}
  116. \AxiomC{$6. \; a \lor \lnot c \lor \lnot e$}
  117. \AxiomC{$7. \; \lnot b \lor c \lor d$}
  118. \BinaryInfC{$a \lor \lnot b \lor d \lor \lnot e$}
  119. \AxiomC{$5. \; d \lor e$}
  120. \BinaryInfC{$a \lor \lnot b \lor d$}
  121. \AxiomC{$3. \; \lnot b \lor \lnot d$}
  122. \BinaryInfC{$ a \lor \lnot b$}
  123. \AxiomC{$8. \; a \lor b$}
  124. \BinaryInfC{$a$}
  125. \end{prooftree}
  126. \vspace{1cm}
  127. \scalebox{0.87}{
  128. \begin{dplltabular}{2}
  129. \dpllStep{15|16}
  130. \dpllDecL{0|0}
  131. \dpllAssi{$a, \lnot c, b$|
  132. $a, \lnot c, b, \lnot d$}
  133. \dpllClause{1}{$\lnot a,\lnot c$}
  134. {\done|\done}
  135. \dpllClause{2}{$b,c$}
  136. {\done|\done}
  137. \dpllClause{3}{$\lnot b, \lnot d$}
  138. {$\lnot d$|\done}
  139. \dpllClause{4}{$\lnot d, e$}
  140. {$\lnot d,e$|\done}
  141. \dpllClause{5}{$d, e$}
  142. {$d,e$|$e$}
  143. \dpllClause{6}{$a, \lnot c, \lnot e$}
  144. {\done|\done}
  145. \dpllClause{7}{$\lnot b, c, d$}
  146. {$d$|\conflict}
  147. \dpllClause{8}{\textcolor{gray}{$a.b$}}
  148. {\done|\done}
  149. \dpllClause{9}{\textcolor{gray}{$a$}}
  150. {\done|\done}
  151. \dpllBCP{$\lnot d$|-}
  152. \dpllPL{-|-}
  153. \dpllDeci{-|UNSAT}
  154. \end{dplltabular}
  155. }
  156. Second Conflict in Step 16: \\
  157. \begin{conflictgraph}
  158. \node (0) {};
  159. \node[base node] (A) [right of=0] {$a$};
  160. \node[base node] (notC) [right of=A] {$\lnot c$};
  161. \node[base node] (B) [right of=notC] {$b$};
  162. \node[base node] (notD) [right of=B] {$\lnot d$};
  163. \node[base node] (D) [below of=notD] {$d$};
  164. \node[base node] (bot) [above right of=D] {$\bot$};
  165. \path[]
  166. (0) edge [] node {$9$} (A)
  167. (A) edge [] node {$1$} (notC)
  168. (notC) edge [] node {$2$} (B)
  169. (B) edge [] node {$3$} (D)
  170. (B) edge [] node {$7$} (notD)
  171. (notD) edge [] node {} (bot)
  172. (D) edge [] node {} (bot);
  173. \end{conflictgraph}
  174. \begin{prooftree}
  175. \AxiomC{$7. \; \lnot b \lor c \lor d$}
  176. \AxiomC{$3. \; \lnot b \lor \lnot d$}
  177. \BinaryInfC{$\lnot b \lor c$}
  178. \AxiomC{$2. \; b \lor c$}
  179. \BinaryInfC{$c$}
  180. \AxiomC{$1. \; \lnot a \lor \lnot c$}
  181. \BinaryInfC{$\lnot a$}
  182. \AxiomC{$9. \; a$}
  183. \BinaryInfC{$\bot$}
  184. \end{prooftree}