The rules for special provisions (Air Traffic Controller, Fire Fighter, Law Enforcement) retirement are relatively simple and is shown by the flowchart below.
If you are a traditional FERS employee then you are going to want to check out this article.
https://hawsfederaladvisors.com/when-can-i-retire-as-a-fers-federal-employee-the-ultimate-guide/