logic homework 5

homework on formal proofs, using logic formulas, deduction theorem
prove/disprove:
premises:
  1. $\lnot p \lor q$
  2. $\lnot q \lor (r \land s)$
  3. $\lnot r \lor p$
conclusion:
$\lnot (p \lor r)$
theres no way forward.. imma try a counter example
$p \lor r$ has to be true
$\lnot p \lor q$ has to be true
$\lnot r \lor p$ has to be true
pick the combination $p=T,q=T,r=T,s=T$
$\lnot p \lor q \equiv F \lor T \equiv T$
$\lnot q \lor (r \land s) \equiv F \lor (T \land T) \equiv F \lor T \equiv T$
$\lnot r \lor p \equiv F \lor T \equiv T$
$\lnot (p \lor r) \equiv \lnot (T \lor T) \equiv \lnot T \equiv F$
we provided an example where the premises are true but the conclusion isnt, so indeed the argument is invalid
prove/disprove:
premises:
  1. $p \to (q \to r)$
  2. $q \to (p \to r)$
conclusion:
$(p \lor q) \to r$
couldnt make it any further so im gonna propose a counter example
we need an example where the permises are true but the conclusion isnt, the conclusion is false when $r$ is false but $p \lor q$ is true, and according to the first line in the incomplete proof, which is true, if $r$ is false then $p \land q$ must be false aswell, so we pick the combination $p=F,q=T,r=F$ which satisfies these conditions
$p \to (q \to r)$ becomes $F \to (T \to F) \equiv F \to F \equiv T$, check
$q \to (p \to r)$ becomes $T \to (F \to F) \equiv T \to T \equiv T$, check
$(p \lor q) \to r$ becomes $(F \lor T) \to F \equiv T \to F$ which is false, so the conclusion isnt true which means the argument is false
prove/disprove:
premises:
  1. $(a \lor p) \to b$
  2. $c \to (d \land p)$
conclusion:
$(a \lor c) \to (b \land d)$
couldnt continue, will try providing a counter example
$a \lor c$ has to be true
$b \land d$ has to be false
we pick $a=T,p=F,b=T,c=F,d=F$
$(a \lor p) \to b \equiv (F \lor F) \to T \equiv T$
$c \to (d \land p) \equiv F \to (F \land F) \equiv F \to F \equiv T$
$(a \lor c) \to (b \land d) \equiv (T \lor F) \to (T \land F) \equiv T \to F \equiv F$
we provided an example where the premises are true but the conclusion isnt, so indeed the argument is invalid
prove/disprove:
premises:
  1. $\lnot b \to \lnot (\lnot g \to c)$
  2. $b \to a$
  3. $\lnot b \to e$
  4. $\lnot e \lor d$
conclusion:
$\lnot a \to \lnot (c \lor \lnot d)$
prove/disprove:
premises:
  1. $p \to q$
  2. $q \to (r \land s)$
  3. $r \to p$
conclusion:
$(q \lor r) \to (p \land r)$
prove/disprove:
premises:
  1. $p \lor q$
  2. $(q \land s) \to \lnot p$
  3. $(p \land \lnot s) \lor r$
conclusion:
$(s \lor r) \to p$
couldnt continue, will try providing a counter example
restrictions for the counter example:
  • $s \lor r$ has to be true
  • $p$ has to be false
  • $p \lor q$ has to be true which means $q$ has to be true
  • $r$ has to be true because of $P3$ and $p$ being false
it seems we have a free choice for $s$
so $p$ is false, $q$ is true, $r$ is true, $s$ is false, give us:
$p \lor q \equiv F \lor T \equiv T$ check
$(p \land s) \to \lnot p \equiv (F \land F) \to T \equiv T$
$(p \land \lnot s) \lor r \equiv (F \land T) \lor T \equiv F \lor T \equiv T$
$(s \lor r) \to p \equiv (F \lor T) \to F \equiv T \to F \equiv F$
we provided an example where the premises are true but the conclusion isnt, so indeed the argument is invalid