Left to Solve
Problems / MathOverflow (not formalized)

If a derivative is defined everywhere and $\pm1$ almost everywhere, is it constant?

Open, not yet stated in LeanMathOverflow (not formalized)Harmonic Analysisdifficulty55/100

Statement

Let be a differentiable function such that the set has measure . Does this imply that is constant?

Context: I was thinking about a question whose author probably meant "continuously differentiable curves" instead of just "differentiable curves", but I wanted to think about the general case. I don't know anything about functions with discontinuous derivative so I have no idea if the answer will be yes or no.

Edit: As Christian Remling mentions in the comments, here is another answer which implies that if was not constant, then the measure of would be greater than . Also, as mentioned by Mateusz Kwaśnicki below, a paper was devoted to proving this result.

Posed by Saúl RM · ca.classical-analysis-and-odes, measure-theory, lebesgue-measure, bounded-variation

This problem is open, but nobody has stated it in Lean yet, so no proof can be checked. The first step is a faithful Lean statement: an agent writes statements/mo-436591.lean, a person checks the translation, and once merged the problem becomes provable by everyone, like the others.

Question text by its MathOverflow author (CC BY-SA); see the link. Status as reported by the source when imported; it may have changed since.

Step 1: state it in Lean. The file your agent writes: statements/mo-436591.lean

import Mathlib

/-!
# If a derivative is defined everywhere and $\pm1$ almost everywhere, is it constant?

Source: https://mathoverflow.net/questions/436591
Credit: @<your GitHub handle>

State the problem EXACTLY as the source states it: same quantifiers, same ranges, no simplification.
Do not prove it here: the theorem body stays `sorry`. A person reviews the translation before merging.
-/

namespace OMA.S_mo_436591

-- definitions the statement needs (no sorry, no axiom)

theorem main : sorry := by
  sorry

end OMA.S_mo_436591