(28steps total) PfGloss PrintForm Definitions Lemmas HanoiTowers Sections NuprlLIB Doc
IF YOU CAN SEE THIS go to /sfa/Nuprl/Shared/Xindentation_hack_doc.html
At: hanoi sol2 via permshift 2 1 3 2 1 1

1. n : 
2. 0<n
3. p,q:Peg.
3. p  q
3. 
3. (z:{1...}, s:({1...z}{1...n-1}Peg).
3. (s is a Hanoi(n-1 disk) seq on 1..z & s(1) = (i.p) & s(z) = (i.q))
4. p : Peg
5. q : Peg
6. p  q
7. p  otherPeg(pq)
8. otherPeg(pq q
9. m : {1...}
10. s1 : {1...m}{1...n-1}Peg
11. s1 is a Hanoi(n-1 disk) seq on 1..m
12. s1(1) = (i.p)
13. s1(m) = (i.otherPeg(pq))
14. (x,i. permute(p to otherPeg(pq) ; otherPeg(pq) to q)(s1(x,i)))
14. is a Hanoi(n-1 disk) seq on 1..m
15. (x,i. permute(p to otherPeg(pq) ; otherPeg(pq) to q)(s1(x-m,i)))
15. is a Hanoi(n-1 disk) seq on 1+m..m+m
  s1:({1...m}{1...n-1}Peg), s2:({m+1...m+m}{1...n-1}Peg).
  s1 is a Hanoi(n-1 disk) seq on 1..m
  s1(1) = (i.p)
  s2 is a Hanoi(n-1 disk) seq on m+1..m+m
  s2(m+m) = (i.q)
  s1(m) = s2(m+1)
  & (i:{1...n-1}. s1(m,i p & s2(m+1,i q)


By: Witness:
Wis1 |
Wix,i. permute(p to otherPeg(pq) ; otherPeg(pq) to q)(s1(x-m,i))
THEN
Reduce Concl


Generated subgoals:

1   (x,i. permute(p to otherPeg(pq) ; otherPeg(pq) 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(pq) ; otherPeg(pq) to q)(s1(m+m-m,i)))
  =
  (i.q)
   {1...n-1}Peg

3 steps
3   s1(m) = (i.permute(p to otherPeg(pq) ; otherPeg(pq) 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(pq) ; otherPeg(pq) to q)(s1(m+1-m,i))  q

2 steps

About:
intnatural_numberaddsubtractless_thanlambdaapply
functionequalimpliesandall
exists
IF YOU CAN SEE THIS go to /sfa/Nuprl/Shared/Xindentation_hack_doc.html

(28steps total) PfGloss PrintForm Definitions Lemmas HanoiTowers Sections NuprlLIB Doc