PROOF 120
Prove.
Composition is associative but not commutative
On sets and correspondences.
A way to read this proof
First separate what is assumed from what is to be proved. At each step, ask which definition or earlier result permits the move. If it is unclear, return to that premise rather than skipping to the conclusion.
Definition D1
For g: X → Y and f: Y → Z, the composition f∘g: X → Z is defined by (f∘g)(x) = f(g(x)).
Proof.
∎
Theorem T1
For h: W → X, g: X → Y, f: Y → Z, (f∘g)∘h = f∘(g∘h)
Proof.
∎
Theorem T2
The proposition that f∘g = g∘f for all f, g is false.
Proof.
∎
Corollary C
In composition, parentheses may be omitted but the order cannot be exchanged. This property is not restricted to functions.
Proof.
∎
Remark
Can A1 be removed from this proof?
Separate the lines that assert sameness from the lines that assert difference. The two demand different amounts.