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.

126 lines
3.7 KiB

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