I am working on a propositional calculus proof and I would like to confirm that my proof is correct as I am not familiar with these yet.
EDIT: we are using Mathematics of Discrete Structures for Computer Science by Gordon Pace.
These are the Equivalence Laws that we were given: http://www.filedropper.com/laws
According to Peter Smith's comment on his answer below:
From what's available by way of online excerpts, Pace seems to be using a standard Natural Deduction system, with subproofs
¬∀x:X.¬(P⇒Q)⊣⊢∃x:X.(¬P∨Q)
My main reason for worrying is that these proofs seem to be the opposites of each other.
1 ¬∀x:X.¬(P⇒Q) hypothesis
2 ∃x:X.¬¬(P⇒Q) ∃x:X.P ≡ ¬∀x:X.¬P
3 ¬¬(P⇒Q)[x\x] ∃ elimination
4 ¬¬(P⇒Q) P ≡ P[x\x]
5 P⇒Q double negation
6 ¬P∨Q P⇒Q ≡ ¬P∨Q
7 (¬P∨Q)[x\x] P ≡ P[x\x]
8 ∃x:X.(¬P∨Q) ∃ introduction
o//o proven for LHS
9 ∃x:X.(¬P∨Q) hypothesis
10 (¬P∨Q)[x\x] ∃ elimination
11 ¬P∨Q P ≡ P[x\x]
12 P⇒Q P⇒Q ≡ ¬P∨Q
13 (P⇒Q)[x\x] P ≡ P[x\x]
14 ∃x:X.(P⇒Q) ∃ introduction
15 ¬∀x:X.¬(P⇒Q) ∃x:X.P ≡ ¬∀x:X.¬P
o//o proven for RHS
Thank you in advance for your suggestions.
UPDATE:
I have a "model answer" for a similar problem.
∀x:X.¬(P^Q)⊣⊢∃x:X.¬(¬P∨¬Q)
1 ∀x:X.¬(P^Q) hypothesis
2 ¬(P^Q)[x\x] ∀ elimination
3 ¬(P^Q) P ≡ P[x\x]
4 ∃x:X.¬(¬P∨¬Q) assume
5 ¬(P^Q) copy 3
6 ∃x:X.¬(¬P∨¬Q) assume
7 ¬(¬P∨¬Q) sub-hypothesis
8 ¬(P^Q) De Morgan's law
9 ¬(¬P∨¬Q)⇒(P^Q) ⇒ introduction on 7-8
10 (¬(¬P∨¬Q)⇒(P^Q))[x\x] P ≡ P[x\x]
11 ∀x:X.((¬(P^Q))⇒(P^Q)) ∀ introduction
12 P^Q ∃ elimination using 6
13 ∃x:X.¬(¬P∨¬Q) ¬ introduction by contradiction using 4-5, 6-12
o//o proven for LHS
14 ∃x:X.¬(¬P∨¬Q) hypothesis
15 ∀x:X.(¬P∨¬Q) ∃x:X.P ≡ ¬∀x:X.¬P
16 (¬P∨¬Q)[x\x] ∀ elimination
17 ¬P∨¬Q P ≡ P[x\x]
18 ¬P assume
19 P^Q sub-hypothesis
20 P ^ elimination type 1 on 19
21 P^Q sub-hypothesis
22 ¬P copy 18
23 ¬(P∨Q) ¬ introduction by contradiction using 19-20, 21-22
24 ¬Q assume
25 P^Q sub-hypothesis
26 Q ^ elimination type 1 on 25
27 P^Q sub-hypothesis
28 ¬Q copy 24
29 ¬(P∨Q) ¬ introduction by contradiction using 25-26,27-28
30 ¬(P^Q) V elimination using 18-23, 24-29
31 ¬(P^Q)[x\x] P ≡ P[x\x]
32 ∀x:X.¬(P^Q) ∀ introduction
o//o proven for LHS
In an alternate method, steps 18 - 29 could be avoided by using De Morgan's law where
¬(P^Q) ≡ (¬P∨¬Q)
Thanks in advance for looking into this.
Final update: I have managed to avoid doing this question, but thanks to all the people who tried to help me. I'll look at the answers right now and mark the best one for future reference.
A normal deduction of this sort of thing, using "introduction" and "elimination" rules, would look more like this: