Which one of the following functions is left continuous and how to prove it? $$ f(x;\mathbf{d},\mathbf{m}) = x - \sum_{i=1}^{n}(x-d_{i})^{+}\mathbf{1}_{\{x<m_{i}\}}, $$ $$ g(x;\mathbf{d},\mathbf{m}) = x - \sum_{i=1}^{n}(x-d_{i})^{+}\mathbf{1}_{\{x\leq m_{i}\}}, $$ where, $\mathbf{b} = (b_1,\cdots,b_n) \in \mathbb{R}^{n}$, $\mathbf{m} = (m_1,\cdots,m_n) \in \mathbb{R}^{n}$ are given and $\mathbf{1}_{A} = 1$ if $A$ holds, otherwise $0$. The positive part function is $x^{+}= max(x,0)$.
Here, we only need to consider the left-continuity at $x = m_i, i = 1,\cdots,n.$