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.

118 lines
4.3 KiB

9 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{6}
  3. \dpllStep{12|13|14|15|16|17}
  4. \dpllDecL{0|0|0|0|0|0}
  5. \dpllAssi{ - |$a$|$a, b$|$a, b, c$|\makecell{$a, b, c, $ \\ $d$}|\makecell{$a, b, c, $ \\ $d, \lnot e$}}
  6. \dpllClause{1}{$a, b, c$}{$a, b, c$|\done|\done|\done|\done|\done}
  7. \dpllClause{2}{$\lnot a, b$}{$\lnot a, b$|$b$|\done|\done|\done|\done}
  8. \dpllClause{3}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|$c$|\done|\done|\done}
  9. \dpllClause{4}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$\lnot c, d$|$d$|\done|\done}
  10. \dpllClause{5}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|$e$|$e$|\conflict}
  11. \dpllClause{6}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot e$|\done}
  12. \dpllClause{7}{$a, b$}{$a, b$|\done|\done|\done|\done|\done}
  13. \dpllClause{8}{$a$}{$a$|\done|\done|\done|\done|\done}
  14. \dpllBCP{$a$|$b$|$c$|$d$|$\lnot e$| - }
  15. \dpllPL{ - | - | - | - | - | - }
  16. \dpllDeci{ - | - | - | - | - |UNSAT}
  17. \end{dplltabular}
  18. }
  19. Conflict in step 17\\
  20. \scalebox{0.75}{
  21. \begin{tikzpicture}[>=latex,line join=bevel,]
  22. \pgfsetlinewidth{1bp}
  23. %%
  24. \pgfsetcolor{black}
  25. % Edge: 0 -> 7
  26. \draw [->] (1.0536bp,30.0bp) .. controls (2.5071bp,30.0bp) and (33.188bp,30.0bp) .. (64.696bp,30.0bp);
  27. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  28. \pgfsetstrokecolor{strokecol}
  29. \draw (33.0bp,37.5bp) node {$$8$$};
  30. % Edge: 2 -> 3
  31. \draw [->] (173.3bp,30.0bp) .. controls (186.47bp,30.0bp) and (209.58bp,30.0bp) .. (236.88bp,30.0bp);
  32. \draw (205.0bp,37.5bp) node {$$3$$};
  33. % Edge: 3 -> 4
  34. \draw [->] (258.97bp,32.373bp) .. controls (272.23bp,35.53bp) and (295.98bp,41.186bp) .. (323.05bp,47.63bp);
  35. \draw (291.0bp,49.5bp) node {$$4$$};
  36. % Edge: 3 -> 5
  37. \draw [->] (258.07bp,25.196bp) .. controls (263.42bp,22.594bp) and (270.42bp,19.594bp) .. (277.0bp,18.0bp) .. controls (303.72bp,11.525bp) and (335.6bp,10.402bp) .. (366.0bp,10.619bp);
  38. \draw (291.0bp,25.5bp) node {$$5$$};
  39. % Edge: 4 -> 6
  40. \draw [->] (345.3bp,50.0bp) .. controls (358.47bp,50.0bp) and (381.58bp,50.0bp) .. (408.88bp,50.0bp);
  41. \draw (377.0bp,57.5bp) node {$$6$$};
  42. % Edge: 5 -> 1
  43. \draw [->] (387.95bp,12.194bp) .. controls (404.12bp,14.134bp) and (436.4bp,18.008bp) .. (467.79bp,21.775bp);
  44. % Edge: 6 -> 1
  45. \draw [->] (430.16bp,45.662bp) .. controls (438.01bp,41.945bp) and (449.56bp,36.472bp) .. (468.68bp,27.417bp);
  46. % Edge: 7 -> 2
  47. \draw [->] (87.3bp,30.0bp) .. controls (100.47bp,30.0bp) and (123.58bp,30.0bp) .. (150.88bp,30.0bp);
  48. \draw (119.0bp,37.5bp) node {$$2$$};
  49. % Node: 7
  50. \begin{scope}
  51. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  52. \pgfsetstrokecolor{strokecol}
  53. \draw (76.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  54. \draw (76.0bp,30.0bp) node {$a$};
  55. \end{scope}
  56. % Node: 1
  57. \begin{scope}
  58. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  59. \pgfsetstrokecolor{strokecol}
  60. \draw (479.0bp,23.0bp) ellipse (11.0bp and 11.0bp);
  61. \draw (479.0bp,23.0bp) node {$\bot$};
  62. \end{scope}
  63. % Node: 2
  64. \begin{scope}
  65. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  66. \pgfsetstrokecolor{strokecol}
  67. \draw (162.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  68. \draw (162.0bp,30.0bp) node {$b$};
  69. \end{scope}
  70. % Node: 3
  71. \begin{scope}
  72. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  73. \pgfsetstrokecolor{strokecol}
  74. \draw (248.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  75. \draw (248.0bp,30.0bp) node {$c$};
  76. \end{scope}
  77. % Node: 4
  78. \begin{scope}
  79. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  80. \pgfsetstrokecolor{strokecol}
  81. \draw (334.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  82. \draw (334.0bp,50.0bp) node {$d$};
  83. \end{scope}
  84. % Node: 5
  85. \begin{scope}
  86. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  87. \pgfsetstrokecolor{strokecol}
  88. \draw (377.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  89. \draw (377.0bp,11.0bp) node {$e$};
  90. \end{scope}
  91. % Node: 6
  92. \begin{scope}
  93. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  94. \pgfsetstrokecolor{strokecol}
  95. \draw (420.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  96. \draw (420.0bp,50.0bp) node {$\lnot e$};
  97. \end{scope}
  98. %
  99. \end{tikzpicture}
  100. }
  101. \begin{prooftree}
  102. \AxiomC{$6. \; \lnot d \lor \lnot e$}
  103. \AxiomC{$4. \; \lnot c \lor d$}
  104. \BinaryInfC{$\lnot e \lor \lnot c$}
  105. \AxiomC{$5. \; \lnot c \lor e$}
  106. \BinaryInfC{$\lnot c$}
  107. \AxiomC{$3. \; \lnot b \lor c$}
  108. \BinaryInfC{$\lnot b$}
  109. \AxiomC{$2. \; \lnot a \lor b$}
  110. \BinaryInfC{$\lnot a$}
  111. \AxiomC{$8. \; a$}
  112. \BinaryInfC{$\bot$}
  113. \end{prooftree}