Nuprl Definition : Formco_size

Formco_size(p) ==
  fix((λsize,p. let lbl,x 
                in if lbl =a "Var" then 0
                   if lbl =a "Const" then 0
                   if lbl =a "Set" then (size (snd(x)))
                   if lbl =a "Equal" then (size (fst(x))) (size (snd(x)))
                   if lbl =a "Member" then (size (fst(x))) (size (snd(x)))
                   if lbl =a "And" then (size (fst(x))) (size (snd(x)))
                   if lbl =a "Or" then (size (fst(x))) (size (snd(x)))
                   if lbl =a "Not" then (size x)
                   if lbl =a "All" then (size (snd(x)))
                   if lbl =a "Exists" then (size (snd(x)))
                   else 0
                   fi )) 
  p



Definitions occuring in Statement :  ifthenelse: if then else fi  eq_atom: =a y pi1: fst(t) pi2: snd(t) apply: a fix: fix(F) lambda: λx.A[x] spread: spread def add: m natural_number: $n token: "$token"
Definitions occuring in definition :  fix: fix(F) lambda: λx.A[x] spread: spread def pi1: fst(t) ifthenelse: if then else fi  eq_atom: =a y token: "$token" add: m apply: a pi2: snd(t) natural_number: $n
FDL editor aliases :  Formco_size Formco_size

Latex:
Formco\_size(p)  ==
    fix((\mlambda{}size,p.  let  lbl,x  =  p 
                                in  if  lbl  =a  "Var"  then  0
                                      if  lbl  =a  "Const"  then  0
                                      if  lbl  =a  "Set"  then  1  +  (size  (snd(x)))
                                      if  lbl  =a  "Equal"  then  1  +  (size  (fst(x)))  +  (size  (snd(x)))
                                      if  lbl  =a  "Member"  then  1  +  (size  (fst(x)))  +  (size  (snd(x)))
                                      if  lbl  =a  "And"  then  1  +  (size  (fst(x)))  +  (size  (snd(x)))
                                      if  lbl  =a  "Or"  then  1  +  (size  (fst(x)))  +  (size  (snd(x)))
                                      if  lbl  =a  "Not"  then  1  +  (size  x)
                                      if  lbl  =a  "All"  then  1  +  (size  (snd(x)))
                                      if  lbl  =a  "Exists"  then  1  +  (size  (snd(x)))
                                      else  0
                                      fi  )) 
    p



Date html generated: 2018_05_21-PM-10_42_02
Last ObjectModification: 2017_10_10-PM-04_31_26

Theory : PZF


Home Index