Learning, representing, and inferring a symbolic system from neural representations distributed across time and frequency