Exercise · ZW-COMPOSITION-AND-INVERSE-018 · ★★☆ Intermediate

If \(f:M\to N\), which composition is well typed?

Choose one option.

Show answer
  • A. \(\operatorname{id}_N\circ f=f\)

Explanation

Since \(f\) goes from \(M\) to \(N\), \(\operatorname{id}_N\), which goes from \(N\) to \(N\), can be applied after it and returns \(f\). The other options do not match domains and codomains.

Study Set theory in ZWMath →

Review the concept: Composition and inverse

The composition \(g\circ f\) applies \(f\) first and then \(g\). The inverse \(f^{-1}\) exists when \(f\) is bijective and undoes its action.

\[(g\circ f)(x)=g(f(x)), \quad (g\circ f)^{-1}=f^{-1}\circ g^{-1}\]

More practice problems: composition and inverse

← ZW-COMPOSITION-AND-INVERSE-017 ZW-COMPOSITION-AND-INVERSE-019 →