(4steps total) PrintForm Definitions Lemmas HanoiTowers Sections NuprlLIB Doc
IF YOU CAN SEE THIS go to /sfa/Nuprl/Shared/Xindentation_hack_doc.html
At: hanoi sol2 ala generalPROGcomp 1

1. n : 
2. p : Peg
3. q : Peg
4. p  q
5. a : 
  HanoiSTD(n disks; from: p; to: q; indexing from: a)
  =
  (HanoiSTD(n-1 disks; from: p; to: otherPeg(pq); indexing from: a)/m,s1.
  (HanoiSTD(n-1 disks; from: otherPeg(pq); to: q; indexing from: m+1)/z,s2.
  (<z,HanoiHelper(ns1i.ps2i.q)/r1,r2r1 @(mr2>)


By: Compute
CoHanoiSTD(n disks; from: p; to: q; indexing from: a)
Co*
Coif n=0 <a,x,i. whatever>
Coelse HanoiSTD(n-1 disks; from: p; to: otherPeg(pq); indexing from: a)/m,s1.
Coelse HanoiSTD(n-1 disks; from: otherPeg(pq); to: q; indexing from: m+1)
Coelse /z,s2. <z,HanoiHelper(ns1i.ps2i.q)/r1,r2r1 @(mr2> fi
THEN
SplitITE Concl


Generated subgoals:

1 6. n  0
  p  otherPeg(pq)

1 step
2 6. n  0
7. m : {a...}
8. s1 : {a...m}{1...n-1}Peg
9. HanoiSTD(n-1 disks; from: p; to: otherPeg(pq); indexing from: a) = <m,s1>
  otherPeg(pq q

1 step

About:
pairspreadproductifthenelseint
natural_numberaddsubtractlambdafunctionequalmarked_clause_then
markup_tag
IF YOU CAN SEE THIS go to /sfa/Nuprl/Shared/Xindentation_hack_doc.html

(4steps total) PrintForm Definitions Lemmas HanoiTowers Sections NuprlLIB Doc