A Theory for Length Generalization in Learning to Reason | Synapse