Let be the self-map of the double induced by a self-map preserving the boundary. Naturality of the Mayer–Vietoris sequence and alternating-trace additivity give
Let , , , and be the inclusions. The Mayer–Vietoris sequence is the long exact sequence in homology
The same sequence continues through degree zero, or uniformly in all degrees when written with reduced homology.
The given homeomorphisms and homotopy invariance of homology give
because , while is path connected and is the disjoint union of two copies of . Hence
The degree-one and degree-zero part of the Mayer–Vietoris sequence is therefore
Taking the rank of an abelian group throughout this short exact sequence gives
so . Since the zeroth homology group is freely generated by the path components,
Let . Choose a homogeneous basis of and its Poincare dual basis , normalized by
With the product orientation, the cohomology class of the diagonal is
Indeed, multiplying this class by and evaluating on gives , which characterizes the Poincare dual of .
Pulling back along the graph map and evaluating gives the graph-diagonal formula for the Lefschetz number:
If has no fixed point, its graph is disjoint from . Represent with support in a tubular neighbourhood disjoint from the graph; its pullback is zero, so . Contrapositively, implies that has a fixed point, the Lefschetz fixed-point theorem.
Now let be three disjoint circles. A homeomorphism permutes their three components. Its action on is a signed permutation matrix. A component fixed setwise contributes to the trace by the degree of the corresponding circle homeomorphism. An orientation-reversing circle homeomorphism has a fixed point, so fixed-point-freeness forces that degree to be . Nonfixed components contribute zero. The trace is therefore the number of fixed points of a permutation of three objects, and
For a compact manifold with boundary, let be its double and define by applying on both copies. The Mayer–Vietoris sequence for this decomposition is natural under . Alternating traces in a finite-dimensional exact sequence sum to zero, so the two copies of contribute twice and their intersection contributes with the opposite sign:
This is the Lefschetz number of a doubled map.
Finally let be a pair of pants. If is fixed-point-free, so are its double and its boundary restriction. The Lefschetz fixed-point theorem and the displayed identity give , hence . Since is connected and is nonzero only for ,
Suppose the boundary permutation had a fixed component. The restriction there is a fixed-point-free circle homeomorphism and thus has degree , forcing to preserve the surface orientation. The homology action of a pair-of-pants homeomorphism would then have trace , which is for the identity permutation and for a transposition. Neither is . Therefore has no fixed component; a permutation of three objects with no fixed point is a three-cycle. Thus
Write the closed oriented surface of genus as , where is a closed disk, is a slightly enlarged once-punctured surface, and is an annulus. Thus is contractible, is homotopy equivalent to the circle, and is homotopy equivalent to the wedge sum of circles. The boundary circle represents the product of the commutators in the fundamental group of , so its image in the first homology group, which is the abelianization of that group, is zero.
The relevant part of the Mayer–Vietoris sequence is consequently
The degree-zero part says that the connected space has , while the groups above degree two vanish. Hence