Alexandre Pato will return to Brazil after AC Milan confirmed they had reached an agreement with Corinthians over the forward's transfer.