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.

147 lines
6.1 KiB

5 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{7}
  3. \dpllStep{1|2|3|4|5|6|7}
  4. \dpllDecL{0|1|1|1|1|1|1}
  5. \dpllAssi{ - |$\lnot a$|$\lnot a, b$|$\lnot a, b, \lnot c$|\makecell{$\lnot a, b, \lnot c, $ \\ $d$}|\makecell{$\lnot a, b, \lnot c, $ \\ $d, e$}|\makecell{$\lnot a, b, \lnot c, $ \\ $d, e, \lnot f$}}
  6. \dpllClause{1}{$a, b$}{$a, b$|$b$|\done|\done|\done|\done|\done}
  7. \dpllClause{2}{$\lnot a, c$}{$\lnot a, c$|\done|\done|\done|\done|\done|\done}
  8. \dpllClause{3}{$c, d$}{$c, d$|$c, d$|$c, d$|$d$|\done|\done|\done}
  9. \dpllClause{4}{$\lnot b, \lnot c$}{$\lnot b, \lnot c$|$\lnot b, \lnot c$|$\lnot c$|\done|\done|\done|\done}
  10. \dpllClause{5}{$d, e$}{$d, e$|$d, e$|$d, e$|$d, e$|\done|\done|\done}
  11. \dpllClause{6}{$\lnot e, f$}{$\lnot e, f$|$\lnot e, f$|$\lnot e, f$|$\lnot e, f$|$\lnot e, f$|$f$|\conflict}
  12. \dpllClause{7}{$\lnot d, \lnot f$}{$\lnot d, \lnot f$|$\lnot d, \lnot f$|$\lnot d, \lnot f$|$\lnot d, \lnot f$|$\lnot f$|$\lnot f$|\done}
  13. \dpllClause{8}{$b, \lnot f$}{$b, \lnot f$|$b, \lnot f$|\done|\done|\done|\done|\done}
  14. \dpllClause{9}{$\lnot b, e$}{$\lnot b, e$|$\lnot b, e$|$e$|$e$|$e$|\done|\done}
  15. \dpllBCP{ - |$b$|$\lnot c$|$d$|$e$|$\lnot f$| - }
  16. \dpllPL{ - | - | - | - | - | - | - }
  17. \dpllDeci{$\lnot a$| - | - | - | - | - | - }
  18. \end{dplltabular}
  19. }
  20. Conflict in step 7\\
  21. \scalebox{0.75}{
  22. \begin{tikzpicture}[>=latex,line join=bevel,]
  23. \pgfsetlinewidth{1bp}
  24. %%
  25. \pgfsetcolor{black}
  26. % Edge: 1 -> 3
  27. \draw [->] (22.3bp,31.0bp) .. controls (35.47bp,31.0bp) and (58.583bp,31.0bp) .. (85.878bp,31.0bp);
  28. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  29. \pgfsetstrokecolor{strokecol}
  30. \draw (54.0bp,38.5bp) node {$$1$$};
  31. % Edge: 3 -> 5
  32. \draw [->] (107.97bp,33.373bp) .. controls (121.23bp,36.53bp) and (144.98bp,42.186bp) .. (172.05bp,48.63bp);
  33. \draw (140.0bp,50.5bp) node {$$4$$};
  34. % Edge: 3 -> 8
  35. \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);
  36. \draw (140.0bp,26.5bp) node {$$9$$};
  37. % Edge: 4 -> 7
  38. \draw [->] (280.3bp,50.0bp) .. controls (293.47bp,50.0bp) and (316.58bp,50.0bp) .. (343.88bp,50.0bp);
  39. \draw (312.0bp,57.5bp) node {$$7$$};
  40. % Edge: 5 -> 4
  41. \draw [->] (194.3bp,50.877bp) .. controls (207.47bp,50.721bp) and (230.58bp,50.445bp) .. (257.88bp,50.12bp);
  42. \draw (226.0bp,57.5bp) node {$$3$$};
  43. % Edge: 6 -> 2
  44. \draw [->] (322.95bp,12.194bp) .. controls (339.12bp,14.134bp) and (371.4bp,18.008bp) .. (402.79bp,21.775bp);
  45. % Edge: 7 -> 2
  46. \draw [->] (365.16bp,45.662bp) .. controls (373.01bp,41.945bp) and (384.56bp,36.472bp) .. (403.68bp,27.417bp);
  47. % Edge: 8 -> 6
  48. \draw [->] (194.39bp,11.0bp) .. controls (215.43bp,11.0bp) and (263.37bp,11.0bp) .. (300.82bp,11.0bp);
  49. \draw (226.0bp,18.5bp) node {$$6$$};
  50. % Node: 1
  51. \begin{scope}
  52. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  53. \pgfsetstrokecolor{strokecol}
  54. \draw (11.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  55. \draw (11.0bp,31.0bp) node {$\lnot a$};
  56. \end{scope}
  57. % Node: 3
  58. \begin{scope}
  59. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  60. \pgfsetstrokecolor{strokecol}
  61. \draw (97.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  62. \draw (97.0bp,31.0bp) node {$b$};
  63. \end{scope}
  64. % Node: 2
  65. \begin{scope}
  66. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  67. \pgfsetstrokecolor{strokecol}
  68. \draw (414.0bp,23.0bp) ellipse (11.0bp and 11.0bp);
  69. \draw (414.0bp,23.0bp) node {$\bot$};
  70. \end{scope}
  71. % Node: 5
  72. \begin{scope}
  73. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  74. \pgfsetstrokecolor{strokecol}
  75. \draw (183.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  76. \draw (183.0bp,51.0bp) node {$\lnot c$};
  77. \end{scope}
  78. % Node: 8
  79. \begin{scope}
  80. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  81. \pgfsetstrokecolor{strokecol}
  82. \draw (183.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  83. \draw (183.0bp,11.0bp) node {$e$};
  84. \end{scope}
  85. % Node: 4
  86. \begin{scope}
  87. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  88. \pgfsetstrokecolor{strokecol}
  89. \draw (269.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  90. \draw (269.0bp,50.0bp) node {$d$};
  91. \end{scope}
  92. % Node: 7
  93. \begin{scope}
  94. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  95. \pgfsetstrokecolor{strokecol}
  96. \draw (355.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  97. \draw (355.0bp,50.0bp) node {$\lnot f$};
  98. \end{scope}
  99. % Node: 6
  100. \begin{scope}
  101. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  102. \pgfsetstrokecolor{strokecol}
  103. \draw (312.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  104. \draw (312.0bp,11.0bp) node {$f$};
  105. \end{scope}
  106. %
  107. \end{tikzpicture}
  108. }
  109. \begin{prooftree}
  110. \AxiomC{$6. \; \lnot e \lor f$}
  111. \AxiomC{$7. \; \lnot d \lor \lnot f$}
  112. \BinaryInfC{$\lnot e \lor \lnot d$}
  113. \AxiomC{$3. \; c \lor d$}
  114. \BinaryInfC{$\lnot e \lor c$}
  115. \AxiomC{$4. \; \lnot b \lor \lnot c$}
  116. \BinaryInfC{$\lnot e \lor \lnot b$}
  117. \AxiomC{$9. \; \lnot b \lor e$}
  118. \BinaryInfC{$\lnot b$}
  119. \AxiomC{$1. \; a \lor b$}
  120. \BinaryInfC{$a$}
  121. \end{prooftree}
  122. \hspace{-0.09cm}\scalebox{0.85}{
  123. \begin{dplltabular}{7}
  124. \dpllStep{8|9|10|11|12|13|14}
  125. \dpllDecL{0|0|0|0|0|0|0}
  126. \dpllAssi{ - |$a$|$a, c$|$a, c, \lnot b$|\makecell{$a, c, \lnot b, $ \\ $\lnot f$}|\makecell{$a, c, \lnot b, $ \\ $\lnot f, \lnot e$}|\makecell{$a, c, \lnot b, $ \\ $\lnot f, \lnot e, d$}}
  127. \dpllClause{1}{$a, b$}{$a, b$|\done|\done|\done|\done|\done|\done}
  128. \dpllClause{2}{$\lnot a, c$}{$\lnot a, c$|$c$|\done|\done|\done|\done|\done}
  129. \dpllClause{3}{$c, d$}{$c, d$|$c, d$|\done|\done|\done|\done|\done}
  130. \dpllClause{4}{$\lnot b, \lnot c$}{$\lnot b, \lnot c$|$\lnot b, \lnot c$|$\lnot b$|\done|\done|\done|\done}
  131. \dpllClause{5}{$d, e$}{$d, e$|$d, e$|$d, e$|$d, e$|$d, e$|$d$|\done}
  132. \dpllClause{6}{$\lnot e, f$}{$\lnot e, f$|$\lnot e, f$|$\lnot e, f$|$\lnot e, f$|$\lnot e$|\done|\done}
  133. \dpllClause{7}{$\lnot d, \lnot f$}{$\lnot d, \lnot f$|$\lnot d, \lnot f$|$\lnot d, \lnot f$|$\lnot d, \lnot f$|\done|\done|\done}
  134. \dpllClause{8}{$b, \lnot f$}{$b, \lnot f$|$b, \lnot f$|$b, \lnot f$|$\lnot f$|\done|\done|\done}
  135. \dpllClause{9}{$\lnot b, e$}{$\lnot b, e$|$\lnot b, e$|$\lnot b, e$|\done|\done|\done|\done}
  136. \dpllClause{10}{$a$}{$a$|\done|\done|\done|\done|\done|\done}
  137. \dpllBCP{$a$|$c$|$\lnot b$|$\lnot f$|$\lnot e$|$d$| - }
  138. \dpllPL{ - | - | - | - | - | - | - }
  139. \dpllDeci{ - | - | - | - | - | - |SAT}
  140. \end{dplltabular}
  141. }