SMS dit: Mathematical theory of adaptive control