MHB Free variables and binding occurrence of each variable.

  • Thread starter Thread starter JamesBwoii
  • Start date Start date
  • Tags Tags
    Variable Variables
AI Thread Summary
The discussion focuses on identifying free variables and binding occurrences in various lambda calculus expressions. The user presents several lambda expressions and attempts to classify their free variables, noting specific variables like $x$, $z$, and $a$. The consensus confirms the identification of free variables, with some expressions having none. The term "binding occurrence" is questioned, as it is not a standard term in lambda calculus. Clarification is suggested regarding the relationship between the lambda abstraction and its free variables, particularly in the expression $\lambda x.x$. The conversation emphasizes the importance of precise terminology in understanding lambda calculus concepts.
JamesBwoii
Messages
71
Reaction score
0
Hi, I'm trying to identify the free variable and binding occurrence but I'm not sure if they're right in lambda calculus.

  1. $x$
  2. $\lambda x.x$
  3. $(\lambda a.z)a$
  4. $\lambda a.za$
  5. $(\lambda n.n)z$
  6. $\lambda z.(\lambda y.(\lambda x.x)y)z$
  7. $(\lambda t.((\lambda t.(\lambda t.t)t)t))t$

Then for free variables for them I have got:

  1. $x$
  2. No free variable
  3. ${z,a}$
  4. $z$
  5. $z$
  6. No free variable
  7. $t$

For the binding occurrence would it just be the link between the $\lambda x$ and the free variable $x$ in $\lambda x.x$?
 
Last edited:
Technology news on Phys.org
Mmm, lambda calculus... (in Homer Simpson's voice).

You are right about free variables. The term "binding occurrence" is not standard. You are probably right, but you may want to consult the definition and maybe post it here. I would say, "...and the free variable $x$ in the body of $\lambda x.x$".
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...
Back
Top