(7steps 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 general exists lemma2PROG endpoint 1

1. n : 
2. n1:
2. n1<n
2. 
2. (p,q:Peg.
2. (p  q
2. (
2. ((a:
2. ((1of(HanoiSTD(n1 disks; from: p; to: q; indexing from: a)) = a+(2^n1)-1))
3. p : Peg
4. q : Peg
5. p  q
6. a : 
  1of(HanoiSTD(n disks; from: p; to: q; indexing from: a)) = a+(2^n)-1


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


Generated subgoals:

1 7. n = 0
  1of(<a,x,i. whatever>) = a+1-1  

1 step
2 7. n  0
  1of(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>)
  =
  a+2(2^(n-1))-1

4 steps

About:
pairspreadifthenelseintnatural_numberadd
subtractmultiplyless_thanlambdaequalimpliesallmarked_clause_thenmarkup_tag
IF YOU CAN SEE THIS go to /sfa/Nuprl/Shared/Xindentation_hack_doc.html

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