For the Y combinator theorem,
For every function F there exists an X such that FX=X
what's the F mean here? what's the fixed point for F(x) = x +1? My understanding is that x+1=x does not have a solution?
For the Proof below:
For any function F, let W be the function λx.F(xx) and let X = WW.
We claim that X is a fixed point of F. Demonstrated as follows
X = WW
X = λx.F(xx) W
X = F(WW)
X = FX
How's λx.F(xx) defined? again using F(x) = x + 1 as example, what's F(xx) mean?
You are right in that the equation
x+1 = xhas no solution whenxis a number. What's going on here is thatxis not restricted to being a number; it can be a function of functions.About
xx: In general in lambda calculusf xis a function application, soxxis "x applied to x", orx(x). Note how x is both the function that is being applied and the value being passed to it.So, if
F(x) = x+1, you haveF(xx) = x(x)+1,W = λx.(x(x)+1), andX=W(W)would be the function:This may seem very abstract because if you try to expand X on any concrete value you'll find that the process never ends. But don't let that bother you; in spite of that
Xis a fixed point ofFbecause