Solution
= Solution
If $g$ satisfies condition (a), then $g_i\ge0$ for every $i$. Outside $B$, the rows of $\widetilde P$ and $P$ agree, so $g_i\ge(Pg)_i=(\widetilde Pg)_i$. On $B$ the modified row is the identity row, so $(\widetilde Pg)_i=g_i$. Thus
$$
\boxed{g\ge\widetilde Pg.}
$$
This conclusion uses no boundary-value assumption on $g$.