Split-out the gate generator from the proof