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.

97 lines
3.4 KiB

9 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{5}
  3. \dpllStep{1|2|3|4|5}
  4. \dpllDecL{0|0|0|1|1}
  5. \dpllAssi{ - |$b$|$b, \lnot e$|$b, \lnot e, \lnot a$|\makecell{$b, \lnot e, \lnot a, $ \\ $\lnot c$}}
  6. \dpllClause{1}{$a, \lnot c$}{$a, \lnot c$|$a, \lnot c$|$a, \lnot c$|$\lnot c$|\done}
  7. \dpllClause{2}{$b, c, e$}{$b, c, e$|\done|\done|\done|\done}
  8. \dpllClause{3}{$b, e$}{$b, e$|\done|\done|\done|\done}
  9. \dpllClause{4}{$\lnot a, c$}{$\lnot a, c$|$\lnot a, c$|$\lnot a, c$|\done|\done}
  10. \dpllClause{5}{$d, \lnot e$}{$d, \lnot e$|$d, \lnot e$|\done|\done|\done}
  11. \dpllClause{6}{$b, \lnot d$}{$b, \lnot d$|\done|\done|\done|\done}
  12. \dpllClause{7}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|\done|\done|\done}
  13. \dpllClause{8}{$a, c$}{$a, c$|$a, c$|$a, c$|$c$|\conflict}
  14. \dpllBCP{ - | - | - |$\lnot c$| - }
  15. \dpllPL{$b$|$\lnot e$| - | - | - }
  16. \dpllDeci{ - | - |$\lnot a$| - | - }
  17. \end{dplltabular}
  18. }
  19. Conflict in step 5\\
  20. \scalebox{0.75}{
  21. \begin{tikzpicture}[>=latex,line join=bevel,]
  22. \pgfsetlinewidth{1bp}
  23. %%
  24. \pgfsetcolor{black}
  25. % Edge: 1 -> 3
  26. \draw [->] (21.966bp,33.373bp) .. controls (35.227bp,36.53bp) and (58.98bp,42.186bp) .. (86.047bp,48.63bp);
  27. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  28. \pgfsetstrokecolor{strokecol}
  29. \draw (54.0bp,50.5bp) node {$$1$$};
  30. % Edge: 1 -> 4
  31. \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);
  32. \draw (54.0bp,26.5bp) node {$$8$$};
  33. % Edge: 3 -> 2
  34. \draw [->] (107.67bp,47.438bp) .. controls (115.41bp,44.585bp) and (126.51bp,40.495bp) .. (145.47bp,33.51bp);
  35. % Edge: 4 -> 2
  36. \draw [->] (107.67bp,14.223bp) .. controls (115.24bp,16.746bp) and (126.02bp,20.339bp) .. (145.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 {$\lnot a$};
  43. \end{scope}
  44. % Node: 3
  45. \begin{scope}
  46. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  47. \pgfsetstrokecolor{strokecol}
  48. \draw (97.0bp,51.0bp) ellipse (11.0bp and 11.0bp);
  49. \draw (97.0bp,51.0bp) node {$\lnot c$};
  50. \end{scope}
  51. % Node: 4
  52. \begin{scope}
  53. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  54. \pgfsetstrokecolor{strokecol}
  55. \draw (97.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  56. \draw (97.0bp,11.0bp) node {$c$};
  57. \end{scope}
  58. % Node: 2
  59. \begin{scope}
  60. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  61. \pgfsetstrokecolor{strokecol}
  62. \draw (156.0bp,30.0bp) ellipse (11.0bp and 11.0bp);
  63. \draw (156.0bp,30.0bp) node {$\bot$};
  64. \end{scope}
  65. %
  66. \end{tikzpicture}
  67. }
  68. \begin{prooftree}
  69. \AxiomC{$1. \; a \lor \lnot c$}
  70. \AxiomC{$8. \; a \lor c$}
  71. \BinaryInfC{$a$}
  72. \end{prooftree}
  73. \hspace{-0.09cm}\scalebox{0.85}{
  74. \begin{dplltabular}{3}
  75. \dpllStep{6|7|8}
  76. \dpllDecL{0|0|0}
  77. \dpllAssi{$b, \lnot e$|$b, \lnot e, a$|\makecell{$b, \lnot e, a, $ \\ $c$}}
  78. \dpllClause{1}{$a, \lnot c$}{$a, \lnot c$|\done|\done}
  79. \dpllClause{2}{$b, c, e$}{\done|\done|\done}
  80. \dpllClause{3}{$b, e$}{\done|\done|\done}
  81. \dpllClause{4}{$\lnot a, c$}{$\lnot a, c$|$c$|\done}
  82. \dpllClause{5}{$d, \lnot e$}{\done|\done|\done}
  83. \dpllClause{6}{$b, \lnot d$}{\done|\done|\done}
  84. \dpllClause{7}{$\lnot d, \lnot e$}{\done|\done|\done}
  85. \dpllClause{8}{$a, c$}{$a, c$|\done|\done}
  86. \dpllClause{9}{$a$}{$a$|\done|\done}
  87. \dpllBCP{$a$|$c$| - }
  88. \dpllPL{ - | - | - }
  89. \dpllDeci{ - | - |SAT}
  90. \end{dplltabular}
  91. }