Text this: Types for Proofs and Programs