Theoretical foundations for programmatic reinforcement learning | Synapse