Let's say I have a function $f$ and it's inverse $f^{-1}$
Say I don't know how to define either explicitly but I know one thing, and that is that $f$ is it's own inverse.
$$f( f(x) ) = x$$
Mathematica is quite capable of manipulating expressions where functions are only referred to by name, but I wish it to also use the above information when doing so.
How do I define such to Mathematica?