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.

92 lines
3.0 KiB

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