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.

107 lines
3.8 KiB

5 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{5}
  3. \dpllStep{10|11|12|13|14}
  4. \dpllDecL{0|0|0|0|0}
  5. \dpllAssi{$a$|$a, b$|$a, b, d$|\makecell{$a, b, d, $ \\ $\lnot c$}|\makecell{$a, b, d, $ \\ $\lnot c, \lnot e$}}
  6. \dpllClause{1}{$\lnot a, b, c$}{$b, c$|\done|\done|\done|\done}
  7. \dpllClause{2}{$a, c$}{\done|\done|\done|\done|\done}
  8. \dpllClause{3}{$b, \lnot c$}{$b, \lnot c$|\done|\done|\done|\done}
  9. \dpllClause{4}{$\lnot b, d$}{$\lnot b, d$|$d$|\done|\done|\done}
  10. \dpllClause{5}{$\lnot c, \lnot d$}{$\lnot c, \lnot d$|$\lnot c, \lnot d$|$\lnot c$|\done|\done}
  11. \dpllClause{6}{$c, e$}{$c, e$|$c, e$|$c, e$|$e$|\conflict}
  12. \dpllClause{7}{$c, \lnot e$}{$c, \lnot e$|$c, \lnot e$|$c, \lnot e$|$\lnot e$|\done}
  13. \dpllClause{8}{$a$}{\done|\done|\done|\done|\done}
  14. \dpllClause{9}{$b$}{$b$|\done|\done|\done|\done}
  15. \dpllBCP{$b$|$d$|$\lnot c$|$\lnot e$| - }
  16. \dpllPL{ - | - | - | - | - }
  17. \dpllDeci{ - | - | - | - |UNSAT}
  18. \end{dplltabular}
  19. }
  20. Conflict in step 14\\
  21. \scalebox{0.75}{
  22. \begin{tikzpicture}[>=latex,line join=bevel,]
  23. \pgfsetlinewidth{1bp}
  24. %%
  25. \pgfsetcolor{black}
  26. % Edge: 0 -> 6
  27. \draw [->] (1.0536bp,31.0bp) .. controls (2.5071bp,31.0bp) and (33.188bp,31.0bp) .. (64.696bp,31.0bp);
  28. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  29. \pgfsetstrokecolor{strokecol}
  30. \draw (33.0bp,38.5bp) node {$$9$$};
  31. % Edge: 2 -> 3
  32. \draw [->] (173.3bp,31.0bp) .. controls (186.47bp,31.0bp) and (209.58bp,31.0bp) .. (236.88bp,31.0bp);
  33. \draw (205.0bp,38.5bp) node {$$5$$};
  34. % Edge: 3 -> 4
  35. \draw [->] (258.97bp,33.373bp) .. controls (272.23bp,36.53bp) and (295.98bp,42.186bp) .. (323.05bp,48.63bp);
  36. \draw (291.0bp,50.5bp) node {$$6$$};
  37. % Edge: 3 -> 5
  38. \draw [->] (258.11bp,26.371bp) .. controls (263.48bp,23.828bp) and (270.48bp,20.828bp) .. (277.0bp,19.0bp) .. controls (288.65bp,15.733bp) and (302.06bp,13.758bp) .. (322.92bp,11.639bp);
  39. \draw (291.0bp,26.5bp) node {$$7$$};
  40. % Edge: 4 -> 1
  41. \draw [->] (344.67bp,47.438bp) .. controls (352.41bp,44.585bp) and (363.51bp,40.495bp) .. (382.47bp,33.51bp);
  42. % Edge: 5 -> 1
  43. \draw [->] (344.67bp,14.223bp) .. controls (352.24bp,16.746bp) and (363.02bp,20.339bp) .. (382.09bp,26.697bp);
  44. % Edge: 6 -> 2
  45. \draw [->] (87.3bp,31.0bp) .. controls (100.47bp,31.0bp) and (123.58bp,31.0bp) .. (150.88bp,31.0bp);
  46. \draw (119.0bp,38.5bp) node {$$4$$};
  47. % Node: 6
  48. \begin{scope}
  49. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  50. \pgfsetstrokecolor{strokecol}
  51. \draw (76.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  52. \draw (76.0bp,31.0bp) node {$b$};
  53. \end{scope}
  54. % Node: 1
  55. \begin{scope}
  56. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  57. \pgfsetstrokecolor{strokecol}
  58. \draw (393.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  59. \draw (393.0bp,30.0bp) node {$\bot$};
  60. \end{scope}
  61. % Node: 2
  62. \begin{scope}
  63. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  64. \pgfsetstrokecolor{strokecol}
  65. \draw (162.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  66. \draw (162.0bp,31.0bp) node {$d$};
  67. \end{scope}
  68. % Node: 3
  69. \begin{scope}
  70. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  71. \pgfsetstrokecolor{strokecol}
  72. \draw (248.0bp,31.0bp) ellipse (11.0bp and 11.0bp);
  73. \draw (248.0bp,31.0bp) node {$\lnot c$};
  74. \end{scope}
  75. % Node: 4
  76. \begin{scope}
  77. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  78. \pgfsetstrokecolor{strokecol}
  79. \draw (334.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  80. \draw (334.0bp,51.0bp) node {$e$};
  81. \end{scope}
  82. % Node: 5
  83. \begin{scope}
  84. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  85. \pgfsetstrokecolor{strokecol}
  86. \draw (334.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  87. \draw (334.0bp,11.0bp) node {$\lnot e$};
  88. \end{scope}
  89. %
  90. \end{tikzpicture}
  91. }
  92. \begin{prooftree}
  93. \AxiomC{$6. \; c \lor e$}
  94. \AxiomC{$7. \; c \lor \lnot e$}
  95. \BinaryInfC{$c$}
  96. \AxiomC{$5. \; \lnot c \lor \lnot d$}
  97. \BinaryInfC{$\lnot d$}
  98. \AxiomC{$4. \; \lnot b \lor d$}
  99. \BinaryInfC{$\lnot b$}
  100. \AxiomC{$9. \; b$}
  101. \BinaryInfC{$\bot$}
  102. \end{prooftree}