Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Functional > Looking for ref...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 2787 of 2841
Post > Topic >>

Looking for references on a set of expression transformation rules

by Anton Salikhmetov <salikhmetov@[EMAIL PROTECTED] > Mar 3, 2008 at 01:52 PM

Hello,

I'm wondering if the rules described below can be found in existing
literature. In what follows we use the "=" sign to indicate that both
sides of the equation can be beta-reduced to one and the same term.

Classic definition of the beta reduction is well-known:

(\x. M A) -> M[x := A]. (*)

Here substitution is determined by the following four rules:

i) x[x := A] = A;
ii) y[x := A] = y;
iii) (\y. M)[x := A] = \y. M[x := A];
iv) (M N)[x := A] = (M[x := A] N[x := A]).

One can observe that

(\x. x A) = A, (1)

and

(\x. y A) = y. (2)

Further, due to (*)

(\x. \y. M A) -> (\y. M)[x := A] = \y. M[x := A] <- \y. (\x. M A),

hence

(\x. \y. M A) = \y. (\x. M A). (3)

Finally, using (*) one can write

(\x. (M N) A) -> (M N)[x := A] = (M[x := A] N[x := A]) <- ((\x. M A)
(\x. N A)),

hence

(\x. (M N) A) = ((\x. M A) (\x. N A)). (4)

Usage of the rules (1)-(4) could simplify construction of a machine
for automated evaluation of lambda expressions: if each of the above
rules is applied within one clock cycle, then after every cycle the
memory will contain a valid expression.

I will be very grateful for any information about where this or a
similar approach to reduction of lambda expressions was considered in
the literature.




 3 Posts in Topic:
Looking for references on a set of expression transformation rul
Anton Salikhmetov <sal  2008-03-03 13:52:20 
Re: Looking for references on a set of expression transformation
Anton Salikhmetov <sal  2008-03-06 15:23:29 
Re: Looking for references on a set of expression transformation
Anton Salikhmetov <sal  2008-03-10 17:33:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon May 12 0:37:46 CDT 2008.