Text this: Mathematical theory of adaptive control