63

Click here to load reader

How to Prove It

Embed Size (px)

Citation preview

Page 1: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Outline

1 Recap

2 the form P ∧ QGoals of the form P ∧ Q

3 the form P ↔ QTo prove a goal of the form P ↔ Q

Page 2: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form P → Q

Assume P is true and then prove Q

Before using strategy

Givens-

GoalP → Q

After using strategy

Givens--P

GoalQ

Form of final proof

Suppose P.[Proof of Q goes here].

Therefore, P → Q.

Page 3: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form P → Q

Assume P is true and then prove Q

Before using strategy

Givens-

GoalP → Q

After using strategy

Givens--P

GoalQ

Form of final proof

Suppose P.[Proof of Q goes here].

Therefore, P → Q.

Page 4: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form P → Q

Assume P is true and then prove Q

Before using strategy

Givens-

GoalP → Q

After using strategy

Givens--P

GoalQ

Form of final proof

Suppose P.[Proof of Q goes here].

Therefore, P → Q.

Page 5: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form P → Q

Assume P is true and then prove Q

Before using strategy

Givens-

GoalP → Q

After using strategy

Givens--¬Q

Goal¬P

Form of final proof

Suppose Q is false.[Proof of ¬P goes here].

Therefore, P → Q.

Page 6: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form P → Q

Assume P is true and then prove Q

Before using strategy

Givens-

GoalP → Q

After using strategy

Givens--¬Q

Goal¬P

Form of final proof

Suppose Q is false.[Proof of ¬P goes here].

Therefore, P → Q.

Page 7: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form P → Q

Assume P is true and then prove Q

Before using strategy

Givens-

GoalP → Q

After using strategy

Givens--¬Q

Goal¬P

Form of final proof

Suppose Q is false.[Proof of ¬P goes here].

Therefore, P → Q.

Page 8: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form ¬P

If possible, re-express the goal in another form and use aprevious strategy for the re-expressed goal.

Some useful laws to transform a goal

Associative laws Contrapositive law Double negation lawCommutative laws DeMorgan’s laws Idempotent lawsConditional laws Distributive laws Quantifier negation laws

Conditional laws

P → Q is equivalent to ¬P ∨ QP → Q is equivalent to ¬(P ∧ ¬Q)

Page 9: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form ¬P

If possible, re-express the goal in another form and use aprevious strategy for the re-expressed goal.

Some useful laws to transform a goal

Associative laws Contrapositive law Double negation lawCommutative laws DeMorgan’s laws Idempotent lawsConditional laws Distributive laws Quantifier negation laws

Conditional laws

P → Q is equivalent to ¬P ∨ QP → Q is equivalent to ¬(P ∧ ¬Q)

Page 10: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form ¬P

Assume P is true and try to reach a contradiction. Once youhave reached a contradiction, you can conclude that P must befalse.

Before using strategy

Givens-

Goal¬P

After using strategy

Givens-P

GoalContradiction

Form of final proof

Suppose P is true.Proof of contradiction goes here.

Thus, P is false.

Page 11: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form ¬P

Assume P is true and try to reach a contradiction. Once youhave reached a contradiction, you can conclude that P must befalse.

Before using strategy

Givens-

Goal¬P

After using strategy

Givens-P

GoalContradiction

Form of final proof

Suppose P is true.Proof of contradiction goes here.

Thus, P is false.

Page 12: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form ¬P

Assume P is true and try to reach a contradiction. Once youhave reached a contradiction, you can conclude that P must befalse.

Before using strategy

Givens-

Goal¬P

After using strategy

Givens-P

GoalContradiction

Form of final proof

Suppose P is true.Proof of contradiction goes here.

Thus, P is false.

Page 13: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To use a given of the form ¬P

If you are doing a proof by contraction, try making P yourgoal. if you can prove P, then the proof will be complete,because P contradicts the given ¬P.

Before using strategy

Givens¬P-

GoalContradiction

After using strategy

Givens¬P-

GoalP

Form of final proof

Proof of P goes here.Since we already know ¬P, this is a contradiction.

Page 14: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To use a given of the form ¬P

If you are doing a proof by contraction, try making P yourgoal. if you can prove P, then the proof will be complete,because P contradicts the given ¬P.

Before using strategy

Givens¬P-

GoalContradiction

After using strategy

Givens¬P-

GoalP

Form of final proof

Proof of P goes here.Since we already know ¬P, this is a contradiction.

Page 15: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To use a given of the form ¬P

If you are doing a proof by contraction, try making P yourgoal. if you can prove P, then the proof will be complete,because P contradicts the given ¬P.

Before using strategy

Givens¬P-

GoalContradiction

After using strategy

Givens¬P-

GoalP

Form of final proof

Proof of P goes here.Since we already know ¬P, this is a contradiction.

Page 16: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To use a given of the form ¬P

If possible re-express this given in some other form.

Page 17: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

Modus ponens

If we have givensP → Q andPthen we can concludeQ is true.

Modus tollens

If we have givensP → Q and¬Qthen we can conclude¬P is true.

Some advice

Modus ponens and modus tollens can be very useful in proofsand should probably be applied immediately wheneverapplicable in a proof

Page 18: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

Modus ponens

If we have givensP → Q andPthen we can concludeQ is true.

Modus tollens

If we have givensP → Q and¬Qthen we can conclude¬P is true.

Some advice

Modus ponens and modus tollens can be very useful in proofsand should probably be applied immediately wheneverapplicable in a proof

Page 19: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form ∀xP(x)

Let x stand for an arbitrary object and prove P(x).

Before using strategy

Givens-

Goal∀xP(x)

After using strategy

Givens--

GoalP(x)

Form of final proof

Let x be arbitrary.[Proof of P(x) goes here].

Since x was arbitrary, we can conclude that ∀xP(x)

Page 20: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form ∀xP(x)

Let x stand for an arbitrary object and prove P(x).

Before using strategy

Givens-

Goal∀xP(x)

After using strategy

Givens--

GoalP(x)

Form of final proof

Let x be arbitrary.[Proof of P(x) goes here].

Since x was arbitrary, we can conclude that ∀xP(x)

Page 21: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form ∀xP(x)

Let x stand for an arbitrary object and prove P(x).

Before using strategy

Givens-

Goal∀xP(x)

After using strategy

Givens--

GoalP(x)

Form of final proof

Let x be arbitrary.[Proof of P(x) goes here].

Since x was arbitrary, we can conclude that ∀xP(x)

Page 22: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form ∃xP(x)

Try to find a value of x for which you think P(x) will be true.

Before using strategy

Givens--

Goal∃xP(x)

After using strategy

Givens---

GoalP(x)

x= (the value you decided on)

Form of final proof

Let x= (the value you decided on).[Proof of P(x) goes here].

Thus ∃xP(x)

Page 23: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form ∃xP(x)

Try to find a value of x for which you think P(x) will be true.

Before using strategy

Givens--

Goal∃xP(x)

After using strategy

Givens---

GoalP(x)

x= (the value you decided on)

Form of final proof

Let x= (the value you decided on).[Proof of P(x) goes here].

Thus ∃xP(x)

Page 24: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form ∃xP(x)

Try to find a value of x for which you think P(x) will be true.

Before using strategy

Givens--

Goal∃xP(x)

After using strategy

Givens---

GoalP(x)

x= (the value you decided on)

Form of final proof

Let x= (the value you decided on).[Proof of P(x) goes here].

Thus ∃xP(x)

Page 25: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a given of the form ∃xP(x)

Introduce a new variable x0 into the proof to stand for anobject for which P(x0) is true.

Before using strategy

Givens∃xP(x)-

Goal-

After using strategy

GivensP(x0)--

Goal−

Form of final proof

Let P(x0).

Page 26: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a given of the form ∃xP(x)

Introduce a new variable x0 into the proof to stand for anobject for which P(x0) is true.

Before using strategy

Givens∃xP(x)-

Goal-

After using strategy

GivensP(x0)--

Goal−

Form of final proof

Let P(x0).

Page 27: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a given of the form ∃xP(x)

Introduce a new variable x0 into the proof to stand for anobject for which P(x0) is true.

Before using strategy

Givens∃xP(x)-

Goal-

After using strategy

GivensP(x0)--

Goal−

Form of final proof

Let P(x0).

Page 28: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a given of the form ∀xP(x)

You can plug in any value say a for x and use this to concludethat P(a) is true.

Before using strategy

Givens∀xP(x)

Goal-

After using strategy

GivensP(a)-

Goal−

Useful if P(a) or ¬P(a) appears in the proof somewhere.

Form of final proof

Since p(a),

Page 29: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a given of the form ∀xP(x)

You can plug in any value say a for x and use this to concludethat P(a) is true.

Before using strategy

Givens∀xP(x)

Goal-

After using strategy

GivensP(a)-

Goal−

Useful if P(a) or ¬P(a) appears in the proof somewhere.

Form of final proof

Since p(a),

Page 30: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a given of the form ∀xP(x)

You can plug in any value say a for x and use this to concludethat P(a) is true.

Before using strategy

Givens∀xP(x)

Goal-

After using strategy

GivensP(a)-

Goal−

Useful if P(a) or ¬P(a) appears in the proof somewhere.

Form of final proof

Since p(a),

Page 31: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form P ∧ Q

Prove P and Q seperately

givens of the form P ∧ Q

Treat this as two separate givens: P and Q seperately

Page 32: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose A ⊆ B, and A and B are disjoint. Prove thatA ⊆ B \ C .

GivensA ⊆ BA ∩ C = ∅x ∈ A

Goalx ∈ B

Page 33: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose A ⊆ B, and A and B are disjoint. Prove thatA ⊆ B \ C .

GivensA ⊆ BA ∩ C = ∅

x ∈ A

GoalA ⊆ B \ C

x ∈ B

Page 34: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose A ⊆ B, and A and B are disjoint. Prove thatA ⊆ B \ C .

GivensA ⊆ BA ∩ C = ∅

x ∈ A

GoalA ⊆ B \ C

x ∈ B

A ⊆ B \ C is equivalent to ∀x(x ∈ A → x ∈ B \ C )

Page 35: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose A ⊆ B, and A and B are disjoint. Prove thatA ⊆ B \ C .

GivensA ⊆ BA ∩ C = ∅

x ∈ A

Goalx ∈ A → x ∈ B\C

x ∈ B

x is arbitrary

Page 36: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose A ⊆ B, and A and B are disjoint. Prove thatA ⊆ B \ C .

GivensA ⊆ BA ∩ C = ∅x ∈ A

Goalx ∈ B \ C

x ∈ B

x ∈ (B \ C ) is equivalent to x ∈ B ∧ x /∈ C

Page 37: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose A ⊆ B, and A and B are disjoint. Prove thatA ⊆ B \ C .

GivensA ⊆ BA ∩ C = ∅x ∈ A

Goalx ∈ B∧ /∈ C

x ∈ B

Page 38: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose A ⊆ B, and A and B are disjoint. Prove thatA ⊆ B \ C .

GivensA ⊆ BA ∩ C = ∅x ∈ A

Goalx ∈ Bx /∈ C

By apply the rule conjunction

Page 39: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose A ⊆ B, and A and B are disjoint. Prove thatA ⊆ B \ C .

GivensA ⊆ BA ∩ C = ∅x ∈ A

Goal

x ∈ B

x /∈ C

By definition of ⊆

Page 40: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose A ⊆ B, and A and B are disjoint. Prove thatA ⊆ B \ C .

GivensA ⊆ BA ∩ C = ∅x ∈ A

Goal

x ∈ B

By expaning A ∩ C = ∅

Page 41: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose A ⊆ B, and A and B are disjoint. Prove thatA ⊆ B \ C .

GivensA ⊆ BA ∩ C = ∅x ∈ A

Goal

x ∈ B

Suppose x ∈ A. Since A ⊆ B, it follows that x ∈ B, and sinceA and C are disjoint, we must have x ∈ C . Thus, x ∈ B \ C .Since x was an arbitrary element of A, we can conclude thatA ⊆ B \ C

Page 42: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Method

To prove a goal of the form P ↔ Q

Prove P → Q and Q → P seperately

givens of the form P ↔ Q

Treat this as two separate givens: P → Q and Q → Pseperately

Page 43: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose x is an integer. Prove that x is even iff x2 is even

Givensx ∈ Zk ∈ Zx = 2× k

Goal

Page 44: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose x is an integer. Prove that x is even iff x2 is even

Givensx ∈ Z

k ∈ Zx = 2× k

Goal

Page 45: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose x is an integer. Prove that x is even iff x2 is even

Givensx ∈ Z

k ∈ Zx = 2× k

Goal∀ x (x is even P ↔ Q x2 is even)

Page 46: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose x is an integer. Prove that x is even iff x2 is even

Givensx ∈ Z

k ∈ Zx = 2× k

Goal(x is even P ↔ Q x2 is even)

Let x be arbitrary

Page 47: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose x is an integer. Prove that x is even iff x2 is even

Givensx ∈ Z

k ∈ Zx = 2× k

Goal(x is even P → Q x2 is even)(x2 is even P → Q x is even)

Applying P ↔ Q rule

Page 48: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose x is an integer. Prove that x is even iff x2 is even

Givensx ∈ Z

k ∈ Zx = 2× k

Goal(x is even P → Q x2 is even)

Page 49: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose x is an integer. Prove that x is even iff x2 is even

Givensx ∈ Zx is even

k ∈ Zx = 2× k

Goalx2 is even

Page 50: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose x is an integer. Prove that x is even iff x2 is even

Givensx ∈ Z∃k ∈ Z(x = 2k)

k ∈ Zx = 2× k

Goal∃k ∈ Z(x2 = 2k)

Definition of even

Page 51: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose x is an integer. Prove that x is even iff x2 is even

Givensx ∈ Zk ∈ Zx = 2× k

Goal∃k ∈ Z(x2 = 2k)

Page 52: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose x is an integer. Prove that x is even iff x2 is even

Givensx ∈ Zk ∈ Zx = 2× k

Goal(x2 = (2× k)2)

Page 53: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose x is an integer. Prove that x is even iff x2 is even

Givensx ∈ Zk ∈ Zx = 2× k

Goalx2 = 4× k2

Suppose x is even. Then for some integer k, x =2× k.Therefore, x2 = 4× k2, so since 22 is even. Thus, if x is eventhen x2 is even.Similarly other direction also holds

Page 54: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

∀x¬P(x) ↔ ¬∃xP(x)

Givens¬∃xP(x)

Goal∃xP(x)

Page 55: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

∀x¬P(x) ↔ ¬∃xP(x)

Givens∀x¬P(x)

¬∃xP(x)

Goallnot∃xP(x)

∃xP(x)

Page 56: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

∀x¬P(x) ↔ ¬∃xP(x)

Givens∀x¬P(x)∃xP(x)

¬∃xP(x)

Goalcontradiction

∃xP(x)

Page 57: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

∀x¬P(x) ↔ ¬∃xP(x)

Givens∀x¬P(x) P(x)

¬∃xP(x)

Goalcontradiction

∃xP(x)

Page 58: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

∀x¬P(x) ↔ ¬∃xP(x)

Givens∀x¬P(x) P(x)

¬∃xP(x)

Goalcontradiction

∃xP(x)

Plugging x

Page 59: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

∀x¬P(x) ↔ ¬∃xP(x)

Givens¬∃xP(x)

Goal∀x¬P(x)

∃xP(x)

Page 60: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

∀x¬P(x) ↔ ¬∃xP(x)

Givens¬∃xP(x)

Goal¬P(x)

∃xP(x)

x be an arbitrary

Page 61: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

∀x¬P(x) ↔ ¬∃xP(x)

Givens¬∃xP(x)P(x)

GoalContradiction

∃xP(x)

Page 62: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

∀x¬P(x) ↔ ¬∃xP(x)

Givens¬∃xP(x)P(x)

Goal∃xP(x)

Suppose lnot∃xP(x). Let x be arbitrary, and suppose P(x).Since we have a specific x for which P(x) is true, it follows that∃x .P(x), which is a contradiction. Therefore, 6 P(x).

Page 63: How to Prove It

How To ProveIt

D. Gift Samue

Recap

the formP ∧ Q

Goals of theform P ∧ Q

the formP ↔ Q

To prove a goalof the formP ↔ Q

Example

Suppose A,B, and C are sets. Then A ∪ (B \ C ) = (A ∩ B) \ C

For every integer, 6 | n iff 2 | n and 3 | n