/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ import FormalConjecturesUtil

Erdős Problem 1126

References:

    erdosproblems.com/1126

    [Er60c] Erdős, P., Problem 310. Colloq. Math., 311.

    [dB66] de Bruijn, N. G., On almost additive functions. Colloq. Math. (1966), 59-63.

    [Ju65] Jurkat, Wolfgang B., On Cauchy's functional equation. Proc. Amer. Math. Soc. (1965), 683-686.

open MeasureTheory namespace Erdos1126

If $$f(x+y)=f(x)+f(y)$$ for almost all $x,y\in \mathbb{R}$ then there exists a function $g$ such that $$g(x+y)=g(x)+g(y)$$ for all $x,y\in\mathbb{R}$ such that $f(x)=g(x)$ for almost all $x$.

Proved independently by de Bruijn [dB66] and Jurkat [Ju65].

@[category research solved, AMS 26 28, formal_proof using lean4 at "https://github.com/plby/lean-proofs/blob/main/src/v4.29.1/ErdosProblems/Erdos1126.lean"] theorem declaration uses 'sorry'erdos_1126 : answer(True) (f : ) (h : ∀ᵐ (p : × ) (volume.prod volume), f (p.1 + p.2) = f p.1 + f p.2), h : , ( x y, h (x + y) = h x + h y) (∀ᵐ x volume, f x = h x) := True (f : ), (∀ᵐ (p : × ) volume.prod volume, f (p.1 + p.2) = f p.1 + f p.2) h, (∀ (x y : ), h (x + y) = h x + h y) ∀ᵐ (x : ), f x = h x All goals completed! 🐙 end Erdos1126