Math 2.0

Mathematical logic and foundations Proof

Proof that a function with nonempty domain is injective iff it has a left inverse

Builds on Injective functionLeft inverseFunctionImage of a setFunction compositionIdentity function

Proof

We prove the two directions separately.

  1. Let AA be a nonempty set, let BB be a set, and let f ⁣:A→Bf \colon A \to B be a function.
  2. First suppose that ff has a left inverse g ⁣:B→Ag \colon B \to A. So g(f(a))=ag(f(a)) = a for each a∈Aa \in A.
  3. 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')). By step 2, this says a=a′a = a'.
  4. By step 3, ff is injective.
  5. Now suppose that ff is injective. Since AA is nonempty, fix an element a0∈Aa_0 \in A. Let f(A)f(A) be the image of AA under ff.
  6. Let b∈f(A)b \in f(A). Then f(a)=bf(a) = b for some a∈Aa \in A. 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.
  7. Define g ⁣:B→Ag \colon B \to A as follows. For b∈f(A)b \in f(A), let g(b)g(b) be the unique a∈Aa \in A with f(a)=bf(a) = b, given by step 6. For b∈B∖f(A)b \in B \setminus f(A), let g(b)=a0g(b) = a_0.
  8. Each b∈Bb \in B lies in exactly one of f(A)f(A) and B∖f(A)B \setminus f(A). So step 7 gives exactly one value g(b)∈Ag(b) \in A, and gg is a function from BB to AA.
  9. Let a∈Aa \in A and put b=f(a)b = f(a). Then b∈f(A)b \in f(A), and aa is the unique element with f(a)=bf(a) = b. By step 7, g(f(a))=g(b)=ag(f(a)) = g(b) = a.
  10. By step 9, g∘f=idAg \circ f = \mathrm{id}_A, where idA\mathrm{id}_A is the identity function and ∘\circ is composition. So gg is a left inverse of ff.
  11. By steps 4 and 10, ff is injective if and only if ff has a left inverse.

Idea

On the image of ff, injectivity lets us undo ff: each value comes from exactly one point. Off the image, gg may send everything to any fixed point of AA. That is why AA must be nonempty. The converse holds because applying gg recovers the input.

Reading path

To understand this page from the ground up, read these 19 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. Function composition definition
  15. Identity function definition
  16. Injective function definition
  17. Image of a set definition
  18. Left inverse definition
  19. Proof that a function with nonempty domain is injective iff it has a left inverse proof

Where this leads

1 page builds on this one.

Further reading

  1. Web https://proofwiki.org/wiki/Injection_iff_Left_Inverse, Proof 1
About this page
TagVZMTMCSJRW
URIm2://VZMTMCSJRW
Kindproof
WritingW0 stub
MSC03E20
ProvesInjective iff it has a left inverse
UsesInjective function, Left inverse, Function, Image of a set, 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)

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.