In Artin's book he proves the associativity of a $n$-element product.
It says as follows:
i) the product of one element is the element itself.
ii) the product $a_1a_2$ is given by the law of composition.
iii) for any natural n, $[a_1a_2...a_n]=[a_1...a_i][a_{i+1}...a_n]$
Proof:
The product is defined by (i) and (ii) for $n≤2$ and satisfies (iii) for $n=2$. Suppose that we have defined the product of $r$ elements when $r≤n-1$ and that it is the unique product satisfying (iii). We then define the product of $n$ elements by the rule$$[a_1...a_n]=[a_1...a_{n-1}][a_n]$$
where the terms on the right side are those already defined. If a product satisfying (iii) exists, then this formula gives the product because it is (iii) when $i =n-1$. So if it exists, the product is unique. We must now check (iii) for $i< n-1$: So if it exists, the product is unique. We must now check (iii) for $i< n-1$: \begin{align} [a_1...a_n]&=[a_1...a_{n-1}][a_n] &&\text{(our definition)}\\ &=([a_1...a_i][a_{i+1}...a_{n-1}])[a_n] &&\text{(induction hypothesis)}\\ &=[a_1...a_i]([a_{i+1}...a_{n-1}][a_n]) &&\text{(associative law)} \\ &=[a_1\cdots a_i][a_{i+1}\cdots a_n] &&\text{(induction hypothesis)} \end{align} This completes the proof.
I don't understand how this proves the associativity, for example, for $i=n-1$.
Could someone elaborate a bit more on this proof?