In an age when military power is defined by algorithms, mathematics has become the quiet architecture of national strength.