Using the the ten inferences of the Natural Deduction System prove DeMorgan's laws.
The Rules of Natural Deduction
Negation Introduction:
{(P → Q), (P → ¬Q)} ⊢ ¬P
Negation Elimination:
{(¬P → Q), (¬P → ¬Q)} ⊢ P
And Introduction:
{P, Q} ⊢ P ʌ Q
And Elimination:
P ʌ Q ⊢ {P, Q}
Or Introduction:
P ⊢ {(P ∨ Q),(Q ∨ P)}
Or Elimination:
{(P ∨ Q), (P → R), (Q → R)} ⊢ R
Iff Introduction:
{(P → Q), (Q → P)} ⊢ (P ≡ Q)
Iff Elimination:
(P ≡ Q) ⊢ {(P → Q), (Q → P)}
If Introduction:
(P ⊢ Q) ⊢ (P → Q)
If Elimination:
{(P → Q), P} ⊢ Q
Proof structure
Each statement in your proof must be the result of one of the ten rules applied to some previously derived propositions (no circular logic) or an assumption (described below). Each rule operates across some propositions on the left hand side of the ⊢
(logical consequence operator) and creates any number of propositions from the right hand side. The If Introduction works slightly differently from the rest of the operators (described in detail below). It operates across one statement that is the logical consequent of another.
Example 1
You have the following statements:
{(P → R), Q}
You may use And Introduction to make:
(P → R) ʌ Q
Example 2
You have the following statements:
{(P → R), P}
You may use If Elimination to make:
R
Example 3
You have the following statements:
(P ʌ Q)
You may use And Elimination to make:
P
or to make:
Q
Assumption Propagation
You may at any point assume any statement you wish. Any statement derived from these assumptions will be "reliant" on them. Statements will also be reliant on the assumptions their parent statements rely on. The only way to eliminate assumptions is by If Introduction. For If introduction you start with a Statement Q
that is reliant on a statement P
and end with (P → Q)
. The new statement is reliant on every assumption Q
relies on except for assumption P
. Your final statement should rely on no assumptions.
Specifics and scoring
You will construct one proof for each of DeMorgan's two laws using only the 10 inferences of the Natural Deduction Calculus.
The two rules are:
¬(P ∨ Q) ≡ ¬P ʌ ¬Q
¬(P ʌ Q) ≡ ¬P ∨ ¬Q
Your score is the number of inferences used plus the number of assumptions made. Your final statement should not rely on any assumptions (i.e. should be a theorem).
You are free to format your proof as you see fit.
You may carry over any Lemmas from one proof to another at no cost to score.
Example Proof
I will prove that (P and not(P)) implies Q
(Each bullet point is +1 point)
Assume
not (Q)
Assume
(P and not(P))
Using And Elim on
(P and not(P))
derive{P, not(P)}
Use And Introduction on
P
andnot(Q)
to derive(P and not(Q))
Use And Elim on the statement just derived to make
P
The new P
proposition is different from the other one we derive earlier. Namely it is reliant on the assumptions not(Q)
and (P and not(P))
. Whereas the original statement was reliant only on (P and not(P))
. This allows us to do:
If Introduction on
P
introducingnot(Q) implies P
(still reliant on the(P and not(P))
assumption)Use And Introduction on
not(P)
andnot(Q)
(from step 3) to derive(not(P) and not(Q))
Use And Elim on the statement just derived to make
not(P)
(now reliant onnot(Q)
)If Introduction on the new
not(P)
introducingnot(Q) implies not(P)
We will now use negation elimination on
not(Q) implies not(P)
andnot(Q) implies P
to deriveQ
This Q
is reliant only on the assumption (P and not(P))
so we can finish the proof with
- If Introduction on
Q
to derive(P and not(P)) implies Q
This proof scores a total of 11.
⊢
(the symbol also doesn't render for me on mobile). \$\endgroup\$(P ⊢ (Q ⊢ R)) ⊢ (Q ⊢ (P ⊢ R))
(in this instance,¬Q ⊢ ((P ʌ ¬P) ⊢ P)
to(P ʌ ¬P) ⊢ (¬Q ⊢ P)
was used). \$\endgroup\$(assume (P/\~P); P,~P by and-elim; (assume ~Q; P by assumption; ~P by assumption); ~Q->P by impl-intro; ~Q->~P by impl-intro; Q by neg-elim); P/\~P->Q by impl-intro
to get a score of 9? \$\endgroup\$