The four major programs fall nicely into a Matrix: the two columns are the monthly SSA payments (either RIB/DIB or SSI) which trigger the two major medical programs, Medicare and Medicaid.  The two rows indicate which two programs are insurance-based (RIB/DIB and Medicare) and which two are welfare programs with monthly means-testing for income