Math 2.0

Mathematical logic and foundations Proof

Proof that a function is bijective iff it has a two-sided inverse

Builds on Bijective functionInjective functionSurjective functionFunctionFunction compositionIdentity function

Proof

We prove the two directions separately, and we use no choice.

  1. Let f ⁣:A→Bf \colon A \to B be a function. Here ∘\circ is composition and id\mathrm{id} is the identity function.
  2. First suppose ff is bijective, that is, injective and surjective.
  3. Let b∈Bb \in B. Since ff is surjective, some a∈Aa \in A has f(a)=bf(a) = b. If also f(a′)=bf(a') = b, then f(a)=f(a′)f(a) = f(a'), so a=a′a = a' by injectivity. So exactly one a∈Aa \in A has f(a)=bf(a) = b.
  4. Define g ⁣:B→Ag \colon B \to A by letting g(b)g(b) be the unique aa of step 3. Then gg is a function, and f(g(b))=bf(g(b)) = b for each b∈Bb \in B. So f∘g=idBf \circ g = \mathrm{id}_B.
  5. Let a∈Aa \in A. By step 4, f(g(f(a)))=f(a)f(g(f(a))) = f(a). Since ff is injective, g(f(a))=ag(f(a)) = a. So g∘f=idAg \circ f = \mathrm{id}_A.
  6. Now suppose that g ⁣:B→Ag \colon B \to A satisfies g∘f=idAg \circ f = \mathrm{id}_A and f∘g=idBf \circ g = \mathrm{id}_B.
  7. Let a,a′∈Aa, a' \in A with f(a)=f(a′)f(a) = f(a'). Applying gg gives g(f(a))=g(f(a′))g(f(a)) = g(f(a')). Since g∘f=idAg \circ f = \mathrm{id}_A, this says a=a′a = a'. So ff is injective.
  8. Let b∈Bb \in B and put a=g(b)a = g(b). Since f∘g=idBf \circ g = \mathrm{id}_B, we get f(a)=f(g(b))=bf(a) = f(g(b)) = b. So ff is surjective.
  9. By steps 7 and 8, ff is bijective.
  10. By steps 4, 5 and 9, ff is bijective if and only if there is a function g ⁣:B→Ag \colon B \to A with g∘f=idAg \circ f = \mathrm{id}_A and f∘g=idBf \circ g = \mathrm{id}_B.

Idea

For a bijection, each bb has exactly one preimage, and sending bb to it undoes ff on both sides. Conversely, g∘f=idAg \circ f = \mathrm{id}_A forces ff to be injective, and f∘g=idBf \circ g = \mathrm{id}_B forces ff to be surjective.

Reading path

To understand this page from the ground up, read these 20 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Element definition
  2. Proposition concept
  3. Set definition
  4. Implication definition
  5. Predicate definition
  6. Ordered pair definition
  7. Existential quantifier definition
  8. Universal quantifier definition
  9. Cartesian product definition
  10. Subset definition
  11. Uniqueness quantifier definition
  12. Binary relation definition
  13. Function definition
  14. Codomain definition
  15. Function composition definition
  16. Identity function definition
  17. Injective function definition
  18. Surjective function definition
  19. Bijective function definition
  20. Proof that a function is bijective iff it has a two-sided inverse proof

Where this leads

756 pages build on this one.

Further reading

  1. Web https://proofwiki.org/wiki/Bijection_iff_Left_and_Right_Inverse
About this page
Tag96YGM41V3B
URIm2://96YGM41V3B
Kindproof
WritingW0 stub
MSC03E20
ProvesBijective iff it has a two-sided inverse
UsesBijective function, Injective function, Surjective function, Function, Function composition, Identity function
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)
  • a source with a locator (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.