Step 1: A free proton is stable and cannot decay into a heavier neutron (\(m_p<m_n\)) because it would violate conservation of energy.
Step 2: However, inside a nucleus, a proton can convert into a neutron via \(\beta^+\) decay (\(p \rightarrow n + e^+ + \nu\)).
Step 3: This is possible because the required energy comes from the binding energy of the surrounding nucleus.