Learning FlashAttention the Hard Way

Part 1: The Algebraic Foundation — Why Attention Is Just a Reduction