GamePress
Ditto in a gym
I put my ditto in a gym then trained against it. It appears ditto will transform into whatever you use to fight it. It went from a 391cp ditto to a 1500+ muck when i used muck but it definitely didn't have anymore health