lecture 1 course intro propositional logic
play

Lecture 1: Course Intro + Propositional Logic Or: How I Learned to - PowerPoint PPT Presentation

Lecture 1: Course Intro + Propositional Logic Or: How I Learned to Stop Worrying and Love the Class 1 / 23 Welcome to CS 70! What is this course? CS 70 is a math course. Focus on proofs and justifjcations Practice mathematical


  1. Lecture 1: Course Intro + Propositional Logic Or: How I Learned to Stop Worrying and Love the Class 1 / 23

  2. Welcome to CS 70! What is this course? CS 70 is a math course. Focus on proofs and justifjcations Practice “mathematical thinking” Also an EECS course. Probability, Cryptography, Graphs, ... Applications throughout EECS Why is this course? Learn to think critically and argue clearly See the building blocks of Computer Science Adapting to this mindset can be hard — don’t be discouraged, and do ask for help when you need it! 2 / 23

  3. Welcome to CS 70! What is this course? Also an EECS course. Probability, Cryptography, Graphs, ... Applications throughout EECS Why is this course? Learn to think critically and argue clearly See the building blocks of Computer Science Adapting to this mindset can be hard — don’t be discouraged, and do ask for help when you need it! 2 / 23 ▶ CS 70 is a math course. ▶ Focus on proofs and justifjcations ▶ Practice “mathematical thinking”

  4. Welcome to CS 70! What is this course? Why is this course? Learn to think critically and argue clearly See the building blocks of Computer Science Adapting to this mindset can be hard — don’t be discouraged, and do ask for help when you need it! 2 / 23 ▶ CS 70 is a math course. ▶ Focus on proofs and justifjcations ▶ Practice “mathematical thinking” ▶ Also an EECS course. ▶ Probability, Cryptography, Graphs, ... ▶ Applications throughout EECS

  5. Welcome to CS 70! What is this course? Why is this course? Learn to think critically and argue clearly See the building blocks of Computer Science Adapting to this mindset can be hard — don’t be discouraged, and do ask for help when you need it! 2 / 23 ▶ CS 70 is a math course. ▶ Focus on proofs and justifjcations ▶ Practice “mathematical thinking” ▶ Also an EECS course. ▶ Probability, Cryptography, Graphs, ... ▶ Applications throughout EECS

  6. Welcome to CS 70! What is this course? Why is this course? See the building blocks of Computer Science Adapting to this mindset can be hard — don’t be discouraged, and do ask for help when you need it! 2 / 23 ▶ CS 70 is a math course. ▶ Focus on proofs and justifjcations ▶ Practice “mathematical thinking” ▶ Also an EECS course. ▶ Probability, Cryptography, Graphs, ... ▶ Applications throughout EECS ▶ Learn to think critically and argue clearly

  7. Welcome to CS 70! What is this course? Why is this course? Adapting to this mindset can be hard — don’t be discouraged, and do ask for help when you need it! 2 / 23 ▶ CS 70 is a math course. ▶ Focus on proofs and justifjcations ▶ Practice “mathematical thinking” ▶ Also an EECS course. ▶ Probability, Cryptography, Graphs, ... ▶ Applications throughout EECS ▶ Learn to think critically and argue clearly ▶ See the building blocks of Computer Science

  8. Welcome to CS 70! What is this course? Why is this course? Adapting to this mindset can be hard — don’t be discouraged, and do ask for help when you need it! 2 / 23 ▶ CS 70 is a math course. ▶ Focus on proofs and justifjcations ▶ Practice “mathematical thinking” ▶ Also an EECS course. ▶ Probability, Cryptography, Graphs, ... ▶ Applications throughout EECS ▶ Learn to think critically and argue clearly ▶ See the building blocks of Computer Science

  9. Stafg Introductions 3 / 23 ▶ Lecturers ▶ TAs ▶ Readers / Academic Interns

  10. Logistics Course website: eecs70.org Piazza: main avenue of communication su19@eecs70.org for more personal questions Homework 0 (logistics) already out, Homework 1 coming soon 4 / 23 ▶ Has homeworks, lecture notes, slides, etc. ▶ Ask any questions here! ▶ Can make a private post or email ▶ Will also post announcements here

  11. A Word on Homeworks Intended to help you internalize the material. Previous grading system focused on getting all the answers, even if you weren’t learning anything. This summer, new grading policy to address this: Graded on putting “reasonable efgort” into each problem (see website for details) Translation: try all the problems, write down your thought process and where exactly you got stuck Readers still give detailed feedback Do still try your best on the homeworks — they’re there for your benefjt! 5 / 23

  12. A Word on Homeworks Intended to help you internalize the material. Previous grading system focused on getting all the answers, even if you weren’t learning anything. This summer, new grading policy to address this: each problem (see website for details) your thought process and where exactly you got stuck they’re there for your benefjt! 5 / 23 ▶ Graded on putting “reasonable efgort” into ▶ Translation: try all the problems, write down ▶ Readers still give detailed feedback ▶ Do still try your best on the homeworks —

  13. Lewis Carroll and Logic brush his or her hair. (II) No one looks fascinating, if he or she is untidy. (III) Opium-eaters have no self-command. (IV) Everyone who has brushed his or her hair looks fascinating. (V) No one wears kid gloves, unless he or she is going to a party. (VI) A person is always untidy if he or she has no self-command. -Lewis Carroll, Symbolic Logic , 1896 Alice brushed her hair. What else do we know? 6 / 23 (I) No one, who is going to a party, ever fails to

  14. Lewis Carroll and Logic brush his or her hair. (II) No one looks fascinating, if he or she is untidy. (III) Opium-eaters have no self-command. (IV) Everyone who has brushed his or her hair looks fascinating. (V) No one wears kid gloves, unless he or she is going to a party. (VI) A person is always untidy if he or she has no self-command. -Lewis Carroll, Symbolic Logic , 1896 Alice brushed her hair. What else do we know? 6 / 23 (I) No one, who is going to a party, ever fails to

  15. Even integers are the sum of two primes 1 (???) Propositions A Pop-Tart is a sandwich (defjne sandwich) 1 This is known as the Goldbach Conjecture Jazz is better than Rock (personal preference) 17 (not making a claim) 7 (what is x ?) 2 x Not examples: A statement which is (unambiguously) true or false. I had pizza for breakfast this morning (False) 4 (True) 2 2 Examples: Basic building block of our logical system. 7 / 23

  16. Propositions A statement which is (unambiguously) true or false. Basic building block of our logical system. Examples: Not examples: A Pop-Tart is a sandwich (defjne sandwich) x 2 7 (what is x ?) 17 (not making a claim) Jazz is better than Rock (personal preference) 1 This is known as the Goldbach Conjecture 7 / 23 ▶ 2 + 2 = 4 (True) ▶ I had pizza for breakfast this morning (False) ▶ Even integers are the sum of two primes 1 (???)

  17. Propositions A statement which is (unambiguously) true or false. Basic building block of our logical system. Examples: Not examples: 1 This is known as the Goldbach Conjecture 7 / 23 ▶ 2 + 2 = 4 (True) ▶ I had pizza for breakfast this morning (False) ▶ Even integers are the sum of two primes 1 (???) ▶ A Pop-Tart is a sandwich (defjne sandwich) ▶ x + 2 = 7 (what is x ?) ▶ 17 (not making a claim) ▶ Jazz is better than Rock (personal preference)

  18. Propositional Formulae P R is ambiguous! Q Use parentheses: P R Q P R Q P Can combine propositions with logical operators: Q P R Q P String together for more complicated formulae: 8 / 23 ▶ P ∧ Q (Conjunction, “both P and Q ”) ▶ P ∨ Q (Disjunction, “at least one of P or Q ”) ▶ ¬ P (Negation, “not P ”)

  19. Propositional Formulae Can combine propositions with logical operators: String together for more complicated formulae: Use parentheses: P Q R is ambiguous! 8 / 23 ▶ P ∧ Q (Conjunction, “both P and Q ”) ▶ P ∨ Q (Disjunction, “at least one of P or Q ”) ▶ ¬ P (Negation, “not P ”) ▶ P ∧ Q ∧ R ▶ ( P ∨ Q ) ∧ ( ¬ P ) ▶ ( P ∧ Q ∧ R ) ∨ (( ¬ P ) ∧ ( ¬ Q ) ∧ ( ¬ R ))

  20. Propositional Formulae Can combine propositions with logical operators: String together for more complicated formulae: 8 / 23 ▶ P ∧ Q (Conjunction, “both P and Q ”) ▶ P ∨ Q (Disjunction, “at least one of P or Q ”) ▶ ¬ P (Negation, “not P ”) ▶ P ∧ Q ∧ R ▶ ( P ∨ Q ) ∧ ( ¬ P ) ▶ ( P ∧ Q ∧ R ) ∨ (( ¬ P ) ∧ ( ¬ Q ) ∧ ( ¬ R )) Use parentheses: P ∧ Q ∨ R is ambiguous!

  21. Truth Tables F T T F T T T F T F T T T T F F T T F F Would like to be able to compare formulae. T Idea: treat formulae as functions. Inputs are T/F values to each proposition Output is T/F value of overall formula Equivalent if have same truth table For our example: P Q P Q P Q P Q F F T 9 / 23 Ex: P ∨ Q vs ¬ (( ¬ P ) ∧ ( ¬ Q ))

  22. Truth Tables F T T F T T T F T F T T T T F F T T F F Would like to be able to compare formulae. Q Idea: treat formulae as functions. For our example: P Q T P P Q P Q F F T 9 / 23 Ex: P ∨ Q vs ¬ (( ¬ P ) ∧ ( ¬ Q )) ▶ Inputs are T/F values to each proposition ▶ Output is T/F value of overall formula ▶ Equivalent if have same truth table

  23. Truth Tables T T F T T T F F T F T T T F F T T T F Would like to be able to compare formulae. F Idea: treat formulae as functions. For our example: P Q 9 / 23 F F T T Ex: P ∨ Q vs ¬ (( ¬ P ) ∧ ( ¬ Q )) ▶ Inputs are T/F values to each proposition ▶ Output is T/F value of overall formula ▶ Equivalent if have same truth table ¬ P ¬ Q ¬ (( ¬ P ) ∧ ( ¬ Q )) P ∨ Q

Recommend


More recommend