Algebraic Decomposition Theory for Transformer Length Generalization — ThinkLLM