File: Mathlib/MeasureTheory/Covering/DensityTheorem.lean

full_name: IsUnifLocDoublingMeasure.definition._@.Mathlib.MeasureTheory.Covering.DensityTheorem._hyg.52
code: /-- A Vitali family in a space with a uniformly locally doubling measure, designed so that the sets
at `x` contain all `closedBall y r` when `dist x y ≤ K * r`. -/
irreducible_def vitaliFamily (K : ℝ) : VitaliFamily μ 
goal: VitaliFamily μ

full_name: IsUnifLocDoublingMeasure.vitaliFamily
code: /-- A Vitali family in a space with a uniformly locally doubling measure, designed so that the sets
at `x` contain all `closedBall y r` when `dist x y ≤ K * r`. -/
irreducible_def vitaliFamily (K : ℝ) : VitaliFamily μ 
goal: VitaliFamily μ

full_name: IsUnifLocDoublingMeasure.vitaliFamily_def
code: /-- A Vitali family in a space with a uniformly locally doubling measure, designed so that the sets
at `x` contain all `closedBall y r` when `dist x y ≤ K * r`. -/
irreducible_def vitaliFamily (K : ℝ) : VitaliFamily μ 
goal: IsUnifLocDoublingMeasure.vitaliFamily μ K =
  let R := IsUnifLocDoublingMeasure.scalingScaleOf μ (max (4 * K + 3) 3);
  let_fun Rpos := ⋯;
  let_fun A := ⋯;
  (Vitali.vitaliFamily μ (IsUnifLocDoublingMeasure.scalingConstantOf μ (max (4 * K + 3) 3)) A).enlarge (R / 4) ⋯

full_name: IsUnifLocDoublingMeasure.wrapped._@.Mathlib.MeasureTheory.Covering.DensityTheorem._hyg.52
code: /-- A Vitali family in a space with a uniformly locally doubling measure, designed so that the sets
at `x` contain all `closedBall y r` when `dist x y ≤ K * r`. -/
irreducible_def vitaliFamily (K : ℝ) : VitaliFamily μ 
goal: Subtype (Eq @IsUnifLocDoublingMeasure.definition✝)

full_name: IsUnifLocDoublingMeasure.closedBall_mem_vitaliFamily_of_dist_le_mul
code: /-- In the Vitali family `IsUnifLocDoublingMeasure.vitaliFamily K`, the sets based at `x`
contain all balls `closedBall y r` when `dist x y ≤ K * r`. -/
theorem closedBall_mem_vitaliFamily_of_dist_le_mul {K : ℝ} {x y : α} {r : ℝ} (h : dist x y ≤ K * r)
    (rpos : 0 < r) : closedBall y r ∈ (vitaliFamily μ K).setsAt x 
goal: Metric.closedBall y r ∈ (IsUnifLocDoublingMeasure.vitaliFamily μ K).setsAt x

full_name: IsUnifLocDoublingMeasure.tendsto_closedBall_filterAt
code: theorem tendsto_closedBall_filterAt {K : ℝ} {x : α} {ι : Type*} {l : Filter ι} (w : ι → α)
    (δ : ι → ℝ) (δlim : Tendsto δ l (𝓝[>] 0)) (xmem : ∀ᶠ j in l, x ∈ closedBall (w j) (K * δ j)) :
    Tendsto (fun j => closedBall (w j) (δ j)) l ((vitaliFamily μ K).filterAt x) 
goal: Filter.Tendsto (fun j => Metric.closedBall (w j) (δ j)) l ((IsUnifLocDoublingMeasure.vitaliFamily μ K).filterAt x)

full_name: IsUnifLocDoublingMeasure.ae_tendsto_measure_inter_div
code: /-- A version of **Lebesgue's density theorem** for a sequence of closed balls whose centers are
not required to be fixed.

See also `Besicovitch.ae_tendsto_measure_inter_div`. -/
theorem ae_tendsto_measure_inter_div (S : Set α) (K : ℝ) : ∀ᵐ x ∂μ.restrict S,
    ∀ {ι : Type*} {l : Filter ι} (w : ι → α) (δ : ι → ℝ) (δlim : Tendsto δ l (𝓝[>] 0))
      (xmem : ∀ᶠ j in l, x ∈ closedBall (w j) (K * δ j)),
      Tendsto (fun j => μ (S ∩ closedBall (w j) (δ j)) / μ (closedBall (w j) (δ j))) l (𝓝 1) 
goal: ∀ᵐ (x : α) ∂μ.restrict S,
  ∀ {ι : Type u_3} {l : Filter ι} (w : ι → α) (δ : ι → ℝ),
    Filter.Tendsto δ l (𝓝[>] 0) →
      (∀ᶠ (j : ι) in l, x ∈ Metric.closedBall (w j) (K * δ j)) →
        Filter.Tendsto (fun j => μ (S ∩ Metric.closedBall (w j) (δ j)) / μ (Metric.closedBall (w j) (δ j))) l (𝓝 1)

full_name: IsUnifLocDoublingMeasure.ae_tendsto_average_norm_sub
code: /-- A version of **Lebesgue differentiation theorem** for a sequence of closed balls whose
centers are not required to be fixed. -/
theorem ae_tendsto_average_norm_sub {f : α → E} (hf : LocallyIntegrable f μ) (K : ℝ) : ∀ᵐ x ∂μ,
    ∀ {ι : Type*} {l : Filter ι} (w : ι → α) (δ : ι → ℝ) (δlim : Tendsto δ l (𝓝[>] 0))
      (xmem : ∀ᶠ j in l, x ∈ closedBall (w j) (K * δ j)),
      Tendsto (fun j => ⨍ y in closedBall (w j) (δ j), ‖f y - f x‖ ∂μ) l (𝓝 0) 
goal: ∀ᵐ (x : α) ∂μ,
  ∀ {ι : Type u_3} {l : Filter ι} (w : ι → α) (δ : ι → ℝ),
    Filter.Tendsto δ l (𝓝[>] 0) →
      (∀ᶠ (j : ι) in l, x ∈ Metric.closedBall (w j) (K * δ j)) →
        Filter.Tendsto (fun j => ⨍ (y : α) in Metric.closedBall (w j) (δ j), ‖f y - f x‖ ∂μ) l (𝓝 0)

full_name: IsUnifLocDoublingMeasure.ae_tendsto_average
code: /-- A version of **Lebesgue differentiation theorem** for a sequence of closed balls whose
centers are not required to be fixed. -/
theorem ae_tendsto_average [NormedSpace ℝ E] [CompleteSpace E]
    {f : α → E} (hf : LocallyIntegrable f μ) (K : ℝ) : ∀ᵐ x ∂μ,
      ∀ {ι : Type*} {l : Filter ι} (w : ι → α) (δ : ι → ℝ) (δlim : Tendsto δ l (𝓝[>] 0))
        (xmem : ∀ᶠ j in l, x ∈ closedBall (w j) (K * δ j)),
        Tendsto (fun j => ⨍ y in closedBall (w j) (δ j), f y ∂μ) l (𝓝 (f x)) 
goal: ∀ᵐ (x : α) ∂μ,
  ∀ {ι : Type u_3} {l : Filter ι} (w : ι → α) (δ : ι → ℝ),
    Filter.Tendsto δ l (𝓝[>] 0) →
      (∀ᶠ (j : ι) in l, x ∈ Metric.closedBall (w j) (K * δ j)) →
        Filter.Tendsto (fun j => ⨍ (y : α) in Metric.closedBall (w j) (δ j), f y ∂μ) l (𝓝 (f x))