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.

166 lines
5.4 KiB

9 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{4}
  3. \dpllStep{1|2|3|4}
  4. \dpllDecL{0|1|1|1}
  5. \dpllAssi{ - |$a$|$a, \lnot c$|$a, \lnot c, b$}
  6. \dpllClause{1}{$a, b$}{$a, b$|\done|\done|\done}
  7. \dpllClause{2}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|$\lnot b$|\conflict}
  8. \dpllClause{3}{$\lnot a, \lnot c$}{$\lnot a, \lnot c$|$\lnot c$|\done|\done}
  9. \dpllClause{4}{$b, c$}{$b, c$|$b, c$|$b$|\done}
  10. \dpllClause{5}{$a, \lnot b$}{$a, \lnot b$|\done|\done|\done}
  11. \dpllBCP{ - |$\lnot c$|$b$| - }
  12. \dpllPL{ - | - | - | - }
  13. \dpllDeci{$a$| - | - | - }
  14. \end{dplltabular}
  15. }
  16. Conflict in step 4\\
  17. \scalebox{0.75}{
  18. \begin{tikzpicture}[>=latex,line join=bevel,]
  19. \pgfsetlinewidth{1bp}
  20. %%
  21. \pgfsetcolor{black}
  22. % Edge: 1 -> 4
  23. \draw [->] (22.3bp,31.0bp) .. controls (35.47bp,31.0bp) and (58.583bp,31.0bp) .. (85.878bp,31.0bp);
  24. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  25. \pgfsetstrokecolor{strokecol}
  26. \draw (54.0bp,38.5bp) node {$$3$$};
  27. % Edge: 3 -> 2
  28. \draw [->] (193.67bp,47.438bp) .. controls (201.41bp,44.585bp) and (212.51bp,40.495bp) .. (231.47bp,33.51bp);
  29. % Edge: 4 -> 3
  30. \draw [->] (107.97bp,33.373bp) .. controls (121.23bp,36.53bp) and (144.98bp,42.186bp) .. (172.05bp,48.63bp);
  31. \draw (140.0bp,50.5bp) node {$$2$$};
  32. % Edge: 4 -> 5
  33. \draw [->] (107.11bp,26.371bp) .. controls (112.48bp,23.828bp) and (119.48bp,20.828bp) .. (126.0bp,19.0bp) .. controls (137.65bp,15.733bp) and (151.06bp,13.758bp) .. (171.92bp,11.639bp);
  34. \draw (140.0bp,26.5bp) node {$$4$$};
  35. % Edge: 5 -> 2
  36. \draw [->] (193.67bp,14.223bp) .. controls (201.24bp,16.746bp) and (212.02bp,20.339bp) .. (231.09bp,26.697bp);
  37. % Node: 1
  38. \begin{scope}
  39. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  40. \pgfsetstrokecolor{strokecol}
  41. \draw (11.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  42. \draw (11.0bp,31.0bp) node {$a$};
  43. \end{scope}
  44. % Node: 4
  45. \begin{scope}
  46. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  47. \pgfsetstrokecolor{strokecol}
  48. \draw (97.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  49. \draw (97.0bp,31.0bp) node {$\lnot c$};
  50. \end{scope}
  51. % Node: 2
  52. \begin{scope}
  53. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  54. \pgfsetstrokecolor{strokecol}
  55. \draw (242.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  56. \draw (242.0bp,30.0bp) node {$\bot$};
  57. \end{scope}
  58. % Node: 3
  59. \begin{scope}
  60. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  61. \pgfsetstrokecolor{strokecol}
  62. \draw (183.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  63. \draw (183.0bp,51.0bp) node {$\lnot b$};
  64. \end{scope}
  65. % Node: 5
  66. \begin{scope}
  67. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  68. \pgfsetstrokecolor{strokecol}
  69. \draw (183.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  70. \draw (183.0bp,11.0bp) node {$b$};
  71. \end{scope}
  72. %
  73. \end{tikzpicture}
  74. }
  75. \begin{prooftree}
  76. \AxiomC{$2. \; \lnot b \lor c$}
  77. \AxiomC{$4. \; b \lor c$}
  78. \BinaryInfC{$c$}
  79. \AxiomC{$3. \; \lnot a \lor \lnot c$}
  80. \BinaryInfC{$\lnot a$}
  81. \end{prooftree}
  82. \hspace{-0.09cm}\scalebox{0.85}{
  83. \begin{dplltabular}{3}
  84. \dpllStep{5|6|7}
  85. \dpllDecL{0|0|0}
  86. \dpllAssi{ - |$\lnot a$|$\lnot a, b$}
  87. \dpllClause{1}{$a, b$}{$a, b$|$b$|\done}
  88. \dpllClause{2}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|$c$}
  89. \dpllClause{3}{$\lnot a, \lnot c$}{$\lnot a, \lnot c$|\done|\done}
  90. \dpllClause{4}{$b, c$}{$b, c$|$b, c$|\done}
  91. \dpllClause{5}{$a, \lnot b$}{$a, \lnot b$|$\lnot b$|\conflict}
  92. \dpllClause{6}{$\lnot a$}{$\lnot a$|\done|\done}
  93. \dpllBCP{$\lnot a$|$b$| - }
  94. \dpllPL{ - | - | - }
  95. \dpllDeci{ - | - |UNSAT}
  96. \end{dplltabular}
  97. }
  98. Conflict in step 7\\
  99. \scalebox{0.75}{
  100. \begin{tikzpicture}[>=latex,line join=bevel,]
  101. \pgfsetlinewidth{1bp}
  102. %%
  103. \pgfsetcolor{black}
  104. % Edge: 0 -> 4
  105. \draw [->] (1.0536bp,31.0bp) .. controls (2.5071bp,31.0bp) and (33.188bp,31.0bp) .. (64.696bp,31.0bp);
  106. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  107. \pgfsetstrokecolor{strokecol}
  108. \draw (33.0bp,38.5bp) node {$$6$$};
  109. % Edge: 2 -> 1
  110. \draw [->] (172.67bp,47.438bp) .. controls (180.41bp,44.585bp) and (191.51bp,40.495bp) .. (210.47bp,33.51bp);
  111. % Edge: 3 -> 1
  112. \draw [->] (172.67bp,14.223bp) .. controls (180.24bp,16.746bp) and (191.02bp,20.339bp) .. (210.09bp,26.697bp);
  113. % Edge: 4 -> 2
  114. \draw [->] (86.966bp,33.373bp) .. controls (100.23bp,36.53bp) and (123.98bp,42.186bp) .. (151.05bp,48.63bp);
  115. \draw (119.0bp,50.5bp) node {$$1$$};
  116. % Edge: 4 -> 3
  117. \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);
  118. \draw (119.0bp,26.5bp) node {$$5$$};
  119. % Node: 4
  120. \begin{scope}
  121. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  122. \pgfsetstrokecolor{strokecol}
  123. \draw (76.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  124. \draw (76.0bp,31.0bp) node {$\lnot a$};
  125. \end{scope}
  126. % Node: 1
  127. \begin{scope}
  128. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  129. \pgfsetstrokecolor{strokecol}
  130. \draw (221.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  131. \draw (221.0bp,30.0bp) node {$\bot$};
  132. \end{scope}
  133. % Node: 2
  134. \begin{scope}
  135. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  136. \pgfsetstrokecolor{strokecol}
  137. \draw (162.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  138. \draw (162.0bp,51.0bp) node {$b$};
  139. \end{scope}
  140. % Node: 3
  141. \begin{scope}
  142. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  143. \pgfsetstrokecolor{strokecol}
  144. \draw (162.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  145. \draw (162.0bp,11.0bp) node {$\lnot b$};
  146. \end{scope}
  147. %
  148. \end{tikzpicture}
  149. }
  150. \begin{prooftree}
  151. \AxiomC{$1. \; a \lor b$}
  152. \AxiomC{$5. \; a \lor \lnot b$}
  153. \BinaryInfC{$a$}
  154. \AxiomC{$6. \; \lnot a$}
  155. \BinaryInfC{$\bot$}
  156. \end{prooftree}