DEFINITION cweight()
TYPE =
       Cnat
BODY =
FIXcweight{
         cweight:Cnat
         :=λc:C
           .<λc1:C.nat>
             CASE c OF
               CSort O
             | CHead c0  tplus (cweight c0) (tweight t)
         }