Final solutions (8)
Variant idea: Reduce the functional equation to a family of linear equations in the unknown functions Q and R by using the invertibility of ψ to eliminate t.
informal
The functional equation
\[
f(t)+g(x)\,Q(\varphi(x)+\psi(t))+h(x)\,R(\varphi(x)+\psi(t))=0\qquad(\forall x,t)\]
is linear in the unknown functions \(Q\) and \(R\). If the auxiliary function \(\psi\) is bijective, let \(\psi_{\text{inv}}\) be a right inverse, i.e.\(\psi(\psi_{\text{inv}}(s))=s\) for all \(s\). Substituting \(t=\psi_{\text{inv}}(s)\) eliminates the variable \(t\) and yields, for every \(x\) and every real number \(s\),
\[
g(x)\,Q(\varphi(x)+s)+h(x)\,R(\varphi(x)+s)=-\,f(\psi_{\text{inv}}(s)).
\]
This is a family of linear equations in the values of \(Q\) and \(R\) at the point \(z=\varphi(x)+s\). Conversely, if these linear equations hold for all \(x,s\), then substituting \(s=\psi(t)\) recovers the original equation. Thus the original functional equation is equivalent to the linear system above. The equivalence is proved in Lean by a straightforward case‑analysis using the right‑inverse property of \(\psi\) and the algebraic identity \(a=-b\iff a+b=0\). The lemma `eq14_linear` formalises this reduction.
Variant idea: Use linear independence of Q and R to separate variables and derive constraints on f, g, h.
informal
matches a reference family
The equation in question is
f(t) + g(x)·Q(φ(x)+ψ(t)) + h(x)·R(φ(x)+ψ(t)) = 0 for all x,t∈ℝ.
If the two functions Q and R are linearly independent over ℝ, then any linear combination of them that vanishes identically must have zero coefficients. In the present situation the coefficients of Q and R are the functions g(x) and h(x) (up to the shift φ(x)+ψ(t)). Because the equality holds for every pair (x,t), the expression on the left must be identically zero as a function of the real variable z=φ(x)+ψ(t). By linear independence this forces g(x)=0 and h(x)=0 for every x. Substituting these values back into the equation then yields f(t)=0 for every t. Consequently the only family of solutions of the equation is the trivial one in which all three unknown functions are identically zero.
The Lean fragment below formalises the statement of this result. It introduces the equation `eq14` as a predicate on six real‑valued functions, and then states a theorem `eq14_trivial` asserting that, under a hypothesis of linear independence of Q and R, any solution of `eq14` must be the trivial triple (0,0,0). The proof is left as `sorry` because the full argument would require a detailed analysis of the dependence on the auxiliary functions φ and ψ; the statement itself is fully formalisable and compiles with Mathlib.
Variant idea: Apply differentiation to expose hidden linear relations and reduce the problem to solving a finite system of algebraic equations for constants.
informal
The functional equation
f(t) + g(x)\,Q(z) + h(x)\,R(z) = 0,
z = φ(x) + ψ(t)
has a very rigid structure. For each fixed \(t\) the left‑hand side is a function of \(x\) that must be identically zero. Hence the combination \(g(x)Q(z)+h(x)R(z)\) must be independent of \(x\). The only way this can happen for all \(x,t\) is either that the coefficients \(g,h\) are both zero, or that the two functions \(Q\) and \(R\) are linearly dependent. In the latter case there exist constants \(a,b\), not both zero, such that \(a\,Q(z)+b\,R(z)=0\) for every \(z\). Then we can choose an arbitrary function \(c:\mathbb R\to\mathbb R\) and set
g(x)=b\,c(x), h(x)=-a\,c(x), f(t)=0.
This family satisfies the equation for all \(x,t\). If \(Q\) and \(R\) are linearly independent, the only solution is the trivial one \(f=g=h\equiv0\). A special degenerate situation occurs when the argument \(z=φ(x)+ψ(t)\) is constant; then \(f\) can be any constant \(k\) and \(g,h\) must satisfy the single linear relation \(g(x)Q(c)+h(x)R(c)=-k\). Apart from this degenerate case, the two families above exhaust all solutions, so the set of solutions is complete.
The Lean fragment below formalises the definition of the equation, proves that the trivial zero‑solution works, and states (without a full proof) the general classification theorem under the linear‑independence hypothesis.
Variant idea: Exploit the fact that the equation must hold for all x for each t, turning it into a pointwise linear dependence problem.
informal
The functional equation in question is highly under‑determined: the relation
f(t) + g(x)·Q(φ(x)+ψ(t)) + h(x)·R(φ(x)+ψ(t)) = 0
must hold for all real arguments x and t. Without additional regularity
assumptions (continuity, measurability, linearity, etc.) one cannot deduce a
complete classification of all admissible functions. For instance, any choice of
constant functions g, h, Q, R and a constant f satisfying the linear relation
f + g·Q + h·R = 0 is a solution, but there are also many non‑constant solutions
that arise from special cancellations between the terms. Consequently, a full
formal proof of a complete description of the solution set is not feasible in
Lean without further hypotheses. Therefore, the Lean fragment for this
fragment is left as `null`.
Variant idea: Reduce the functional equation to a family of linear equations in Q and R by using a right‑inverse of ψ.
informal
The functional equation in the statement is
f(t) + g(x)·Q(φ(x)+ψ(t)) + h(x)·R(φ(x)+ψ(t)) = 0
for all real numbers x and t. Because the unknowns are the seven real‑valued functions f,g,h,Q,R,φ,ψ, the equation imposes very strong compatibility conditions. A direct analysis shows that either the terms involving Q and R must vanish identically, or the coefficients g and h must be constant and the linear combination a·Q(z)+b·R(z) must be a fixed constant. Consequently the set of all solutions splits into two families:
1. **Trivial family** – the functions Q and R are identically zero and f is identically zero. In this case g, h, φ and ψ are completely arbitrary.
2. **Non‑trivial family** – the functions g and h are constant, say g(x)=a and h(x)=b for all x. Then there exists a real number k such that f(t)=−k for all t and the functions Q and R satisfy the linear relation a·Q(z)+b·R(z)=k for every real z. The functions φ and ψ are again arbitrary.
These two families exhaust all possibilities: if Q and R are not both zero, the only way to keep the left‑hand side independent of x for every t is to force g and h to be constant and to impose the linear relation above. The proof of this classification is a straightforward case analysis using the functional equation and the fact that the expression must be independent of the variable x for each fixed t.
The Lean fragment below formalises the statement of this classification as a theorem `eq14_solutions`. The proof is omitted (`sorry`) because the full argument is lengthy; the statement itself captures the complete description of the solution set.
Variant idea: Separate the special case of a constant argument to cover all solutions comprehensively.
informal
...
Variant idea: Use linear independence of Q and R to force the coefficients g,h to vanish or to express Q,R as a linear relation, then parametrize the remaining freedom.
informal
The equation in question is
\[
f(t)+g(x)\,Q(\varphi(x)+\psi(t))+h(x)\,R(\varphi(x)+\psi(t))=0\qquad(\forall x,t\in\mathbb R).
\]
The goal is to describe all families of functions \(f,g,h,Q,R,\varphi,\psi:\mathbb R\to\mathbb R\) that satisfy this identity. The key observation is that the two functions \(Q\) and \(R\) appear only through the linear combination
\[
g(x)\,Q(z)+h(x)\,R(z),\qquad z=\varphi(x)+\psi(t).
\]
If the pair \((Q,R)\) is linearly independent as functions \(\mathbb R\to\mathbb R\) (i.e. the only scalars \(a,b\in\mathbb R\) with \(a\,Q+b\,R\equiv0\) are \(a=b=0\)), then for each fixed \(x\) the identity forces the coefficients \(g(x)\) and \(h(x)\) to vanish. Indeed, choose two distinct values \(t_1,t_2\) with \(\psi(t_1)\neq\psi(t_2)\); then the two equations obtained by plugging \(t_1\) and \(t_2\) into the identity give a linear relation between the constants \(Q(z_1)-Q(z_2)\) and \(R(z_1)-R(z_2)\) with coefficients \(g(x)\) and \(h(x)\). Because the pair \((Q,R)\) is independent, the only way this can hold for all \(x\) is that \(g(x)=h(x)=0\). Substituting back into the original equation yields \(f(t)=0\) for all \(t\). Hence the only solution in the independent case is the trivial one: \(f\equiv0,\;g\equiv0,\;h\equiv0\).
If, on the other hand, \(Q\) and \(R\) are linearly dependent, then there exists a scalar \(\lambda\) such that \(R=\lambda Q\). The equation reduces to
\[f(t)+\bigl(g(x)+\lambda\,h(x)\bigr)\,Q(\varphi(x)+\psi(t))=0.\]
For this to hold for all \(t\) we must have \(f\equiv0\) and \(g(x)+\lambda\,h(x)=0\) for every \(x\). Thus the family of solutions in the dependent case is parametrised by an arbitrary function \(h:\mathbb R\to\mathbb R\) and the choice \(g=-\lambda h\).
Consequently the set of all solutions is the disjoint union of the trivial family (when \(Q,R\) are independent) and the one‑parameter family described above (when \(Q,R\) are dependent). This description is complete: every solution must fall into one of these two categories, and every member of each category indeed satisfies the equation.
Because the formal proof of the independence case requires a non‑trivial argument about the behaviour of the functions \(Q\) and \(R\) and the choice of distinct values of \(\psi\), a fully verified Lean 4 fragment that establishes the theorem is beyond the scope of this fragment. Therefore the Lean code is omitted.
Variant idea: Eliminate t via a bijective ψ to obtain a linear system in Q and R, then analyze the rank of the coefficient matrix to classify solutions.
informal
The lemma `bijective_substitution` formalises a standard equivalence between existential statements when a bijection transports predicates. Given a bijection `ψ : α ≃ β` and a pointwise equivalence `h : ∀ x, P x ↔ Q (ψ x)`, we can transfer the existence of an element satisfying `P` to the existence of an element satisfying `Q` and vice‑versa. The proof proceeds by a simple case analysis on the existential quantifiers. In the forward direction, from `⟨x, hx⟩ : ∃ x, P x` we obtain `Q (ψ x)` by applying the forward direction of the equivalence `h x`. Thus we produce the witness `ψ x`. In the backward direction, from `⟨y, hy⟩ : ∃ y, Q y` we use the inverse bijection `ψ.symm y : α` and the reverse direction of `h (ψ.symm y)` to obtain `P (ψ.symm y)`. This yields the witness `ψ.symm y`. The two implications together give the desired equivalence of existential statements.