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.

36 lines
1.3 KiB

5 months ago
  1. \item \ifassignmentsheet \points{2} \else \prac \fi Consider the propositional formula $\phi = (p \lor \lnot q) \imp (\lnot p \land \lnot r)$. Fill out the truth table for $\phi$
  2. and its subformulas. Compute a CNF as well as a DNF for $\phi$ from
  3. the truth table.
  4. \begin{tabular}{|c|c|c||c|c|c|c|c||c|}
  5. \hline
  6. $p$ & $q$ & $r$ & $\lnot q$ & $p \lor \lnot q$ & $\lnot p$ & $\lnot r$ & $\lnot p \land \lnot r$ & $\phi = (p \lor \lnot q) \imp (\lnot p \land \lnot r)$\\
  7. \hline
  8. \hline%p q r %!q !p !r phi
  9. \F &\F &\F & \T&\T &\T &\T &\T &\T\\ \hline
  10. \F &\F &\T & \T&\T &\T &\F &\F &\F\\ \hline
  11. \F &\T &\F & \F&\F &\T &\T &\T &\T\\ \hline
  12. \F &\T &\T & \F&\F &\T &\F &\F &\T\\ \hline
  13. \T &\F &\F & \T&\T &\F &\T &\F &\F\\ \hline
  14. \T &\F &\T & \T&\T &\F &\F &\F &\F\\ \hline
  15. \T &\T &\F & \F&\T &\F &\T &\F &\F\\ \hline
  16. \T &\T &\T & \F&\T &\F &\F &\F &\F\\ \hline
  17. \end{tabular}
  18. The resulting CNF:
  19. \begin{align*}
  20. (\clause{p;q;\lnot r})&~\land \\
  21. (\clause{\lnot p;q;r})&~\land \\
  22. (\clause{\lnot p;q;\lnot r})&~\land \\
  23. (\clause{\lnot p;\lnot q;r})&~\land \\
  24. (\clause{\lnot p;\lnot q;\lnot r})&
  25. \end{align*}
  26. The resulting DNF:
  27. \begin{align*}
  28. (\cube{\lnot p;\lnot q;\lnot r})&~\lor \\
  29. (\cube{\lnot p; q;\lnot r})&~\lor \\
  30. (\cube{\lnot p; q; r})&
  31. \end{align*}