The union of two functions with disjoint domains is single-valued; injectivity and surjectivity of the glued map are checked piecewise; and the codomain is shrunk through the image.
Throughout, a map is a function with domain and range contained in (Functions, Values of a Function, and Functions from One Class to Another (iii)); for in its domain, if and only if (Predicativity of Expressions with Abbreviations, and Symbol-Free Forms of the Basic Defined Set Symbols (x)); and the union of two relations is a relation, whose domain and range are the unions of their domains and of their ranges.
Gluing. Let and be elements of . If both lie in , or both in , then , as and are functions. A pair in and a pair in cannot have the same first component , since would lie in and in by Domains and Restrictions of Maps (i), while . So is a function with domain and range , that is, a map . For we have , so ; likewise for . This proves (i).
Gluing bijections. Write . Since and take values in , they are maps and by Membership in Inverse Relations, Preimages and Images of Classes, and Enlarging the Codomain of a Map (v), so is a map by (i), with on and on .
is injective: let with . If , then , so as is injective; likewise if . If and , then and , which is impossible as ; the case , is the same.
is surjective: an element of is for some , and an element of is for some , as and are surjective.
Hence is a bijection, which proves (ii).
Shrinking the codomain. For we have , so by The Image and the Preimage of a Class under a Class (i); hence is a map by Membership in Inverse Relations, Preimages and Images of Classes, and Enlarging the Codomain of a Map (v). Taking , the map is surjective: by The Image and the Preimage of a Class under a Class (i), every satisfies for some , that is, . Injectivity does not involve the codomain (Injective, Surjective and Bijective Functions between Classes (i)), so if is injective, then is a bijection. This proves (iii).
Loadingβ¦