cfahlgren1/math / lean /OAI /Geometry /WeakHessian /Entropy /FisherEpsilon.lean
cfahlgren1's picture
download
raw
14.5 kB
53
lemma renormalizedEntropy_integrable {a : ℝ} (ha : 0 < a) (u : Lp ℝ 2 m) (hi : Integrable u m) :
    Integrable (fun x => renormalizedEntropy a (u x)) m :=
proof · 1 line
  (regularizedEntropy_integrable ha u).add (hi.const_mul (Real.log a))
58
lemma integral_renormalizedEntropy {a : ℝ} (ha : 0 < a) (u : Lp ℝ 2 m) (hi : Integrable u m) :
    (∫ x,renormalizedEntropy a (u x) ∂m) =
      (∫ x,regularizedEntropy a (u x) ∂m)+Real.log a*(∫ x,u x ∂m) := by
proof · 2 lines
  exact (integral_add (regularizedEntropy_integrable ha u) (hi.const_mul (Real.log a))).trans
    (congrArg (fun z => (∫ x,regularizedEntropy a (u x) ∂m)+z) (integral_const_mul _ _))
64
lemma CurvatureDimension.cheegerHeat_renormalizedEntropy_FTC {K N : ℝ} (hN : 1 < N)
    (hcd : CurvatureDimension m K N) (hfull : FullSupport m) (hfin : FiniteOnBoundedSets m) (o : X)
    (h : QuadraticCheegerEnergy m) {u A : Lp ℝ 2 m}
    (hu : (cheeger_closedQuadraticEnergy h).IsFormGenerator u A)
    (hun : ∀ᵐ x ∂m,0 ≤ u x) (hi : Integrable u m) {a b : ℝ} (ha : 0 < a) (hb : 0 ≤ b) :
    (∫ t in 0..b,∫ x,(weakGradient m (cheegerHeat h t u) x)^2/(cheegerHeat h t u x+a) ∂m) =
      (∫ x,renormalizedEntropy a (u x) ∂m)-(∫ x,renormalizedEntropy a (cheegerHeat h b u x) ∂m) := by
proof · 3 lines
  have hmass := hcd.cheegerHeat_mass_nonneg hN hfull hfin o h u hun hi hb
  rw [integral_renormalizedEntropy ha u hi,integral_renormalizedEntropy ha _ hmass.1,hmass.2]
  simpa only [add_sub_add_right_eq_sub] using hcd.cheegerHeat_regularizedEntropy_FTC hfin o h hu hun ha hb
75
lemma CurvatureDimension.cheegerHeat_regularizedFisher_action_bound {K N : ℝ} (hN : 1 < N)
    (hcd : CurvatureDimension m K N) (hfull : FullSupport m) (hfin : FiniteOnBoundedSets m) (o : X)
    (h : QuadraticCheegerEnergy m) {u A : Lp ℝ 2 m}
    (hu : (cheeger_closedQuadraticEnergy h).IsFormGenerator u A)
    (hun : ∀ᵐ x ∂m,0 ≤ u x) (hi : Integrable u m)
    {V : X → ℝ} {L : ℝ≥0} (hV : LipschitzWith L V)
    (hU : MemLp (fun x => u x*Real.exp (V x)) 2 m)
    (hD : MemLp (fun x => V x*Real.exp (-V x)) 2 m)
    (hw : Integrable (fun x => Real.exp (-V x)) m)
    {a b : ℝ} (ha : 0 < a) (ha1 : a ≤ 1) (hb : 0 ≤ b) :
    (∫ t in 0..b,∫ x,(weakGradient m (cheegerHeat h t u) x)^2/(cheegerHeat h t u x+a) ∂m) ≤
      ‖u‖^2/2+
      ‖hU.toLp (fun x => u x*Real.exp (V x))‖*Real.exp ((L:ℝ)^2*b)*
        ‖hD.toLp (fun x => V x*Real.exp (-V x))‖+(∫ x,Real.exp (-V x) ∂m) := by
proof · 30 lines
  have ht := (hcd.cheegerHeat_mass_nonneg hN hfull hfin o h u hun hi hb).1
  have hUt := (hcd.cheegerHeat_weighted hfin o h u hV hU hb).1
  have hpair := weighted_pairing hUt hD
  have hE0 : (∫ x,renormalizedEntropy a (u x) ∂m) ≤ ‖u‖^2/2 := by
    have H := integral_mono_ae (renormalizedEntropy_integrable ha u hi)
      ((Lp.memLp u).integrable_sq.div_const 2) (hun.mono fun x hx => renormalizedEntropy_upper ha ha1 hx)
    rw [integral_div] at H
    have he : (∫ x,u x^2 ∂m) = ‖u‖^2 := by
      simpa only [L2.inner_def,RCLike.inner_apply,conj_trivial,pow_two] using real_inner_self_eq_norm_sq u
    rwa [he] at H
  have hEt : -(∫ x,cheegerHeat h b u x*V x ∂m)-(∫ x,Real.exp (-V x) ∂m) ≤
      (∫ x,renormalizedEntropy a (cheegerHeat h b u x) ∂m) := by
    have H := integral_mono_ae (hpair.1.neg.sub hw) (renormalizedEntropy_integrable ha _ ht) (by
      filter_upwards [cheegerHeat_nonneg h hb u hun] with x hx
      have H := renormalizedEntropy_lower ha hx (Real.exp_pos (-V x))
      simpa only [Real.log_exp,mul_neg,Pi.sub_apply,Pi.neg_apply] using! H)
    change (∫ x,-(cheegerHeat h b u x*V x)-Real.exp (-V x) ∂m) ≤ _ at H
    have he : (∫ x,-(cheegerHeat h b u x*V x)-Real.exp (-V x) ∂m) =
        -(∫ x,cheegerHeat h b u x*V x ∂m)-(∫ x,Real.exp (-V x) ∂m) := by
      calc
        _ = (∫ x,-(cheegerHeat h b u x*V x) ∂m)-(∫ x,Real.exp (-V x) ∂m) :=
          integral_sub (by simpa only [Pi.neg_apply] using! hpair.1.neg) hw
        _ = _ := by rw [integral_neg]
    rw [he] at H
    exact H
  have hm := (le_abs_self (∫ x,cheegerHeat h b u x*V x ∂m)).trans hpair.2
  have hB := hcd.cheegerHeat_weighted_norm hfin o h u hV hU hb
  have hm' := hm.trans (mul_le_mul_of_nonneg_right hB (norm_nonneg _))
  rw [hcd.cheegerHeat_renormalizedEntropy_FTC hN hfull hfin o h hu hun hi ha hb]
  linarith
125
noncomputable def fisherEpsilon (n : ℕ) : ℝ := 1/((n:ℝ)+1)
126
lemma fisherEpsilon_pos (n : ℕ) : 0 < fisherEpsilon n := by unfold fisherEpsilon; positivity
127
lemma fisherEpsilon_le_one (n : ℕ) : fisherEpsilon n ≤ 1 := by
proof · 2 lines
  unfold fisherEpsilon
  exact (div_le_one (by positivity)).mpr (by have hn : 0 ≤ (n:ℝ) := Nat.cast_nonneg n; linarith)
130
lemma fisherEpsilon_antitone : Antitone fisherEpsilon := by
proof · 3 lines
  intro n k hnk
  unfold fisherEpsilon
  gcongr
134
lemma fisherEpsilon_tendsto : Tendsto fisherEpsilon atTop (𝓝 0) :=
proof · 1 line
  tendsto_one_div_add_atTop_nhds_zero_nat
137
lemma regularizedFisher_mono {v g : ℝ} (hv : 0 ≤ v) :
    Monotone (fun n => g^2/(v+fisherEpsilon n)) := by
proof · 4 lines
  intro n k hnk
  apply div_le_div_of_nonneg_left (sq_nonneg _) (by linarith [fisherEpsilon_pos k])
  have H := fisherEpsilon_antitone hnk
  linarith
144
lemma regularizedFisher_tendsto {v g : ℝ} (hv : 0 ≤ v) (hz : v = 0 → g = 0) :
    Tendsto (fun n => g^2/(v+fisherEpsilon n)) atTop (𝓝 (g^2/v)) := by
proof · 5 lines
  rcases hv.eq_or_lt with hv | hv
  · simp only [hv.symm,hz hv.symm,zero_pow (by decide : 2 ≠ 0),zero_div]
    exact tendsto_const_nhds
  · simpa only [add_zero,Pi.div_apply] using! tendsto_const_nhds.div
      (tendsto_const_nhds.add fisherEpsilon_tendsto) (by simpa using hv.ne')
152
lemma ofReal_fisher_eq_iSup {v g : ℝ} (hv : 0 ≤ v) (hz : v = 0 → g = 0) :
    ENNReal.ofReal (g^2/v) = ⨆ n,ENNReal.ofReal (g^2/(v+fisherEpsilon n)) :=
proof · 2 lines
  tendsto_nhds_unique (ENNReal.continuous_ofReal.continuousAt.tendsto.comp (regularizedFisher_tendsto hv hz))
    (tendsto_atTop_iSup (fun _ _ hij => ENNReal.ofReal_le_ofReal (regularizedFisher_mono hv hij)))
158
lemma integrable_regularizedFisher {u g : X → ℝ} (hu : AEStronglyMeasurable u m)
    (hun : ∀ᵐ x ∂m,0 ≤ u x) (hg : MemLp g 2 m) {a : ℝ} (ha : 0 < a) :
    Integrable (fun x => g x^2/(u x+a)) m := by
proof · 5 lines
  apply (hg.integrable_sq.div_const a).mono' ((hg.aestronglyMeasurable.pow 2).div₀ (hu.add_const a))
  filter_upwards [hun] with x hx
  simp only [Pi.div_apply,Pi.pow_apply]
  rw [Real.norm_of_nonneg (div_nonneg (sq_nonneg _) (by linarith))]
  exact div_le_div_of_nonneg_left (sq_nonneg _) ha (by linarith)
167
lemma lintegral_fisher_eq_iSup {u g : X → ℝ} (hu : AEStronglyMeasurable u m)
    (hun : ∀ᵐ x ∂m,0 ≤ u x) (hg : MemLp g 2 m)
    (hz : ∀ᵐ x ∂m,u x = 0 → g x = 0) :
    (∫⁻ x,ENNReal.ofReal (g x^2/u x) ∂m) =
      ⨆ n,ENNReal.ofReal (∫ x,g x^2/(u x+fisherEpsilon n) ∂m) := by
proof · 13 lines
  have he : (fun x => ENNReal.ofReal (g x^2/u x)) =ᵐ[m]
      fun x => ⨆ n,ENNReal.ofReal (g x^2/(u x+fisherEpsilon n)) := by
    filter_upwards [hun,hz] with x hx hz
    exact ofReal_fisher_eq_iSup hx hz
  rw [lintegral_congr_ae he,lintegral_iSup']
  · congr 1
    funext n
    exact (ofReal_integral_eq_lintegral_ofReal
      (integrable_regularizedFisher hu hun hg (fisherEpsilon_pos n))
      (hun.mono fun x hx => div_nonneg (sq_nonneg _) (by linarith [fisherEpsilon_pos n]))).symm
  · exact fun n => ((hg.aestronglyMeasurable.pow 2).div₀ (hu.add_const (fisherEpsilon n))).aemeasurable.ennreal_ofReal
  · filter_upwards [hun] with x hx
    exact fun _ _ hij => ENNReal.ofReal_le_ofReal (regularizedFisher_mono hx hij)
186
lemma fisher_action_of_regularization {T : Type*} [MeasurableSpace T] {ν : Measure T}
    {u g : T → X → ℝ} {C : ℝ} (hC : 0 ≤ C)
    (hu : ∀ᵐ t ∂ν,AEStronglyMeasurable (u t) m)
    (hun : ∀ᵐ t ∂ν,∀ᵐ x ∂m,0 ≤ u t x)
    (hg : ∀ᵐ t ∂ν,MemLp (g t) 2 m)
    (hz : ∀ᵐ t ∂ν,∀ᵐ x ∂m,u t x = 0 → g t x = 0)
    (hR : ∀ n,Integrable (fun t => ∫ x,g t x^2/(u t x+fisherEpsilon n) ∂m) ν)
    (hB : ∀ n,(∫ t,∫ x,g t x^2/(u t x+fisherEpsilon n) ∂m ∂ν) ≤ C) :
    (∀ᵐ t ∂ν,Integrable (fun x => g t x^2/u t x) m) ∧
      Integrable (fun t => ∫ x,g t x^2/u t x ∂m) ν ∧
      (∫ t,∫ x,g t x^2/u t x ∂m ∂ν) ≤ C := by
proof · 37 lines
  let R : ℕ → T → ℝ := fun n t => ∫ x,g t x^2/(u t x+fisherEpsilon n) ∂m
  let I : T → ℝ≥0∞ := fun t => ∫⁻ x,ENNReal.ofReal (g t x^2/u t x) ∂m
  have he : I =ᵐ[ν] fun t => ⨆ n,ENNReal.ofReal (R n t) := by
    filter_upwards [hu,hun,hg,hz] with t hu hn hg hz
    exact lintegral_fisher_eq_iSup hu hn hg hz
  have hmono : ∀ᵐ t ∂ν,Monotone (fun n => ENNReal.ofReal (R n t)) := by
    filter_upwards [hu,hun,hg] with t hu hn hg
    intro n k hnk
    apply ENNReal.ofReal_le_ofReal
    exact integral_mono_ae (integrable_regularizedFisher hu hn hg (fisherEpsilon_pos n))
      (integrable_regularizedFisher hu hn hg (fisherEpsilon_pos k))
      (hn.mono fun x hx => regularizedFisher_mono hx hnk)
  have hIm : AEMeasurable I ν :=
    (AEMeasurable.iSup (fun n => (hR n).1.aemeasurable.ennreal_ofReal)).congr he.symm
  have hIb : (∫⁻ t,I t ∂ν) ≤ ENNReal.ofReal C := by
    rw [lintegral_congr_ae he,lintegral_iSup' (fun n => (hR n).1.aemeasurable.ennreal_ofReal) hmono]
    apply iSup_le
    intro n
    rw [← ofReal_integral_eq_lintegral_ofReal (hR n)]
    · exact ENNReal.ofReal_le_ofReal (hB n)
    · filter_upwards [hun] with t hn
      exact integral_nonneg_of_ae (hn.mono fun x hx => div_nonneg (sq_nonneg _) (by linarith [fisherEpsilon_pos n]))
  have hIf : (∫⁻ t,I t ∂ν) ≠ ∞ := ne_of_lt (hIb.trans_lt ENNReal.ofReal_lt_top)
  have hIa : ∀ᵐ t ∂ν,I t < ∞ := ae_lt_top' hIm hIf
  have hsp : ∀ᵐ t ∂ν,Integrable (fun x => g t x^2/u t x) m := by
    filter_upwards [hu,hun,hg,hIa] with t hu hn hg hf
    apply (lintegral_ofReal_ne_top_iff_integrable ((hg.aestronglyMeasurable.pow 2).div₀ hu)
      (hn.mono fun x hx => div_nonneg (sq_nonneg _) hx)).mp
    exact hf.ne
  have htr : (fun t => (I t).toReal) =ᵐ[ν] fun t => ∫ x,g t x^2/u t x ∂m := by
    filter_upwards [hsp,hun] with t hi hn
    rw [show I t = ENNReal.ofReal (∫ x,g t x^2/u t x ∂m) from
      (ofReal_integral_eq_lintegral_ofReal hi (hn.mono fun x hx => div_nonneg (sq_nonneg _) hx)).symm,
      ENNReal.toReal_ofReal (integral_nonneg_of_ae (hn.mono fun x hx => div_nonneg (sq_nonneg _) hx))]
  refine ⟨hsp,(integrable_toReal_of_lintegral_ne_top hIm hIf).congr htr,?_⟩
  rw [← integral_congr_ae htr,integral_toReal hIm hIa]
  exact (ENNReal.toReal_mono ENNReal.ofReal_ne_top hIb).trans_eq (ENNReal.toReal_ofReal hC)
234
lemma integral_regularizedFisher_tendsto {u g : X → ℝ} (hu : AEStronglyMeasurable u m)
    (hun : ∀ᵐ x ∂m,0 ≤ u x) (hg : MemLp g 2 m)
    (hz : ∀ᵐ x ∂m,u x = 0 → g x = 0) (hI : Integrable (fun x => g x^2/u x) m) :
    Tendsto (fun n => ∫ x,g x^2/(u x+fisherEpsilon n) ∂m) atTop (𝓝 (∫ x,g x^2/u x ∂m)) :=
proof · 4 lines
  integral_tendsto_of_tendsto_of_monotone
    (fun n => integrable_regularizedFisher hu hun hg (fisherEpsilon_pos n)) hI
    (hun.mono fun x hx => regularizedFisher_mono hx)
    (by filter_upwards [hun,hz] with x hx hz; exact regularizedFisher_tendsto hx hz)
243
lemma integral_regularizedFisher_action_tendsto {T : Type*} [MeasurableSpace T] {ν : Measure T}
    {u g : T → X → ℝ}
    (hu : ∀ᵐ t ∂ν,AEStronglyMeasurable (u t) m)
    (hun : ∀ᵐ t ∂ν,∀ᵐ x ∂m,0 ≤ u t x)
    (hg : ∀ᵐ t ∂ν,MemLp (g t) 2 m)
    (hz : ∀ᵐ t ∂ν,∀ᵐ x ∂m,u t x = 0 → g t x = 0)
    (hR : ∀ n,Integrable (fun t => ∫ x,g t x^2/(u t x+fisherEpsilon n) ∂m) ν)
    (hI : ∀ᵐ t ∂ν,Integrable (fun x => g t x^2/u t x) m)
    (hIt : Integrable (fun t => ∫ x,g t x^2/u t x ∂m) ν) :
    Tendsto (fun n => ∫ t,∫ x,g t x^2/(u t x+fisherEpsilon n) ∂m ∂ν) atTop
      (𝓝 (∫ t,∫ x,g t x^2/u t x ∂m ∂ν)) := by
proof · 8 lines
  apply integral_tendsto_of_tendsto_of_monotone hR hIt
  · filter_upwards [hu,hun,hg] with t hu hn hg
    intro n k hnk
    exact integral_mono_ae (integrable_regularizedFisher hu hn hg (fisherEpsilon_pos n))
      (integrable_regularizedFisher hu hn hg (fisherEpsilon_pos k))
      (hn.mono fun x hx => regularizedFisher_mono hx hnk)
  · filter_upwards [hu,hun,hg,hz,hI] with t ht hn hg hz hi
    exact integral_regularizedFisher_tendsto ht hn hg hz hi

Xet Storage Details

Size:
14.5 kB
·
Xet hash:
af35aceb8c9ea29c534de804cbc943d01fd4c79b31d0a25eb3582667b4a921c2

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.