f : (N -> N) -> N * N -> N -> Z f g (x,y) z = x + g y - z -- here g y is function application