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.

133 lines
3.8 KiB

9 months ago
  1. \begin{dplltabular}{9}
  2. \dpllStep{1|2|3|4|5}
  3. \dpllDecL{0|1|1|1|1}
  4. \dpllAssi{-|
  5. $\lnot a$|
  6. $\lnot a, \lnot b$|
  7. $\lnot a, \lnot b, \lnot c$|
  8. $\lnot a,\lnot b, \lnot c, \lnot d$}
  9. \dpllClause{1}{$\lnot a,c$}
  10. {$\lnot a,c$|\done|\done|\done|\done}
  11. \dpllClause{2}{$\lnot a, b, \lnot c$}
  12. {$\lnot a, b, \lnot c$|\done|\done|\done|\done}
  13. \dpllClause{3}{$\lnot b, e$}
  14. {$\lnot b, e$|$\lnot b, e$|\done|\done|\done}
  15. \dpllClause{4}{$a, d$}
  16. {$a, d$|$d$|$d$|$d$|\conflict}
  17. \dpllClause{5}{$a, \lnot c$}
  18. {$a, \lnot c$|$\lnot c$|$\lnot c$|\done|\done}
  19. \dpllClause{6}{$\lnot a, \lnot e$}
  20. {$\lnot a, \lnot e$|\done|\done|\done|\done}
  21. \dpllClause{7}{$a, \lnot b$}
  22. {$a, \lnot b$|$\lnot b$|\done|\done|\done}
  23. \dpllClause{8}{$b, \lnot d$}
  24. {$b, \lnot d$|$b, \lnot d$|$\lnot d$|$\lnot d$|\done}
  25. \dpllBCP{-|$\lnot b$|$\lnot c$|$\lnot d$|-}
  26. \dpllPL{-|-|-|-|-}
  27. \dpllDeci{$\lnot a$|-|-|-|-}
  28. \end{dplltabular}
  29. \begin{conflictgraph}
  30. \node[base node] (notA) {$\lnot a$};
  31. \node[base node] (notB) [right of=notA] {$\lnot b$};
  32. \node[base node] (notD) [right of=notB] {$\lnot d$};
  33. \node[base node] (D) [above of=notD] {$d$};
  34. \node[base node] (bot) [below right of=D] {$\bot$};
  35. \path[]
  36. (notA) edge [] node {$7$} (notB)
  37. (notA) edge [] node {$4$} (D)
  38. (notB) edge [] node {$8$} (notD)
  39. (notD) edge [] node {} (bot)
  40. (D) edge [] node {} (bot);
  41. \end{conflictgraph}
  42. \begin{prooftree}
  43. \AxiomC{$8. \; b \lor \lnot d$}
  44. \AxiomC{$4. \; a \lor d$}
  45. \BinaryInfC{$a \lor b$}
  46. \AxiomC{$7. \; a \lor \lnot b $}
  47. \BinaryInfC{$a$}
  48. \end{prooftree}
  49. \begin{dplltabular}{9}
  50. \dpllStep{(1)|6|7|8|9}
  51. \dpllDecL{0 |0|0|0|0}
  52. \dpllAssi{-|
  53. $a$|
  54. $a,c$|
  55. $a,c,b$|
  56. $a,c,b,\lnot e$}
  57. \dpllClause{1}{$\lnot a,c$}
  58. {$\lnot a,c$|$c$|\done|\done|\done}
  59. \dpllClause{2}{$\lnot a, b, \lnot c$}
  60. {$\lnot a, b, \lnot c$|$b,\lnot c$|$b$|\done|\done}
  61. \dpllClause{3}{$\lnot b, e$}
  62. {$\lnot b, e$|$\lnot b, e$|$\lnot b,e$|$e$|\conflict}
  63. \dpllClause{4}{$a, d$}
  64. {$a, d$|\done|\done|\done|\done}
  65. \dpllClause{5}{$a, \lnot c$}
  66. {$a, \lnot c$|\done|\done|\done|\done}
  67. \dpllClause{6}{$\lnot a, \lnot e$}
  68. {$\lnot a, \lnot e$|$\lnot e$|$\lnot e$|$\lnot e$|\done}
  69. \dpllClause{7}{$a, \lnot b$}
  70. {$a, \lnot b$|\done|\done|\done|\done}
  71. \dpllClause{8}{$b, \lnot d$}
  72. {$b, \lnot d$|$b,\lnot d$|$b,\lnot d$|\done|\done}
  73. \dpllClause{9}{$a$}
  74. {$a$|\done|\done|\done|\done}
  75. \dpllBCP{$a$|$c$|$b$|$\lnot e$|-}
  76. \dpllPL{-|-|-|-|-}
  77. \dpllDeci{-|-|-|-|UNSAT}
  78. \end{dplltabular}
  79. \begin{conflictgraph}
  80. \node (0) {};
  81. \node[base node] (A) [right of=0] {$a$};
  82. \node[base node] (C) [right of=A] {$c$};
  83. \node[base node] (B) [right of=C] {$b$};
  84. \node[base node] (E) [right of=B] {$e$};
  85. \node[base node] (notE) [below right of=A] {$\lnot e$};
  86. \node[base node] (bot) [below of=E] {$\bot$};
  87. \path[]
  88. (0) edge [] node {$9$} (A)
  89. (A) edge [] node {$1$} (C)
  90. (A) edge [bend left] node {$2$} (B)
  91. (C) edge [] node {$2$} (B)
  92. (B) edge [] node {$3$} (E)
  93. (A) edge [] node {$6$} (notE)
  94. (E) edge [] node {} (bot)
  95. (notE) edge [] node {} (bot);
  96. \end{conflictgraph}
  97. \begin{prooftree}
  98. \AxiomC{$3. \; \clause{\lnot b;e}$}
  99. \AxiomC{$6. \; \clause{\lnot a;\lnot e}$}
  100. \BinaryInfC{$\clause{\lnot a;\lnot b}$}
  101. \AxiomC{$2. \; \clause{\lnot a;b;\lnot c}$}
  102. \BinaryInfC{$\clause{\lnot a;\lnot c}$}
  103. \AxiomC{$1. \; \clause{\lnot a;c}$}
  104. \BinaryInfC{$\clause{\lnot a}$}
  105. \AxiomC{$9. \; \clause{a}$}
  106. \BinaryInfC{$\bot$}
  107. \end{prooftree}