Sets

(集合)

Discrete Mathematics I

6th lecture, October 23, 2026

https://www.sw.it.aoyama.ac.jp/2026/Math1/lecture6.html

Martin J. Dürst

AGU

© 2005-26 Martin J. Dürst Aoyama Gakuin University

 

Minitest: Preparation

ミニテストの注意点 (準備)

 

Minitest: Latecommers

ミニテストの注意点 (遅刻者)

 

Minitest: Collection

ミニテストの注意点 (終了時)

 

Today's Schedule

 

Summary of Last Lecture

 

Homework Problem 1

For each of the 16 Boolean functions of two Boolean variables A and B (same as problem 1 of last lecture), find the shortest formula using only NAND. You can use NAND with any number of arguments ≧1, but you cannot use T or F.

Hint: Start with simple formulæ using NAND and find out which functions they represent.

 

How to Solve Problem 1

 

A Program to Solve Problem 1 using Method 3

 

Homework Problem 2

Draw logic circuits of the following three Boolean formulæ:

  1. A ∨ C ∧ ¬D
  2. NOR(G, H, XOR(G, N))
  3. NAND(P, ¬T) ∨ S

 

The Importance of Sets

 

Examples of Sets

The set of integers from 1 to 5: {1, 2, 3, 4, 5}

The set of prefectures in the Kanto area: {Kanagawa, Saitama, Chiba, Gunma, Tochigi, Ibaraki}

The set of campuses of Aoyama Gakuin University: {Sagamihara, Aoyama}

 

The Concept of a Set

 

Elements and Membership

 

Equality of Sets

 

Element Uniformity

 

Notations for Sets: Denotation

 

Notations for Sets: Connotation

Express A and B using denotation:

A = {1, 2, 3, 4}    
B={{4, 8}, {5, 11}, {23, 9}, {6, 14}, {17, 7}, {8, 20}}   

 

Connotation Details

Elements of the notation, in order from left to right (example: {n|n ∈ ℕ, n>0, n<5})

 

Frequently used Sets of Numbers

 

Universal Set

 

The Empty Set

 

Operation on Sets: Union

(also called sum)

 

Operation on Sets: Intersection

(also called product)

 

Operation on Sets: Set Difference

(result is called difference set)

 

Operation on Sets: Complement

(also: complementary set)

 

Venn Diagram

 
 
 
 
 
 
 

Caution: Use laws and formula manipulation, not Venn diagrams, when working on problems with sets or logic

 

Neutral Element of an Operation

(also unit element, identity element, identity)

An element e is a neutral element for an operation △ if and only if
∀x: e△x = x = x△e

 

When to Use the Neutral Element

Sum of five terms: a+b+c+d+e

Sum of four terms: a+b+c+d

Sum of three terms: a+b+c

Sum of two terms: a+b

Sum of one term: a

Sum of zero terms: 0 (= neutral element of addition)

 

Normal Form Special Cases

 

Factorial of 0 (0!)

5! = 5 · 4 · 3 · 2 · 1 = 120

4! = 4 · 3 · 2 · 1 = 24

3! = 3 · 2 · 1 = 6

2! = 2 · 1 = 2

1! = 1 = 1

0! = neutral element of multiplication = 1

(see also https://www.youtube.com/watch?v=_v9xa2ohzIk)

 

Subset

(Notation: Some authors use ⊂ for proper subsets, and ⊆ for subsets in general.)

 

Size of a Set

 

Power Set

(also: powerset)

 

Size of Infinite Sets

 

Laws for Sets

  1. Idempotent laws: A ∩ A = A; A ∪ A = A
  2. Commutative laws: A ∩ B = B ∩ A; A ∪ B = B ∪ A
  3. Associative laws: (A∩B) ∩ C = A ∩ (B∩C); (A∪B) ∪ C = A ∪ (B∪C)
  4. Distributive laws: (A∪B) ∩ C = (A∩C) ∪(B∩C);
    (A∩B) ∪ C = (A∪C) ∩ (B∪C)
  5. Absorption laws: A ∩ (A∪B) = A; A ∪ (A∩B) = A
  6. Involution law: A = (Ac)c
  7. Law of the excluded middle: A ∪ Ac = U
  8. Law of (non)contradiction: A ∩ Ac = {}
  9. Properties of U and {}: U∩A = A,   U∪A = U,   {}∩A = {},   {}∪A = A
  10. De Morgan's laws: (A ∩ B)c = Ac ∪ Bc;
    (A ∪ B)c = Ac ∩ Bc

 

Comments on Laws for Sets

 

Natural Numbers as Sets

 

Limits of Sets

 

General Rules for Homework

(exceptions will be noted where needed; if not followed, there will be deductions)

 

This Week's Homework (due Oct. 29): Powersets

Deadline: October 29, 2026 (Thursday), 18:30; general rules apply

  1. Create a set with four elements. If you use the same elements as other students, there will be a deduction.
  2. Create the powerset of the set you created in problem 1.
  3. For sets A of size zero to six, create a table of the sizes of the powersets (|P(A)|). Example:
    |A| |P(A)|
    0 ?
    1 ?
    ... ?
  4. Express the relationship between the size of a set A and the size of its powerset P(A) as a formula.
  5. Explain the reason behind the formula in problem 4.
  6. Create a table that shows, for sets A of size zero to five, and for each n (size of sets in P(A)), the number of such sets.
    Example: |A|=3, n=2 ⇒ | { S | S⊂A ∧ |S|=n} | = 3   

 

Homework Due November 5: Proofs of Logic Formulæ

Deadline: November 5, 2026 (Thursday), 18:30; general rules apply

Problem 1: Prove/check the following laws using truth tables:

  1. Reductio ad absurdum (A→¬A = ¬A)
  2. The associative law for conjunction
  3. Contraposition ((A→B)→(¬B→¬A))
  4. One of De Morgan's laws

Problem 2: Prove transitivity of implication by formula manipulation:

Prove transitivity of implication (((A→B) ∧ (B→C)) ⇒ (A→C)) by formula manipulation. For each step, give the name of the law you used.

Hint: Show that ((A→B) ∧ (B→C)) → (A→C) is a tautology by simplifying it to T.

Details: Multiple parallel applications of the same law can be done in one step. Multiple sequential applications of the same law must be separated into different steps. Application of commutativity and associativity laws can be combined in one step.

 

 

Glossary

set
集合
prefecture
県
element
元・要素
denotation
外延的記法
brace (curly bracket)
波括弧
connotation
内包的記法
natural number
自然数
integer
整数
rational number
有理数
real number
実数
complex number
複素数
equality
同一性
uniformity
一貫性
instance
個体
universal set
全体集合・普遍集合
(set) union
和集合
(set) intersection
積集合
difference set/set difference
差集合
complement, complementary set
補集合
factorial
階乗
Venn diagram
ベン図
subset
部分集合
superset
上位集合
proper subset
真 (しん) の部分集合
empty set
空 (くう) 集合
size of a set
集合の大きさ
finite
有限
finite set
有限集合
power set
べき (冪) 集合
infinite set
無限集合
cardinality, cardinal number
濃数
aleph zero
アレフ・ゼロ
continuum hypothesis
連続体仮説
involution law
対合律
paradox
パラドックス
library catalog
図書目録
deduction (of points)
減点