Math 2.0

Mathematical logic and foundations Proof

Proof of the associativity of composition

Builds on Function compositionFunctionSetAxiom of extensionality

Proof

We compare the two functions at each point.

  1. Let f ⁣:A→Bf \colon A \to B, g ⁣:B→Cg \colon B \to C and h ⁣:C→Dh \colon C \to D be functions.
  2. By the definition of composition, g∘f ⁣:A→Cg \circ f \colon A \to C and h∘g ⁣:B→Dh \circ g \colon B \to D. So h∘(g∘f)h \circ (g \circ f) and (h∘g)∘f(h \circ g) \circ f are both functions from AA to DD.
  3. Let a∈Aa \in A. By the definition of composition, applied twice, (h∘(g∘f))(a)=h((g∘f)(a))=h(g(f(a)))(h \circ (g \circ f))(a) = h((g \circ f)(a)) = h(g(f(a))).
  4. Also ((h∘g)∘f)(a)=(h∘g)(f(a))=h(g(f(a)))((h \circ g) \circ f)(a) = (h \circ g)(f(a)) = h(g(f(a))).
  5. By steps 3 and 4, the two functions take the same value at each a∈Aa \in A.
  6. A function u ⁣:A→Du \colon A \to D is the set of pairs (a,u(a))(a, u(a)) with a∈Aa \in A. By step 5, both functions are the same set of pairs.
  7. Two sets with the same elements are equal, by the axiom of extensionality. Hence h∘(g∘f)=(h∘g)∘fh \circ (g \circ f) = (h \circ g) \circ f.

Idea

Both ways of grouping send aa to h(g(f(a)))h(g(f(a))): first apply ff, then gg, then hh. Functions that agree at every point are equal.

Reading path

To understand this page from the ground up, read these 18 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. Conjunction definition
  5. Implication definition
  6. Predicate definition
  7. Ordered pair definition
  8. Biconditional definition
  9. Existential quantifier definition
  10. Universal quantifier definition
  11. Cartesian product definition
  12. Axiom of extensionality statement
  13. Subset definition
  14. Uniqueness quantifier definition
  15. Binary relation definition
  16. Function definition
  17. Function composition definition
  18. Proof of the associativity of composition proof

Where this leads

3 pages build on this one.

Further reading

  1. Web https://proofwiki.org/wiki/Composition_of_Mappings_is_Associative
About this page
TagKC5B2GHS8R
URIm2://KC5B2GHS8R
Kindproof
WritingW0 stub
MSC03E20
ProvesAssociativity of composition
UsesFunction composition, Function, Set, Axiom of extensionality
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.