On an 11 year old car for $5000?
Not sure where you are, but here a $5000, 11 year old car from a dealer would be sold as is with no warranty
You’re going to have a hard time proving he knowingly put in a defective transmission, besides, he’s replacing it.