Apology. Induction on the length is usually a mistake [01FW]
In our proof of the uniqueness of prime factorisations, we proceeded by induction on the length of a prime factorisation. In all honesty, that is not usually the best proof technique, as it leads to arguments that are technical and artificial rather than getting to the heart of the matter. Mathematical induction is the induction priniciple of the natural numbers, but these are only the simplest and most impoverished data structure that we can come up with; finite sequences also have an induction principle, as do trees (even infinitely branching trees!). These more sophisticated induction principles for data structures get to the heart of the matter, and lead to proofs that have more in common with algorithms that work on the data structures in question. The reason we are not using the induction principle for finite sequences here is simply that we haven’t learned enough yet to apply it.