Question: what do you do after you beat the hearthome gym leader in pokemon diamond?
Answer: After you defeat Fantina and exit the Gym, you'll see Cynthia outside waiting. She'll thank you for the help in Celestic Town and explain that you should visit the library in Canalave City, so you'll want to do just that.