Write . The sine addition formula and cosine addition formula give . Therefore function composition satisfies
The resulting angle is real and the new translation vector lies in , so is closed under function composition. Associativity holds because, for any functions and any , both and take to .
The identity element is , since . Every element has the two-sided inverse element
Indeed , and substituting into the composition formula makes the translation vector zero in either order. These verify all the group axioms. Thus is a group under function composition, the special Euclidean group in two dimensions.
Expand in components:
If , all powers for vanish. The matrix binomial theorem, valid here because commutes with , therefore yields
These powers of the identity plus a square-zero matrix can also be proved by induction: . For the displayed example, directly, and
This is the repeated function composition of a shear mapping. The argument gives every nonnegative integer ; since , the same formula also holds for negative integers.
Interpret the functions as maps on , so every reciprocal is defined. Let , , and . With the left factor applied last, direct function composition gives the Cayley table
The table proves closure and identifies as the identity. Every element is its own inverse. Associativity is inherited from composition of maps, so the set is a group. The three nonidentity elements are commuting involutions.
Its subgroups are
There are no others: a subgroup containing two distinct nonidentity elements also contains their product, the third, and hence is the whole group; a subgroup containing just one has order two.
The abstract dihedral group has commuting generators with , for example a rectangle's half-turn and reflection in one axis. The assignment , , , respects products and is bijective. Thus
This is the group generated by sign reversal and reciprocation, a realization of the Klein four-group. The nonzero domain is essential; treating these as functions defined at zero would not give the stated group.
We can arrange that neither the supremum nor the infimum is attained. By part (d), choose a continuous function on with unbounded range, and put . Choose so that increases strictly to infinity. Construct a continuous function with
keep it constant up to and interpolate linearly on each . Since , the joining points have no finite accumulation, so this defines a continuous function everywhere on its domain.
Now set
By function composition, is continuous, and for every . Along the even and odd chosen points,
Thus and , and neither is a value of . This proves the bounded continuous witness with neither extremum attained construction, including for subsets that are bounded but not closed.
Let , the right half-disc from part (i). Write with and . Squaring doubles the angle and squares the radius, giving a holomorphic bijection
Its inverse is the unique square root with positive real part, and its derivative is nonzero on . The cut includes zero, because .
Next, the Möbius transformation is a conformal bijection from onto : it is the inverse Cayley transform between the half-plane and disk composed with . For , , it gives
Consequently . Since is a bijection on the whole disc, deleting this interval deletes exactly that ray in the image.
The required function composition is therefore
Each component is a conformal bijection between the indicated domains. The only possible denominator zeros of the simplified expression are , outside , and
since is on the excluded semicircle and is outside the upper half-plane. This also checks the local conformality of the conformal map from the exterior half-disc to a slit half-plane.
Write . Because , taking the image under the same function composition gives
This uses preservation of set inclusion by every function, so decreasing inverse branches cause no difficulty. Since , cancellation of the first inverse branch gives the equality of images
These compact intervals are itinerary cylinders: their symbols record successive positions under iteration of a map. In particular,
Conversely these three memberships allow successive substitution of the appropriate inverse branches, and therefore characterize exactly.
A metric space is sequentially compact if every sequence has a convergent subsequence whose limit belongs to the space. A limit point of is a point for which every open ball about contains a point of other than .
Let lie in a compact metric space. If one value occurs infinitely often, take a constant subsequence. Otherwise its set of values is infinite. If had no limit point, every point of the space would have a neighborhood containing at most one member of . A finite subcover of these neighborhoods would force finite, a contradiction. Thus has a limit point; the stated subsequence result supplies a convergent subsequence. This proves sequential compactness.
Assume now that is nonempty, as is necessary for the requested minimum and fixed point. The function is continuous, as a composition of with the metric. The extreme value theorem on a compact space implies that attains its infimum, say at . If , strict decrease of distances gives
contradicting minimality. Thus . If were distinct fixed points, then , another contradiction. Hence there is exactly one fixed point. This is the fixed point theorem for a strictly distance-decreasing map on a compact metric space.
Compactness is essential. On , take
Here , so there is no fixed point. Nevertheless everywhere, and the mean value theorem gives for distinct . There is no uniform Lipschitz constant less than , since as .
The total derivative of sends a scalar increment to
Since , the function composition is constantly , so . Directly, the Jacobian matrix product is
This verifies the chain rule at every .
Use the fact that is a normal subgroup to move a factor of past a factor of . For and ,
while
The identity element belongs to . Hence is a subgroup, by the subgroup test. This proves the product of a subgroup with a normal subgroup construction; need not be a normal subgroup.
For each , conjugation maps to itself and respects its multiplication. The inverse of is , so both are group automorphisms of .
The printed formula requires a composition convention. For the printed , ordinary function composition gives
Indeed, . Thus the displayed assignment is a group antihomomorphism with the usual multiplication in the automorphism group. It is a group homomorphism if the automorphisms are written as right operators and multiplied in the corresponding reverse order; this is precisely why right conjugation reverses composition.
With the usual left function composition, the corresponding group homomorphism is instead
Direct expansion gives . This states the intended conjugation action without silently reversing the order in the printed formula.
Let be the inclusion map and the retraction. Since is contractible, choose a contraction of a topological space
The function composition
is a continuous map. Its endpoints satisfy
Consequently is a homotopy from the identity map of to a constant function. This proves
The contracting point of need not belong to : applying the retraction sends it to the contracting point of . This is the retract of a contractible space principle.
Function composition is not always commutative. The reversed function composition may be undefined when the necessary domain of a function and codomain do not match. A counterexample using functions avoids that issue: let and . Then
Both function compositions exist, and their values differ at every real .
Seek an affine function . Its function composition with itself is
Equating coefficients requires and . Because and , either choice or has . Thus two valid functions are
Substitution into verifies each answer. These provide the requested maps; no assumption that every possible solution is affine function is needed.
The principal types and definitions are:
map :: (a -> b) -> [a] -> [b]
map _ []     = []
map f (x:xs) = f x : map f xs

foldr :: (a -> b -> b) -> b -> [a] -> b
foldr _ e []     = e
foldr f e (x:xs) = f x (foldr f e xs)

(.) :: (b -> c) -> (a -> b) -> a -> c
(.) f g x = f (g x)
The map function preserves the list shape while changing element type from a to b. The right fold replaces the empty list by e and each constructor by f, whose second argument and result therefore share the accumulator type b. Function composition requires the output type of g to agree with the input type of f. No Haskell type class constraints arise: these definitions never compare elements or perform arithmetic on them.
The expression parses as g . (g x). Initially write g :: a -> r and x :: a. In the function composition, g x must itself be a function whose result can be passed to g. Hence r = b -> a for a fresh type b, so
g :: a -> b -> a
g x :: b -> a
g . g x :: b -> b -> a
Consequently the principal type is
f :: (a -> b -> a) -> a -> b -> b -> a
One can check the constraints by expanding the composition:
f g x y z = g (g x y) z
Here g x y has type a, and the second application accepts it and the final b-typed argument z. The two type variables remain independent; no Haskell type class constraints are required.
Use the representation invariant that each input occurs at most once in data. It is an immutable finite partial function, so extending or removing an input returns a new object. The source comment get(x) returns Some(x) contradicts both the type signature Option[U] and the input-output semantics: it must return Some(y) when .
class PartialFn[T,U](val data: List[(T,U)]) {
  require(data.map(_._1).distinct.size == data.size)

  def get(x: T): Option[U] =
    data.find(p => p._1 == x).map(_._2)

  def add(x: T, y: U): PartialFn[T,U] =
    new PartialFn[T,U]((x,y) :: data.filterNot(p => p._1 == x))

  def remove(x: T): PartialFn[T,U] =
    new PartialFn[T,U](data.filterNot(p => p._1 == x))

  def compose[V](that: PartialFn[U,V]): PartialFn[T,V] = {
    val pairs: List[(T,V)] = data.flatMap { case (x,y) =>
      that.get(y).toList.map(z => (x,z))
    }
    new PartialFn[T,V](pairs)
  }
}
get returns an optional value rather than inventing a result outside the domain of a function. add removes any old pair for its input before inserting the replacement; remove retains exactly the other pairs. In compose, undefined intermediate outputs contribute an empty list; defined outputs contribute one pair. Hence uniqueness of input keys is preserved.
The printed composition order is deliberately followed:
This is the stated function composition, even though some libraries use the name compose for the opposite order.
Take , so but . The ratio is unbounded, precluding any eventual constant upper bound in big O notation. False: in general . This is a counterexample involving function composition, not pointwise addition.