First order logic and lambda calculus