From Formal Systems to HoTT and Topos: Syntax, Foundations, Type-Theoretic Logic, and Internal Truth | Synapse