Layer Importance for Mathematical Reasoning is Forged in Pre-Training and Invariant after Post-Training