Provably optimal exact gate synthesis from a discrete gate set | Synapse