Denjoy-Carleman-Ahlfors theorem