Composing Automatic Differentiation with Custom Derivatives of Higher-Order Functions | Synapse