More Logic Discrete Structures (CS 173) Madhusudan Parthasarathy The arenas of Arles Van Gogh.

Slides:



Advertisements
Similar presentations
The Logic of Quantified Statements
Advertisements

CPSC 121: Models of Computation Unit 6 Rewriting Predicate Logic Statements Based on slides by Patrice Belleville and Steve Wolfman.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Predicates and Quantifiers
Propositional Logic Discrete Structures (CS 173) Madhusudan Parthasarathy, University of Illinois School of Athens Fresco by Raphael Wikimedia Commons.
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
CS128 – Discrete Mathematics for Computer Science
CMSC 250 Discrete Structures Exam #1 Review. 21 June 2007Exam #1 Review2 Symbols & Definitions for Compound Statements pq p  qp  qp  qp  qp  q 11.
Snick  snack CPSC 121: Models of Computation 2008/9 Winter Term 2 Rewriting Predicate Logic Statements Steve Wolfman, based on notes by Patrice Belleville.
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic Autumn 2011 CSE 3111.
Discrete Mathematics Math 6A Instructor: M. Welling.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Adapted from Discrete Math
1 Predicates and Quantifiers CS 202, Spring 2007 Epp, Sections 2.1 and 2.2 Aaron Bloomfield.
CSE 311 Foundations of Computing I Lecture 6 Predicate Logic, Logical Inference Spring
Predicates and Quantifiers
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
CSci 2011 Discrete Mathematics Lecture 3 CSci 2011.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Mathematical Structures A collection of objects with operations defined on them and the accompanying properties form a mathematical structure or system.
CISC 2315 Discrete Structures Professor William G. Tanner, Jr. Fall 2010 Slides created by James L. Hein, author of Discrete Structures, Logic, and Computability,
9/21/ A sample class of Discrete Structures Gongjun Yan Computer Science Department, Old Dominion University, Norfolk, VA (Logical conjunction and.
CS 173, Lecture B September 1, 2015 Tandy Warnow.
CS 173, Lecture B August 27, 2015 Tandy Warnow. Proofs You want to prove that some statement A is true. You can try to prove it directly, or you can prove.
1 Predicates and Quantifiers CS/APMA 202, Spring 2005 Rosen, section 1.3 Aaron Bloomfield.
Chapter 5 – Logic CSNB 143 Discrete Mathematical Structures.
Discrete Mathematics CS 2610 August 24, Agenda Last class Introduction to predicates and quantifiers This class Nested quantifiers Proofs.
Slides for CISC 2315: Discrete Structures Chapters CISC 2315 Discrete Structures Professor William G. Tanner, Jr. SPRING 2010 Slides created by James.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
CISC 2315 Discrete Structures Professor William G. Tanner, Jr. Spring 2011 Slides created by James L. Hein, author of Discrete Structures, Logic, and Computability,
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Lecture 1.2: Equivalences, and Predicate Logic* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren, Zeph.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Statements with Multiple Quantifiers. When a statement contains more than one quantifier, we imagine the actions suggested by the quantifiers as being.
CSE 311 Foundations of Computing I Lecture 7 Logical Inference Autumn 2012 CSE
Discrete Mathematics. Predicates - the universal quantifier 11/28/2015 Suppose P(x) is a predicate on some universe of discourse. Ex. B(x) = “x is carrying.
Nested Quantifiers Section 1.5.
Relations Discrete Structures (CS 173)
Chapter 1: The Foundations: Logic and Proofs
Lecture 1.3: Predicate Logic CS 250, Discrete Structures, Fall 2012 Nitesh Saxena Adopted from previous lectures by Cinda Heeren.
Discrete Mathematics CS 2610 August 22, Agenda Last class Propositional logic Logical equivalences This week Predicate logic & rules of inference.
Propositional Logic Predicate Logic
Discrete Structures – CNS 2300
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Lecture 1.2: Equivalences, and Predicate Logic CS 250, Discrete Structures, Fall 2015 Nitesh Saxena Adopted from previous lectures by Cinda Heeren, Zeph.
Discrete Mathematics Mathematical reasoning: think logically; know how to prove Combinatorial analysis: know how to count Discrete structures: represent.
1 CS1502 Formal Methods in Computer Science Notes 15 Problem Sessions.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.1.
Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
01/24/13 Strategies for Proofs Discrete Structures (CS 173) Madhusudan Parthasarathy, University of Illinois Landscape with House and Ploughman Van Gogh.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Lecture 1.2: Equivalences, and Predicate Logic
CSNB 143 Discrete Mathematical Structures
Discrete Mathematics.
CISC 2315 Discrete Structures
Chapter 1 The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Principles of Computing – UFCFA3-30-1
CS 220: Discrete Structures and their Applications
CSE 311 Foundations of Computing I
Discrete Math (2) Haiming Chen Associate Professor, PhD
Negations of quantifiers
Lecture 1.3: Predicate Logic
Predicates and Quantifiers
CPSC 121: Models of Computation
Lecture 1.3: Predicate Logic
Propositional Satisfiability
Presentation transcript:

More Logic Discrete Structures (CS 173) Madhusudan Parthasarathy The arenas of Arles Van Gogh

Promoting Undergraduate Research in Engineering (P.U.R.E.) Spring 2010 Information Session Undergraduate Advising Office Program Director Slides are borrowed and adapted from fall 2008 (PURE Committee HKN, Alpha Chapter University of Illinois at Urbana-Champaign August 30, 2008) Visit Promoting Undergraduate Research in Engineering (P.U.R.E.) Fall 2013 Information Session Wednesday, September 4th from 7pm to 8pm at 1404 Siebel Center Food will be provided! The PURE Research Program is an interdisciplinary program in the College of Engineering pairing freshman and sophomore undergraduates with research mentors(graduate students). The general goal of the program is to encourage underclassmen to explore research at an early stage in their academic career.

Brief Review Propositional logic – AND, OR, T/F, implies, etc. – Equivalence and truth tables – Manipulating propositions

The satisfiability problem (SAT)

Applications of SAT solvers: model checking

Predicate logic

Predicate logic (first-order logic)

Quantifiers

Binding and scope binding scope Similar to local variables in programs: int f(x) { int y; y := x+2; }

Manipulating quantifiers

Quantifiers with two variables

Proving universal statements

Approach to proving universal statements

Proving universal statements

Applications of first-order logic Programming models: Imperative programming (C, …) Functional programming (Haskell, Ocaml, …) Object-oriented programming (Java, C++,...) Logic programming (Prolog, Datalog, …) Declaratively state what you want in logic; program will compute it. Prolog: Rules of the form p(X, Y) if q(X) and r(Y), etc. Question: p(Obama, president)?

Take home messages Propositions with “for all” and “there exists” can be encoded with quantifiers Remember rules for negation and equivalence of quantifiers Universal proofs are solved by 1.Stating supposition 2.Expanding definitions 3.Manipulating expressions to reach claim 4.Stating that the claim has been shown

To do Mini-HW 1 due tomorrow, Wed, at 11:45pm on Moodle Reading quiz due tomorrow night at 1:00am Next class: Strategies for proving and disproving different types of claims