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.

123 lines
5.0 KiB

5 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{6}
  3. \dpllStep{1|2|3|4|5|6}
  4. \dpllDecL{0|1|1|2|2|2}
  5. \dpllAssi{ - |$\lnot a$|$\lnot a, b$|$\lnot a, b, \lnot c$|\makecell{$\lnot a, b, \lnot c, $ \\ $\lnot e$}|\makecell{$\lnot a, b, \lnot c, $ \\ $\lnot e, \lnot d$}}
  6. \dpllClause{1}{$\lnot a, \lnot b$}{$\lnot a, \lnot b$|\done|\done|\done|\done|\done}
  7. \dpllClause{2}{$a, d, e$}{$a, d, e$|$d, e$|$d, e$|$d, e$|$d$|\conflict}
  8. \dpllClause{3}{$b, \lnot c$}{$b, \lnot c$|$b, \lnot c$|\done|\done|\done|\done}
  9. \dpllClause{4}{$c, \lnot d, e$}{$c, \lnot d, e$|$c, \lnot d, e$|$c, \lnot d, e$|$\lnot d, e$|$\lnot d$|\done}
  10. \dpllClause{5}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|\done|\done|\done}
  11. \dpllClause{6}{$\lnot a, b$}{$\lnot a, b$|\done|\done|\done|\done|\done}
  12. \dpllClause{7}{$a, c, \lnot e$}{$a, c, \lnot e$|$c, \lnot e$|$c, \lnot e$|$\lnot e$|\done|\done}
  13. \dpllBCP{ - | - | - |$\lnot e$|$\lnot d$| - }
  14. \dpllPL{ - |$b$| - | - | - | - }
  15. \dpllDeci{$\lnot a$| - |$\lnot c$| - | - | - }
  16. \end{dplltabular}
  17. }
  18. Conflict in step 6\\
  19. \scalebox{0.75}{
  20. \begin{tikzpicture}[>=latex,line join=bevel,]
  21. \pgfsetlinewidth{1bp}
  22. %%
  23. \pgfsetcolor{black}
  24. % Edge: 1 -> 5
  25. \draw [->] (22.199bp,102.59bp) .. controls (46.427bp,104.91bp) and (109.22bp,109.27bp) .. (160.0bp,98.5bp) .. controls (163.17bp,97.828bp) and (166.44bp,96.837bp) .. (178.9bp,91.96bp);
  26. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  27. \pgfsetstrokecolor{strokecol}
  28. \draw (100.0bp,112.0bp) node {$$4$$};
  29. % Edge: 1 -> 6
  30. \draw [->] (21.231bp,96.616bp) .. controls (26.641bp,93.822bp) and (33.641bp,90.322bp) .. (40.0bp,87.5bp) .. controls (53.079bp,81.696bp) and (68.11bp,75.848bp) .. (89.282bp,67.976bp);
  31. \draw (54.0bp,95.0bp) node {$$7$$};
  32. % Edge: 2 -> 4
  33. \draw [->] (22.182bp,29.536bp) .. controls (40.588bp,27.986bp) and (80.592bp,25.495bp) .. (114.0bp,29.5bp) .. controls (132.62bp,31.732bp) and (153.33bp,37.017bp) .. (178.08bp,44.285bp);
  34. \draw (100.0bp,37.0bp) node {$$2$$};
  35. % Edge: 2 -> 6
  36. \draw [->] (21.645bp,33.374bp) .. controls (32.91bp,36.821bp) and (52.04bp,42.96bp) .. (68.0bp,49.5bp) .. controls (72.232bp,51.234bp) and (76.703bp,53.271bp) .. (89.911bp,59.734bp);
  37. \draw (54.0bp,57.0bp) node {$$7$$};
  38. % Edge: 4 -> 3
  39. \draw [->] (199.67bp,50.723bp) .. controls (207.24bp,53.246bp) and (218.02bp,56.839bp) .. (237.09bp,63.197bp);
  40. % Edge: 5 -> 3
  41. \draw [->] (199.67bp,83.938bp) .. controls (207.41bp,81.085bp) and (218.51bp,76.995bp) .. (237.47bp,70.01bp);
  42. % Edge: 6 -> 4
  43. \draw [->] (109.85bp,58.993bp) .. controls (115.85bp,55.569bp) and (124.11bp,51.458bp) .. (132.0bp,49.5bp) .. controls (143.63bp,46.614bp) and (157.04bp,46.043bp) .. (177.91bp,46.626bp);
  44. \draw (146.0bp,57.0bp) node {$$2$$};
  45. % Edge: 6 -> 5
  46. \draw [->] (110.98bp,67.138bp) .. controls (124.94bp,70.83bp) and (150.6bp,77.612bp) .. (178.14bp,84.892bp);
  47. \draw (146.0bp,87.0bp) node {$$4$$};
  48. % Node: 1
  49. \begin{scope}
  50. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  51. \pgfsetstrokecolor{strokecol}
  52. \draw (11.0bp,101.5bp) ellipse (11.0bp and 11.0bp);
  53. \draw (11.0bp,101.5bp) node {$\lnot c$};
  54. \end{scope}
  55. % Node: 5
  56. \begin{scope}
  57. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  58. \pgfsetstrokecolor{strokecol}
  59. \draw (189.0bp,87.5bp) ellipse (11.0bp and 11.0bp);
  60. \draw (189.0bp,87.5bp) node {$\lnot d$};
  61. \end{scope}
  62. % Node: 6
  63. \begin{scope}
  64. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  65. \pgfsetstrokecolor{strokecol}
  66. \draw (100.0bp,64.5bp) ellipse (11.0bp and 11.0bp);
  67. \draw (100.0bp,64.5bp) node {$\lnot e$};
  68. \end{scope}
  69. % Node: 2
  70. \begin{scope}
  71. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  72. \pgfsetstrokecolor{strokecol}
  73. \draw (11.0bp,30.5bp) ellipse (11.0bp and 11.0bp);
  74. \draw (11.0bp,30.5bp) node {$\lnot a$};
  75. \end{scope}
  76. % Node: 4
  77. \begin{scope}
  78. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  79. \pgfsetstrokecolor{strokecol}
  80. \draw (189.0bp,47.5bp) ellipse (11.0bp and 11.0bp);
  81. \draw (189.0bp,47.5bp) node {$d$};
  82. \end{scope}
  83. % Node: 3
  84. \begin{scope}
  85. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  86. \pgfsetstrokecolor{strokecol}
  87. \draw (248.0bp,66.5bp) ellipse (11.0bp and 11.0bp);
  88. \draw (248.0bp,66.5bp) node {$\bot$};
  89. \end{scope}
  90. %
  91. \end{tikzpicture}
  92. }
  93. \begin{prooftree}
  94. \AxiomC{$2. \; a \lor d \lor e$}
  95. \AxiomC{$4. \; c \lor \lnot d \lor e$}
  96. \BinaryInfC{$a \lor e \lor c$}
  97. \AxiomC{$7. \; a \lor c \lor \lnot e$}
  98. \BinaryInfC{$a \lor c$}
  99. \end{prooftree}
  100. \hspace{-0.09cm}\scalebox{0.85}{
  101. \begin{dplltabular}{3}
  102. \dpllStep{7|8|9}
  103. \dpllDecL{1|1|1}
  104. \dpllAssi{$\lnot a, b$|$\lnot a, b, c$|\makecell{$\lnot a, b, c, $ \\ $e$}}
  105. \dpllClause{1}{$\lnot a, \lnot b$}{\done|\done|\done}
  106. \dpllClause{2}{$a, d, e$}{$d, e$|$d, e$|\done}
  107. \dpllClause{3}{$b, \lnot c$}{\done|\done|\done}
  108. \dpllClause{4}{$c, \lnot d, e$}{$c, \lnot d, e$|\done|\done}
  109. \dpllClause{5}{$\lnot c, e$}{$\lnot c, e$|$e$|\done}
  110. \dpllClause{6}{$\lnot a, b$}{\done|\done|\done}
  111. \dpllClause{7}{$a, c, \lnot e$}{$c, \lnot e$|\done|\done}
  112. \dpllClause{8}{$a, c$}{$c$|\done|\done}
  113. \dpllBCP{$c$|$e$| - }
  114. \dpllPL{ - | - | - }
  115. \dpllDeci{ - | - |SAT}
  116. \end{dplltabular}
  117. }