Documentation

LeanPool.ViscositySolutionTheory.AleksandrovDifferentiability.Analysis.GoodSet

Ported for Lean Pool: imports relocated and code adapted to Lean/Mathlib v4.34.0.

Good and bad sets for second-order differentiability #

This file gives names to the full-measure and exceptional-set formulations of the final second-order differentiability conclusion.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_ae_ae_restrict_section {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasurableSet (s \ G)) (hsection : ∀ᵐ (x : α) ∂μ, ∀ᵐ (y : β) ∂ν.restrict {y : β | (x, y) ∈ s}, (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Product-measure Fubini bookkeeping for a.e. restricted vertical sections.

If almost every vertical section of s is almost everywhere contained in G, measured with respect to the restriction of ν to that section, then the product-measure complement s \ G is null. This is the set-level shape needed later when a one-dimensional line theorem is integrated over transverse coordinates.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_ae_ae_restrict_section₀ {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasureTheory.NullMeasurableSet (s \ G) (μ.prod ν)) (hsection : ∀ᵐ (x : α) ∂μ, ∀ᵐ (y : β) ∂ν.restrict {y : β | (x, y) ∈ s}, (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Null-measurable version of prod_measure_diff_eq_zero_of_ae_ae_restrict_section.

This weakens the side condition on the product bad set from measurable to null-measurable, which is often the natural output when the one-dimensional good set is only known modulo null sets.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_forall_ae_restrict_section {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasurableSet (s \ G)) (hsection : ∀ (x : α), ∀ᵐ (y : β) ∂ν.restrict {y : β | (x, y) ∈ s}, (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Product-measure Fubini bookkeeping for restricted vertical sections.

If every vertical section of s is almost everywhere contained in G, measured with respect to the restriction of ν to that section, then the product-measure complement s \ G is null.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_forall_ae_restrict_section₀ {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasureTheory.NullMeasurableSet (s \ G) (μ.prod ν)) (hsection : ∀ (x : α), ∀ᵐ (y : β) ∂ν.restrict {y : β | (x, y) ∈ s}, (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Null-measurable version of prod_measure_diff_eq_zero_of_forall_ae_restrict_section.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_ae_ae_imp {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasurableSet (s \ G)) (hsection : ∀ᵐ (x : α) ∂μ, ∀ᵐ (y : β) ∂ν, (x, y) ∈ s → (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Product-measure Fubini bookkeeping for restricted vertical sections in implication form.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_ae_ae_imp₀ {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasureTheory.NullMeasurableSet (s \ G) (μ.prod ν)) (hsection : ∀ᵐ (x : α) ∂μ, ∀ᵐ (y : β) ∂ν, (x, y) ∈ s → (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Null-measurable version of prod_measure_diff_eq_zero_of_ae_ae_imp.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_forall_ae_imp {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasurableSet (s \ G)) (hsection : ∀ (x : α), ∀ᵐ (y : β) ∂ν, (x, y) ∈ s → (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Product-measure Fubini bookkeeping for restricted vertical sections in pointwise implication form.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_forall_ae_imp₀ {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasureTheory.NullMeasurableSet (s \ G) (μ.prod ν)) (hsection : ∀ (x : α), ∀ᵐ (y : β) ∂ν, (x, y) ∈ s → (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Null-measurable version of prod_measure_diff_eq_zero_of_forall_ae_imp.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_ae_ae_restrict_horizontal_section {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite μ] [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasurableSet (s \ G)) (hsection : ∀ᵐ (y : β) ∂ν, ∀ᵐ (x : α) ∂μ.restrict {x : α | (x, y) ∈ s}, (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Product-measure Fubini bookkeeping for a.e. restricted horizontal sections.

This is the coordinate-swapped version of prod_measure_diff_eq_zero_of_ae_ae_restrict_section: if almost every horizontal section of s is almost everywhere contained in G, measured with respect to the restriction of μ to that section, then the product-measure complement s \ G is null.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_forall_ae_restrict_horizontal_section {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite μ] [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasurableSet (s \ G)) (hsection : ∀ (y : β), ∀ᵐ (x : α) ∂μ.restrict {x : α | (x, y) ∈ s}, (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Product-measure Fubini bookkeeping for restricted horizontal sections.

If every horizontal section of s is almost everywhere contained in G, measured with respect to the restriction of μ to that section, then the product-measure complement s \ G is null.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_ae_ae_horizontal_imp {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite μ] [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasurableSet (s \ G)) (hsection : ∀ᵐ (y : β) ∂ν, ∀ᵐ (x : α) ∂μ, (x, y) ∈ s → (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Product-measure Fubini bookkeeping for restricted horizontal sections in implication form.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_ae_ae_horizontal_imp₀ {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite μ] [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasureTheory.NullMeasurableSet (s \ G) (μ.prod ν)) (hsection : ∀ᵐ (y : β) ∂ν, ∀ᵐ (x : α) ∂μ, (x, y) ∈ s → (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Null-measurable version of prod_measure_diff_eq_zero_of_ae_ae_horizontal_imp.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_forall_ae_horizontal_imp {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite μ] [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasurableSet (s \ G)) (hsection : ∀ (y : β), ∀ᵐ (x : α) ∂μ, (x, y) ∈ s → (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Product-measure Fubini bookkeeping for restricted horizontal sections in pointwise implication form.

theorem AleksandrovDifferentiability.prod_measure_diff_eq_zero_of_forall_ae_horizontal_imp₀ {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {μ : MeasureTheory.Measure α} {ν : MeasureTheory.Measure β} [MeasureTheory.SFinite μ] [MeasureTheory.SFinite ν] {s G : Set (α × β)} (hs : MeasurableSet s) (hbad : MeasureTheory.NullMeasurableSet (s \ G) (μ.prod ν)) (hsection : ∀ (y : β), ∀ᵐ (x : α) ∂μ, (x, y) ∈ s → (x, y) ∈ G) :
(μ.prod ν) (s \ G) = 0

Null-measurable version of prod_measure_diff_eq_zero_of_forall_ae_horizontal_imp.

A restricted-measure null bad set gives second-order differentiability a.e. on the domain.

If every point of s is second-order differentiable, then u is second-order differentiable almost everywhere on s. This is the degenerate good-set case G = s.

If every point of s carries explicit symmetric second-order expansion data, then u is second-order differentiable almost everywhere on s.

If every point of s carries explicit symmetric second-order expansion data with the first-order term given as a represented continuous linear functional, then u is second-order differentiable almost everywhere on s.

Restricted-measure null-bad-set version of secondOrderDifferentiableAEOn_of_forall_clmExpansionData.

theorem AleksandrovDifferentiability.ae_restrict_mem_of_measure_diff_eq_zero {E : Type u_1} [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s G : Set E} (hs : MeasurableSet s) (hnull : μ (s \ G) = 0) :
∀ᵐ (x : E) ∂μ.restrict s, x ∈ G

If G has full measure inside s, then almost every point of s, for the restricted measure, belongs to G. This version does not require measurability of G.

theorem AleksandrovDifferentiability.measure_diff_eq_zero_of_ae_restrict_mem {E : Type u_1} [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s G : Set E} (hs : MeasurableSet s) (hmem : ∀ᵐ (x : E) ∂μ.restrict s, x ∈ G) :
μ (s \ G) = 0

A.e. membership in G for the restricted measure is the same as G having null complement inside s. This version does not require measurability of G.

A.e. membership version of secondOrderDifferentiableAEOn_of_fullMeasure_goodSet'. This is convenient for Fubini arguments that naturally produce restricted-a.e. membership rather than a null-complement statement.

theorem AleksandrovDifferentiability.measure_diff_eq_zero_of_subset_of_measure_diff_eq_zero {E : Type u_1} [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s G H : Set E} (hGH : G ⊆ H) (hG : μ (s \ G) = 0) :
μ (s \ H) = 0

Full-measure-in-s is monotone when the good set is enlarged.

theorem AleksandrovDifferentiability.ae_restrict_mem_iInter_of_forall_measure_diff_eq_zero {E : Type u_1} [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s : Set E} {G : ℕ → Set E} (hs : MeasurableSet s) (hnull : ∀ (n : ℕ), μ (s \ G n) = 0) :
∀ᵐ (x : E) ∂μ.restrict s, x ∈ ⋂ (n : ℕ), G n

Countably many full-measure subsets of s hold simultaneously almost everywhere on s. This is the main bookkeeping lemma for intersections of line/density good sets.

theorem AleksandrovDifferentiability.secondOrderDifferentiableAEOn_of_countable_fullMeasure_goodSets {E : Type u_1} [SeminormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s : Set E} {G : ℕ → Set E} {u : E → ℝ} (hs : MeasurableSet s) (hnull : ∀ (n : ℕ), μ (s \ G n) = 0) (hG : ∀ ⦃x : E⦄, x ∈ s → (∀ (n : ℕ), x ∈ G n) → SecondOrderDifferentiableAt u x) :

If countably many full-measure good sets jointly imply second-order differentiability on s, then u is second-order differentiable almost everywhere on s.

theorem AleksandrovDifferentiability.secondOrderDifferentiableAEOn_of_countable_fullMeasure_expansionData {E : Type u_1} [SeminormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s : Set E} {G : ℕ → Set E} {u : E → ℝ} (hs : MeasurableSet s) (hnull : ∀ (n : ℕ), μ (s \ G n) = 0) (hG : ∀ ⦃x : E⦄, x ∈ s → (∀ (n : ℕ), x ∈ G n) → ∃ (p : E) (B : E →L[ℝ] E), IsSymmetricOperator B ∧ HasSecondOrderExpansionAt u x p B) :

Countable full-measure good sets whose simultaneous validity gives explicit symmetric second-order expansion data imply second-order differentiability almost everywhere on s.

theorem AleksandrovDifferentiability.secondOrderDifferentiableAEOn_of_countable_fullMeasure_clmExpansionData {E : Type u_1} [SeminormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s : Set E} {G : ℕ → Set E} {u : E → ℝ} (hs : MeasurableSet s) (hnull : ∀ (n : ℕ), μ (s \ G n) = 0) (hG : ∀ ⦃x : E⦄, x ∈ s → (∀ (n : ℕ), x ∈ G n) → ∃ (p : E) (ℓ : E →L[ℝ] ℝ) (B : E →L[ℝ] E), (∀ (z : E), ℓ z = inner ℝ p z) ∧ IsSymmetricOperator B ∧ HasSecondOrderExpansionAtCLM u x ℓ B) :

Countable full-measure good sets whose simultaneous validity gives represented continuous-linear first-order expansion data imply second-order differentiability almost everywhere on s.

The differentiability locus is exactly the set of points carrying some symmetric second-order expansion data. This is mostly a named unfolding for final assembly arguments.

If a fixed symmetric expansion locus has full measure in s, then u is second-order differentiable almost everywhere on s.

theorem AleksandrovDifferentiability.secondOrderDifferentiableAEOn_of_fullMeasure_expansionData {E : Type u_1} [SeminormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s G : Set E} {u : E → ℝ} (hs : MeasurableSet s) (hnull : μ (s \ G) = 0) (hG : ∀ ⦃x : E⦄, x ∈ s → x ∈ G → ∃ (p : E) (B : E →L[ℝ] E), IsSymmetricOperator B ∧ HasSecondOrderExpansionAt u x p B) :

If a full-measure set in s carries explicit symmetric second-order expansion data at every point, then u is second-order differentiable almost everywhere on s.

theorem AleksandrovDifferentiability.secondOrderDifferentiableAEOn_of_fullMeasure_clmExpansionData {E : Type u_1} [SeminormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s G : Set E} {u : E → ℝ} (hs : MeasurableSet s) (hnull : μ (s \ G) = 0) (hG : ∀ ⦃x : E⦄, x ∈ s → x ∈ G → ∃ (p : E) (ℓ : E →L[ℝ] ℝ) (B : E →L[ℝ] E), (∀ (z : E), ℓ z = inner ℝ p z) ∧ IsSymmetricOperator B ∧ HasSecondOrderExpansionAtCLM u x ℓ B) :

If a full-measure set in s carries represented continuous-linear first-order expansion data at every point, then u is second-order differentiable almost everywhere on s.

theorem AleksandrovDifferentiability.restrict_measure_secondOrderBadSet_eq_zero_of_fullMeasure_expansionData {E : Type u_1} [SeminormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s G : Set E} {u : E → ℝ} (hs : MeasurableSet s) (hnull : μ (s \ G) = 0) (hG : ∀ ⦃x : E⦄, x ∈ s → x ∈ G → ∃ (p : E) (B : E →L[ℝ] E), IsSymmetricOperator B ∧ HasSecondOrderExpansionAt u x p B) :

Restricted-measure null-bad-set version of secondOrderDifferentiableAEOn_of_fullMeasure_expansionData.

theorem AleksandrovDifferentiability.measure_secondOrderBadSetOn_eq_zero_of_fullMeasure_clmExpansionData {E : Type u_1} [SeminormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s G : Set E} {u : E → ℝ} (hs : MeasurableSet s) (hnull : μ (s \ G) = 0) (hG : ∀ ⦃x : E⦄, x ∈ s → x ∈ G → ∃ (p : E) (ℓ : E →L[ℝ] ℝ) (B : E →L[ℝ] E), (∀ (z : E), ℓ z = inner ℝ p z) ∧ IsSymmetricOperator B ∧ HasSecondOrderExpansionAtCLM u x ℓ B) :

Null-bad-set version of secondOrderDifferentiableAEOn_of_fullMeasure_clmExpansionData.

theorem AleksandrovDifferentiability.restrict_measure_secondOrderBadSet_eq_zero_of_fullMeasure_clmExpansionData {E : Type u_1} [SeminormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s G : Set E} {u : E → ℝ} (hs : MeasurableSet s) (hnull : μ (s \ G) = 0) (hG : ∀ ⦃x : E⦄, x ∈ s → x ∈ G → ∃ (p : E) (ℓ : E →L[ℝ] ℝ) (B : E →L[ℝ] E), (∀ (z : E), ℓ z = inner ℝ p z) ∧ IsSymmetricOperator B ∧ HasSecondOrderExpansionAtCLM u x ℓ B) :

Restricted-measure null-bad-set version of secondOrderDifferentiableAEOn_of_fullMeasure_clmExpansionData.

theorem AleksandrovDifferentiability.measure_secondOrderBadSetOn_eq_zero_of_countable_fullMeasure_clmExpansionData {E : Type u_1} [SeminormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s : Set E} {G : ℕ → Set E} {u : E → ℝ} (hs : MeasurableSet s) (hnull : ∀ (n : ℕ), μ (s \ G n) = 0) (hG : ∀ ⦃x : E⦄, x ∈ s → (∀ (n : ℕ), x ∈ G n) → ∃ (p : E) (ℓ : E →L[ℝ] ℝ) (B : E →L[ℝ] E), (∀ (z : E), ℓ z = inner ℝ p z) ∧ IsSymmetricOperator B ∧ HasSecondOrderExpansionAtCLM u x ℓ B) :

Null-bad-set version of secondOrderDifferentiableAEOn_of_countable_fullMeasure_clmExpansionData.

theorem AleksandrovDifferentiability.restrict_measure_secondOrderBadSet_eq_zero_of_countable_fullMeasure_clmExpansionData {E : Type u_1} [SeminormedAddCommGroup E] [InnerProductSpace ℝ E] [MeasurableSpace E] {μ : MeasureTheory.Measure E} {s : Set E} {G : ℕ → Set E} {u : E → ℝ} (hs : MeasurableSet s) (hnull : ∀ (n : ℕ), μ (s \ G n) = 0) (hG : ∀ ⦃x : E⦄, x ∈ s → (∀ (n : ℕ), x ∈ G n) → ∃ (p : E) (ℓ : E →L[ℝ] ℝ) (B : E →L[ℝ] E), (∀ (z : E), ℓ z = inner ℝ p z) ∧ IsSymmetricOperator B ∧ HasSecondOrderExpansionAtCLM u x ℓ B) :

Restricted-measure null-bad-set version of secondOrderDifferentiableAEOn_of_countable_fullMeasure_clmExpansionData.

In a real Hilbert space, pointwise CLM-gradient expansion data implies second-order differentiability almost everywhere on s.

In a real Hilbert space, full-measure CLM-gradient expansion data implies second-order differentiability almost everywhere on s.

theorem AleksandrovDifferentiability.secondOrderDifferentiableAEOn_of_countable_fullMeasure_hilbertClmExpansionData {H : Type u_2} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] [MeasurableSpace H] {μ : MeasureTheory.Measure H} {s : Set H} {G : ℕ → Set H} {u : H → ℝ} (hs : MeasurableSet s) (hnull : ∀ (n : ℕ), μ (s \ G n) = 0) (hG : ∀ ⦃x : H⦄, x ∈ s → (∀ (n : ℕ), x ∈ G n) → ∃ (ℓ : H →L[ℝ] ℝ) (B : H →L[ℝ] H), IsSymmetricOperator B ∧ HasSecondOrderExpansionAtCLM u x ℓ B) :

In a real Hilbert space, countably many full-measure good sets whose simultaneous validity gives CLM-gradient expansion data imply second-order differentiability almost everywhere on s.

theorem AleksandrovDifferentiability.restrict_measure_secondOrderBadSet_eq_zero_of_countable_fullMeasure_hilbertClmExpansionData {H : Type u_2} [NormedAddCommGroup H] [InnerProductSpace ℝ H] [CompleteSpace H] [MeasurableSpace H] {μ : MeasureTheory.Measure H} {s : Set H} {G : ℕ → Set H} {u : H → ℝ} (hs : MeasurableSet s) (hnull : ∀ (n : ℕ), μ (s \ G n) = 0) (hG : ∀ ⦃x : H⦄, x ∈ s → (∀ (n : ℕ), x ∈ G n) → ∃ (ℓ : H →L[ℝ] ℝ) (B : H →L[ℝ] H), IsSymmetricOperator B ∧ HasSecondOrderExpansionAtCLM u x ℓ B) :

Restricted-measure null-bad-set version of secondOrderDifferentiableAEOn_of_countable_fullMeasure_hilbertClmExpansionData.

If a fixed CLM expansion locus has full measure in s and the Hessian candidate is symmetric, then u is second-order differentiable almost everywhere on s.

If the CLM expansion-data locus has full measure in s, then u is second-order differentiable almost everywhere on s.