Buckets:
cfahlgren1/math / lean /OAI /Geometry /TamingCompatibility /DifferentialForms /HermitianVariableProfiles.lean
| import Mathlib | |
| import OAI.Geometry.TamingCompatibility.DifferentialForms.HermitianCoefficientBounds | |
| namespace OAI | |
| section | |
| section | |
| section | |
| noncomputable section | |
| namespace TamingCompatibility.HermitianRadial | |
| open TamingCompatibility.RadialPotential Set Filter Function Metric | |
| open scoped ContDiff Topology RealInnerProductSpace | |
| variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] | |
| def variableLogProfile (W : E → E →L[ℝ] E) (χ a : E → ℝ) (V : E → E) | |
| (p : ℝ × ℝ × E) (z : E) : ℝ := | |
| χ z * (a (p.2.1 • z) * hermitianLogGradientProfile (W p.2.2) p.1 z (V (p.2.2+p.2.1•z))) | |
| lemma variableLogProfile_smooth (W : E → E →L[ℝ] E) (χ a : E → ℝ) (V : E → E) | |
| (hW : ContDiff ℝ ∞ W) (hχ : ContDiff ℝ ∞ χ) (h0 : (0:E) ∉ tsupport χ) | |
| (ha : ContDiff ℝ ∞ a) (hV : ContDiff ℝ ∞ V) : | |
| ContDiff ℝ ∞ (fun q : (ℝ × ℝ × E) × E => variableLogProfile W χ a V q.1 q.2) := by | |
| unfold variableLogProfile | |
| refine cutoff_parameter_smooth χ hχ h0 | |
| (fun (p : ℝ × ℝ × E) z => a (p.2.1•z) * hermitianLogGradientProfile (W p.2.2) p.1 z | |
| (V (p.2.2+p.2.1•z))) ?_ | |
| intro p hp | |
| have hpos : 0 < p.1.1^2+‖p.2‖^2+‖W p.1.2.2 p.2‖^2 := by | |
| have hz := norm_pos_iff.mpr hp | |
| nlinarith [sq_nonneg p.1.1,sq_nonneg ‖W p.1.2.2 p.2‖] | |
| have hscale : ContDiff ℝ ∞ (fun q : (ℝ × ℝ × E) × E => q.1.2.1 • q.2) := | |
| contDiff_fst.snd.fst.smul contDiff_snd | |
| have hpoint : ContDiff ℝ ∞ (fun q : (ℝ × ℝ × E) × E => q.1.2.2+q.1.2.1•q.2) := | |
| contDiff_fst.snd.snd.add hscale | |
| have hmetric : ContDiff ℝ ∞ (fun q : (ℝ × ℝ × E) × E => W q.1.2.2) := | |
| hW.comp contDiff_fst.snd.snd | |
| have hden : ContDiff ℝ ∞ (fun q : (ℝ × ℝ × E) × E => | |
| q.1.1^2+‖q.2‖^2+‖W q.1.2.2 q.2‖^2) := | |
| ((contDiff_fst.fst.pow 2).add ((contDiff_norm_sq ℝ).comp contDiff_snd)).add | |
| ((contDiff_norm_sq ℝ).comp (hmetric.clm_apply contDiff_snd)) | |
| have hnum : ContDiff ℝ ∞ (fun q : (ℝ × ℝ × E) × E => | |
| ⟪q.2,V (q.1.2.2+q.1.2.1•q.2)⟫+ | |
| ⟪W q.1.2.2 q.2,W q.1.2.2 (V (q.1.2.2+q.1.2.1•q.2))⟫) := | |
| (contDiff_snd.inner ℝ (hV.comp hpoint)).add | |
| ((hmetric.clm_apply contDiff_snd).inner ℝ (hmetric.clm_apply (hV.comp hpoint))) | |
| exact (ha.comp hscale).contDiffAt.mul ((hden.contDiffAt.inv hpos.ne').mul hnum.contDiffAt) | |
| lemma variableLogProfile_derivatives_bounded (W : E → E →L[ℝ] E) (χ a : E → ℝ) (V : E → E) | |
| (hW : ContDiff ℝ ∞ W) (hχ : ContDiff ℝ ∞ χ) (hχc : HasCompactSupport χ) | |
| (h0 : (0:E) ∉ tsupport χ) (ha : ContDiff ℝ ∞ a) (hV : ContDiff ℝ ∞ V) | |
| {K : Set E} (hK : IsCompact K) (R : ℝ) (n : ℕ) : | |
| ∃ C : ℝ, 0 ≤ C ∧ ∀ t ∈ Icc (0:ℝ) 1, ∀ r ∈ Icc (0:ℝ) R, ∀ b ∈ K, ∀ z : E, | |
| ‖iteratedFDeriv ℝ n (variableLogProfile W χ a V (t,r,b)) z‖ ≤ C := by | |
| obtain ⟨C,hC,h⟩ := compact_parameter_cutoff_derivatives_bounded χ hχc | |
| (fun (p : ℝ × ℝ × E) z => a (p.2.1•z) * hermitianLogGradientProfile (W p.2.2) p.1 z | |
| (V (p.2.2+p.2.1•z))) | |
| (variableLogProfile_smooth W χ a V hW hχ h0 ha hV) | |
| (isCompact_Icc.prod (isCompact_Icc.prod hK)) n | |
| exact ⟨C,hC,fun t ht r hr b hb z => h (t,r,b) ⟨ht,hr,hb⟩ z⟩ | |
| def variableSqrtProfile (W : E → E →L[ℝ] E) (χ a : E → ℝ) (V : E → E) | |
| (p : ℝ × ℝ × E) (z : E) : ℝ := | |
| χ z * (a (p.2.1 • z) * hermitianSqrtGradientProfile (W p.2.2) p.1 z (V (p.2.2+p.2.1•z))) | |
| lemma variableSqrtProfile_smooth (W : E → E →L[ℝ] E) (χ a : E → ℝ) (V : E → E) | |
| (hW : ContDiff ℝ ∞ W) (hχ : ContDiff ℝ ∞ χ) (h0 : (0:E) ∉ tsupport χ) | |
| (ha : ContDiff ℝ ∞ a) (hV : ContDiff ℝ ∞ V) : | |
| ContDiff ℝ ∞ (fun q : (ℝ × ℝ × E) × E => variableSqrtProfile W χ a V q.1 q.2) := by | |
| unfold variableSqrtProfile | |
| refine cutoff_parameter_smooth χ hχ h0 | |
| (fun (p : ℝ × ℝ × E) z => a (p.2.1•z) * hermitianSqrtGradientProfile (W p.2.2) p.1 z | |
| (V (p.2.2+p.2.1•z))) ?_ | |
| intro p hp | |
| have hpos : 0 < p.1.1^2+‖p.2‖^2+‖W p.1.2.2 p.2‖^2 := by | |
| have hz := norm_pos_iff.mpr hp | |
| nlinarith [sq_nonneg p.1.1,sq_nonneg ‖W p.1.2.2 p.2‖] | |
| have hscale : ContDiff ℝ ∞ (fun q : (ℝ × ℝ × E) × E => q.1.2.1 • q.2) := | |
| contDiff_fst.snd.fst.smul contDiff_snd | |
| have hpoint : ContDiff ℝ ∞ (fun q : (ℝ × ℝ × E) × E => q.1.2.2+q.1.2.1•q.2) := | |
| contDiff_fst.snd.snd.add hscale | |
| have hmetric : ContDiff ℝ ∞ (fun q : (ℝ × ℝ × E) × E => W q.1.2.2) := | |
| hW.comp contDiff_fst.snd.snd | |
| have hden : ContDiff ℝ ∞ (fun q : (ℝ × ℝ × E) × E => | |
| q.1.1^2+‖q.2‖^2+‖W q.1.2.2 q.2‖^2) := | |
| ((contDiff_fst.fst.pow 2).add ((contDiff_norm_sq ℝ).comp contDiff_snd)).add | |
| ((contDiff_norm_sq ℝ).comp (hmetric.clm_apply contDiff_snd)) | |
| have hnum : ContDiff ℝ ∞ (fun q : (ℝ × ℝ × E) × E => | |
| ⟪q.2,V (q.1.2.2+q.1.2.1•q.2)⟫+ | |
| ⟪W q.1.2.2 q.2,W q.1.2.2 (V (q.1.2.2+q.1.2.1•q.2))⟫) := | |
| (contDiff_snd.inner ℝ (hV.comp hpoint)).add | |
| ((hmetric.clm_apply contDiff_snd).inner ℝ (hmetric.clm_apply (hV.comp hpoint))) | |
| exact (ha.comp hscale).contDiffAt.mul (((hden.contDiffAt.sqrt hpos.ne').inv (Real.sqrt_pos.mpr hpos).ne').mul hnum.contDiffAt) | |
| lemma variableSqrtProfile_derivatives_bounded (W : E → E →L[ℝ] E) (χ a : E → ℝ) (V : E → E) | |
| (hW : ContDiff ℝ ∞ W) (hχ : ContDiff ℝ ∞ χ) (hχc : HasCompactSupport χ) | |
| (h0 : (0:E) ∉ tsupport χ) (ha : ContDiff ℝ ∞ a) (hV : ContDiff ℝ ∞ V) | |
| {K : Set E} (hK : IsCompact K) (R : ℝ) (n : ℕ) : | |
| ∃ C : ℝ, 0 ≤ C ∧ ∀ t ∈ Icc (0:ℝ) 1, ∀ r ∈ Icc (0:ℝ) R, ∀ b ∈ K, ∀ z : E, | |
| ‖iteratedFDeriv ℝ n (variableSqrtProfile W χ a V (t,r,b)) z‖ ≤ C := by | |
| obtain ⟨C,hC,h⟩ := compact_parameter_cutoff_derivatives_bounded χ hχc | |
| (fun (p : ℝ × ℝ × E) z => a (p.2.1•z) * hermitianSqrtGradientProfile (W p.2.2) p.1 z | |
| (V (p.2.2+p.2.1•z))) | |
| (variableSqrtProfile_smooth W χ a V hW hχ h0 ha hV) | |
| (isCompact_Icc.prod (isCompact_Icc.prod hK)) n | |
| exact ⟨C,hC,fun t ht r hr b hb z => h (t,r,b) ⟨ht,hr,hb⟩ z⟩ | |
| variable [HasContDiffBump E] | |
| lemma variableLogProfile_shell_scale (W : E → E →L[ℝ] E) (a : E → ℝ) (V : E → E) | |
| {r s : ℝ} (hr : 0 < r) (b z : E) : | |
| r * (shellCutoff r (r•z) * (a (r•z) * hermitianLogGradientProfile (W b) s (r•z) (V (b+r•z)))) = | |
| variableLogProfile W (shellCutoff 1) a V (s/r,r,b) z := by | |
| rw [shellCutoff_scale hr.ne'] | |
| have h := hermitianLogGradient_scale (W b) hr (s := s/r) z (V (b+r•z)) | |
| rw [mul_div_cancel₀ s hr.ne'] at h | |
| dsimp only [variableLogProfile] | |
| calc | |
| _ = shellCutoff 1 z * (a (r•z) * (r * hermitianLogGradientProfile (W b) s (r•z) (V (b+r•z)))) := by ring | |
| _ = _ := by rw [h] | |
| lemma variableSqrtProfile_shell_scale (W : E → E →L[ℝ] E) (a : E → ℝ) (V : E → E) | |
| {r s : ℝ} (hr : 0 < r) (b z : E) : | |
| shellCutoff r (r•z) * (a (r•z) * hermitianSqrtGradientProfile (W b) s (r•z) (V (b+r•z))) = | |
| variableSqrtProfile W (shellCutoff 1) a V (s/r,r,b) z := by | |
| rw [shellCutoff_scale hr.ne'] | |
| have h := hermitianSqrtGradient_scale (W b) hr (s := s/r) z (V (b+r•z)) | |
| rw [mul_div_cancel₀ s hr.ne'] at h | |
| exact congrArg (fun x => shellCutoff 1 z * (a (r•z) * x)) h | |
| end TamingCompatibility.HermitianRadial | |
| end | |
| end | |
| section | |
| noncomputable section | |
| namespace TamingCompatibility.HermitianRadial | |
| open TamingCompatibility.RadialPotential Set Filter Function Metric | |
| open scoped ContDiff Topology RealInnerProductSpace | |
| variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] | |
| lemma innerLogProfile_smooth (W : E → E →L[ℝ] E) (χ a : E → ℝ) (V : E → E) | |
| (hW : ContDiff ℝ ∞ W) (hχ : ContDiff ℝ ∞ χ) (ha : ContDiff ℝ ∞ a) (hV : ContDiff ℝ ∞ V) : | |
| ContDiff ℝ ∞ (fun q : (ℝ × E) × E => variableLogProfile W χ a V (1,q.1.1,q.1.2) q.2) := by | |
| have hscale : ContDiff ℝ ∞ (fun q : (ℝ × E) × E => q.1.1 • q.2) := | |
| contDiff_fst.fst.smul contDiff_snd | |
| have hpoint : ContDiff ℝ ∞ (fun q : (ℝ × E) × E => q.1.2 + q.1.1 • q.2) := | |
| contDiff_fst.snd.add hscale | |
| have hmetric : ContDiff ℝ ∞ (fun q : (ℝ × E) × E => W q.1.2) := | |
| hW.comp contDiff_fst.snd | |
| have hden : ContDiff ℝ ∞ (fun q : (ℝ × E) × E => (1:ℝ)^2 + ‖q.2‖^2 + ‖W q.1.2 q.2‖^2) := | |
| (contDiff_const.add ((contDiff_norm_sq ℝ).comp contDiff_snd)).add | |
| ((contDiff_norm_sq ℝ).comp (hmetric.clm_apply contDiff_snd)) | |
| have hpos : ∀ q : (ℝ × E) × E, 0 < (1:ℝ)^2 + ‖q.2‖^2 + ‖W q.1.2 q.2‖^2 := by | |
| intro q; nlinarith [sq_nonneg ‖q.2‖,sq_nonneg ‖W q.1.2 q.2‖] | |
| have hnum : ContDiff ℝ ∞ (fun q : (ℝ × E) × E => | |
| ⟪q.2,V (q.1.2+q.1.1•q.2)⟫ + ⟪W q.1.2 q.2,W q.1.2 (V (q.1.2+q.1.1•q.2))⟫) := | |
| (contDiff_snd.inner ℝ (hV.comp hpoint)).add | |
| ((hmetric.clm_apply contDiff_snd).inner ℝ (hmetric.clm_apply (hV.comp hpoint))) | |
| exact (hχ.comp contDiff_snd).mul ((ha.comp hscale).mul | |
| ((hden.inv (fun q => (hpos q).ne')).mul hnum)) | |
| lemma innerSqrtProfile_smooth (W : E → E →L[ℝ] E) (χ a : E → ℝ) (V : E → E) | |
| (hW : ContDiff ℝ ∞ W) (hχ : ContDiff ℝ ∞ χ) (ha : ContDiff ℝ ∞ a) (hV : ContDiff ℝ ∞ V) : | |
| ContDiff ℝ ∞ (fun q : (ℝ × E) × E => variableSqrtProfile W χ a V (1,q.1.1,q.1.2) q.2) := by | |
| have hscale : ContDiff ℝ ∞ (fun q : (ℝ × E) × E => q.1.1 • q.2) := | |
| contDiff_fst.fst.smul contDiff_snd | |
| have hpoint : ContDiff ℝ ∞ (fun q : (ℝ × E) × E => q.1.2 + q.1.1 • q.2) := | |
| contDiff_fst.snd.add hscale | |
| have hmetric : ContDiff ℝ ∞ (fun q : (ℝ × E) × E => W q.1.2) := | |
| hW.comp contDiff_fst.snd | |
| have hden : ContDiff ℝ ∞ (fun q : (ℝ × E) × E => (1:ℝ)^2 + ‖q.2‖^2 + ‖W q.1.2 q.2‖^2) := | |
| (contDiff_const.add ((contDiff_norm_sq ℝ).comp contDiff_snd)).add | |
| ((contDiff_norm_sq ℝ).comp (hmetric.clm_apply contDiff_snd)) | |
| have hpos : ∀ q : (ℝ × E) × E, 0 < (1:ℝ)^2 + ‖q.2‖^2 + ‖W q.1.2 q.2‖^2 := by | |
| intro q; nlinarith [sq_nonneg ‖q.2‖,sq_nonneg ‖W q.1.2 q.2‖] | |
| have hnum : ContDiff ℝ ∞ (fun q : (ℝ × E) × E => | |
| ⟪q.2,V (q.1.2+q.1.1•q.2)⟫ + ⟪W q.1.2 q.2,W q.1.2 (V (q.1.2+q.1.1•q.2))⟫) := | |
| (contDiff_snd.inner ℝ (hV.comp hpoint)).add | |
| ((hmetric.clm_apply contDiff_snd).inner ℝ (hmetric.clm_apply (hV.comp hpoint))) | |
| exact (hχ.comp contDiff_snd).mul ((ha.comp hscale).mul | |
| (((hden.sqrt (fun q => (hpos q).ne')).inv | |
| (fun q => (Real.sqrt_pos.mpr (hpos q)).ne')).mul hnum)) | |
| lemma innerLogProfile_derivatives_bounded (W : E → E →L[ℝ] E) (χ a : E → ℝ) (V : E → E) | |
| (hW : ContDiff ℝ ∞ W) (hχ : ContDiff ℝ ∞ χ) (hχc : HasCompactSupport χ) | |
| (ha : ContDiff ℝ ∞ a) (hV : ContDiff ℝ ∞ V) | |
| {K : Set E} (hK : IsCompact K) (R : ℝ) (n : ℕ) : | |
| ∃ C : ℝ, 0 ≤ C ∧ ∀ r ∈ Icc (0:ℝ) R, ∀ b ∈ K, ∀ z : E, | |
| ‖iteratedFDeriv ℝ n (variableLogProfile W χ a V (1,r,b)) z‖ ≤ C := by | |
| obtain ⟨C,hC,h⟩ := compact_parameter_cutoff_derivatives_bounded χ hχc | |
| (fun (p : ℝ × E) z => a (p.1 • z) * hermitianLogGradientProfile (W p.2) 1 z (V (p.2 + p.1 • z))) | |
| (innerLogProfile_smooth W χ a V hW hχ ha hV) (isCompact_Icc.prod hK) n | |
| exact ⟨C,hC,fun r hr b hb z => h (r,b) ⟨hr,hb⟩ z⟩ | |
| lemma innerSqrtProfile_derivatives_bounded (W : E → E →L[ℝ] E) (χ a : E → ℝ) (V : E → E) | |
| (hW : ContDiff ℝ ∞ W) (hχ : ContDiff ℝ ∞ χ) (hχc : HasCompactSupport χ) | |
| (ha : ContDiff ℝ ∞ a) (hV : ContDiff ℝ ∞ V) | |
| {K : Set E} (hK : IsCompact K) (R : ℝ) (n : ℕ) : | |
| ∃ C : ℝ, 0 ≤ C ∧ ∀ r ∈ Icc (0:ℝ) R, ∀ b ∈ K, ∀ z : E, | |
| ‖iteratedFDeriv ℝ n (variableSqrtProfile W χ a V (1,r,b)) z‖ ≤ C := by | |
| obtain ⟨C,hC,h⟩ := compact_parameter_cutoff_derivatives_bounded χ hχc | |
| (fun (p : ℝ × E) z => a (p.1 • z) * hermitianSqrtGradientProfile (W p.2) 1 z (V (p.2 + p.1 • z))) | |
| (innerSqrtProfile_smooth W χ a V hW hχ ha hV) (isCompact_Icc.prod hK) n | |
| exact ⟨C,hC,fun r hr b hb z => h (r,b) ⟨hr,hb⟩ z⟩ | |
| variable [HasContDiffBump E] | |
| lemma variableLogProfile_inner_scale (W : E → E →L[ℝ] E) (a : E → ℝ) (V : E → E) | |
| {s : ℝ} (hs : 0 < s) (b z : E) : | |
| s * (scaledCutoff s (s • z) * (a (s • z) * hermitianLogGradientProfile (W b) s (s • z) (V (b+s•z)))) = | |
| variableLogProfile W (scaledCutoff 1) a V (1,s,b) z := by | |
| have hc : scaledCutoff s (s • z) = scaledCutoff 1 z := by | |
| simpa using scaledCutoff_scale hs.ne' 1 z | |
| rw [hc] | |
| have h := hermitianLogGradient_scale (W b) hs (s := 1) z (V (b+s•z)) | |
| rw [mul_one] at h | |
| dsimp only [variableLogProfile] | |
| calc | |
| _ = scaledCutoff 1 z * (a (s • z) * (s * hermitianLogGradientProfile (W b) s (s • z) (V (b+s•z)))) := by ring | |
| _ = _ := by rw [h] | |
| lemma variableSqrtProfile_inner_scale (W : E → E →L[ℝ] E) (a : E → ℝ) (V : E → E) | |
| {s : ℝ} (hs : 0 < s) (b z : E) : | |
| scaledCutoff s (s • z) * (a (s • z) * hermitianSqrtGradientProfile (W b) s (s • z) (V (b+s•z))) = | |
| variableSqrtProfile W (scaledCutoff 1) a V (1,s,b) z := by | |
| have hc : scaledCutoff s (s • z) = scaledCutoff 1 z := by | |
| simpa using scaledCutoff_scale hs.ne' 1 z | |
| rw [hc] | |
| have h := hermitianSqrtGradient_scale (W b) hs (s := 1) z (V (b+s•z)) | |
| rw [mul_one] at h | |
| exact congrArg (fun x => scaledCutoff 1 z * (a (s • z) * x)) h | |
| end TamingCompatibility.HermitianRadial | |
| end | |
| end | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 13.7 kB
- Xet hash:
- a5e70d1bef6cf301de8e4e812d31eb16da96bafabfeda9be6fa6acc6ab63848e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.