Example-directed synthesis: a type-theoretic interpretation | Synapse