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.

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