Look at this formula in first-order logic:
f(X,Y) /\ f(W,Z) -> g(X,Z)
(for all X,Y,W,Z).
How can this be expressed in a bound-variable-free way?
I have looked at relation algebra, ie the following system with signature (2,2,1,2,1):
So I can write:
grandfather = father ∘ father
or
g = f ∘ f
which in first-order logic would be:
g(X,Z) = f(X,Y) /\ f(W,Z), Y = W
But if I remove the Y=W condition, is it still possible to express
g(X,Z) = f(X,Y) /\ f(W,Z)
in relation algebra? Or combinatory logic? (I can introduce new combinators or relational operators as long as they do not involve quantified first-order logic variables).