ผลต่างระหว่างรุ่นของ "01204211/activity2 logic and proofs"
Jittat (คุย | มีส่วนร่วม) |
Jittat (คุย | มีส่วนร่วม) |
||
(ไม่แสดง 33 รุ่นระหว่างกลางโดยผู้ใช้คนเดียวกัน) | |||
แถว 3: | แถว 3: | ||
== In-class activities == | == In-class activities == | ||
− | === A Inference rules === | + | === A. Inference rules === |
− | A1. Use a truth table to prove Hypothetical syllogism. That is show that the conclusion <math>P\Rightarrow R</math> logically follows from hypotheses <math>P\Rightarrow Q</math> and <math>Q\Rightarrow R</math>. | + | '''A1.''' Use a truth table to prove Hypothetical syllogism. That is show that the conclusion <math>P\Rightarrow R</math> logically follows from hypotheses <math>P\Rightarrow Q</math> and <math>Q\Rightarrow R</math>. |
− | A2. Use inference rules and standard logical equivalences to show that hypotheses | + | '''A2.''' Use inference rules and standard logical equivalences to show that hypotheses |
* <math>P\Rightarrow R</math> | * <math>P\Rightarrow R</math> | ||
แถว 15: | แถว 15: | ||
− | A3. Use inference rules and standard logical equivalences to show that hypotheses | + | '''A3.''' Use inference rules and standard logical equivalences to show that hypotheses |
* <math>P\Rightarrow Q</math> | * <math>P\Rightarrow Q</math> | ||
แถว 23: | แถว 23: | ||
− | A4. Using inference rules to argue that if we assume | + | '''A4.''' Using inference rules to argue that if we assume |
* <math>\neg P\Rightarrow Q</math>, | * <math>\neg P\Rightarrow Q</math>, | ||
แถว 32: | แถว 32: | ||
then we can conclude that <math>W</math> is false. | then we can conclude that <math>W</math> is false. | ||
− | === Proofs === | + | === B. Proofs === |
+ | Prove the following statements. (Hint: try direct proofs and proofs by contraposition.) | ||
− | + | '''B1.''' If integer ''a'' divides integer ''b'', and ''b'' divides integer ''c'', then ''a'' divides ''c''. | |
− | |||
− | C2. In this problem, we will try to reconstruct Euclid's proof that there are infinitely many primes. | + | '''B2.''' If <math>x</math> and <math>y</math> are integers and <math>x^2 + y^2</math> are even, then <math>x+y</math> is even. |
+ | |||
+ | : ''Hints:'' When you want to prove this statement: "If x and y are integers and <math>x^2 + y^2</math> are even, then x + y is even. ". You can think of it as: "If x and y are integers, then (if <math>x^2 + y^2</math>, then x+y is even)". That is because (P and Q) => R is equivalent to (P => (Q => R)). Therefore, in this case, you can start by assuming that x and y are integers. | ||
+ | |||
+ | |||
+ | '''B3.''' If ''x'' is irrational, then <math>\sqrt{x}</math> is also irrational. | ||
+ | |||
+ | |||
+ | '''B4.''' Assume that <math>x</math> is a non-zero rational number. Prove that if <math>y</math> is irrational, then <math>xy</math> is irrational. | ||
+ | |||
+ | |||
+ | '''Source:''' | ||
+ | * B1 and B3 are from ''เอกสารประกอบการสอนวิชา Math 217 แนวคิดหลักมูลของคณิตศาสตร์ โดย รุ่งนภา ภักดีสู่สุข ม.เชียงใหม่''. | ||
+ | * B2 is from [https://www.whitman.edu/mathematics/higher_math_online/section02.01.html#exercises whitman.edu]. | ||
+ | * B4 is from Rosen, Exercise 27, Section 1.5, pp. 75 | ||
+ | |||
+ | === C. Proofs by contradiction === | ||
+ | |||
+ | '''C1.''' Let's reconsider this theorem again. | ||
+ | |||
+ | '''Theorem:''' ''For any positive numbers <math>n</math> and <math>a</math> such that <math>a > \sqrt{n}</math>, we have that <math>n/a < \sqrt{n}</math>.'' | ||
+ | |||
+ | Prove this theorem by contradiction. | ||
+ | |||
+ | |||
+ | '''C2.''' Prove this statement. (Note that you do not have to use proof by contradiction.) | ||
+ | |||
+ | : Suppose that I have ''k'' pairs of socks (each pair with a distinct color). If I pick ''k + 1'' socks, then there will be at least one pair of socks with the same color. | ||
+ | |||
+ | |||
+ | '''C3.''' In this problem, we will try to reconstruct Euclid's proof that there are infinitely many primes. We will prove by contradiction. So let's get you started. | ||
+ | |||
+ | The first step is to assume that there are finitely many primes. Let ''n'' be the number of prime numbers, and <math>p_1,p_2,\ldots,p_n</math> are all prime numbers. | ||
+ | |||
+ | The key to obtain the contradiction is to consider this number <math>L</math> defined to be | ||
+ | |||
+ | <center><math>L = 1 + p_1\times p_2\times p_3\times\cdots\times p_n</math></center> | ||
+ | |||
+ | Use this starting point to complete the proof. (Hint: What can you say about <math>L</math>? Is it a prime number? Do we really need to know for sure if it is a prime number?) | ||
== Homework 2 == | == Homework 2 == | ||
− | Due date: '' | + | : ''Due date: 11 Sept. 2015 <del>9 Sep 2015</del>'' |
+ | |||
+ | '''H1.''' Prove the following statement. | ||
+ | |||
+ | : If integer ''c'' divides both integers ''a'' and ''b'', then ''c'' divides ''a - b''. | ||
+ | |||
+ | |||
+ | '''H2.''' Prove that if <math>x</math> and <math>y</math> are real numbers, then <math>\max(x,y) + \min(x,y) = x+y</math> | ||
+ | |||
+ | |||
+ | '''H3.''' Prove that <math>|xy|=|x||y|</math>, where <math>x</math> and <math>y</math> are real numbers. | ||
+ | |||
− | + | '''H4.''' Prove that for any positive integer <math>n</math>, <math>n</math> is an odd number if and only if <math>5n+6</math> is odd. | |
− | + | '''Sources:''' | |
+ | * H2, H3, and H4 is from Rosen, Examples 33, 23, and 39, Ch.1, pp. 67. |
รุ่นแก้ไขปัจจุบันเมื่อ 04:19, 9 กันยายน 2558
- This is part of 01204211-58.
เนื้อหา
In-class activities
A. Inference rules
A1. Use a truth table to prove Hypothetical syllogism. That is show that the conclusion logically follows from hypotheses and .
A2. Use inference rules and standard logical equivalences to show that hypotheses
leads to the conclusion .
A3. Use inference rules and standard logical equivalences to show that hypotheses
leads to the conclusion .
A4. Using inference rules to argue that if we assume
- ,
- ,
- , and
then we can conclude that is false.
B. Proofs
Prove the following statements. (Hint: try direct proofs and proofs by contraposition.)
B1. If integer a divides integer b, and b divides integer c, then a divides c.
B2. If and are integers and are even, then is even.
- Hints: When you want to prove this statement: "If x and y are integers and are even, then x + y is even. ". You can think of it as: "If x and y are integers, then (if , then x+y is even)". That is because (P and Q) => R is equivalent to (P => (Q => R)). Therefore, in this case, you can start by assuming that x and y are integers.
B3. If x is irrational, then is also irrational.
B4. Assume that is a non-zero rational number. Prove that if is irrational, then is irrational.
Source:
- B1 and B3 are from เอกสารประกอบการสอนวิชา Math 217 แนวคิดหลักมูลของคณิตศาสตร์ โดย รุ่งนภา ภักดีสู่สุข ม.เชียงใหม่.
- B2 is from whitman.edu.
- B4 is from Rosen, Exercise 27, Section 1.5, pp. 75
C. Proofs by contradiction
C1. Let's reconsider this theorem again.
Theorem: For any positive numbers and such that , we have that .
Prove this theorem by contradiction.
C2. Prove this statement. (Note that you do not have to use proof by contradiction.)
- Suppose that I have k pairs of socks (each pair with a distinct color). If I pick k + 1 socks, then there will be at least one pair of socks with the same color.
C3. In this problem, we will try to reconstruct Euclid's proof that there are infinitely many primes. We will prove by contradiction. So let's get you started.
The first step is to assume that there are finitely many primes. Let n be the number of prime numbers, and are all prime numbers.
The key to obtain the contradiction is to consider this number defined to be
Use this starting point to complete the proof. (Hint: What can you say about ? Is it a prime number? Do we really need to know for sure if it is a prime number?)
Homework 2
- Due date: 11 Sept. 2015
9 Sep 2015
H1. Prove the following statement.
- If integer c divides both integers a and b, then c divides a - b.
H2. Prove that if and are real numbers, then
H3. Prove that , where and are real numbers.
H4. Prove that for any positive integer , is an odd number if and only if is odd.
Sources:
- H2, H3, and H4 is from Rosen, Examples 33, 23, and 39, Ch.1, pp. 67.