Invariance-Based Approach Explains Empirical Formulas from Pavement Engineering to Deep Learning