A Logical Approach to Type Soundness | Synapse