{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

MIT6_042JS10_lec06

MIT6_042JS10_lec06 - Predicates Mathematics for Computer...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 lec 3W.1 Albert R Meyer, February 17, 2010 Predicate Logic Quantifiers , Mathematics for Computer Science MIT 6.042J/18.062J lec 3W.2 Albert R Meyer, February 17, 2010 Predicates Propositions with variables Example: [x + 2 = y] P(x,y) ::= lec 3W.3 Albert R Meyer, February 17, 2010 Predicates x = 1 and y = 3: x = 1 and y = 4: P(1,4) is false NOT (P(1,4)) is true [x + 2 = y] P(x,y) ::= P(1,3) is true lec 3W.4 Albert R Meyer, February 17, 2010 Quantifiers For ALL x There EXISTS some y x y lec 3W.5 Albert R Meyer, February 17, 2010 is like AND s . P( s ) Let s range over 6.042 staff P( s ) ::= [ s is Pumped about 6.042] same as P( Stav ) AND P( Rich ) AND P( Megumi ) AND AND P( Oscar ) lec 3W.6 Albert R Meyer, February 17, 2010 is like OR t . B( t ) Let t range over 6.042 staff B( t ) ::= [ t took 6.042 Before] same as B( Stav ) OR B( Rich ) OR B( Megumi ) OR…OR B( Oscar )
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 lec 3W.7 Albert R Meyer, February 17, 2010 Q (y) ::= x. x < y Q (3) is T ([x<3] is T for x=1) Q (1) is T ([x<1] is T for x=0) Q (0) is F ([x<0] is not T for any x in N ) Existential Quantifier Let x, y range over N lec 3W.8 Albert R Meyer, February 17, 2010 R (y) ::= x. x < y
Image of page 2
Image of page 3

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern