"Is there actually any proof of this..."
I don't think there's even any evidence for it: the two body-forms, lifestyles and primary functions are so different that I can't think of anything that a caterpillar might learn that might be relevant to a butterfly, nor how it might be expressed.