1 |
( x,i. permute(p to otherPeg(p; q) ; otherPeg(p; q) to q)(s1(x-m,i)))
is a Hanoi(n-1 disk) seq on m+1..m+m
 | 1 step |
2 |
( i.permute(p to otherPeg(p; q) ; otherPeg(p; q) to q)(s1(m+m-m,i)))
=
( i.q)
{1...n-1} Peg
 | 3 steps |
3 |
s1(m) = ( i.permute(p to otherPeg(p; q) ; otherPeg(p; q) to q)(s1(m+1-m,i)))
 | 2 steps |
4 |
16. i : {1...n-1}
s1(m,i) p
 | 2 steps |
5 |
16. i : {1...n-1}
permute(p to otherPeg(p; q) ; otherPeg(p; q) to q)(s1(m+1-m,i)) q
 | 2 steps |