The Language of Sets and Functions

Similar documents
2. Functions, sets, countability and uncountability. Let A, B be sets (often, in this module, subsets of R).

Figure 1.1: This is an illustration of a generic set and its elements.

Review of Sets. Review. Philippe B. Laval. Current Semester. Kennesaw State University. Philippe B. Laval (KSU) Sets Current Semester 1 / 16

SET DEFINITION 1 elements members

Functions. How is this definition written in symbolic logic notation?

Sets MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Sets Fall / 31

Functions. Def. Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A.

Functions 2/1/2017. Exercises. Exercises. Exercises. and the following mathematical appetizer is about. Functions. Functions

CS100: DISCRETE STRUCTURES

Introduction II. Sets. Terminology III. Definition. Definition. Definition. Example

Sets 1. The things in a set are called the elements of it. If x is an element of the set S, we say

2.3: FUNCTIONS. abs( x)

CSC Discrete Math I, Spring Sets

MA651 Topology. Lecture 4. Topological spaces 2

EDAA40 At home exercises 1

Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103. Chapter 2. Sets

Complexity Theory. Compiled By : Hari Prasad Pokhrel Page 1 of 20. ioenotes.edu.np

Discrete Mathematics

2 Review of Set Theory

A set with only one member is called a SINGLETON. A set with no members is called the EMPTY SET or 2 N

T. Background material: Topology

SETS. Sets are of two sorts: finite infinite A system of sets is a set, whose elements are again sets.

Chapter 3. Set Theory. 3.1 What is a Set?

1.1 - Introduction to Sets

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

Lecture 7: the quotient topology

Sets. Mukulika Ghosh. Fall Based on slides by Dr. Hyunyoung Lee

Slides for Faculty Oxford University Press All rights reserved.

MATHEMATICS 191, FALL 2004 MATHEMATICAL PROBABILITY Outline #1 (Countability and Uncountability)

CSE 20 DISCRETE MATH. Fall

CSE 20 DISCRETE MATH. Winter

CHAPTER 3 FUZZY RELATION and COMPOSITION

2.2 Set Operations. Introduction DEFINITION 1. EXAMPLE 1 The union of the sets {1, 3, 5} and {1, 2, 3} is the set {1, 2, 3, 5}; that is, EXAMPLE 2

Today s Topics. What is a set?

CHAPTER 8. Copyright Cengage Learning. All rights reserved.

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Discrete Mathematics

Notes on metric spaces and topology. Math 309: Topics in geometry. Dale Rolfsen. University of British Columbia

Discrete Mathematics Lecture 4. Harper Langston New York University

Problem One: A Quick Algebra Review

Algebra of Sets (Mathematics & Logic A)

13 th Annual Johns Hopkins Math Tournament Saturday, February 19, 2011 Automata Theory EUR solutions

A.1 Numbers, Sets and Arithmetic

Lecture IV - Further preliminaries from general topology:

Semantics via Syntax. f (4) = if define f (x) =2 x + 55.

What is a Set? Set Theory. Set Notation. Standard Sets. Standard Sets. Part 1.1. Organizing Information

[Ch 6] Set Theory. 1. Basic Concepts and Definitions. 400 lecture note #4. 1) Basics

9/19/12. Why Study Discrete Math? What is discrete? Sets (Rosen, Chapter 2) can be described by discrete math TOPICS

2/18/14. Uses for Discrete Math in Computer Science. What is discrete? Why Study Discrete Math? Sets and Functions (Rosen, Sections 2.1,2.2, 2.

Functions (4A) Young Won Lim 5/8/17

2.1 Sets 2.2 Set Operations

Summary of Course Coverage

Cardinality Lectures

Lecture 17: Continuous Functions

In this section we take an aside from the normal discussion in algebra.

This Lecture. We will first introduce some basic set theory before we do counting. Basic Definitions. Operations on Sets.

1.5 Part - 2 Inverse Relations and Inverse Functions

A GRAPH FROM THE VIEWPOINT OF ALGEBRAIC TOPOLOGY

Lecture 25 : Counting DRAFT

Review of Operations on the Set of Real Numbers

On Soft Topological Linear Spaces

r=1 The Binomial Theorem. 4 MA095/98G Revision

Comparing sizes of sets

AXIOMS FOR THE INTEGERS

Functions (4A) Young Won Lim 3/16/18

Basic Properties The Definition of Catalan Numbers


Set and Set Operations

Computer Science and Mathematics. Part I: Fundamental Mathematical Concepts Winfried Kurth

Functions and Sequences Rosen, Secs. 2.3, 2.4

CHAPTER 3 FUZZY RELATION and COMPOSITION

Category Theory & Functional Data Abstraction

1 Point Set Topology. 1.1 Topological Spaces. CS 468: Computational Topology Point Set Topology Fall 2002

.Math 0450 Honors intro to analysis Spring, 2009 Notes #4 corrected (as of Monday evening, 1/12) some changes on page 6, as in .

Introduction to Sets and Logic (MATH 1190)

13 th Annual Johns Hopkins Math Tournament Saturday, February 18, 2012 Explorations Unlimited Round Automata Theory

Grade 6 Math Circles November 6 & Relations, Functions, and Morphisms

Algebraic Expressions

THEORY OF COMPUTATION

CS243, Logic and Computation Sets, functions, and languages

What is Set? Set Theory. Notation. Venn Diagram

Lecture 11 COVERING SPACES

LECTURE 8: SETS. Software Engineering Mike Wooldridge

Section 1.7 Sequences, Summations Cardinality of Infinite Sets

2 Sets. 2.1 Notation. last edited January 26, 2016

Algorithm. Algorithm Analysis. Algorithm. Algorithm. Analyzing Sorting Algorithms (Insertion Sort) Analyzing Algorithms 8/31/2017

c) the set of students at your school who either are sophomores or are taking discrete mathematics

9.5 Equivalence Relations

1 Sets, Fields, and Events

M3P1/M4P1 (2005) Dr M Ruzhansky Metric and Topological Spaces Summary of the course: definitions, examples, statements.

Copyright 2006 Melanie Butler Chapter 1: Review. Chapter 1: Review

THREE LECTURES ON BASIC TOPOLOGY. 1. Basic notions.

Logic and Discrete Mathematics. Section 2.5 Equivalence relations and partitions

A graph is finite if its vertex set and edge set are finite. We call a graph with just one vertex trivial and all other graphs nontrivial.

Section 2.4 Sequences and Summations

W13:Homework:H07. CS40 Foundations of Computer Science W13. From 40wiki

The set consisting of all natural numbers that are in A and are in B is the set f1; 3; 5g;

MATH 139 W12 Review 1 Checklist 1. Exam Checklist. 1. Introduction to Predicates and Quantified Statements (chapters ).

Programming Lecture 3

ECS 20 Lecture 9 Fall Oct 2013 Phil Rogaway

Table : IEEE Single Format ± a a 2 a 3 :::a 8 b b 2 b 3 :::b 23 If exponent bitstring a :::a 8 is Then numerical value represented is ( ) 2 = (

Transcription:

MAT067 University of California, Davis Winter 2007 The Language of Sets and Functions Isaiah Lankham, Bruno Nachtergaele, Anne Schilling (January 7, 2007) 1 The Language of Sets 1.1 Definition and Notation We begin by defining a set to be any well-defined collection of distinct objects. This means two things: there is no ambiguity in deciding whether or not a given object belongs to a set, and the objects in a set must be distinguishable from each other. Definition 1.1. A set S is any (unordered) collection of (distinct) objects s whose membership in S is well-defined. Given an object s, we say that s is an element of S, denoted s S, if s is any object inside S. Otherwise, we write s / S. Example 1.2. Some examples of sets include 1. the empty set (a.k.a the null set), which is denote by {} or. This is the set with no objects inside of it, which is certainly valid under the definition of set. In particular, given any object s, s /. 2. so-called singleton sets. These are sets that contain only a single element. 3. the set {a, b, c} containing the first three lower case English letters. Since the elements in a set are unordered, we could also write this set as {a, c, b} or {c, b, a}, etc. Note that the elements in a set are also required to be distinct. Given this requirement, something like {a, b, a, c} would not be considered a set. However, it is often convenient to just agree that {a, b, a, c} = {a, b, c} unless the context dictates otherwise. 4. the sets Z, R, and C, of integers, real numbers, and complex numbers, respectfully. 5. the single set {Z, R, C} that contains as object the sets of numbers from the last example. There is nothing in the definition that restricts objects from being also sets. Copyright c 2006 by the authors. These lecture notes may be reproduced in their entirety for noncommercial purposes.

1 THE LANGUAGE OF SETS 2 6. the set B of all US bookstores holding a book sale at a fixed moment in time. Even though it would most likely be quite difficult to explicitly list its elements, B nonetheless qualifies as a set. In particular, one could determine whether or not a particular bookstore b is an element of B by telephoning them to ask about book sales. At the same time, though, note that the collection B of all interesting US bookstores holding sales during a fixed moment in time would not be a set. The problem with B is that there is no well-defined membership rule unless we can first rigorously define what it means for a bookstore to be interesting. Note that these two bookstore examples only make sense if we first define the set of all US bookstores U so that any particular bookstore b U is well-defined as an object before being tested for membership in a set like B. More generally, there is an all-encompassing universal set, often dictated implicitly by the context, that contains every object s that we might wish to test for membership in a set S. A common practice is then to specify S by giving some type of pattern or constructive algorithm that distinguishing objects within the universal set. We illustrate three most common methods for this in the following example. Example 1.3. 1. The simplest form of pattern uses list notation in order to either explicitly or implicitly list every element in a set. The set {a, b, c} from Example??(1) above is an example of the former, and the set of integers Z = {..., 2, 1, 0, 1, 2,...} from Example??(2) is an example of the latter. 2. A more involved method of specifying a set uses something called set builder notation. Here, a generic object from some universal set is restricted by an explicit condition in order to specify elements. An example is the set of rational numbers { a } Q = b a, b Z, b 0 where we start by taking the entire universe of (admittedly ill-defined) fractions a/b and then restrict to the case that each fraction is formed over the integers without zero division. This notation should be read something like Q is the set of all fractions a b such that a and b are integers and b 0. 3. Finally, when dealing with numbers, a common variant of set builder notation is interval notation. Here, elements are selected from a universal set based upon their relative size or rank. For example, (1, 3] = {x R 1 < x 3}.

1 THE LANGUAGE OF SETS 3 1.2 Operations and Relations on Sets Given how fundamental sets are to the mathematical thought process, you should not be surprised to know that there is a rich vocabulary for describing how sets can be related to each other and operated upon by other sets. In this section, we briefly look at the most basic of such concepts. Definition 1.4. Given two sets S and T, we say that S is a subset of T or that S is contained in T (denoted S T or T S) if, given any element s S, s is also an element of T. Moreover, if S T but S T, then we call S a proper subset of T. We summarize some of the basic properties of set containment as follows. Theorem 1.5. Let R, S, and T be sets. Then 1. R. 2. (reflexivity) R R. 3. (antisymmetry) If R S and S R, then R = S. 4. (transitivity) If R S and S T, then R T. We also define the following operations on sets: Definition 1.6. Let S, T be sets with respect to some universal set U. Then we define 1. the union of S and T to be the set S T = {x U x S or x T }. 2. the intersection of S and T to be the set S T = {x U x S and x T }. 3. the complement of S to be the set S = {x U x / S}. 4. the set difference of S from T to be the set T \ S = {x U x T but x / S}. There are many, many ways in which these operations interact. We summarize some of the most essential properties as follows: Theorem 1.7. Let R, S, T be sets. Then 1. (distributivity) R (S T) = (R S) (R T) and R (S T) = (R S) (R T). 2. (De Morgan s Laws) à B = à B and à B = à B. 3. (relative complements) A\(B C) = (A\B) (A\C) and A\(B C) = (A\B) (A\C). We close this section with another fundamental operation on sets. Unlike the above operations on sets, though, the Cartesian product of two sets builds a set of entirely new objects and is not based upon comparison. In particular, given sets S and T, their Cartesian product is the set S T = {(x, y) x S and y T } of all ordered pairs that can be formed with elements from S in the first position and elements from T in the second position.

2 THE LANGUAGE OF FUNCTIONS 4 2 The Language of Functions 2.1 Definition and Notation While sets are already a useful concept, their utter ubiquity and indispensability in mathematical problem solving comes from the definition of a function. In particular, a function is a special type of relationship between two sets that we define as follows. Definition 2.1. A function f : X Y is a rule that assigns to each element x in a set X called the domain exactly one element y in a set Y called the codomain. Moreover, if x X is assigned the value y Y, then we call y the image of x under f and denote this relationship by x = f(y). We can also associate to every function its graph, meaning the set {(x, f(x)) x X}, which is a subset of the Cartesian product X Y. In particular, we can define the range of a function f to be the set Ran(f) = {y Y y = f(x) for some x X}. Then the graph of f is exactly X Ran(f) X Y. We also define the pre-image (a.k.a. pullback) of each individual y Y as the set f 1 (y) = {x X f(x) = y}. 2.2 Some Special Types of Functions There are three basic types of functions, each of which distinctly places extra conditions on how elements in the domain are assigned values in the codomain. The resulting fundamental classes of functions are summarized in the following definition. Definition 2.2. Let f : X Y be a function. Then we call f 1. an injection (a.k.a. a one-to-one function) if f assigns at most one element from the domain to each element in the codomain. In other words, f is an injection if, for each y Y, the cardinality f 1 (y) of the pullback of y is at most one. 2. a surjection (a.k.a. an onto function) if f assigns at least one element from the domain to each element in the codomain. In other words, f is a surjection if, for each y Y, the cardinality f 1 (y) of the pullback of y is at least one. 3. a bijection (a.k.a. an invertible function) if f is both an injection and a surjection. In other words, f is a bijection if, for each y Y, the cardinality f 1 (y) of the pullback of y is exactly one. In particular, if f is a bijection, then the assignment of values from the domain to the codomain is called a one-to-one correspondence since exactly one element in the domain corresponds to exactly one element in the codomain. Consequently, it is then possible to literally undo the assignment of values under f. This yields the inverse of the function f,

2 THE LANGUAGE OF FUNCTIONS 5 which we denote by f 1. Since each pullback of a bijection is a singleton set, this is only a minor abuse of notation. We conclude this section with some distinguished examples of functions that arise frequently in mathematics. Example 2.3. Let X and Y be sets. Then, 1. for each y Y, we can define the constant map const y : X Y whose values are given by const y (x) = y for each x X. Note in particular that const y is one-to-one if and only if Y = {y} is a singleton set, and const y is onto if and only if X = {x} is a singleton set. It follows that const y is invertible if and only if X = Y = {y}. But then const y is just a special case of the identity map, which we define next. 2. if X = Y, we can define the identity function id X : X Y whose values are given by id X (x) = x for each x X. Clearly id X is a bijection regardless of the structure on X, and, moreover, id X is equal to its own inverse function id 1 X. 3. if X Y, we can define the inclusion map incl X : X Y whose values are given by incl X (x) = x for each x X. Clearly incl X is a one-to-one function, but it cannot be onto unless X = Y. 2.3 Operations on Functions We conclude these notes by defining the following two operations on functions. Both will see many applications throughout your study of Linear Algebra. Definition 2.4. Let f : X Y and g : Y Z be functions. Then 1. we can define the composition of f with g as the function g f : X Z whose values are given by (g f)(x) = g(f(x)) for each x X. 2. we can define the restriction of f to a subset W X as the function f W : X Y whose values are given by f W (w) = f(w) for each w W. In particular, composition interacts with invertible functions in way that might appear somewhat unnatural at first. Theorem 2.5. Let f : X Y and g : Y Z be bijections. Then (g f) 1 = f 1 g 1 To remember this result, you should sit down and draw a diagram in order to more clearly see how inverting functions as stated reverses the order in which the sets X, Y, and Z are visited by the resulting functions.