WhoCites Definitions HanoiTowers Sections NuprlLIB Doc
IF YOU CAN SEE THIS go to /sfa/Nuprl/Shared/Xindentation_hack_doc.html
Who Cites hanoi sol2 ala generalPROG?
hanoi_sol2_ala_generalPROGDef  HanoiSTD(n disks; from: p; to: q; indexing from: a)
Def  == if n=0 <a,x,i. whatever>
Def  == else HanoiSTD(n-1 disks; from: p; to: otherPeg(pq); indexing from: a)
Def  == else /m,s1.
Def  == else HanoiSTD(n-1 disks; from: otherPeg(pq); to: q; indexing from: m
Def  == else HanoiSTD(+1)
Def  == else /z,s2. <z,HanoiHelper(ns1i.ps2i.q)/r1,r2r1 @(mr2> fi
Def  (recursive)
Thm*  n:p,q:Peg.
Thm*  p  q
Thm*  
Thm*  (a:
Thm*  (HanoiSTD(n disks; from: p; to: q; indexing from: a)
Thm*  ( z:{a...}({a...z}{1...n}Peg))
hanoi_seq_joinDef  (s1 @(ms2)(x) == if xm s1(x) else s2(x) fi
Thm*  n:m,a,z:s1:({a...m}{1...n}Peg), s2:({m+1...z}{1...n}Peg).
Thm*  (s1 @(ms2 {a...z}{1...n}Peg
hanoi_general_exists_lemma2PROGDef  HanoiHelper(ns1fs2g)
Def  == <s1(?) {to n-1}  f {to n},s2(?) {to n-1}  g {to n}>
Thm*  n:a:z:{a...}, m:{a...z-1}, f,g:({1...n}Peg),
Thm*  s1:({a...m}{1...n-1}Peg), s2:({m+1...z}{1...n-1}Peg).
Thm*  HanoiHelper(ns1fs2g)
Thm*   ({a...m}{1...n}Peg)({m+1...z}{1...n}Peg)
hanoi_otherpegDef  otherPeg(xy) == 6-(x+y)
Thm*  x,y:Peg. x  y  otherPeg(xy Peg
eq_intDef  i=j == if i=j true ; false fi
Thm*  i,j:. (i=j 
hanoi_seq_deepenDef  (s(?) {to n h {to n'})(x) == s(x) {to n h {to n'}
Thm*  a,z:n:s:({a...z}{1...n}Peg), n':.
Thm*  nn'
Thm*  
Thm*  (h:({n+1...n'}Peg). (s(?) {to n h {to n'})  {a...z}{1...n'}Peg)
hanoi_extendDef  (f {to n f' {to n'})(i) == if in f(i) else f'(i) fi
Thm*  n:f:({1...n}Peg), n':.
Thm*  nn'  (f':({n+1...n'}Peg). (f {to n f' {to n'})  {1...n'}Peg)
le_intDef  ij == j<i
Thm*  i,j:. (ij 
lt_intDef  i<j == if i<j true ; false fi
Thm*  i,j:. (i<j 
bnotDef  b == if b false else true fi
Thm*  b:b  

Syntax:HanoiSTD(n disks; from: p; to: q; indexing from: a) has structure: hanoi_sol2_ala_generalPROG(npqa)

About:
pairspreadproductproductboolbfalsebtrueifthenelse
intnatural_numberaddsubtractint_eqlesslambdaapply
functionrecursive_def_noticememberimpliesall!abstraction
IF YOU CAN SEE THIS go to /sfa/Nuprl/Shared/Xindentation_hack_doc.html

WhoCites Definitions HanoiTowers Sections NuprlLIB Doc