Retirement tax questions

A tax refund, void of any credits, is earned income returned due to overpayment of taxes (e.g. A state income tax refund is considered earned income on the following years federal tax return).