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.

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