rewrite: apply bvar domainofapplication

This rewrite rule changes the arity of H, which is highly unlikely to be correct:

<apply> H 
   D 
  <bind><csymbol cd="fns1">lambda</csymbol>
    <bvar> v1 </bvar>
    ...
    <bvar> vn </bvar>
     A1 
  </bind>
  ...
  <bind><csymbol cd="fns1">lambda</csymbol>
    <bvar> v1 </bvar>
    ...
    <bvar> vn </bvar>
     Am 
  </bind>
</apply>

I suggest replacing this by something like the following, interpreting domainofapplication 
as a restriction on the operator:

<apply> 
  <apply> <csymbol>restrict</csymbol> H D</apply> 
  <bind><csymbol cd="fns1">lambda</csymbol>
    <bvar> v1 </bvar>
    ...
    <bvar> vn </bvar>
     A1 
  </bind>
  ...
  <bind><csymbol cd="fns1">lambda</csymbol>
    <bvar> v1 </bvar>
    ...
    <bvar> vn </bvar>
     Am 
  </bind>
</apply>

Received on Saturday, 6 June 2009 19:02:36 UTC