






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Prof. Balamohan Pawar delivered this lecture at Allahabad University for Aeronautical Engineering and Computer Programming course. Its main points are: Even Odd, Programming, Integer, Divisible, Sum, Condition, Hypothsis, Conclusion, Proof, Direct
Typology: Slides
1 / 10
This page cannot be seen from the preview
Don't miss anything!







3
4
unwind definitions
an integer
5
Proof:
[conclusion]
y is even, so 2|y
There is an integer, e.g., b, with y=2b [as above]
There is an integer, e.g., a, with x=2a [def. of divisible]
x is even, so 2|x
(x+y) is even, so 2|(x+y)
6
restated
the theorem
and beginning of the proof
your argument.
If x and y are even integers, then x+y is even
[likewise for y]
(x+y)=2(a+b) so take c = (a+b) [add equations in 4 and 6] There is an integer, e.g, c, with (x+y)=2c [def. of divisible]
[def. of even]
[def. of even]
9
10
Note If q is true then the implication holds. We assume that q is false so that we can
well.
Direct proof of
Indirect proof
equivalences, and previously proved theorems to
that it may not be the case that q is false.
explore this scenario and show that p must necessarily be false as
11
Ex : Give an indirect proof of “If 3n + 2 is odd, then n is odd.” Recall again that this statement is implicitly a universal quantification “∀n(3n + 2 is odd → n is odd).”
Proof : We will prove the contrapositive , “If n is not odd, then 3n + 2 is not odd. That is, “If n is even, then 3n + 2 is even.”
[step 2: Translate assumptions into a form we can work with] Then n = 2k for some integer k. [Definition of even] [step 3: Work with it until it is in a form we need for concl.] So 3n + 2 = 3(2k) + 2 = 6k + 2 = 2(3k + 1). [step 4: Realize that you’re there and state your conclusion.]
So 3n + 2 = 2*m where m = (3k + 1), so 3n + 2 is even.
[step 1: Write assumptions] Let n be an even integer.
12
¬q, ¬p follows
15
conclusion contradicting one of the assumptions (or something obviously untrue like 1 = 0)
16
17
18
Then n = 2k for some integer k
21
Factorial(n) is the product of the first n positive integers
Rule of Inference Tautology Name p ∴ p^ ∨ q
p → (p ∨ q) Addition
p ∧ q (p ∧ q) → p Simplification ∴ p p, q (^) (p ∧ q) → p ∧ q Conjunction ∴ p ∧ q p, p → q ∴ q
(p ∧ (p → q)) → q Modus Ponens
¬q, p → q ∴ ¬p
(¬q ∧ (p → q)) → ¬p Modus Tollens
p → q, q → r ∴ p → r
((p → q) ∧ (q → r)) → (p → r)
Hypothetical Syllogism
p ∨ q, ¬p ∴ q
((p ∨ q) ∧ ¬p) → q Disjunctive Syllogism
p ∨ q, ¬p ∨ r ∴ q ∨ r
(p ∨ q) ∧ (¬p ∨ r) → q ∨ r
Resolution
22