I'm doing a practice quiz for a quiz tomorrow on logical predicates and I'm stuck on figuring out how to solve this question below. Assuming all premises are true, I'm asked to prove that the following argument is valid using only the rules of inferences and logical equivalences.
The universe of discourse is all animals.
Given:
Animals that live in the swamp can swim.
Some rats live in the swamp.
All rats have large teeth.
Show:
There is a rat that has large teeth and can swim.
What I did so far:
Let W(x) be "x lives in a swamp", S(x) be "x can swim", R(x) be "x is a rat", and T(x) be "x has large teeth"
Translate premises:
1) ∀x(W(x) → S(x))
2) ∃x(R(x) ∧ W(x))
3) ∀x(R(x) → T(x))
Prove (not sure if this is wrong): ∃x(R(x) ∧ T(x) ∧ S(x))
My solution so far:
1) ∀x(W(x) → S(x))
2) ∃x(R(x) ∧ W(x))
3) ∀x(R(x) → T(x))
4) R(y) ∧ W(y) by existential instantiation (2)
5) W(y) → S(y) by universal instantiation (1)
6) W(y) by simplification (4)
7) S(y) by modus ponens (5, 6)
8) R(y) → T(y) by universal instantiation (3)
9) R(y) by simplification (4)
10) T(y) by modus ponens (8,9)
11) S(y) ∧ T(y) by conjunction (7, 10)
12) R(y) by simplification (4)
13) (S(y) ∧ T(y)) ∧ R(y) by conjunction (11, 12)
14) R(y) ∧ T(y) ∧ S(y) by commutativity (13)
15) ∃x(R(x) ∧ T(x) ∧ S(x)) by existential generalization (14)
UPDATE: Okay so I fixed some errors and I think I got an answer? I would appreciate if someone could confirm my new solution and tell me if I made any errors.
I'm still a little unsure about my proof statement "There is a rat that has large teeth and can swim." I got ∃x(R(x) ∧ T(x) ∧ S(x)) but was wondering if it could be ∃x(R(x) → (T(x) ∧ S(x))). What would be the difference between the two?
Your proof is correct!
Note that you can avoid commutation on line 14, because you can conjunct statement in any order. For example, it is ok to derive $T(y) \land S(y)$ on line 11 ... you just have to say "Conjunction 10,7" rather than "Conjunction 7,10".
In fact, if your book or instructor allows generalized conjunctions (i.e. if it allows a statement like $\exists x (R(x) \land T(x) \land S(x))$ without any further parentheses) then you are probably allowed to apply conjunction to any number of statements as well, i.e. you can go straight from 12, 10, and 7 to $R(y) \land T(y) \land S(y)$.
Finally, yes, $\exists x (R(x) \land T(x) \land S(x))$ is the correct statement to prove. Note that $\exists x (R(x) \to (T(x) \land S(x)))$ would be true if there is at least one object in the domain that is not a rat (for then for that object $R(x)$ is fklase, and hence the whole conditional $R(x) \to (T(x) \land S(x))$ would be true, and hence we would have $\exists x (R(x) \to (T(x) \land S(x)))$, even if there would be no rats that can swim and have large teeth .. clearly not what we want!