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.9 KiB

5 months ago
  1. \hspace{-0.09cm}\scalebox{0.85}{
  2. \begin{dplltabular}{5}
  3. \dpllStep{12|13|14|15|16}
  4. \dpllDecL{0|0|0|0|0}
  5. \dpllAssi{ - |$a$|$a, b$|$a, b, c$|\makecell{$a, b, c, $ \\ $\lnot d$}}
  6. \dpllClause{1}{$\lnot a, \lnot d$}{$\lnot a, \lnot d$|$\lnot d$|$\lnot d$|$\lnot d$|\done}
  7. \dpllClause{2}{$a, b, c$}{$a, b, c$|\done|\done|\done|\done}
  8. \dpllClause{3}{$\lnot a, b$}{$\lnot a, b$|$b$|\done|\done|\done}
  9. \dpllClause{4}{$\lnot b, c$}{$\lnot b, c$|$\lnot b, c$|$c$|\done|\done}
  10. \dpllClause{5}{$\lnot c, d$}{$\lnot c, d$|$\lnot c, d$|$\lnot c, d$|$d$|\conflict}
  11. \dpllClause{6}{$\lnot c, e$}{$\lnot c, e$|$\lnot c, e$|$\lnot c, e$|$e$|$e$}
  12. \dpllClause{7}{$\lnot d, \lnot e$}{$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|$\lnot d, \lnot e$|\done}
  13. \dpllClause{8}{$a, b$}{$a, b$|\done|\done|\done|\done}
  14. \dpllClause{9}{$a$}{$a$|\done|\done|\done|\done}
  15. \dpllBCP{$a$|$b$|$c$|$\lnot d$| - }
  16. \dpllPL{ - | - | - | - | - }
  17. \dpllDeci{ - | - | - | - |UNSAT}
  18. \end{dplltabular}
  19. }
  20. Conflict in step 16\\
  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 -> 1
  32. \draw [->] (216.0bp,49.131bp) .. controls (240.99bp,46.927bp) and (308.17bp,40.812bp) .. (364.0bp,34.0bp) .. controls (366.51bp,33.694bp) and (369.14bp,33.349bp) .. (381.9bp,31.544bp);
  33. % Edge: 3 -> 4
  34. \draw [->] (173.3bp,11.0bp) .. controls (186.47bp,11.0bp) and (209.58bp,11.0bp) .. (236.88bp,11.0bp);
  35. \draw (205.0bp,18.5bp) node {$$4$$};
  36. % Edge: 4 -> 5
  37. \draw [->] (259.3bp,11.0bp) .. controls (272.47bp,11.0bp) and (295.58bp,11.0bp) .. (322.88bp,11.0bp);
  38. \draw (291.0bp,18.5bp) node {$$5$$};
  39. % Edge: 5 -> 1
  40. \draw [->] (344.67bp,14.223bp) .. controls (352.24bp,16.746bp) and (363.02bp,20.339bp) .. (382.09bp,26.697bp);
  41. % Edge: 6 -> 2
  42. \draw [->] (86.965bp,32.491bp) .. controls (107.83bp,35.613bp) and (156.46bp,42.888bp) .. (194.08bp,48.516bp);
  43. \draw (119.0bp,46.5bp) node {$$1$$};
  44. % Edge: 6 -> 3
  45. \draw [->] (85.22bp,24.026bp) .. controls (90.504bp,19.994bp) and (97.72bp,15.28bp) .. (105.0bp,13.0bp) .. controls (116.44bp,9.4177bp) and (129.84bp,8.8202bp) .. (150.82bp,9.7781bp);
  46. \draw (119.0bp,20.5bp) node {$$3$$};
  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 {$a$};
  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 (205.0bp,50.0bp) ellipse (11.0bp and 11.0bp);
  66. \draw (205.0bp,50.0bp) node {$\lnot 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 (162.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  73. \draw (162.0bp,11.0bp) node {$b$};
  74. \end{scope}
  75. % Node: 4
  76. \begin{scope}
  77. \definecolor{strokecol}{rgb}{0.0,0.0,0.0};
  78. \pgfsetstrokecolor{strokecol}
  79. \draw (248.0bp,11.0bp) ellipse (11.0bp and 11.0bp);
  80. \draw (248.0bp,11.0bp) node {$c$};
  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 {$d$};
  88. \end{scope}
  89. %
  90. \end{tikzpicture}
  91. }
  92. \begin{prooftree}
  93. \AxiomC{$5. \; \lnot c \lor d$}
  94. \AxiomC{$4. \; \lnot b \lor c$}
  95. \BinaryInfC{$d \lor \lnot b$}
  96. \AxiomC{$1. \; \lnot a \lor \lnot d$}
  97. \BinaryInfC{$\lnot b \lor \lnot a$}
  98. \AxiomC{$3. \; \lnot a \lor b$}
  99. \BinaryInfC{$\lnot a$}
  100. \AxiomC{$9. \; a$}
  101. \BinaryInfC{$\bot$}
  102. \end{prooftree}