Let $a, b, c \in \mathbb R$ such that $a \le b \le c$. Let $S$ be some set and $f : [a, b] \cup [b, c] \to S$ be a function. When can we find a function $g : [a, c] \to S$ that meets the following criteria? $$\forall x \in [a, b] \cup [b, c]. g(x) = f(x)$$
Note that extending the identity function on $[a, b] \cup [b, c]$ to a function $[a, c] \to [a, b] \cup [b, c]$ implies the analytic LLPO, which is not provable in constructive mathematics. However, any function $f : [a, b] \cup [b, c] \to \mathbb R$ can be extended to $g : [a, c] \to \mathbb R$ defined by $g(x) = f(\min(x, b)) - f(b) + f(\max(x, b))$. (This construction works for any $f$ whose codomain is a group.)
In constructive mathematics, given $f$, when are some criteria to determine if a $g$ exists?
The motivation for this is the definition of piecewise functions.
Classically, functions defined on $[a, b) \cup [b, c]$ are also defined on $[a, c]$ since classical mathematics can prove those are the same the set. Constructively, this isn't the case.
However, the ability to extend functions should be "good enough" for most practical purposes. We can't really hope to extend functions defined on $[a, b) \cup [b, c]$ (this lets you define discontinuous functions), but often in practice the pieces of the piecewise function actually overlap at their endpoints. Thus, being able to extend functions defined on $[a, b] \cup [b, c]$ would still be very useful.