
Alex V. answered 11/23/21
PhD student with 7+ years of teaching experience
it looks correct to me!
I'm not sure what all rules of inference you're allowed to use, but another way to do it is on line 6, instead of doing an indirect proof, you could use lines 3 and 5 to get ~D by modus tollens. If you can't use modus tollens, another way to go would be to go from the biconditional on line 4 to (c & d ) v (~c & ~d) by material equivalence. then you can use disjunctive syllogism with that and ~c on line 3 to get (~c & ~d) and then do a conjunction elimination.