Lambda calculus: η-conversion
-- y is free (λx.xy) -- so let's lift the exp to bind it λy.(λx.xy) ≡ λyx.xy
-- in haskell f x y = map j [] y ≡ f x = map j []
-- η-introduction -- x,y are formal params -- A is previously defined final concrete value -- I is id function (λx. x) A ≡ A (λx. A) A ≡ A (λx. A) y ≡ A
x
≡ (λ_. x) _
x ≡ (λv. x) v x ≡ (λv. v) x
λv. (x x) v)
Last updated
Was this helpful?