Let $f$ be a holomorphic function on the open unit disc.
Is $(\sup \vert f \vert)^2 = \sup (\vert f\vert^2)$?
Let $f$ be a holomorphic function on the open unit disc.
Is $(\sup \vert f \vert)^2 = \sup (\vert f\vert^2)$?
I don't think this has anything to do with $f$ being a holomorphic function on the open unit disk. The square of the supremum of any set of non-negative numbers is the supremum of the squares.
For weakly positive real numbers, the inequalities $x \le y$ and $x^2 \le y^2$ are equivalent. Since the modulus of the function is always weakly positive, this is all you need.