Theory building mathematicians are safe for now and even arguably more valuable since that's the weakness of AI, currently. Problem solving mathematicians are in trouble.