In chemistry, I studied the decomposition of water as being $2H_2O_{(l)} \rightarrow 2H_{2(g)} + O_{2(g)}$. However, when water is split, the equation is $2H_2O_{(l)} \rightarrow 4H^+ + 4e^- +O_{2(g)}$. Why is that? How does $H_2$ just ionize?
Moreover, what is the mechanism for photolysis? I would have thought that splitting water molecules requires a ton of energy; yet it can be accomplished simply with light energy during photosynthesis?