Derivatives on countably many levels #
A nonzero derivative isolates a real function's level-set point. Consequently the derivative vanishes almost everywhere on the preimage of any countable set of levels, even when that preimage is uncountable.
theorem
Set.Countable.ae_deriv_eq_zero_on_preimage
{E : Type u_1}
[NormedAddCommGroup E]
[NormedSpace ℝ E]
[MeasurableSpace ℝ]
{S : Set E}
(hS : S.Countable)
(θ : ℝ → E)
(μ : MeasureTheory.Measure ℝ)
[MeasureTheory.NullSingletonClass μ]
:
The derivative vanishes almost everywhere on the preimage of countably many levels for any measure vanishing on singletons. No differentiability assumption or countability of the preimage is required.