Exclusive Disjunction

Similar documents
1.1 Introduction to Sets

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall

2. Sets. 2.1&2.2: Sets and Subsets. Combining Sets. c Dr Oksana Shatalov, Spring

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall Set-builder notation (a more precise way of describing a set)

Show Your Work! Point values are in square brackets. There are 35 points possible. Some facts about sets are on the last page.

Circles & Interval & Set Notation.notebook. November 16, 2009 CIRCLES. OBJECTIVE Graph a Circle given the equation in standard form.

A B is shaded A B A B

The objects in a set are the elements or members of the set. Always enclose the elements of a set in curly brackets. is read is an element of

Discrete Mathematics. (c) Marcin Sydow. Sets. Set operations. Sets. Set identities Number sets. Pair. Power Set. Venn diagrams

Logic, Sets, and Proofs

With Question/Answer Animations. Chapter 2

Introduction to Set Operations

Chapter 0: Sets and Numbers

A set is an unordered collection of objects.

Propositional Logic, Predicates, and Equivalence

CISC 1100: Structures of Computer Science

1. (B) The union of sets A and B is the set whose elements belong to at least one of A

Discrete Mathematical Structures: Theory and Applications

1 Chapter 1: SETS. 1.1 Describing a set

Finite Math Section 6_1 Solutions and Hints

CM10196 Topic 2: Sets, Predicates, Boolean algebras

Set builder notation: Describe the set in terms of its properties, Chapter 1: SETS AND PROBABILITY. 1.1 Introduction to Sets

Mathematical Reasoning (Part I) 1

Chapter-2 SETS In Mathematics, Set theory was developed by George Cantor ( ).

Chapter Summary. Sets (2.1) Set Operations (2.2) Functions (2.3) Sequences and Summations (2.4) Cardinality of Sets (2.5) Matrices (2.

Examples. Example (1) Example (2) Let x, y be two variables, and denote statements p : x = 0 and q : y = 1. Solve. x 2 + (y 1) 2 = 0.

1.1 Language and Logic

CSI30. Chapter 2. Basic Structures: Sets, Functions, Sequences, Sums. 2.1 Sets and subsets 2.2 Sets of sets

Lecture 2. Logic Compound Statements Conditional Statements Valid & Invalid Arguments Digital Logic Circuits. Reading (Epp s textbook)

1.1 Language and Logic

Sets. Introduction to Set Theory ( 2.1) Basic notations for sets. Basic properties of sets CMSC 302. Vojislav Kecman

Math 3201 Unit 1 Set Theory

Proofs. Joe Patten August 10, 2018

This is a listing of common symbols found within all branches of mathematics 1. x = y means x and y represent the same thing or value.

Logic and Proof. On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes!

2-7 Solving Quadratic Inequalities. ax 2 + bx + c > 0 (a 0)

On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes! 26-Aug-2011 MA

Fall Math 140 Week-in-Review #5 courtesy: Kendra Kilmer (covering Sections 3.4 and 4.1) Section 3.4

SETS. JEE-Mathematics

In this initial chapter, you will be introduced to, or more than likely be reminded of, a

CHAPTER 1. Preliminaries. 1 Set Theory

Propositional Logic and Semantics

Revision Topic 8: Solving Inequalities Inequalities that describe a set of integers or range of values

Sets. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing Spring, Outline Sets An Algebra on Sets Summary

MATH 120. Test 1 Spring, 2012 DO ALL ASSIGNED PROBLEMS. Things to particularly study

Discrete Basic Structure: Sets

CSE 20 DISCRETE MATH. Winter

Background for Discrete Mathematics

Chapter 7. Inclusion-Exclusion a.k.a. The Sieve Formula

Read ahead and use your textbook to fill in the blanks. We will work the examples together.

Logic Review Solutions

CSC Discrete Math I, Spring Propositional Logic

~ p is always false. Based on the basic truth table for disjunction, if q is true then p ~

ICS141: Discrete Mathematics for Computer Science I

INTRODUCTION TO LOGIC. Propositional Logic. Examples of syntactic claims

1-1. Expressions and Formulas. Lesson 1-1. What You ll Learn. Active Vocabulary

Sets McGraw-Hill Education

Chapter 2 - Basics Structures

Math 110 (S & E) Textbook: Calculus Early Transcendentals by James Stewart, 7 th Edition

Table of mathematical symbols - Wikipedia, the free encyclopedia

Sec$on Summary. Definition of sets Describing Sets

6.1 Logic. Statements or Propositions. Negation. The negation of a statement, p, is not p and is denoted by p Truth table: p p

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

Numbers that are divisible by 2 are even. The above statement could also be written in other logically equivalent ways, such as:

Topics in Logic and Proofs

Name: Block: Unit 2 Inequalities

CS 2336 Discrete Mathematics

1. SET 10/9/2013. Discrete Mathematics Fajrian Nur Adnan, M.CS

Austin is the capital of Texas, and Texas shares a border with Louisiana. is true because p is true and r is true. 2-2 Logic

SET THEORY. 1. Roster or Tabular form In this form the elements of the set are enclosed in curly braces { } after separating them by commas.

Section 1.1: Logical Form and Logical Equivalence

Logic and Propositional Calculus

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

Introducing Proof 1. hsn.uk.net. Contents

The Nature of Mathematics 13th Edition, Smith Notes. Korey Nishimoto Math Department, Kapiolani Community College October

Today s topics. Introduction to Set Theory ( 1.6) Naïve set theory. Basic notations for sets

CHAPTER 1 SETS AND EVENTS

ICS141: Discrete Mathematics for Computer Science I

Connectives Name Symbol OR Disjunction And Conjunction If then Implication/ conditional If and only if Bi-implication / biconditional

Chapter 2 - Basics Structures MATH 213. Chapter 2: Basic Structures. Dr. Eric Bancroft. Fall Dr. Eric Bancroft MATH 213 Fall / 60

Sets and Logic Linear Algebra, Spring 2012

Welcome to CS103! Two Handouts Today: Course Overview Introduction to Set Theory The Limits of Computation

HANDOUT AND SET THEORY. Ariyadi Wijaya

SET THEORY. Disproving an Alleged Set Property. Disproving an Alleged Set. Example 1 Solution CHAPTER 6

Math 3338: Probability (Fall 2006)

Example. Logic. Logical Statements. Outline of logic topics. Logical Connectives. Logical Connectives

Homework every week. Keep up to date or you risk falling behind. Quizzes and Final exam are based on homework questions.

Math Fall 2014 Final Exam Solutions

Set Operations. Combining sets into new sets

CISC-102 Fall 2017 Week 1 David Rappaport Goodwin G-532 Office Hours: Tuesday 1:30-3:30

THE LOGIC OF COMPOUND STATEMENTS

Unary negation: T F F T

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

What is Logic? Introduction to Logic. Simple Statements. Which one is statement?

Phil Introductory Formal Logic

Logic and Propositional Calculus

Math 1312 Lesson 1: Sets, Statements, and Reasoning. A set is any collection of objects. These objects are called the elements of the set.

Handout on Logic, Axiomatic Methods, and Proofs MATH Spring David C. Royster UNC Charlotte

Chapter 1: The Logic of Compound Statements. January 7, 2008

Notes for Science and Engineering Foundation Discrete Mathematics

Transcription:

Exclusive Disjunction Recall A statement is a declarative sentence that is either true or false, but not both. If we have a declarative sentence s, p: s is true, and q: s is false, can we rewrite s is a statement into symbols?

Exclusive Disjunction Recall A statement is a declarative sentence that is either true or false, but not both. If we have a declarative sentence s, p: s is true, and q: s is false, can we rewrite s is a statement into symbols? (p q) ( (p q)) is one direct answer.

Exclusive Disjunction Recall A statement is a declarative sentence that is either true or false, but not both. If we have a declarative sentence s, p: s is true, and q: s is false, can we rewrite s is a statement into symbols? (p q) ( (p q)) is one direct answer. The textbook uses p q to simplify the notation, and calls it the exclusive disjunction of p and q.

Exclusive Disjunction Recall A statement is a declarative sentence that is either true or false, but not both. If we have a declarative sentence s, p: s is true, and q: s is false, can we rewrite s is a statement into symbols? (p q) ( (p q)) is one direct answer. The textbook uses p q to simplify the notation, and calls it the exclusive disjunction of p and q. What s the truth value?

Exclusive Disjunction (Continued) Now we want to find the truth table for (p q) ( (p q)), the exclusive disjunction of p and q. Beginning with p q p q (p q) (p q) ( (p q)) T T T F F T F F, we fill the third column to have

Exclusive Disjunction (Continued) Now we want to find the truth table for (p q) ( (p q)), the exclusive disjunction of p and q. Beginning with p q p q (p q) (p q) ( (p q)) T T T F F T F F, we fill the third column to have p q p q (p q) (p q) ( (p q)) T T T T F T F T T F F F.

Exclusive Disjunction (Continued) Then we fill the fourth column, getting p q p q (p q) (p q) ( (p q)) T T T F T F T T F T T T F F F T.

Exclusive Disjunction (Continued) Then we fill the fourth column, getting p q p q (p q) (p q) ( (p q)) T T T F T F T T F T T T F F F T. Finally there is p q p q (p q) (p q) ( (p q)) T T T F F T F T T T F T T T T F F F T F.

Exclusive Disjunction (Continued) Then we fill the fourth column, getting p q p q (p q) (p q) ( (p q)) T T T F T F T T F T T T F F F T. Finally there is p q p q (p q) (p q) ( (p q)) T T T F F T F T T T F T T T T F F F T F. Conclusion: p q is true iff p and q have opposite truth values.

Back to the Initial Problem Fill the truth table p q p q p q p q T T T F F T F F, you will have

Back to the Initial Problem Fill the truth table p q p q p q p q T T T F F T F F, you will have p q p q p q p q T T T T F F T F F T F T F T F T T F F F F F T T. Each row has two T s, explaining the answer.

Summary You are supposed to know how to create truth tables for compound statements, and determine their truth values, based on the truth values of their perspective generators (p, q, etc.).

1.1: Introduction to Sets Jiakun Pan Jan 18, 2019

Sets A set is a collection of items. We use curly brackets {, } to contain it. Each of these items are called an element or member of the set.

Sets A set is a collection of items. We use curly brackets {, } to contain it. Each of these items are called an element or member of the set. For example, the set {1, 2, 3} is the collection of numbers 1, 2, and 3. These numbers are the elements or members of the set.

Sets A set is a collection of items. We use curly brackets {, } to contain it. Each of these items are called an element or member of the set. For example, the set {1, 2, 3} is the collection of numbers 1, 2, and 3. These numbers are the elements or members of the set. Order doesn t matter, so {1, 2, 3} = {3, 2, 1}.

Sets A set is a collection of items. We use curly brackets {, } to contain it. Each of these items are called an element or member of the set. For example, the set {1, 2, 3} is the collection of numbers 1, 2, and 3. These numbers are the elements or members of the set. Order doesn t matter, so {1, 2, 3} = {3, 2, 1}. Every element of a set must be unique. In other words, things like {1, 2, 2} are not considered to be sets.

Sets A set is a collection of items. We use curly brackets {, } to contain it. Each of these items are called an element or member of the set. For example, the set {1, 2, 3} is the collection of numbers 1, 2, and 3. These numbers are the elements or members of the set. Order doesn t matter, so {1, 2, 3} = {3, 2, 1}. Every element of a set must be unique. In other words, things like {1, 2, 2} are not considered to be sets.

Representing Sets There are two ways to write out a set. Roster notation lists all elements of the set, like {1, 2, 3}.

Representing Sets There are two ways to write out a set. Roster notation lists all elements of the set, like {1, 2, 3}. Set-builder notation describes all elements instead, so you may also write {x x is an integer greater than 1 2 and less than π}, or {Integer x 1 2 < x < π}, for the same set.

Representing Sets There are two ways to write out a set. Roster notation lists all elements of the set, like {1, 2, 3}. Set-builder notation describes all elements instead, so you may also write {x x is an integer greater than 1 2 and less than π}, or {Integer x 1 2 < x < π}, for the same set. Conventionally we use uppercase letters A, B,... to denote sets, and use lowercase letters a, b,... to denote elements. If a set A contains an element a (or a is in A), we write a A.

Subsets Given sets A and B, we call A is a subset of B (or B contains A), if statement x B is true for all x A. Write it A B.

Subsets Given sets A and B, we call A is a subset of B (or B contains A), if statement x B is true for all x A. Write it A B. If A B, and B A, then A = B.

Subsets Given sets A and B, we call A is a subset of B (or B contains A), if statement x B is true for all x A. Write it A B. If A B, and B A, then A = B. Furthermore, if A B, but A B, then we also call A is a proper subset of B, and write A B.

Subsets Given sets A and B, we call A is a subset of B (or B contains A), if statement x B is true for all x A. Write it A B. If A B, and B A, then A = B. Furthermore, if A B, but A B, then we also call A is a proper subset of B, and write A B. We negate all symbols with a slash /, so a / A means a is not in A, A B says A is not a subset of B, and A B stands for A is not a proper subset of B.

Subsets Given sets A and B, we call A is a subset of B (or B contains A), if statement x B is true for all x A. Write it A B. If A B, and B A, then A = B. Furthermore, if A B, but A B, then we also call A is a proper subset of B, and write A B. We negate all symbols with a slash /, so a / A means a is not in A, A B says A is not a subset of B, and A B stands for A is not a proper subset of B. Transitivity Law: A B C implies A C. Same for.

The Empty Set If a set has not elements, then we call the set the empty set, and write it as {} or.

The Empty Set If a set has not elements, then we call the set the empty set, and write it as {} or. By definition, the empty set is a subset of all sets.

The Empty Set If a set has not elements, then we call the set the empty set, and write it as {} or. By definition, the empty set is a subset of all sets. Example Find all subsets of {T, A, M, U}.

The Empty Set If a set has not elements, then we call the set the empty set, and write it as {} or. By definition, the empty set is a subset of all sets. Example Find all subsets of {T, A, M, U}. There are 16 subsets in total, which are {T, A, M, U}, {A, M, U}, {T, M, U}, {T, A, U}, {T, A, M}, {M, U}, {T, M}, {A, M}, {T, A}, {T, U}, {A, U}, {T }, {A}, {M}, {U}, and.

The Universal Set and Venn Diagram The universal set is opposite to the empty set. Its elements depend on topic that we are discussing. All sets are subsets of it. As a convention, we use letter U to represent the universal set.

The Universal Set and Venn Diagram The universal set is opposite to the empty set. Its elements depend on topic that we are discussing. All sets are subsets of it. As a convention, we use letter U to represent the universal set. A Venn diagram is a way of visualizing (NOT writing!) sets. The universal set is represented by a rectangle, while others by circles. A B U Above shows the relationship between A and B within a fixed universal set U, which is B A, and more accurately, B A.

Set Operations Just like we use connectives to generate new statements, we can also generate new sets with given sets, and the tools here are set operations.

Set Operations Just like we use connectives to generate new statements, we can also generate new sets with given sets, and the tools here are set operations. There are three types of operations, too. Intersection - Union - Complement - c

Intersection & Union Given two sets A and B, we write A B for the intersection of A and B, which is the set that contains elements in both of the two sets, and nothing else.

Intersection & Union Given two sets A and B, we write A B for the intersection of A and B, which is the set that contains elements in both of the two sets, and nothing else. Accordingly, we denote the union of A and B by A B, the set that consists of elements belonging to either A or B.

Intersection & Union Given two sets A and B, we write A B for the intersection of A and B, which is the set that contains elements in both of the two sets, and nothing else. Accordingly, we denote the union of A and B by A B, the set that consists of elements belonging to either A or B. By definition, you can see A B = B A; A B = B A; A B A A B; and A B B B A.

Example Example Let U be {(x, y) x, y are real numbers}. Write A = {(x, y) U x = 0}, and B = {(x, y) U y = 1}. Question: what are A B and A B?

Example Example Let U be {(x, y) x, y are real numbers}. Write A = {(x, y) U x = 0}, and B = {(x, y) U y = 1}. Question: what are A B and A B? Answer: A B = {(x, y) U x = 0 and y = 1} = {(0, 1)}; A B = {(x, y) U x = 0 or y = 1}.