SlideShare a Scribd company logo
1 of 7
Download to read offline
LG511 Basic Ideas of Set Theory, Relations, and Functions
                                           Doug Arnold
                                         University of Essex
                                         doug@essex.ac.uk


1     Set Theory: Sets and Membership
1.1    Sets
A set is a collection of things, (with some clear criterion for membership).
Sets are defined by their members — two sets are different if and only if (iff) they have different
members. Hence:
  i. {a, b, c} = {c, b, a}
 ii. {a, b, c} = {a, a, a, a, a, b, c, c}
iii. there is only one empty set, written {}, or ∅
iv. Suppose LS and HoD are one and the same, then:

    {LS , RMA, DJA} = {HoD, RMA, DJA}


1.2    Specifying Sets
Sets can be specified:
 i. Extensionally:
    A = {1 , a, Noam Chomsky, lg517 }
ii. Intensionally:
    A = {x : x is greater than 4 }
    {x |x > 4 }
    {x : x > 4 }
    {x : x > 2 + 2 }
    {y : y <= 5 }
    etc.


1.3    Membership
  i. a is a member (or element) of {a, b, c}, written: a ∈ {a, b, c};
 ii. a is not a member of {b, c, d }, written: a ∈ {b, c, d }
iii. The empty set has no members
iv. A singleton set has exactly one member


1.4    Cardinality
Suppose A = {a, b, c}, then
 i. |A| = | {a, b, c} | = 3
ii. | {x : x > 4 } | = inf



                                                    1
1.5     Sets as Individuals
Sets are things — individuals — and so can be members of sets:
  i. A = {a, {b, c}, lg517 , AR}
 ii. B = {a, b, c, lg517 , AR}
iii. |A| = 4
iv. |B| = 5
 v. {} = {{}}
vi. | {} | = 0
vii. | {{}} | = 1


1.6     Relations between Sets
1.6.1    Equality

Sets A and B are equal, written A = B, iff they have the same members.
Suppose A = {a, b, c, d }, B = {d , c, b, a}, and C = {y : y > 4 } then:
 i. A = B
ii. C = A

1.6.2    Subset

Set A is a subset of set B, written A ⊆ B, iff every member of A is a member of B.
B is a superset of A, written B ⊇ A, iff A ⊆ B
  i. {a, b} ⊆ {a, b, c}
 ii. {a, b, c} ⊇ {a, b}
iii. {a, b, c} ⊆ {a, b, c}
iv. A ⊆ A
 v. {} ⊆ A
Note:
  i. a ∈ {a, b, c}
 ii. a ⊆ {a, b, c}
iii. {a} ⊆ {a, b, c}
iv. {a} ∈ {a, b, c}
 v. {a} ∈ {{a} , b, c}

1.6.3    Proper Subset

A is a proper (or strict) subset of B, written A ⊂ B, iff A ⊆ B and A = B
B is a proper (strict) superset of A, written B ⊃ A, iff B ⊇ A and B = A
  i. {a, b} ⊂ {a, b, c}
 ii. {a, b, c} ⊂ {a, b, c}
iii. {a, b, c} ⊆ {a, b, c}


1.7     Power Set
The power set of set A, written Pow (A) or P(A), is the set consisting of all subsets of A:
{S : S ⊂ A}
Example: Suppose A = {a, b, c}, then


                                                   2
             
                                                    {}
                                                                
                                                                 
                                                    {a}
                                                   
                                                   
                                                                 
                                                                 
                                                                 
                                                                
                                                    {b}
                                                   
                                                   
                                                                 
                                                                 
                                                                 
                                                                
                                                     {c}
                                                                
                                         Pow (A) =
                                                    {a, b}
                                                                
                                                                 
                                                    {a, c}
                                                   
                                                   
                                                                 
                                                                 
                                                                 
                                                                
                                                    {b, c}
                                                   
                                                   
                                                                 
                                                                 
                                                                 
                                                                
                                                     {a, b, c}
                                                                

Note:
  i. |Pow (A)| = 2|A|
 ii. |Pow ({a, b})| = 2|{a,b}| = 22 = 4
iii. |Pow ({a, b, c})| = 2|{a,b,c}| = 23 = 8


1.8     Operations on Sets
1.8.1   Venn Diagrams

Venn diagrams provide a very convenient and intuitive way of picturing relations between, and
operations on, sets.

                                                             U
                                                         B



                                               A


                                         Figure 1: Venn Diagram




1.8.2   Complement

The complement of set A, written A− or A, is the set of elements not in A:
A = {x : x ∈ A}

                                                             U




                                               A


                                 Figure 2: A set A and its Complement
                                              indicates the set A
                             indicates the Complement of A: (A− or A = U − A)




                                                    3
1.8.3   Union

The union of sets A and B, written A ∪ B, is the set consisting of all members of A and all members
of B, i.e. every element that is in A or B:
A ∪ B = {x : x ∈ A or x ∈ B }
Example:
{a, b} ∪ {b, c} = {a, b, c}

                                                           U
                                                       B



                                             A


                                   Figure 3: Union of sets A and B
                                  indicates A ∪ B, the Union of A and B



1.8.4   Intersection

The intersection of sets A and B, written A ∩ B, is the set consisting of the elements that are in A
and in B, i.e.
A ∩ B = {x : x ∈ A and x ∈ B }
Example: {a, b, c} ∩ {b, c, d } = {b, c}

                                                           U
                                                       B



                                             A


                                 Figure 4: Intersection of sets A and B
                                indicates A ∩ B, the intersection of A and B



1.8.5   Difference

The set-difference of sets A and B, written A − B, is the set of elements in A, but not in B:
A − B = {x : x ∈ A and x ∈ B }
Example: {a, b, c, d } − {c, d } = {a, b}


1.9     Properties of Operations
For a pair of operations ⊕ and ⊗:
  i. ⊕ is commutative iff A ⊕ B ≡ B ⊕ A
 ii. ⊕ and ⊗ are associative iff A ⊕ (B ⊗ C) ≡ (A ⊕ B) ⊗ C and A ⊗ (B ⊕ C) ≡ (A ⊗ B) ⊕ C
iii. ⊕ and ⊗ are distributive iff A ⊕ (B ⊗ C) ≡ (A ⊕ B) ⊗ (A ⊕ C) and A ⊗ (B ⊕ C) ≡ (A ⊗ B) ⊕ (A ⊗ C)


                                                  4
U
                                                             B



                                                 A


                                       Figure 5: Difference of sets A and B
                                      indicates A − B, the difference of A and B


Examples:
 i. arithmetic +, − (plus, minus) are:
    Commutative : 2 + 3 = 3 + 2
    Associative : 2 + (9 − 5) = (2 + 9) − 5
    Non-distributive : 2 + (9 − 5) = (2 + 9) − (2 + 5)
ii. set-theoretic ∩ and ∪ are:
    Commutative (A ∩ B) = (B ∩ A)
    Associative ((A ∩ B) ∩ C) = (A ∩ (B ∩ A))
    Distributive (A ∪ (B ∩ C)) = ((A ∪ B) ∩ (B ∪ C))


2     Ordered Pairs and Tuples
pair : a, b
3-tuple : a, b, c
n-tuple : a1 , a2 , a3 , . . . , an
Compare: {a, b} = {b, a} but a, b = b, a
Note: a1 , a2 = b1 , b2 iff a1 = b1 , and a2 = b2


2.1     Cartesian Product
A × B = { a, b : a ∈ A and b ∈ B } (the set of ordered pairs a, b st. a is a member of A, and b is
a member of B)
Example: {a, b, c} × {1 , 2 } =
                                                                 
                                               a, 1       a, 2   
                                                b, 1       b, 2
                                                c, 1       c, 2
                                                                 


Note: |A × B| = |A| × |B|


3     Relations and Functions
3.1     Relations
A relation is a regular association of ‘inputs’ (from a domain) and ‘outputs’ (from a range).
i.e. a set of ordered pairs.
Example: let L = {a, b, c} and N = {1 , 2 , 3 }, and the relation R ⊂ L × N be as follows:



                                                       5
        
                                                a, 1   
                                                 b, 1
                                                 c, 2
                                                       

We could also write either of the following:

                                               aR1 R(a, 1)
                                               bR1 R(b, 2)
                                               cR2 R(c, 2)

Note: Relations are defined by their I/Os R1 = R2 just in case they are the same sets of ordered
pairs, e.g. R1 : Children × Mothers = R2 : Children × Mothers of siblings


3.2     Properties of Relations
3.2.1   Reflexivity

A relation R is
reflexive iff for all x, xRx
     Examples: is the same height as, ⊆, =
irreflexive iff for all x, not xRx
     Examples: father of, ∈
nonreflexive iff neither reflexive nor irreflexive
     Example: likes

3.2.2   Symmetry

A relation R is:
symmetric iff for all x y, xRy implies yRx
     Example: is related to
asymmetric iff for all x y, xRy implies not yRx
     Example: mother of
nonsymmetric iff for all x y, xRy implies neither yRx nor ¬yRx
antisymmetric iff for all x y, xRy and yRx implies y = x
     Example: less than or equal to

3.2.3   Transitivity

A relation R is:
transitive iff for all x,y,z xRy and yRz implies xRz
      Examples: is greater than, is in, is a subset of
intransitive iff for all x,y,z xRy and xRz implies not xRz
      Example: is immediately to the left of
nontransitive iff neither transitive nor intransitive
Equivalence Relations are reflexive, symmetric, and transitive;
Examples: set theoretic equality; is the same age as.


3.3     Functions
A function is a special kind of relation: one which takes (‘maps’) arguments (members of the domain)
to values (unique members of the range).


                                                    6
(functions are ‘unambiguous’ relations).
Recall that a relation is just a set (of ordered pairs) — hence a function is just a special kind of set
(of ordered pairs).
Examples
 i. the following function f0 that maps elements of L to        elements of N : f0 : L → N :
                                                                 
                                                 a, 1            
                                           f0 =     b, 1
                                                    c, 2
                                                                


                                                   f0 (a) = 1
                                                   f0 (b) = 1
                                                   f0 (c) = 2

 ii. f1 : People → Birthdays
iii. f2 : People → Biological Fathers
The following relations are not functions:
  i. { a, 1 , a, 2 , ...}
 ii. relation between birthdays and people
iii. relation between fathers and their children
iv. relation between numbers and their square roots


3.4    Properties of Functions
  i. Functions have (not necessarily functional) inverses (the inverse of f is written f −1 ).
 ii. Functions can be partial, or total.
iii. Functions can be onto, into, etc., 1:1, many:1, etc.


3.5    Characteristic Functions
The Characteristic Function of a set A is a function f : A → {0 , 1 }, such that for all x:

 i. f (x) = 1 if x ∈ A, and
ii. f (x) = 0 otherwise.
Sets and their characteristic functions are 1:1.


4     Reading
Partee et al. (1990, Part A) is a good introduction to set theory.


References
Barbara H. Partee, Alice ter Meulen, and Robert E. Wall. Mathematical Methods in Linguistics.
  Kluwer Academic Publishers, Dordrecht, 1990.




                                                     7

More Related Content

Viewers also liked (13)

Set theory
Set theorySet theory
Set theory
 
Discreet_Set Theory
Discreet_Set TheoryDiscreet_Set Theory
Discreet_Set Theory
 
Set theory
Set theorySet theory
Set theory
 
Sets theory with animation
Sets theory with animationSets theory with animation
Sets theory with animation
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
 
Set Theory and its Applications
Set Theory and its ApplicationsSet Theory and its Applications
Set Theory and its Applications
 
Set theory: by Pratima Nayak
Set theory: by Pratima NayakSet theory: by Pratima Nayak
Set theory: by Pratima Nayak
 
Set Theory
Set TheorySet Theory
Set Theory
 
Set Theory Presentation
Set Theory PresentationSet Theory Presentation
Set Theory Presentation
 
Set Theory
Set TheorySet Theory
Set Theory
 
SET THEORY
SET THEORYSET THEORY
SET THEORY
 
Deterministic finite automata
Deterministic finite automata Deterministic finite automata
Deterministic finite automata
 
Maths sets ppt
Maths sets pptMaths sets ppt
Maths sets ppt
 

Similar to Basic idea of set theory

Similar to Basic idea of set theory (12)

Mtk3013 chapter 2-3
Mtk3013   chapter 2-3Mtk3013   chapter 2-3
Mtk3013 chapter 2-3
 
Himpunan
HimpunanHimpunan
Himpunan
 
Sets (1).ppt
Sets (1).pptSets (1).ppt
Sets (1).ppt
 
Ch01-2.ppt
Ch01-2.pptCh01-2.ppt
Ch01-2.ppt
 
Himpunan plpg
Himpunan plpgHimpunan plpg
Himpunan plpg
 
2.1 Sets
2.1 Sets2.1 Sets
2.1 Sets
 
Introduction to set theory
Introduction to set theoryIntroduction to set theory
Introduction to set theory
 
POWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdfPOWERPOINT (SETS & FUNCTIONS).pdf
POWERPOINT (SETS & FUNCTIONS).pdf
 
Sets functions-sequences-exercises
Sets functions-sequences-exercisesSets functions-sequences-exercises
Sets functions-sequences-exercises
 
SET AND ITS OPERATIONS
SET AND ITS OPERATIONSSET AND ITS OPERATIONS
SET AND ITS OPERATIONS
 
1150 day 2
1150 day 21150 day 2
1150 day 2
 
2 》set operation.pdf
2 》set operation.pdf2 》set operation.pdf
2 》set operation.pdf
 

Recently uploaded

Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 

Recently uploaded (20)

Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 

Basic idea of set theory

  • 1. LG511 Basic Ideas of Set Theory, Relations, and Functions Doug Arnold University of Essex doug@essex.ac.uk 1 Set Theory: Sets and Membership 1.1 Sets A set is a collection of things, (with some clear criterion for membership). Sets are defined by their members — two sets are different if and only if (iff) they have different members. Hence: i. {a, b, c} = {c, b, a} ii. {a, b, c} = {a, a, a, a, a, b, c, c} iii. there is only one empty set, written {}, or ∅ iv. Suppose LS and HoD are one and the same, then: {LS , RMA, DJA} = {HoD, RMA, DJA} 1.2 Specifying Sets Sets can be specified: i. Extensionally: A = {1 , a, Noam Chomsky, lg517 } ii. Intensionally: A = {x : x is greater than 4 } {x |x > 4 } {x : x > 4 } {x : x > 2 + 2 } {y : y <= 5 } etc. 1.3 Membership i. a is a member (or element) of {a, b, c}, written: a ∈ {a, b, c}; ii. a is not a member of {b, c, d }, written: a ∈ {b, c, d } iii. The empty set has no members iv. A singleton set has exactly one member 1.4 Cardinality Suppose A = {a, b, c}, then i. |A| = | {a, b, c} | = 3 ii. | {x : x > 4 } | = inf 1
  • 2. 1.5 Sets as Individuals Sets are things — individuals — and so can be members of sets: i. A = {a, {b, c}, lg517 , AR} ii. B = {a, b, c, lg517 , AR} iii. |A| = 4 iv. |B| = 5 v. {} = {{}} vi. | {} | = 0 vii. | {{}} | = 1 1.6 Relations between Sets 1.6.1 Equality Sets A and B are equal, written A = B, iff they have the same members. Suppose A = {a, b, c, d }, B = {d , c, b, a}, and C = {y : y > 4 } then: i. A = B ii. C = A 1.6.2 Subset Set A is a subset of set B, written A ⊆ B, iff every member of A is a member of B. B is a superset of A, written B ⊇ A, iff A ⊆ B i. {a, b} ⊆ {a, b, c} ii. {a, b, c} ⊇ {a, b} iii. {a, b, c} ⊆ {a, b, c} iv. A ⊆ A v. {} ⊆ A Note: i. a ∈ {a, b, c} ii. a ⊆ {a, b, c} iii. {a} ⊆ {a, b, c} iv. {a} ∈ {a, b, c} v. {a} ∈ {{a} , b, c} 1.6.3 Proper Subset A is a proper (or strict) subset of B, written A ⊂ B, iff A ⊆ B and A = B B is a proper (strict) superset of A, written B ⊃ A, iff B ⊇ A and B = A i. {a, b} ⊂ {a, b, c} ii. {a, b, c} ⊂ {a, b, c} iii. {a, b, c} ⊆ {a, b, c} 1.7 Power Set The power set of set A, written Pow (A) or P(A), is the set consisting of all subsets of A: {S : S ⊂ A} Example: Suppose A = {a, b, c}, then 2
  • 3.   {}     {a}         {b}        {c}   Pow (A) =  {a, b}     {a, c}         {b, c}        {a, b, c}   Note: i. |Pow (A)| = 2|A| ii. |Pow ({a, b})| = 2|{a,b}| = 22 = 4 iii. |Pow ({a, b, c})| = 2|{a,b,c}| = 23 = 8 1.8 Operations on Sets 1.8.1 Venn Diagrams Venn diagrams provide a very convenient and intuitive way of picturing relations between, and operations on, sets. U B A Figure 1: Venn Diagram 1.8.2 Complement The complement of set A, written A− or A, is the set of elements not in A: A = {x : x ∈ A} U A Figure 2: A set A and its Complement indicates the set A indicates the Complement of A: (A− or A = U − A) 3
  • 4. 1.8.3 Union The union of sets A and B, written A ∪ B, is the set consisting of all members of A and all members of B, i.e. every element that is in A or B: A ∪ B = {x : x ∈ A or x ∈ B } Example: {a, b} ∪ {b, c} = {a, b, c} U B A Figure 3: Union of sets A and B indicates A ∪ B, the Union of A and B 1.8.4 Intersection The intersection of sets A and B, written A ∩ B, is the set consisting of the elements that are in A and in B, i.e. A ∩ B = {x : x ∈ A and x ∈ B } Example: {a, b, c} ∩ {b, c, d } = {b, c} U B A Figure 4: Intersection of sets A and B indicates A ∩ B, the intersection of A and B 1.8.5 Difference The set-difference of sets A and B, written A − B, is the set of elements in A, but not in B: A − B = {x : x ∈ A and x ∈ B } Example: {a, b, c, d } − {c, d } = {a, b} 1.9 Properties of Operations For a pair of operations ⊕ and ⊗: i. ⊕ is commutative iff A ⊕ B ≡ B ⊕ A ii. ⊕ and ⊗ are associative iff A ⊕ (B ⊗ C) ≡ (A ⊕ B) ⊗ C and A ⊗ (B ⊕ C) ≡ (A ⊗ B) ⊕ C iii. ⊕ and ⊗ are distributive iff A ⊕ (B ⊗ C) ≡ (A ⊕ B) ⊗ (A ⊕ C) and A ⊗ (B ⊕ C) ≡ (A ⊗ B) ⊕ (A ⊗ C) 4
  • 5. U B A Figure 5: Difference of sets A and B indicates A − B, the difference of A and B Examples: i. arithmetic +, − (plus, minus) are: Commutative : 2 + 3 = 3 + 2 Associative : 2 + (9 − 5) = (2 + 9) − 5 Non-distributive : 2 + (9 − 5) = (2 + 9) − (2 + 5) ii. set-theoretic ∩ and ∪ are: Commutative (A ∩ B) = (B ∩ A) Associative ((A ∩ B) ∩ C) = (A ∩ (B ∩ A)) Distributive (A ∪ (B ∩ C)) = ((A ∪ B) ∩ (B ∪ C)) 2 Ordered Pairs and Tuples pair : a, b 3-tuple : a, b, c n-tuple : a1 , a2 , a3 , . . . , an Compare: {a, b} = {b, a} but a, b = b, a Note: a1 , a2 = b1 , b2 iff a1 = b1 , and a2 = b2 2.1 Cartesian Product A × B = { a, b : a ∈ A and b ∈ B } (the set of ordered pairs a, b st. a is a member of A, and b is a member of B) Example: {a, b, c} × {1 , 2 } =    a, 1 a, 2  b, 1 b, 2 c, 1 c, 2   Note: |A × B| = |A| × |B| 3 Relations and Functions 3.1 Relations A relation is a regular association of ‘inputs’ (from a domain) and ‘outputs’ (from a range). i.e. a set of ordered pairs. Example: let L = {a, b, c} and N = {1 , 2 , 3 }, and the relation R ⊂ L × N be as follows: 5
  • 6.   a, 1  b, 1 c, 2   We could also write either of the following: aR1 R(a, 1) bR1 R(b, 2) cR2 R(c, 2) Note: Relations are defined by their I/Os R1 = R2 just in case they are the same sets of ordered pairs, e.g. R1 : Children × Mothers = R2 : Children × Mothers of siblings 3.2 Properties of Relations 3.2.1 Reflexivity A relation R is reflexive iff for all x, xRx Examples: is the same height as, ⊆, = irreflexive iff for all x, not xRx Examples: father of, ∈ nonreflexive iff neither reflexive nor irreflexive Example: likes 3.2.2 Symmetry A relation R is: symmetric iff for all x y, xRy implies yRx Example: is related to asymmetric iff for all x y, xRy implies not yRx Example: mother of nonsymmetric iff for all x y, xRy implies neither yRx nor ¬yRx antisymmetric iff for all x y, xRy and yRx implies y = x Example: less than or equal to 3.2.3 Transitivity A relation R is: transitive iff for all x,y,z xRy and yRz implies xRz Examples: is greater than, is in, is a subset of intransitive iff for all x,y,z xRy and xRz implies not xRz Example: is immediately to the left of nontransitive iff neither transitive nor intransitive Equivalence Relations are reflexive, symmetric, and transitive; Examples: set theoretic equality; is the same age as. 3.3 Functions A function is a special kind of relation: one which takes (‘maps’) arguments (members of the domain) to values (unique members of the range). 6
  • 7. (functions are ‘unambiguous’ relations). Recall that a relation is just a set (of ordered pairs) — hence a function is just a special kind of set (of ordered pairs). Examples i. the following function f0 that maps elements of L to elements of N : f0 : L → N :    a, 1  f0 = b, 1 c, 2   f0 (a) = 1 f0 (b) = 1 f0 (c) = 2 ii. f1 : People → Birthdays iii. f2 : People → Biological Fathers The following relations are not functions: i. { a, 1 , a, 2 , ...} ii. relation between birthdays and people iii. relation between fathers and their children iv. relation between numbers and their square roots 3.4 Properties of Functions i. Functions have (not necessarily functional) inverses (the inverse of f is written f −1 ). ii. Functions can be partial, or total. iii. Functions can be onto, into, etc., 1:1, many:1, etc. 3.5 Characteristic Functions The Characteristic Function of a set A is a function f : A → {0 , 1 }, such that for all x: i. f (x) = 1 if x ∈ A, and ii. f (x) = 0 otherwise. Sets and their characteristic functions are 1:1. 4 Reading Partee et al. (1990, Part A) is a good introduction to set theory. References Barbara H. Partee, Alice ter Meulen, and Robert E. Wall. Mathematical Methods in Linguistics. Kluwer Academic Publishers, Dordrecht, 1990. 7