The "Maps into Products" theorem says that,
(Maps into Products) Let $f: A \to X \times Y$ be given by the equation $$f(a) = (f_1(a), f_2(a)).$$ Then $f$ is continuous iff the functions $$f_1: A \to X \textrm{ and } f_2: A \to Y$$ are continuous.
The book from which I am learning "general topology" comments that,
Comment: Product topology is the only topology on $X \times Y$ which makes the "Maps into Products" theorem valid.
So, my question is:
Question: How to prove the comment?
My attempt: I notice that the proof of the "Maps into Products" theorem makes use of the continuity of both $\pi_1: X \times Y \to X$ and $\pi_2: X \times Y \to Y$, where $\pi_i, \pi_2$ are projection functions.
And I know that the product topology on $X \times Y$ is the minimal one which makes both $\pi_1$ and $\pi_2$ continuous.
Then how to proceed?