Nuprl Definition : Longs-algorithm

Longs-algorithm(h;n;a;b;c)
==r if a=0
       then c
       else if (c) < (0)
               then 0
               else if (b) < (0)
                       then 0
                       else if b=0
                               then eval a' in
                                    eval c' in
                                    eval b' (n a') in
                                      Longs-algorithm(h;n;a;b;c') Longs-algorithm(h;n;a';b';c)
                               else eval b' in
                                    eval c' in
                                      Longs-algorithm(h;n;a;b';c) Longs-algorithm(h;n;a;b;c')

Longs-algorithm(h;n;a;b;c) ==
  fix((λLongs-algorithm,a,b,c. if a=0
                                  then c
                                  else if (c) < (0)
                                          then 0
                                          else if (b) < (0)
                                                  then 0
                                                  else if b=0
                                                          then eval a' in
                                                               eval c' in
                                                               eval b' (n a') in
                                                                 (Longs-algorithm c') (Longs-algorithm a' b' c)
                                                          else eval b' in
                                                               eval c' in
                                                                 (Longs-algorithm b' c) (Longs-algorithm c'))) 
  
  
  c



Definitions occuring in Statement :  callbyvalue: callbyvalue less: if (a) < (b)  then c  else d int_eq: if a=b  then c  else d apply: a fix: fix(F) lambda: λx.A[x] subtract: m add: m natural_number: $n
Definitions occuring in definition :  fix: fix(F) lambda: λx.A[x] less: if (a) < (b)  then c  else d int_eq: if a=b  then c  else d callbyvalue: callbyvalue subtract: m natural_number: $n add: m apply: a
FDL editor aliases :  Longs-algorithm
Latex:
Longs-algorithm(h;n;a;b;c)
==r  if  a=0
              then  h  c
              else  if  (c)  <  (0)
                              then  0
                              else  if  (b)  <  (0)
                                              then  0
                                              else  if  b=0
                                                              then  eval  a'  =  a  -  1  in
                                                                        eval  c'  =  c  -  1  in
                                                                        eval  b'  =  (n  a')  -  c  in
                                                                            Longs-algorithm(h;n;a;b;c')  +  Longs-algorithm(h;n;a';b';c)
                                                              else  eval  b'  =  b  -  1  in
                                                                        eval  c'  =  c  -  1  in
                                                                            Longs-algorithm(h;n;a;b';c)  +  Longs-algorithm(h;n;a;b;c')


Latex:
Longs-algorithm(h;n;a;b;c)  ==
    fix((\mlambda{}Longs-algorithm,a,b,c.  if  a=0
                                                                    then  h  c
                                                                    else  if  (c)  <  (0)
                                                                                    then  0
                                                                                    else  if  (b)  <  (0)
                                                                                                    then  0
                                                                                                    else  if  b=0
                                                                                                                    then  eval  a'  =  a  -  1  in
                                                                                                                              eval  c'  =  c  -  1  in
                                                                                                                              eval  b'  =  (n  a')  -  c  in
                                                                                                                                  (Longs-algorithm  a  b  c')
                                                                                                                                  +  (Longs-algorithm  a'  b'  c)
                                                                                                                    else  eval  b'  =  b  -  1  in
                                                                                                                              eval  c'  =  c  -  1  in
                                                                                                                                  (Longs-algorithm  a  b'  c)
                                                                                                                                  +  (Longs-algorithm  a  b  c'))) 
    a 
    b 
    c



Date html generated: 2016_05_15-PM-10_02_40
Last ObjectModification: 2015_09_23-AM-08_21_53

Theory : power!series


Home Index