Theory of Relations (1)

35
Theory of Relations (1) Course of Mathematics Pusan National University Yoshhiro Mizoguchi Institute of Mathematics for Industry Kyushu University, JAPAN [email protected] September 29-30, 2011 Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 1 / 35

Transcript of Theory of Relations (1)

Page 1: Theory of Relations (1)

.

.

. ..

.

.

Theory of Relations (1)Course of Mathematics

Pusan National University

Yoshhiro Mizoguchi

Institute of Mathematics for IndustryKyushu University, [email protected]

September 29-30, 2011

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 1 / 35

Page 2: Theory of Relations (1)

Table of Contents

.

. .

1 Relational CalculusBasic NotationsMatchingsDedekind Formula

.

. .

2 Cardinality of relationsBasic conceptsProperties

.

. .

3 Product and CoproductCoproduct relationsProduct relations

.

. .

4 Matching TheoremHall’s Marriage Theorem

.

. .

5 Report

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 2 / 35

Page 3: Theory of Relations (1)

Introduction

There are many network structures (relations between certainobjects) considered in applications of mathematics in other sciences.

We use many calculations of numbers and equations of numbers inmathematical analysis in application areas.

We seldom do calculations in mathematical analysis of networkstructures or equations of structures.

A sufficiently developed theory of relations has been existing for along while.

In this lecture, we review several elementary mathematical conceptsfrom the viewpoint of a theory of relations.

Managing the calculations of relations, we reexamine properties ofnetwork structures.

It is also intended to construct a theory of relations with computerverifiable proofs.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 3 / 35

Page 4: Theory of Relations (1)

Historical Background

The modern story of an algebra of logic is started by G. Boole (1847).Complement, Converse (Inverse) and Composition of relations.(De Morgen(1864))To create an algebra out of logic. (C. S. Peirce(1870))Axiomatization and Representability (A. Tarski(1941),R.Lyndon(1950))Relations in categories. (S. MacLane(1961), D. Puppe(1962),Y. Kawahara(1973))Fuzzy relations and its axiomatization and representability.(L. A. Zadeh(1965), Y. Kawahara(1999))

† R. D. Maddux, The origin of relation algebras in the development andaxiomaization of the calculus of relations, Studia Logica 50(1991),421–455.

† G. Schmidt, Relational Mathematics, Cambridge University Press,2010, 582pages.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 4 / 35

Page 5: Theory of Relations (1)

Applications to Computer Science

Theory of Automata (model of computing)Y.Kawahara, Applications of relational calculus to computermathematics. Bull. Inform. Cybernet. 23 (1988), pp67–78.Theory of Programs (program verification)Y.Kawahara and Y.Mizoguchi, Categorical assertion semantics intoposes, Advances in Software Science and Technology, Vol.4(1992),137–150.Graph Rewriting System (model of computation)Y.Mizoguchi and Y.Kawahara, Relational graph rewritings. Theoret.Comput. Sci. 141 (1995), 311–328.Relational Databases (model of data)H.Okuma and Y.Kawahara, Relational aspects of relational databasedependencies. Bull. Inform. Cybernet. 32 (2000), 91–104.Formal Concept Analysis (model of data)T.Ishida, K.Honda, Y.Kawahara, Formal concepts in Dedekindcategories. Lecture Notes in Comput. Sci., Vol.4988(2008) 221–233.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 5 / 35

Page 6: Theory of Relations (1)

Basic Notations

(1) A relation α of a set A into another set B is a subset of the Cartesianproduct A × B and denoted by α : A ⇁ B.

(2) The inverse relation α] : B ⇁ A of α is a relation such that(b, a) ∈ α] if and only if (a, b) ∈ α.

(3) The composite αβ : A ⇁ C of α : A ⇁ B followed by β : B ⇁ C isa relation such that (a, c) ∈ αβ if and only if there exists b ∈ B with(a, b) ∈ α and (b, c) ∈ β.

(4) As a relation of a set A into a set B is a subset of A × B, the inclusionrelation, union, intersection and difference of them are available asusual and denoted by v, t, u and −, respectively.

(5) The identity relation idA : A ⇁ A is a relation withidA = {(a, a) ∈ A × A|a ∈ A}.

(6) The empty relation φ ⊆ A × B is denoted by 0AB. The entire setA × B is called the universal relation and denoted by ∇AB.

(7) The one point set {∗} is denoted by I. We note that ∇II = idI.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 6 / 35

Page 7: Theory of Relations (1)

Union, Intersection, Complement

α : A ⇁ B, β : A ⇁ B : relations.

α t β = {(a, b) | (a, b) ∈ α ∨ (a, b) ∈ β}α u β = {(a, b) | (a, b) ∈ α ∧ (a, b) ∈ β}α = {(a, b) | (a, b) < α}

α − β = {(a, b) | (a, b) ∈ α ∧ (a, b) < β}

{αλ : A ⇁ B | λ ∈ Λ}, {βλ : A ⇁ B | λ ∈ Λ} : classes of relations.

tλ∈Λαλ = {(a, b) | ∃λ ∈ Λ, (a, b) ∈ αλ)}uλ∈Λαλ = {(a, b) | ∀λ ∈ Λ, (a, b) ∈ αλ)}

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 7 / 35

Page 8: Theory of Relations (1)

Distributive Law (t and u)

.

Proposition

.

.

.

. ..

.

.

Let α : A ⇁ B, β : A ⇁ B and βλ : A ⇁ B (λ ∈ Λ) be relations. Then wehave

α u (tλ∈Λβλ) = tλ∈Λ(α u βλ)α t (uλ∈Λβλ) = uλ∈Λ(α t βλ)α = α, (α u β) = α t β, (α t β) = α u β.0AB = ∇AB, ∇AB = 0AB.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 8 / 35

Page 9: Theory of Relations (1)

I-Category

.

Proposition (I-Category)

.

.

.

. ..

.

.

Let α, α′ : A ⇁ B, β, β′ : B ⇁ C and γ : C ⇁ D be relations. Then

(1) (αβ)γ = α(βγ),(2) idAα = αidB = α,

(3) (α])] = α, (αβ)] = β]α],(4) If α v α′ and β v β′ then αβ v α′β′ and α] v (α′)].

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 9 / 35

Page 10: Theory of Relations (1)

Distributive Law (Composition and (t, u))

.

Proposition

.

.

.

. ..

.

.

Let α : A ⇁ B, β : B ⇁ C, βλ : A ⇁ B (λ ∈ Λ) and γ : C ⇁ D berelations. Then we have

α(tλ∈Λβλ) = tλ∈Λ(αβλ)(tλ∈Λβλ)γ = tλ∈Λ(βλγ)α(uλ∈Λβλ) v uλ∈Λ(αβλ)(uλ∈Λβλ)γ v uλ∈Λ(βλγ)

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 10 / 35

Page 11: Theory of Relations (1)

Empty & Universal relation

.

Proposition

.

.

.

. ..

.

.

For a relation α : A ⇁ B,

0X Aα = 0XB, α0BY = 0AY .

If B , φ, then∇AB∇BC = ∇AC

Note: If B = φ, then ∇AB∇BC = 0AC.

If α : A ⇁ B is not empty, then

∇AAα∇BB = ∇AB.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 11 / 35

Page 12: Theory of Relations (1)

Inverse relation

.

Proposition

.

.

.

. ..

.

.

Let α : A ⇁ B, β : A ⇁ B, αλ : A ⇁ B (λ ∈ Λ) be relations.

(tλ∈Λαλ)] = tλ∈Λα]λ, (uλ∈Λαλ)] = uλ∈Λα]λ.

(α)] = (α]), (α − β)] = α] − β].0]

AB= 0BA, ∇]

AB= ∇BA.

id]A= idA.

∇AB = ∇]IA∇IB.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 12 / 35

Page 13: Theory of Relations (1)

Equivalence and Ordering (1)

For a relation θ : A ⇁ A, we define the following laws:

idA v θ (Reflexive Law)θ] v θ (Symmetric Law)θθ v θ (Transitive Law)θ u θ] v idA (Antisymmetric Law)θ t θ] = ∇AA (Linear Law)

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 13 / 35

Page 14: Theory of Relations (1)

Equivalence and Ordering (2)

A relation θ : A ⇁ A is an equivalence relation on A, if θ satisfiesreflexsive, symmetric and transitive laws.

A relation θ : A ⇁ A is a partial ordering on A, if θ satisfiesreflexsive, transitive and antisymmetric laws.

A partial ordering θ : A ⇁ A is a total ordering if it satisfies thelinear law.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 14 / 35

Page 15: Theory of Relations (1)

Functions and MappingsDefinition

.

Definition

.

.

.

. ..

.

.

Let α : A ⇁ B be a relation.

(1) α is total, if idA v αα].(2) α is univalent, if α]α v idB.

(3) A univalent relation is also called as a partial function.

(4) α is (total) function, if α is total and univalent.

(3) A (total) function α : A ⇁ B is surjection, if α]α = idB.

(4) A (total) function α : A ⇁ B is injection, if αα] = idA.

(5) A (total) function is bijection, if it is surjection and injection.

Note. We use letters f , g, h, · · · for (total) functions. For a function,surjection and injection, we use an arrow symbol→,� and�.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 15 / 35

Page 16: Theory of Relations (1)

Matchings

.

Definition

.

.

.

. ..

.

.

A relation f : X ⇁ Y is matching, if f ] f v idY and f f ] v idX.

.

Definition

.

.

.

. ..

.

.

Let α : X ⇁ Y be a relation. A relation f : X ⇁ Y is matching of α, iff ] f v idY , f f ] v idX and f v α.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 16 / 35

Page 17: Theory of Relations (1)

Functions and MappingsPropositions

.

Proposition

.

.

.

. ..

.

.

(1) If f : A → B and g : B → C are functions, then the compositionf g : A → C is a function.

(2) If f : A → B and g : A → B are functions and f v g, then f = g.

(3) If f : A → B is a function, then f f ] f = f .

.

Proposition

.

.

.

. ..

.

.

Let f : X → A, g : Y → B be functions and βλ : A ⇁ B (λ ∈ Λ)relations. Then

f (uλ∈Λβλ)g] = uλ∈Λ( fβλg])

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 17 / 35

Page 18: Theory of Relations (1)

Rationality

.

Proposition

.

.

.

. ..

.

.

Let q : X � Y be a surjection and f : X → Z a function. If qq] v f f ]then there exists an unique function g : Y → Z such that f = qg.

Let m : Y � X be an injection and f : Z → X a function. Ifm]m v f ] f then there exists an unique function g : Z → Y such thatf = gm.

.

Theorem (Rationality)

.

.

.

. ..

.

.

For a relation α : A ⇁ B, there exist functions f : R → A and g : R → Bsuch that α = f ]g and f f ] u gg] = idR hold.

.

Corollary

.

.

.

. ..

.

.

For a relation ρ : I ⇁ X, there exists an injection A � X such thatρ = ∇IAi.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 18 / 35

Page 19: Theory of Relations (1)

Dedekind FormulaConcepts

.

Proposition (∗)

.

.

.

. ..

.

.

Let α : A ⇁ B, β : B ⇁ C and γ : A ⇁ C be relations.

(1) αβ u γ v α(β u α]γ),(2) αβ u γ v (α u γβ])β,(3) αβ u γ v (α u γβ])(β u α]γ).

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 19 / 35

Page 20: Theory of Relations (1)

Dedekind Formula IProperties

.

Lemma

.

.

.

. ..

.

.

(1) Let α : A ⇁ B be a relation. Then α v αα]α.

(2) Let α : A ⇁ A and β : A ⇁ A be relations. If α v idA and β v idA,then α] = α, αα = α and αβ = α u β.

.

Proposition

.

.

.

. ..

.

.

Let α : A ⇁ B, β : B ⇁ A be relations. If αβ = idA and βα = idB then αand β are both bijections and β = α].

.

Proposition

.

.

.

. ..

.

.

Let α : A → B, β : B ⇁ C and γ : B ⇁ C be relations. If α]α v idB andγ v β, then α(β − γ) = αβ − αγ.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 20 / 35

Page 21: Theory of Relations (1)

Dedekind Formula IIProperties

.

Proposition (epi-mono factorization)

.

.

.

. ..

.

.

Let f : A → B be a function. Then there exist a surjection e : A � B′and an injection m : B′ � B such that f = em.

We denote the set B′ defined in above proposition as f (A).

.

Corollary

.

.

.

. ..

.

.

If f : A � B be an injection, then there exist a bijection e : A � f (A)and an injection m : f (A) � B such that f = em.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 21 / 35

Page 22: Theory of Relations (1)

Cardinality of relationsDefinition

.

Definition (Cartinarity)

.

.

.

. ..

.

.

The cardinality |α| of of relation α : A ⇁ B is the cardinality of α as asubset of A × B.

In this lecture, we are going to consider only finite cardinality.Let X, Y and Z be a finite sets. Then

(1) |α| = 0 ⇔ α = 0XY ,

(2) |α t α′| = |α| + |α′| − |α u α′|,(3) α v α′ ⇒ |α| ≤ |α′|,(4) |α]| = |α|,(5) |idI| = 1.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 22 / 35

Page 23: Theory of Relations (1)

Cardinality of relations IProposition

.

Proposition (∗)

.

.

.

. ..

.

.

Let X, Y and Z be finite sets, α : X ⇁ Y, β : Y ⇁ Z and γ : X ⇁ Zrelations. If α is univalent, i.e. α]α v idY , then

|β u α]γ| ≤ |αβ u γ| ∧ |α u γβ]| ≤ |αβ u γ|.

.

Proposition

.

.

.

. ..

.

.

Let X, Y and Z be finite sets, α : X ⇁ Y, β : Y ⇁ Z and γ : X ⇁ Zrelations.

(1) If α and β are univalent, then |αβ u γ| = |α u γβ]|.(2) If α is a matching, then |αβ u γ| = |β u α]γ|.(3) If α is a partial function and β is a total function, then |αβ| = |α|.(4) If α is a matching, then |α]αβ| = |αβ|.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 23 / 35

Page 24: Theory of Relations (1)

Cardinality of relations IIProposition

.

Proposition

.

.

.

. ..

.

.

Let X, Y and Z be finite sets, f : X ⇁ Y and β : Z ⇁ X relations.

(1) If f is a matching, then |∇IX f | = | f |.(2) If u v idX then |∇IXu| = |u|. Especially, |∇IX| = |idX| = |X|.(3) If f is an injection, then |β| = |β f |.(4) If f is an injection, then |∇IX| ≤ |∇IY |.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 24 / 35

Page 25: Theory of Relations (1)

Coproduct relationDefinition

.

Definition (Coproduct)

.

.

.

. ..

.

.

Let X and Y be sets. The coproduct X + Y of X and Y is a set

X + Y = (X × {0}) ∪ (Y × {1}).

Functions i : X → X + Y and j : Y → X + Y are defined by i(x) = (x, 0)and j(y) = (y, 1) for x ∈ X and y ∈ Y.

We call i and j inclusion functions for X + Y.

.

Proposition (∗)

.

.

.

. ..

.

.

Functions i and j are both injections and the following equations holds:

ii] = idX, j j] = idY , i j] = 0XY , i]i t j] j = idX+Y

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 25 / 35

Page 26: Theory of Relations (1)

Coproduct relation IPropositions

.

Proposition

.

.

.

. ..

.

.

Let α : X ⇁ Z and β : Y ⇁ Z be relations. Then there exists a uniquerelation γ : X + Y ⇁ Z which satisfies

iγ = α, and jγ = β.

We denote the relation γ defined in above proposition as α⊥β.

.

Proposition

.

.

.

. ..

.

.

Let δ : X + Y → Z be a relation.

(1) (α⊥β)δ = (αδ)⊥(βδ).(2) If α and β are univalent relations then α⊥β is also univalent.

(3) If α and β are total relations then α⊥β is also total.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 26 / 35

Page 27: Theory of Relations (1)

Coproduct relation IIPropositions

.

Proposition (Coproduct)

.

.

.

. ..

.

.

Let X and Y be sets i′ : X → Z and j′ : Y → Z relations which satisfiesfollowing conditions:

i′i′] = idX, j′ j′] = idY , i′ j′] = 0XY , and i′]i′ t j′] j′ = idZ .

Then Z is the coproduct of X and Y. That is there is a bijectionα : Z → X + Y such that i′α = i and j′α = j.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 27 / 35

Page 28: Theory of Relations (1)

Coproduct relation IIIPropositions

.

Proposition

.

.

.

. ..

.

.

Let X0 + Y0, X1 + Y1 and X2 + Y2 be coproducts, and ik, jk inclusions forXk + Yk (k = 0, 1, 2).For relations αk : Xk−1 ⇁ Xk and βk : Yk−1 ⇁ Yk (k = 1, 2),

(α1 + β1)(α2 + β2) = ((α1α2) + (β1β2)),

where αk + βk = (αkik)⊥(βk jk) (k = 1, 2).

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 28 / 35

Page 29: Theory of Relations (1)

Product relationDefinition

.

Definition (Product)

.

.

.

. ..

.

.

Let X and Y be sets. The product X × Y of X and Y is a set

X × Y = {(x, y) | x ∈ X ∧ y ∈ Y}.

Functions p : X × Y → X and q : X × Y → Y are defined by p(x, y) = xand q(x, y) = y for x ∈ X and y ∈ Y.

We call p and q projection functions for X × Y.

.

Proposition

.

.

.

. ..

.

.

Functions p and q are both surjections and the following equations holds:

p]p = idX, q]q = idY , p]q = ∇XY , and pp] u qq] = idX×Y

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 29 / 35

Page 30: Theory of Relations (1)

Product relation IPropositions

Let α : V ⇁ X and β : V ⇁ Y be relations. We define a relationα>β : V ⇁ X × Y by

α>β = αp] u βq].

.

Proposition

.

.

.

. ..

.

.

(1) If α and β are univalent relations then α>β is also univalent.

(2) If α and β are total relations then α>β is also total.

(3) If α and β are functions then α>β is also a function.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 30 / 35

Page 31: Theory of Relations (1)

Product relation IIPropositions

.

Proposition

.

.

.

. ..

.

.

Let f : V → X and g : V → Y be functions. Then there exists a uniquerelation h : V → X × Y which satisfies

hp = f, and hq = g.

Especially, h = ( f>g).

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 31 / 35

Page 32: Theory of Relations (1)

Product relation IIIPropositions

.

Proposition (Product)

.

.

.

. ..

.

.

Let X and Y be sets p′ : Z → X and q′ : Z → Y functions which satisfiesfollowing conditions:

p′]p′ = idX, q′]q′ = idY , p′]q′ = ∇XY , and p′p′] u q′q′] = idX×Y

Then Z is the product of X and Y. That is there is a bijectionα : X × Y → Z such that αp′ = p and αq′ = q.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 32 / 35

Page 33: Theory of Relations (1)

Product relation IVPropositions

.

Proposition (∗)

.

.

.

. ..

.

.

Let X0 × Y0, X1 × Y1 and X2 × Y2 be products, and pk, qk projections forXk × Yk (k = 0, 1, 2). Let αk : Xk ⇁ Xk+1 and βk : Yk−1 ⇁ Yk (k = 0, 1)be relations and αk × βk is defined by (pkαk)>(qkβk) (k = 0, 1). Then, wehave

((p0α0)>(q0β0))((p2α]

1)>(q2β

]

1))] = (p0α0α1 p]

2)>(q0β0β1q]

2), and

(α0 × β0)(α1 × β1) = ((α0α1) × (β0β1)).

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 33 / 35

Page 34: Theory of Relations (1)

Matching Theorem

Let X and Y be finite sets.

.

Proposition

.

.

.

. ..

.

.

Let f : X ⇁ Y and α : X ⇁ Y be relations. If f is a matching in α then wehave

| f | ≤ |∇IX| − (|ρ| − |ρα|)

for any relation ρ : I ⇁ X.

.

Definition (Marriage condition)

.

.

.

. ..

.

.

A relation α : X ⇁ Y satisfies the marriage condition if and only if|ρ| ≤ |ρα| for any ρ : I ⇁ X.

.

Theorem (Hall 1935)

.

.

.

. ..

.

.

Let α : X ⇁ Y be a relation where |X| , 0. There exists a total matchingf : X ⇁ Y in α if and only if α satisfies the marriage condition.

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 34 / 35

Page 35: Theory of Relations (1)

Exercises

(1) Let α : X ⇁ A, β1, β2 : A ⇁ B and γ : Y ⇁ B be relations. If α andγ are univalent (i.e. α]α v idA, γ]γ v idB), then

α(β1 u β2)γ] = (αβ1γ]) u (αβ2γ

])

cf. f , g : function⇒ f (uλ∈Λβλ)g] = uλ∈Λ( fβλg])(2) Let α : A ⇁ B, β : B ⇁ C and γ : A ⇁ C be relations.

(αβ u γ) @ (α u γβ])(β u α]γ)

(3) Let α : A ⇁ B be a relation.The equation α = αα]α holds if and only if there exist injections mand n and surjections p and q such that α = m]pq]n.cf. If f is a function then f = f f ] f and there exist a injection m andsurjection e such that f = em

(4) A relation θ : A ⇁ A is an equivalence relation if and only if thereexists a surjection p : A � X such that θ = pp].

Y. Mizoguchi (Kyushu Univ.) Theory of Relations (1) September 29-30, 2011 35 / 35