Front. Math. China 2015, 10(3): 547–565 DOI 10.1007/s11464-015-0435-5
Map composition generalized to coherent collections of maps
Herng Yi CHENG1, Kang Hao CHEONG1,2
1 National University of Singapore High School of Mathematics and Science, Singapore 129957, Singapore 2 Tanglin Secondary School, Singapore 127391, Singapore
c Higher Education Press and Springer-Verlag Berlin Heidelberg 2015
Abstract Relation algebras give rise to partial algebras on maps, which are generalized to partial algebras on polymaps while preserving the properties of relation union and composition. A polymap is defined as a map with every point in the domain associated with a special set of maps. Polymaps can be represented as small subcategories of Set∗, the category of pointed sets. Map composition and the counterpart of relation union for maps are generalized to polymap composition and sum. Algebraic structures and categories of polymaps are investigated. Polymaps present the unique perspective of an algebra that can retain many of its properties when its elements (maps) are augmented with collections of other elements. Keywords Relation algebra, partial algebra, composition MSC 08A02
1 Introduction
This paper considers partial algebras on maps (similar to those defined in [15]), constructed in analogy to relation algebras [5,12,16]. The sum of two maps f0 : X0 → Y0 and f1 : X1 → Y1 is defined if the union of their graphs is a functional binary relation
R ⊆ (X0 ∪ X1) × (Y0 ∪ Y1), in which case the sum is the map (f0 + f1): X0 ∪ X1 → Y0 ∪ Y1 with graph R. This is defined similarly to the union operation + from [10]. Map composition corresponds to relation composition from relation algebra. These definitions give rise to the following properties, some familiar from relation algebra.
Received October 9, 2013; accepted September 16, 2014 Corresponding author: Kang Hao CHEONG, E-mail: [email protected] 548 Herng Yi CHENG, Kang Hao CHEONG
• Map composition is associative when defined. • The identity maps serve as map composition identities. • Map summation is idempotent, commutative, and associative. • Map composition right-distributes over map summation. • The empty map is a summation identity. We generalize this partial algebra, while preserving the above properties, by augmenting any map h: X → Y with additional structure, that is, associating each x ∈ X with a set of maps H ⊆ Y X such that
h(x)=h(x), ∀ h ∈ H. (1.1)
Such a structure is called a polymap (Definition 2.1). Polymaps and the operations between them are shown to be significant extensions of maps, and their operations, that exhibit several useful properties. Thus, we have algebras that preserve many of their properties when we augment their elements, maps, with collections of other elements. This is a potentially novel insight with regards to algebra. Polymaps are motivated from an abstract generalization of the technique of grafting in origami as applied to substrates P such as topological surfaces and even discrete substrates like abstract graphs. Origami is generally defined as a continuous path isometry f : P → R3 that does not cause self-intersection, where P is the initial sheet of paper. Grafting is an established origami design 3 technique, which involves folding a sheet P0 via an origami f0 : P0 → R to some configuration f0(P0), after which f0(P0) is treated as a fresh sheet of paper P1 3 and another origami f1 : P1 → R is folded on it. This process is a potent origami design technique [3] using only one sheet P0. This can be stated more precisely by considering Belcastro and Hull’s definition of origami as a piecewise rigid map [1]. That is, each origami f : P → 3 R corresponds to a family {(Pi,Ai)}i∈I such that {Pi}i∈I is a partition of P, R3 → R3 | | and each Ai : is a proper rigid transformation such that f Pi = Ai Pi for all i ∈ I (corresponding to (1.1)). As a polymap, each x ∈ Pi is assigned the set {Ai}. The result of grafting an 3 origami g : f(P ) → R (corresponding to {(Qj,Bj)}j∈J )afterf is an origami 3 P → R , for which every x ∈ Pi is assigned the set {Bj ◦ Ai} if f(x) ∈ Qj. This forms the basis of Definition 2.6 below for polymap composition. Section 2 defines polymaps and develops the basic properties of composi- tion on polymaps, as well as inverse polymaps, in analogy to maps. Section 3 generalizes the category Set to the categories SetP, SetTP,andSetM,whose objects are sets and hom-sets consist of polymaps. Definitions from category theory follow [11] and [17]. Group-like algebraic structures and semilattices of polymaps are constructed based on the polymap sum in Section 4, including an idempotent involution semiring that has no nontrivial natural analogue in terms of maps. Polymaps are also represented as small subcategories of the category of pointed sets, Set∗, in Section 5. Map composition generalized to collections of maps 549
2 Polymaps and their operations
Definition 2.1 (Polymap) For any sets X and Y and a map f : X → Y, where X ⊆ X, a polymap from X via f to Y is a triplet f =(X, φ, Y ), where φ: X → P(Y X )isamapsuchthatφ(x) = ∅⇐⇒x ∈ X and f(x)=f (x)for all f ∈ φ(x) (corresponding to (1.1)). Such a polymap is denoted as f : X Y. Let dom f = X, f = φ, and im f = f (X). Clearly, f is unique to f so it ← is denoted as f . If |φ(x)| 1 for all x ∈ X, then f is called a monomap.If X = X, then f is called total. Example 2.2 Given any nonempty set of maps F ⊆ Y X , the constant polymap via F is defined as CF : X Y, where F, x ∈ Eq F, CF (x)= ∅,x/∈ Eq F, and Eq F = {x ∈ X |∀f0,f1 ∈ F : f0(x)=f1(x)} is the equalizer of F.
Define a partial order on the class of all polymaps, where f0 f1 (f0 is a subpolymap of f1) if and only if dom f0 ⊆ dom f1 and f0 (x) ⊆ f1 (x)for all x ∈ dom f. If f0 f1, and dom f0 =domf1 (resp. f0 (x)= f1 (x) for all x ∈ dom f0), call f0 a wide (resp. full) subpolymap of f1. This nomenclature is motivated by the interpretation of polymaps as categories in Section 5, in particular Lemma 5.2. Example 2.3 Givenanysingletonset{y}, the only total polymap from a given set X to {y} is the total monomap C{f}, where f : X →{y} is a constant map. The polymaps f : X {y} are precisely the subpolymaps of C{f}. Example 2.4 Given some X ⊆ X, the inclusion polymap on X from X is X defined as 1X : X X, where {id},x∈ X, X 1X (x)= ∅,x/∈ X. ←− X The term “inclusion polymap” is motivated by the observation that 1X is the inclusion map X → X. Example 2.5 The only polymap from ∅ to any given set Y is the polymap (∅,p,Y), where p: ∅→P(Y X ) is an empty map. Such a polymap is vacuously a total monomap. 2.1 Polymap composition A composition operation on polymaps is defined in direct analogy to map composition. Let f : X Y, g: Y Z, and h: Z W be polymaps. Given any F ⊆ Y X and G ⊆ ZY , let G F = {g ◦ f | g ∈ G, f ∈ F }. Note that is associative and F ∅ = ∅ = ∅ F. 550 Herng Yi CHENG, Kang Hao CHEONG
Definition 2.6 Define the polymap composite of g after f as g • f : X Z, where ⎧ ⎨ ← g ( f (x)) f (x),x∈ dom f, • g f (x)=⎩ ∅,x∈/dom f. It can be verified easily that every polymap composite is a polymap. The analogy with map composition is shown in the following lemma. ←−1 ←−− ← ← Lemma 2.7 Each x ∈ dom (g • f)= f (dom g) satisfies g • f(x)=g ( f (x)). Proof From the definition of polymap composition, dom (g • f) ⊆ dom f. Each x ∈ dom f satisfies f (x) = ∅ and
x ∈ dom (g • f) ⇐⇒ g • f (x) = ∅ ← ⇐⇒ g ( f (x)) = ∅ ← ⇐⇒ f (x) ∈ dom g ←−1 ⇐⇒ x ∈ f (dom g).
←−1 ← Suppose that x ∈ f (dom g). Choose any f ∈ f (x)andg ∈ g ( f (x)); by the definition of polymap composition, g ◦ f ∈ g • f (x). By the definition of a polymap, ←−− ← ← g • f(x)=g(f(x)) = g ( f (x)). Lemma 2.8 Polymap composition is associative. That is,
h • (g • f)=(h • g) • f.
Proof It is first demonstrated that
←−−−1 ←−1 ←−1 g • f (dom h)= f (g (dom h)).
←−1 ←−1 ←−1 (⊇) For all x0 ∈ f (g (dom h)) ⊆ f (dom g), Lemma 2.7 gives
←−− ← ← g • f(x0)=g ( f (x0)) ∈ dom h. ←−−−1 (⊆)Eachx1 ∈ g • f (dom h) ⊆ dom (g • h)satisfies g • f (x1) = ∅, and ←−1 thus, x1 ∈ f (dom g). By Lemma 2.7,
← ← ←−− g ( f (x1)) = g • f(x1) ∈ dom h.
Thus,
←−1 ←−1 dom (h • (g • f)) = f (g (dom h)) = dom ((h • g) • f). Map composition generalized to collections of maps 551
←−1 ←−1 For any x ∈ f (g (dom h)), we have ←−− h • (g • f) (x)= h (g • f(x)) g • f (x) ← ← ← (by Lemma 2.7) = h ( g ( f (x))) g ( f (x)) f (x) ← = h • g ( f (x)) f (x) = (h • g) • f (x). Remark 2.9 Given polymaps f : X Y and g: Y Z, it may be possible to define a generalized polymap composite h: X Z such that h (x)hasa ←−1 useful nonempty definition even if x/∈ f (dom g), as opposed to Definition ← 2.6. This can be achieved if f (x) “derives” its transformations under g from its surroundings. That is, if C is the component of im f \ dom g containing ← f (x), and g has constant value G over the boundary of C, then h (x)may ← be defined as G f (x) instead of g ( f (x)) f (x). However, it is likely that a topological context is unnecessary, thus the bare notion of “connectedness” may be utilized, as described using the connective spaces of Muscat and Buhagiar [13] and connectivity spaces of Dugowson [7] (or the objects of B¨orger’s category Zus [2]).
2.2 Inverse polymap f is called polyinjective (resp. polysurjective )ifeverymemberof x∈X f (x)is injective (resp. surjective). If f is both polyinjective and polysurjective, then it ← is called polybijective.Iff is polybijective and f is injective, then it is called invertible,inwhichcaseitsinverse is defined as f−1 : Y X, where ⎧ ← ⎨ −1 {f | f ∈ f (x)}, ∃ x ∈ X : f (x)=y, −1 f (y)=⎩ ← ∅, ∃ x ∈ X : f (x)=y. Inverting a polymap (finding its inverse) is clearly an involutory operation; the inverse polymap is clearly invertible. Other properties of this involution, especially in relation to semigroup operations [4,8], are developed in Subsection 4.2. The polymap inverse is not entirely an analogue of map inverse (consider Theorem 3.5); instead, its properties are more closely related to those of relation inverse. For example, the following lemma corresponds to the switching of relation image and preimage under the relation inverse. Lemma 2.10 If f is invertible, then dom (f−1)=imf. ←− Lemma 2.11 If f is invertible, then the graph of f−1 is the relation inverse ← of the graph of f . ←− −1 −1 0,x0 , e ∈ y0 . Proof←−For each (y ) in the graph of f pick some f ( ) We −1 have f (y0)=e(y0)=x0. The definition of inverse polymap guarantees the 552 Herng Yi CHENG, Kang Hao CHEONG
← −1 existence of some x0 ∈ X such that f (x0)=y0 and e ∈ f (x0). That is, ← −1 e (x0)=y0, and thus, x0 = e(y0)=x0. Therefore, f (x0)=y0 and (x0,y0) ← lies in the graph of f . ← Conversely, for each (x1,y1) in the graph of f , pick some f ∈ f (x1). We ← have f (x1)=f(x1)=y1. The definition of inverse polymap guarantees that ←− ←− −1 −1 −1 −1 −1 f ∈ f (y1), that is, f (y1)=f (y1)=x1. Therefore, the graph of f contains (y1,x1). ←− ← To conclude, the graph of f−1 is the relation inverse of the graph of f . Lemma 2.12 Suppose that f is invertible. Then the following statements are equivalent : (i) f−1 is total, ← (ii) f is surjective, ←− ←−1 (iii) f−1 = f . Proof (i) ⇐⇒ (ii) By Lemma 2.10, dom f−1 = Y if and only if the image of ← f is im f = Y. ← ⇒ (ii) = (iii)←− If f is surjective, then it is also bijective. Lemma 2.11 guarantees that f−1 is bijective as well because it is the relation inverse of the ← ←− ←−1 graph of f . Together these imply that f−1 = f . ← (iii) =⇒ (ii) If f is invertible, it must be surjective. Remark 2.13 The similarities between polymaps and relations described above, the origins of polymaps from relation algebra, as well as the fact that polymaps need not be total (corresponding to left-totality of relations), suggest a possible generalization of polymaps to polyrelations. A polyrelation could be defined as a relation R ⊆ X × Y with every (x, y) ∈ R being assigned a relation S ⊆ X × Y containing (x, y). Polymaps are effectively polyrelations in which R and every S are functional.
3 Categories of polymaps
The properties of polymaps and their composition allow the formation of a category SetP (resp. SetM, SetTP) on the class of sets, whose morphisms from X to Y are polymaps (resp. monomaps, total polymaps) from X to Y. The morphisms are composed via polymap composition, and the identity on X X SetM SetTP SetP is 1X . and are wide subcategories of . There is a full functor S : SetTP → Set that maps sets to themselves and every total polymap f to ← f . Consider the map P : Set → SetP which maps sets to themselves and Map composition generalized to collections of maps 553 every morphism f to C{f}. The functor P with codomain restricted to SetP (resp. SetM, SetTP)isanembedding [11] from Set to SetP (resp. SetM, SetTP). Define an equivalence relation ≈ on polymaps, where given f0 : X0 Y0 and ← ← f1 : X1 Y1, f0 ≈ f1 if and only if (X0,Y0)=(X1,Y1)andf0 = f1. Recall the definition of a congruence, which allows an equivalence relation on morphisms to induce a quotient category [11]. Lemma 3.1 ≈ is a congruence on any subcategory of SetP. Proof Consider any subcategory C of SetP,aswellassome
f0 ≈ f1 ∈ homC(X, Y ), g0 ≈ g1 ∈ homC(Y,Z).
← ← ← ← It suffices to show that g0 • f0 ≈ g1 • f1. Since f0 = f1 and g0 = g1, note that ←−1 ←−1 dom (g0 • f0)=f0 (dom g0)=f1 (dom g1)=dom(g1 • f1). By Lemma 2.7, ←−−− ← ← ← ← ←−−− g0 • f0(x)=g0(f0(x)) = g1(f1(x)) = g1 • f1(x), ∀ x ∈ dom (g0 • f0). Lemma 3.2 SetTP/≈ is isomorphic to Set. In fact, the following diagram commutes: SetTPS / Set Q F SetTP/≈ (3.1) where Q is the quotient functor and F is an isomorphism that maps sets to themselves and maps morphisms f : X → Y to S−1({f}). Proof The object parts of S, P, and F map every set to itself, so the said object parts must commute. Every f ∈ homSetTP(X, Y )satisfies ← ← ← −1 Q(f)={f ∈ homSetTP(X, Y ) | f = f } = S ({ f })=F (S(f)). Similar to Set, ∅ is an initial object for SetP, SetM,andSetTP (see Example 2.5). Every singleton set is a terminal object for SetTP (see Example 2.3).
Proposition 3.3 Given nonempty sets X, Y and any f ∈ homSetP(X, Y ), f is a section if and only if f is total and (f0(x0)=f1(x1)=⇒ x0 = x1) for all ∈ ∈ x0,x1 X and f0,f1 x∈X f (x). Proof (=⇒) Suppose that f is a section; there exists some polymap g: Y X • X such that g f = 1X . By Lemma 2.7, X =dom(g • f) ⊆ dom f ⊆ X, 554 Herng Yi CHENG, Kang Hao CHEONG ∈ ∈ and so f must be total. Consider any x0,x1 X and f0,f1 x∈X f (x) such that f0(x0)=f1(x1). The condition that dom (g • f)=domf implies that g (f0(x0)) = ∅, so choose any g ∈ g (f0(x0)). It follows that g◦f0 =id=g◦f1, and that x0 =id(x0)=g(f0(x0)) = g(f1(x1)) = id(x1)=x1.
(⇐=) Suppose that f is total and (f0(x0)=f1(x1)= ⇒ x0 = x1)for ∈ ∈ ∈ any x0,x1 X and f0,f1 x∈X f (x). For any f x∈X f (x),fmust be injective, so let gf denote the restriction of some retraction of f to f(X). For any y ∈ Y, the family {gf } ←−1 can be summed following [10] f∈ f( f ({y})) ←−1 because for any f0,f1 ∈ f ( f ({y})) and y ∈ f0(X) ∩ f1(X), observe that f0(gf0 (y )) = y = f1(gf1 (y )), thus gf0 (y )=gf1 (y ). There exists some monomap g: Y X, where im f =domg and g (y)= {g} for some g such that g|R = gf , (3.2) ←−1 f∈ f( f ({y})) where R = f(X). ←−1 f∈ f( f ({y}))
X To verify that g • f = 1 , observe that for any x ∈ X and f ∈ f (x),gf is X ← a restriction of g, where g ( f (x)) = {g}, thus g ◦ f =id. Hence,
g • f (x)={id}. Given a set A of maps from X to Y, let A denote the map whose graph is the intersection of the graphs of the members of A. This is an extension of the intersection operator · from [10].
Proposition 3.4 Given nonempty sets X, Y and any f ∈ homSetP(X, Y ), f ← ⊆ | is a retraction if and only if there exists some X dom f such that f X is surjective and f (x) is surjective for all x ∈ X. Proof (=⇒) Suppose that there exists some polymap e: Y X such that • Y f e = 1Y ;notethat
←−1 dom e ⊆ Y =dom(f • e)= e (dom f) ⊆ dom e.
←−1 Hence, dom e = e (dom f), and thus, im e ⊆ dom f. By Lemma 2.7,
← ← ←−− ←− | ◦ • Y ( f im e) e = f e = 1Y =id, Map composition generalized to collections of maps 555
← thus, f |im e must be surjective. Consider any x ∈ im e ⊆ dom f. Choose any ←−1 f ∈ f (x),y∈ e ({x}), and e ∈ e (y); f ◦ e =id=f|im e ◦ e so e must be injective and f|im e must be surjective. For any y ∈ Y and f ∈ f (x), notice that f (e(y)) = y = f(e(y)), thus, f|im e is a restriction of f . Therefore, f|im e is a restriction of f (x), and both must be surjective. ← ⇐ ⊆ | ( =) Suppose that there exists some X dom f such that f X is surjective and f (x) is surjective for all x ∈ X. Thereexistssomemap ← ← → | ◦ | e: Y X such that ( f X ) e =id, because ( f X ) is surjective. For any x ∈ X , choose some map εx such that ( f (x)) ◦ εx =id(since f (x)is surjective). For any y ∈ Y, define the map y : Y → X such that e(y ),y= y , y(y )= εe(y)(y ),y= y .
Given the monomap e: Y X, where e (y)={y}, it is verified that ← • Y f e = 1Y . Observe that e is simply a codomain expansion of e, so ←−1 dom (f • e)= e (dom f)=e−1(dom f ∩ X)=Y.
Note that for all y,y ∈ Y and f ∈ f (e(y)), f(e(y )),y= y , f(y(y )) = f(ε ( )(y )),y= y , ⎧ e y ← ⎨ f |X (e(y )),y= y , = ⎩ ( f (e(y)))(εe(y)(y )),y= y , =id(y) = y.
Hence, for any y ∈ Y, ← f • e (y)= f ( e (y)) e (y)={f ◦ y | f ∈ f (e(y))} = {id}. The inverse polymap is not, in general, a multiplicative inverse with respect to polymap composition. Some necessary conditions for polymaps to be sections or retractions are established as follows.
Theorem 3.5 Given nonempty sets X, Y and some f ∈ homSetP(X, Y ), ← (1) if f is a section, then f is total and polyinjective, and f is injective; ← (2) if f is a retraction, then f is surjective; 556 Herng Yi CHENG, Kang Hao CHEONG
← (3) f is an isomorphism if and only if f is total, f is surjective, and any of the following equivalent statements hold: (a) f is an invertible monomap ; −1 • X (b) f is invertible and f f = 1dom f; • −1 Y (c) f is invertible and f f = 1im f. Proof (1) If f is a section, then by setting f0 = f1 in Proposition 3.3, it follows immediately that f is total and polyinjective. For any x0,x1 ∈ dom f such that ← ← f (x0)= f (x1), choose any f0 ∈ f (x0)andf1 ∈ f (x1). It can be seen that
← ← f0(x0)= f (x0)= f (x1)=f1(x1), and thus, x0 = x1. This implies that f is injective. (2) If f is a retraction, then by Proposition 3.4, there exists some X ⊆ X ← ← such that f |X is surjective. It follows that f must also be surjective. (3) (a), (b), and (c) are first shown to be equivalent. (a) =⇒ (c) Suppose that f is a invertible monomap. For any y ∈ im f = dom (f • f−1), let f−1 (y)={g}. It follows that ←− f • f−1 (y)= f (f−1(y)) f−1 (y)={g−1} {g} = {id}.
• −1 Y Thus, f f = 1im f. −1 Y (c) =⇒ (b) Suppose that f • f = 1im . For any x ∈ dom f,f∈ f (x), and ← f g ∈ f−1 ( f (x)), note that by (c),
← {id} = f • f−1 ( f (x)) ←− ← ← = f (f−1( f (x))) f−1 ( f (x)) ← = f (x) f−1 ( f (x)) f ◦ g.
Then f ◦g =id. However, f and g are bijections because f and f−1 are invertible, so g = f −1 and g ◦ f =id. Hence,
← f−1 • f (x)= f−1 ( f (x)) f (x)={id}.
−1 X (b) =⇒ (a) Suppose that f •f = 1dom ; f is invertible. For any x ∈ dom f, ← f choose any g ∈ f−1 ( f (x)). Since f−1 must also be invertible, g is bijective. For any f ∈ f (x),
← {id} = f−1 • f (x)= f−1 ( f (x)) f (x) g ◦ f, Map composition generalized to collections of maps 557 thus, g ◦ f =idandf = g−1. Therefore, every member of f (x)isequivalent to g−1, and f must be a monomap. Next, it is proven that f is an isomorphism if and only if f is a total invertible ← monomap such that f is surjective. (⇐=) If f is a total invertible monomap, then
−1 • X X f f = 1dom f = 1X .
(=⇒)Iff is an isomorphism, then it is both a section and a retraction. ← By (1) and (2), f is total and polyinjective, and f is bijective. By Proposition ← 3.4, there exists some X ⊆ dom f such that f |X is surjective and f (x)is ← surjective for all x ∈ X. However, since f is bijective, X must be equivalent ← ← | to X or else f X would not be surjective. Hence, f is surjective. Clearly, f must be injective for any x ∈ X =domf and f ∈ f (x); moreover, f (x) is a restriction of f so f must also be surjective. Therefore, f is bijective. This leads to the invertibility of f. Choose any two bijections f0,f1 ∈ f (x); −1 −1 −1 −1 by Proposition 3.3, f0 (y)=f1 (y) for all y ∈ Y ; this means that f0 = f1 , and consequently, f0 = f1, and | f (x)| =1. This concludes that f must be a monomap.
4 Algebraic structures from polymap sum
Algebraic structures involving polymaps are constructed by considering a sum over arbitrary families of polymaps. This operation is in turn based on the restriction of the relation union + from [10] to functional binary relations. { → } A family fi : Xi Yi i∈I of maps is called summable if the union of their ⊆ × graphs is a functional binary relation R ( i Xi) ( i Yi), in which the sum → of the family is denoted as the map i fi : i Xi i Yi whose graph is R. 4.1 Polymap sum
Definition 4.1 Given a family {fi : X Y }i∈I of polymaps, the family is ← called summable if {fi }i∈I is a summable family of maps. If {fi}i∈I is summable, then its sum is defined as fi = X, x → fi (x),Y , i i which can be verified to be a polymap. In the case where I = {0, 1}, the sum can also be written as f0 + f1. When well-defined, polymap summation is clearly idempotent, commuta- Y tive, and associative, with each 0X = C∅ : X Y as an additive identity. Some immediate consequences are as follows. 558 Herng Yi CHENG, Kang Hao CHEONG
Lemma 4.2 If {fi}i∈I is summable, then