Written by? 

I know Paul, in Miles' 'Many Years From Now' states that he doesn't remember John contributing to the writing of this song at all, although it is stated that he did in other sources(like in 'Revolution In The Head').
So far I haven't seen John ever commenting on this song, so what exactly is this co-credit based on?

Any ideas?