1 Predicates and Propositions Hugh Darwen CS252.HACD: Fundamentals of Relational Databases Section 3:

Slides:



Advertisements
Similar presentations
Relational Algebra Part II
Advertisements

(Fuzzy Set Operations)
Nested Quantifiers Section 1.4.
1.3 Predicates and Quantifiers
1 Introduction to Relational Databases Hugh Darwen CS252.HACD: Fundamentals of Relational Databases.
1 Constraints and Updating Hugh Darwen CS252.HACD: Fundamentals of Relational Databases Section 7: Constraints.
1 Database Design Issues, Part I Hugh Darwen CS252.HACD: Fundamentals of Relational Databases Section.
1 Relational Algebra, Part III, and Other Operators Hugh Darwen CS252.HACD: Fundamentals of Relational.
1 Relational Algebra, Principles and Part I Hugh Darwen CS252.HACD: Fundamentals of Relational Databases.
1 Values, Types, Variables, Operators Hugh Darwen CS252.HACD: Fundamentals of Relational Databases Section.
Learning Objectives for Section 7.2 Sets
Equivalence Relations
Discrete Structures Chapter 6: Set Theory
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
© by Kenneth H. Rosen, Discrete Mathematics & its Applications, Sixth Edition, Mc Graw-Hill, 2007 Chapter 1: (Part 2): The Foundations: Logic and Proofs.
Instructor: Hayk Melikya
Basic Structures: Sets, Functions, Sequences, Sums, and Matrices
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
Propositional Logic. Negation Given a proposition p, negation of p is the ‘not’ of p.
1 Predicates and quantifiers Chapter 8 Formal Specification using Z.
Computing Fundamentals 1 Lecture 6 A Theory of Sets Lecturer: Patrick Browne Room K308 Based on Chapter 11. A Logical approach.
CSE115/ENGR160 Discrete Mathematics 01/20/11 Ming-Hsuan Yang UC Merced 1.
Intro to Set Theory. Sets and Their Elements A set A is a collection of elements. If x is an element of A, we write x  A; if not: x  A. Say: “x is a.
Adapted from Discrete Math
IB Math Studies – Topic 3. IB Course Guide Description.
Predicates and Quantifiers
Discrete Mathematics Goals of a Discrete Mathematics Learn how to think mathematically 1. Mathematical Reasoning Foundation for discussions of methods.
2.2 Statements, Connectives, and Quantifiers
Theory and Applications
Mathematical Preliminaries (Hein 1.1 and 1.2) Sets are collections in which order of elements and duplication of elements do not matter. – {1,a,1,1} =
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
CS 103 Discrete Structures Lecture 10 Basic Structures: Sets (1)
Copyright © Cengage Learning. All rights reserved. CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS THE LOGIC OF QUANTIFIED STATEMENTS.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Copyright © 2014 Curt Hill Sets Introduction to Set Theory.
DISCRETE COMPUTATIONAL STRUCTURES
January 30, 2002Applied Discrete Mathematics Week 1: Logic and Sets 1 Let’s Talk About Logic Logic is a system based on propositions.Logic is a system.
Sets and Sentences Open Sentences Foundations of Real Analysis.
CompSci 102 Discrete Math for Computer Science
Theory and Applications
Copyright © Cengage Learning. All rights reserved.
2.1 Sets 2.2 Set Operations –Set Operations –Venn Diagrams –Set Identities –Union and Intersection of Indexed Collections 2.3 Functions 2.4 Sequences and.
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
CSNB143 – Discrete Structure Topic 4 – Logic. Learning Outcomes Students should be able to define statement. Students should be able to identify connectives.
Chapter 2 With Question/Answer Animations. Section 2.1.
Rosen 1.6, 1.7. Basic Definitions Set - Collection of objects, usually denoted by capital letter Member, element - Object in a set, usually denoted by.
Set Theory Concepts Set – A collection of “elements” (objects, members) denoted by upper case letters A, B, etc. elements are lower case brackets are used.
Module #3 - Sets 3/2/2016(c) , Michael P. Frank 2. Sets and Set Operations.
Discrete Mathematics Lecture # 10 Venn Diagram. Union  Let A and B be subsets of a universal set U. The union of sets A and B is the set of all elements.
Chapter 7 Sets and Probability Section 7.1 Sets What is a Set? A set is a well-defined collection of objects in which it is possible to determine whether.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.1.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
DISCRETE COMPUTATIONAL STRUCTURES CSE 2353 Fall 2010 Most slides modified from Discrete Mathematical Structures: Theory and Applications by D.S. Malik.
Simple Logic.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
Dr. Ameria Eldosoky Discrete mathematics
Chapter 2 Sets and Functions.
Set Operations Section 2.2.
CHAPTER 1: LOGICS AND PROOF
(1.4) An Introduction to Logic
Predicates and Quantifiers
Discrete Mathematics Lecture 4 Logic of Quantified Statements
Logic Logic is a discipline that studies the principles and methods used to construct valid arguments. An argument is a related sequence of statements.

Presentation transcript:

1 Predicates and Propositions Hugh Darwen CS252.HACD: Fundamentals of Relational Databases Section 3: Predicates and Propositions

2 Recommended Book Highly recommended if you like this sort of thing (but definitely not a course requirement): Wilfrid Hodges: Logic. Pelican books, ISBN:

3 What Is A Predicate? Strictly, the meaning of a certain kind of sentence, but often used (conveniently) to refer to the sentence itself. Example: Student S1 is enrolled on course C1. Note that the meaning is language-independent; the sentence is not! Note also that we get a very similar sentence, with very similar meaning, if we just change either of the designators, S1 and C1 (e.g., replace C1 by C2).

4 What Kind of Sentence? A sentence having the grammatical form of a statement something that can be believed, or not believed. In English, if Is it true that x? is a grammatical English question, then x is a statement (having the form of a declarative sentence). Might need to paraphrase x. E.g. (from Shakespeare): O for a muse of fire I wish for a muse of fire. To be or not to be, that is the question The question is whether to be or not to be

5 Some Counterexamples Sentences that are not declarative: Lets all get drunk. Will you marry me? Please pass me the salt. If music be the food of love, play on.

6 Some Examples Sentences that are declarative (and so denote predicates): Student S1 is enrolled on course C1. I will marry you. The king of France is bald = 5 x < y a + b = c Student s is enrolled on course c. P(x) (notation for the general form) Propositions Parameters

7 Deriving Predicates from Predicates (1) Substitution: of a designator for a parameter Given an n-adic predicate, yields an (n-1)-adic predicate. E.g., in a < b substitute 10 for b to give a < 10. Now substitute 5 for a, and we get 5 < 10, a proposition. Instantiation: substitution of all the parameters, yielding a proposition.

8 Intension and Extension Of a predicate: Intension: its meaning (loosely speaking). Extension: all the instantiations that are (believed to be) true. The concept of extension is crucially important in relational theory. Note that it is a set of propositions. Alternatively, it is a single proposition formed by connecting all the members of that set together using and. Note in passing that the extension of a niladic predicate is either itself (if it is true) or the empty set (if it is false).

9 Deriving Predicates from Predicates (2) The familiar logical operators: conjunction: Student s is enrolled on course c and s is called name. disjunction: a < b or c < d negation: It is not the case that I will marry you.

10 Deriving Predicates from Predicates (3) Conditionals: implication: If you ask me nicely, then I will marry you. only if: I will marry you only if you ask me nicely. biconditional: I will marry you if and only if you ask me nicely. (equivalence)

11 Deriving Predicates from Predicates (4) Quantifiers: existential: There exists s such that s is a student and s is enrolled on course c. ( At least one student is enrolled on course c.) universal: For all s, if s is a student then s is enrolled on course c. ( All the students are enrolled on course c.) Quantification, like substitution, binds a parameter.

12 Sets Let P(x) be a predicate. If object a is such that P(a) is true, then a is said to satisfy P. And P(x) is called a membership predicate for the set consisting of all such objects a. Example: x is an integer such that 1 < x < 4 x is an integer such that 1 < x < 4 is a membership predicate for the set consisting of the elements 2 and 3, denoted by the expression { 2, 3 } (an enumeration). This set is also denoted by { x : x Z and 1 < x and x < 4 }.

13 The Language of Sets (1) Let A and B be sets with membership predicates PA(x) and PB(x), respectively. Let a be an element. Then we have the following comparisons: membership: a A (a is a member of A) containment: B A (B is a subset of A) A B (A is a superset of B) B A (B is a proper subset of A) A B (A is a proper superset of B) equality: A = B (A B and B A) disjointness: A and B are disjoint (have no members in common)

14 The Language of Sets (2) And the following operations on sets that yield sets: union: A B = {x : x A or x B} (disjunction) intersection: A B = {x : x A and x B} (conjunction) complement: (of A) = {x : not x A} (negation) difference: A - B = {x : x A and not x B}

15 EXERCISES StudentIdNameCourseId S1AnneC1 S1AnneC2 S2BorisC1 S3CindyC3 S4DevinderC1 Assume that the membership predicate for the following relation is Student StudentId, named Name, is enrolled on course CourseId. (The exercises are in the Notes)