True. Choose the irrational number , and partition the rational numbers into
No endpoint is rational, so these disjoint sets cover . Each is nonempty by the density of the rational numbers, and each is clopen in the subspace topology on .
Let two rational numbers be equivalent exactly when they belong to the same . The bijection
is well-defined. For every subset , the preimage of under the canonical projection of a quotient set is , which is open in . Thus every subset of is open: its quotient topology is the discrete topology. The usual subspace topology on the integers is also the discrete topology, because . Consequently is a homeomorphism.
Use compatible edge identifications: choose a bijection between the three boundary vertices of and those of , and extend it linearly on each edge. This defines a simplicial homeomorphism of the two boundary circles. This compatibility is the usual meaning of gluing the two boundary triangles; independently chosen edge reversals need not agree at their endpoints. The classification needed here is 3(a)(iv); the printed reference to 3(a)(iii) is a source error.
Delete the two triangular simplexes but retain all their proper faces of a simplex, and identify the two resulting boundary simplicial subcomplexes by this map. The result is a finite abstract simplicial complex : vertices from different sides are identified only in the boundary, and the only shared edges are boundary edges. There is no triangle consisting of all three boundary vertices after the two faces have been removed. Consequently no other simplexes become duplicates. Its geometric realization has the specified quotient topology and is homeomorphic to .
We check the closed combinatorial surface conditions. Away from the seam, vertex links of a simplex remain cycle graphs. At a boundary vertex of or , removing the face changes its link from a cycle graph to a graph path, with endpoints corresponding to its two boundary edges. Gluing the boundaries identifies the two paths' respective endpoints, making one cycle graph. Each seam edge now meets one triangle from and one from , and all other edges retain their original two incident triangles. Thus every vertex link is a cycle graph and every simplex lies in a triangle. The simplicial complex is connected, since the two connected punctured surfaces meet along their boundary circle. Hence is a closed combinatorial surface.
This construction is the connected sum of surfaces . For completeness, compute its Euler characteristic directly. Removing a triangular face while retaining its edges and vertices subtracts one, so
Gluing identifies three vertex pairs and three edge pairs, giving
For the explicit triangulations above, this is also .
Finally is a nonorientable surface. If were orientable, its restriction would make orientable. The consistent choices of orientation of a simplex on its triangles extend across a capping disc: choose the cap's orientation of a simplex so that the induced directions on the common boundary oppose. Capping by would therefore make the real projective plane orientable, a contradiction. The obstruction to orientability in the real projective plane can also be seen from a Möbius band neighbourhood of a projective line.
By the classification theorem for closed combinatorial surfaces, a nonorientable surface with Euler characteristic has , hence . Therefore
The inverse factors are generally in the wrong order. For a counterexample, take the bijections and , with inverse functions and . Then
Thus
For particular bijections that commute the equality can hold; the claim fails as a universal assertion.
For the bijections and used above, sends to . Its inverse function sends to , whereas sends to . Hence
Set and cube the equation. Solving for gives
Consequently the inverse function is
The value is impossible in the original equation. Conversely, every real gives exactly one real by the displayed cube root, and this cannot equal . Direct substitution verifies both inverse identities. Thus the corrected bijection is .
List the elements of the finite set . A subset is determined by membership decisions, each with two possibilities. This is a bijection from the power set to the set , so
The empty set case is included: its power set contains the single empty subset.
Swap the components of every ordered pair using a list comprehension:
invert :: [(a, a)] -> [(a, a)]
invert r = [(y, x) | (x, y) <- r]
Thus , the converse relation. Swapping is a bijection, since doing it twice restores the original pair. Therefore distinct input pairs remain distinct; no equality constraint or duplicate removal is necessary.
If , applying the function gives . Since , this implies , proving injectivity. Also every is the image of , because , proving surjectivity.
Thus is a bijection and its inverse function is itself:
Such a function is an involution.
With the convention , the even inputs map to for , while the odd inputs map to for . These two images of a function are disjoint and together equal . Within either class there are no repeated outputs. More explicitly the inverse function is
Consequently is both injective and surjective, hence a bijection. If instead , the input zero is absent: remains injective but its image of a function is , so it is not onto. The printed paper does not specify this convention; the zero-based convention gives the apparent intended bijection.
Put one object into each box first. The remaining objects can be distributed without restrictions, so stars and bars gives
Equivalently, the substitution gives a bijection between positive integer solutions of and nonnegative integer solutions of .
A bijection between finite sets requires equal cardinality. When , list the elements of and choose their distinct images in ways. Thus
The factorial convention includes the unique bijection from the empty set to itself.
A function is onto, or a surjective function, when every has a preimage: . It is one-to-one, or an injective function, when implies for all . It is bijective, a bijection, when both properties hold.
An inverse function is a function satisfying
For a bijection, is the unique with : existence follows from surjectivity and uniqueness from injectivity. This is a two-sided inverse function, rather than just a left or right inverse.
Let be a two-sided inverse function of . If , apply and use to obtain , proving injectivity. For any , the other identity gives , proving surjectivity. Therefore is a bijection. Both inverse identities matter: a one-sided inverse alone would establish only the corresponding one of these two properties.
Separate integer partitions according to whether they contain a part equal to . Removing one such part is a bijection to partitions of whose parts are at most . The alternatives are disjoint, giving
Use , because the empty integer partition is counted once, and for , with for . This Oberon implementation avoids negative recursive arguments:
PROCEDURE P(i, n: INTEGER): INTEGER;
VAR answer: INTEGER;
BEGIN
  IF n = 0 THEN answer := 1
  ELSIF i = 0 THEN answer := 0
  ELSIF i > n THEN answer := P(i-1, n)
  ELSE answer := P(i-1, n) + P(i, n-i)
  END;
  RETURN answer
END P;

PROCEDURE Partitions(n: INTEGER): INTEGER;
BEGIN
  RETURN P(n, n)
END Partitions;
The precondition is . Each recursive call reduces , proving algorithm termination. Every positive part of a partition of is at most , so the required one-argument count is . Counts require a sufficiently wide integer representation.
One example is the identity function, . A second is the permutation
Both are bijections of , whichever convention includes or excludes zero. For the second, applying three times returns every input to itself. Thus , and composing with the inverse function gives . This permutation cube identity criterion also shows why three-cycles work whereas a nontrivial two-cycle would not.
A subset is determined uniquely by deciding, for each of the elements, whether to include it. Each decision has two possibilities. By the rule of product, there are decision strings. The correspondence between such binary strings and subsets is a bijection, so . The all-zero string corresponds to the empty subset.
An allocation is a tuple of nonnegative integers with , where is the number in labelled box . Empty boxes are allowed. Encode the allocation by stars and bars: put stars before the first bar, between the first two bars, and so on. Adjacent bars represent an empty intermediate box; a bar at an end represents an empty end box.
Reading the group sizes recovers exactly one allocation from every such string, so this is a bijection. There are positions and we choose the bar positions. Hence stars and bars gives
No extra factor for ordering the objects is present, because the objects are indistinguishable. For the string has no bars and gives the single allocation of all objects to that box; for all boxes are empty, also a single allocation.