Theory of Machine Lab