Dilemma: Mathematical breakthrough

Alice has a brilliant idea/breakthrough in mathematics, she discusses this with Bob and Bob writes an article about this idea.

Should Alice be considered an author?

Should Bob be considered an author?