By: |
THEN (Inst: 3 Using:[p | otherPeg(p; q) | a] (THEN (Inst: 3 Using:[otherPeg(p; q) | q | m+1] (THEN (Witness: z | m) |
1 |
| 1 step |
2 |
otherPeg(p; q) = q | 1 step |
3 |
9. otherPeg(p; q) = q 10. m : {a...} 11. s1 : {a...m}{1...n-1}Peg 12. s1 is a Hanoi(n-1 disk) seq on a..m 13. s1(a) = (i.p) 14. s1(m) = (i.otherPeg(p; q)) 15. z : {m+1...} 16. s2 : {m+1...z}{1...n-1}Peg 17. s2 is a Hanoi(n-1 disk) seq on m+1..z 18. s2(m+1) = (i.otherPeg(p; q)) 19. s2(z) = (i.q) s1:({a...m}{1...n}Peg), s2:({m+1...z}{1...n}Peg). (s1 @(m) s2) is a Hanoi(n disk) seq on a..z & s1(a) = (i.p) {1...n}Peg & s2(z) = (i.q) {1...n}Peg | 6 steps |
About: