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.

156 lines
5.2 KiB

5 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{4}
  3. \dpllStep{1|2|3|4}
  4. \dpllDecL{0|0|1|1}
  5. \dpllAssi{ - |$\lnot a$|$\lnot a, b$|$\lnot a, b, e$}
  6. \dpllClause{1}{$\lnot a, d$}{$\lnot a, d$|\done|\done|\done}
  7. \dpllClause{2}{$\lnot d, c, \lnot a$}{$\lnot d, c, \lnot a$|\done|\done|\done}
  8. \dpllClause{3}{$\lnot b, e$}{$\lnot b, e$|$\lnot b, e$|$e$|\done}
  9. \dpllClause{4}{$\lnot b, \lnot e$}{$\lnot b, \lnot e$|$\lnot b, \lnot e$|$\lnot e$|\conflict}
  10. \dpllClause{5}{$b, f$}{$b, f$|$b, f$|\done|\done}
  11. \dpllClause{6}{$b, \lnot f$}{$b, \lnot f$|$b, \lnot f$|\done|\done}
  12. \dpllBCP{ - | - |$e$| - }
  13. \dpllPL{$\lnot a$| - | - | - }
  14. \dpllDeci{ - |$b$| - | - }
  15. \end{dplltabular}
  16. }
  17. Conflict in step 4\\
  18. \scalebox{0.75}{
  19. \begin{tikzpicture}[>=latex,line join=bevel,]
  20. \pgfsetlinewidth{1bp}
  21. %%
  22. \pgfsetcolor{black}
  23. % Edge: 1 -> 3
  24. \draw [->] (21.966bp,33.373bp) .. controls (35.227bp,36.53bp) and (58.98bp,42.186bp) .. (86.047bp,48.63bp);
  25. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  26. \pgfsetstrokecolor{strokecol}
  27. \draw (54.0bp,50.5bp) node {$$3$$};
  28. % Edge: 1 -> 4
  29. \draw [->] (21.111bp,26.371bp) .. controls (26.482bp,23.828bp) and (33.482bp,20.828bp) .. (40.0bp,19.0bp) .. controls (51.65bp,15.733bp) and (65.057bp,13.758bp) .. (85.923bp,11.639bp);
  30. \draw (54.0bp,26.5bp) node {$$4$$};
  31. % Edge: 3 -> 2
  32. \draw [->] (107.67bp,47.438bp) .. controls (115.41bp,44.585bp) and (126.51bp,40.495bp) .. (145.47bp,33.51bp);
  33. % Edge: 4 -> 2
  34. \draw [->] (107.67bp,14.223bp) .. controls (115.24bp,16.746bp) and (126.02bp,20.339bp) .. (145.09bp,26.697bp);
  35. % Node: 1
  36. \begin{scope}
  37. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  38. \pgfsetstrokecolor{strokecol}
  39. \draw (11.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  40. \draw (11.0bp,31.0bp) node {$b$};
  41. \end{scope}
  42. % Node: 3
  43. \begin{scope}
  44. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  45. \pgfsetstrokecolor{strokecol}
  46. \draw (97.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  47. \draw (97.0bp,51.0bp) node {$e$};
  48. \end{scope}
  49. % Node: 4
  50. \begin{scope}
  51. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  52. \pgfsetstrokecolor{strokecol}
  53. \draw (97.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  54. \draw (97.0bp,11.0bp) node {$\lnot e$};
  55. \end{scope}
  56. % Node: 2
  57. \begin{scope}
  58. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  59. \pgfsetstrokecolor{strokecol}
  60. \draw (156.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  61. \draw (156.0bp,30.0bp) node {$\bot$};
  62. \end{scope}
  63. %
  64. \end{tikzpicture}
  65. }
  66. \begin{prooftree}
  67. \AxiomC{$3. \; \lnot b \lor e$}
  68. \AxiomC{$4. \; \lnot b \lor \lnot e$}
  69. \BinaryInfC{$\lnot b$}
  70. \end{prooftree}
  71. \hspace{-0.09cm}\scalebox{0.85}{
  72. \begin{dplltabular}{3}
  73. \dpllStep{5|6|7}
  74. \dpllDecL{0|0|0}
  75. \dpllAssi{$\lnot a$|$\lnot a, \lnot b$|$\lnot a, \lnot b, f$}
  76. \dpllClause{1}{$\lnot a, d$}{\done|\done|\done}
  77. \dpllClause{2}{$\lnot d, c, \lnot a$}{\done|\done|\done}
  78. \dpllClause{3}{$\lnot b, e$}{$\lnot b, e$|\done|\done}
  79. \dpllClause{4}{$\lnot b, \lnot e$}{$\lnot b, \lnot e$|\done|\done}
  80. \dpllClause{5}{$b, f$}{$b, f$|$f$|\done}
  81. \dpllClause{6}{$b, \lnot f$}{$b, \lnot f$|$\lnot f$|\conflict}
  82. \dpllClause{7}{$\lnot b$}{$\lnot b$|\done|\done}
  83. \dpllBCP{$\lnot b$|$f$| - }
  84. \dpllPL{ - | - | - }
  85. \dpllDeci{ - | - |UNSAT}
  86. \end{dplltabular}
  87. }
  88. Conflict in step 7\\
  89. \scalebox{0.75}{
  90. \begin{tikzpicture}[>=latex,line join=bevel,]
  91. \pgfsetlinewidth{1bp}
  92. %%
  93. \pgfsetcolor{black}
  94. % Edge: 0 -> 4
  95. \draw [->] (1.0536bp,31.0bp) .. controls (2.5071bp,31.0bp) and (33.188bp,31.0bp) .. (64.696bp,31.0bp);
  96. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  97. \pgfsetstrokecolor{strokecol}
  98. \draw (33.0bp,38.5bp) node {$$7$$};
  99. % Edge: 2 -> 1
  100. \draw [->] (172.67bp,47.438bp) .. controls (180.41bp,44.585bp) and (191.51bp,40.495bp) .. (210.47bp,33.51bp);
  101. % Edge: 3 -> 1
  102. \draw [->] (172.67bp,14.223bp) .. controls (180.24bp,16.746bp) and (191.02bp,20.339bp) .. (210.09bp,26.697bp);
  103. % Edge: 4 -> 2
  104. \draw [->] (86.966bp,33.373bp) .. controls (100.23bp,36.53bp) and (123.98bp,42.186bp) .. (151.05bp,48.63bp);
  105. \draw (119.0bp,50.5bp) node {$$5$$};
  106. % Edge: 4 -> 3
  107. \draw [->] (86.111bp,26.371bp) .. controls (91.482bp,23.828bp) and (98.482bp,20.828bp) .. (105.0bp,19.0bp) .. controls (116.65bp,15.733bp) and (130.06bp,13.758bp) .. (150.92bp,11.639bp);
  108. \draw (119.0bp,26.5bp) node {$$6$$};
  109. % Node: 4
  110. \begin{scope}
  111. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  112. \pgfsetstrokecolor{strokecol}
  113. \draw (76.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  114. \draw (76.0bp,31.0bp) node {$\lnot b$};
  115. \end{scope}
  116. % Node: 1
  117. \begin{scope}
  118. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  119. \pgfsetstrokecolor{strokecol}
  120. \draw (221.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  121. \draw (221.0bp,30.0bp) node {$\bot$};
  122. \end{scope}
  123. % Node: 2
  124. \begin{scope}
  125. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  126. \pgfsetstrokecolor{strokecol}
  127. \draw (162.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  128. \draw (162.0bp,51.0bp) node {$f$};
  129. \end{scope}
  130. % Node: 3
  131. \begin{scope}
  132. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  133. \pgfsetstrokecolor{strokecol}
  134. \draw (162.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  135. \draw (162.0bp,11.0bp) node {$\lnot f$};
  136. \end{scope}
  137. %
  138. \end{tikzpicture}
  139. }
  140. \begin{prooftree}
  141. \AxiomC{$5. \; b \lor f$}
  142. \AxiomC{$6. \; b \lor \lnot f$}
  143. \BinaryInfC{$b$}
  144. \AxiomC{$7. \; \lnot b$}
  145. \BinaryInfC{$\bot$}
  146. \end{prooftree}