A general inversion theorem for cointegration. (26th November 2019)