Download data/lean/OAI/Geometry/Kahler/BaseDensityDefinitions.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.92 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Kahler/BaseDensityDefinitions.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/Kahler/BaseDensityDefinitions.lean
-
curl -L -o BaseDensityDefinitions.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Kahler/BaseDensityDefinitions.lean
6.92 kB
| import OAI.Geometry.Kahler.BaseProfiles | |
| namespace OAI | |
| open Complex | |
| open scoped ContDiff Matrix Matrix.Norms.Elementwise | |
| open scoped ContDiff Matrix Matrix.Norms.Elementwise ComplexOrder | |
| open scoped ContDiff ComplexOrder | |
| open scoped ContDiff ENNReal | |
| open Set Filter Topology | |
| open scoped ContDiff ENNReal Pointwise | |
| open Set Filter Topology MeasureTheory | |
| open scoped ContDiff | |
| noncomputable section | |
| open Set Filter Topology MeasureTheory | |
| open scoped ContDiff ENNReal Pointwise | |
| namespace PinchedHartogs.BaseConstruction | |
| def phaseDerivative (W : Base β β) (z : Base) : β := fderiv β W z (Complex.I β’ z) | |
| def centralPoint (p : Sphere) (z : Base) : Base := | |
| (bracket z (p:Base) / (βbracket z (p:Base)β:β)) β’ (p:Base) | |
| def densityHeight (k : β) (p : Sphere) (z : Base) : β := | |
| -(k:β)*Real.log βbracket z (p:Base)β | |
| def densityCorrectionRaw (k : β) (f b : β β β) (W : Base β β) (p : Sphere) (z : Base) : β := | |
| let c := bracket z (p:Base) | |
| let phase := c/(βcβ:β) | |
| let y := densityHeight k p z | |
| (βcβ^2)β»ΒΉ * (f y * W (centralPoint p z) * (phase^k).re - | |
| b y / k * phaseDerivative W (centralPoint p z) * (phase^k).im) | |
| def densityCorrection (k : β) (R : β) (f b : β β β) (W : Base β β) (p : Sphere) (z : Base) : β := | |
| if Real.exp (-R/k) < βbracket z (p:Base)β then densityCorrectionRaw k f b W p z else 0 | |
| def density (Q : β) (R : β) (f b : β β β) (P : β β Finset Sphere) : β β Base β β | |
| | 0 => fun _ => 1 | |
| | j+1 => fun z => density Q R f b P j z + | |
| β p β P (Q^(j+1)), densityCorrection (Q^(j+1)) R f b (density Q R f b P j) p z | |
| lemma phaseDerivative_smooth {W : Base β β} (hW : ContDiff β β W) : | |
| ContDiff β β (phaseDerivative W) := by | |
| exact (hW.fderiv_right (by simp)).clm_apply ((Complex.I β’ (1 : Base βL[β] Base)).restrictScalars β).contDiff | |
| lemma centralPoint_smoothAt (p : Sphere) {z : Base} (hz : bracket z (p:Base) β 0) : | |
| ContDiffAt β β (centralPoint p) z := by | |
| have hc : ContDiff β β (fun z : Base => bracket z (p:Base)) := (bracket_analytic (p:Base)).contDiff.restrict_scalars β | |
| have hn : ContDiffAt β β (fun z : Base => βbracket z (p:Base)β) z := hc.contDiffAt.norm β hz | |
| simpa only [centralPoint,div_eq_mul_inv,Function.comp_def,Complex.ofRealCLM_apply] using! | |
| ((hc.contDiffAt.mul ((Complex.ofRealCLM.contDiff.comp_contDiffAt z hn).inv | |
| (by simpa only [Function.comp_def,Complex.ofRealCLM_apply,ne_eq,Complex.ofReal_eq_zero] using norm_ne_zero_iff.mpr hz))).smul (contDiffAt_const (c := (p:Base)))) | |
| lemma densityHeight_smoothAt (k : β) (p : Sphere) {z : Base} (hz : bracket z (p:Base) β 0) : | |
| ContDiffAt β β (densityHeight k p) z := by | |
| have hc : ContDiff β β (fun z : Base => bracket z (p:Base)) := (bracket_analytic (p:Base)).contDiff.restrict_scalars β | |
| exact contDiffAt_const.mul ((hc.contDiffAt.norm β hz).log (norm_ne_zero_iff.mpr hz)) | |
| lemma densityCorrectionRaw_smoothAt (k : β) {f b : β β β} {W : Base β β} | |
| (hf : ContDiff β β f) (hb : ContDiff β β b) (hW : ContDiff β β W) | |
| (p : Sphere) {z : Base} (hz : bracket z (p:Base) β 0) : | |
| ContDiffAt β β (densityCorrectionRaw k f b W p) z := by | |
| have hc : ContDiff β β (fun z : Base => bracket z (p:Base)) := (bracket_analytic (p:Base)).contDiff.restrict_scalars β | |
| have hn := hc.contDiffAt.norm β hz | |
| have hn0 := norm_ne_zero_iff.mpr hz | |
| have hphase : ContDiffAt β β (fun z : Base => bracket z (p:Base)/(βbracket z (p:Base)β:β)) z := by | |
| simpa only [div_eq_mul_inv,Function.comp_def,Complex.ofRealCLM_apply] using! hc.contDiffAt.mul ((Complex.ofRealCLM.contDiff.comp_contDiffAt z hn).inv | |
| (by exact_mod_cast hn0 : (βbracket z (p:Base)β:β) β 0)) | |
| have hy := densityHeight_smoothAt k p hz | |
| have hs := centralPoint_smoothAt p hz | |
| have hreal := Complex.reCLM.contDiff.comp_contDiffAt z (hphase.pow k) | |
| have him := Complex.imCLM.contDiff.comp_contDiffAt z (hphase.pow k) | |
| exact ((hn.pow 2).inv (pow_ne_zero 2 hn0)).mul | |
| ((((hf.contDiffAt.comp z hy).mul (hW.contDiffAt.comp z hs)).mul hreal).sub | |
| ((((hb.contDiffAt.comp z hy).div_const (k:β)).mul ((phaseDerivative_smooth hW).contDiffAt.comp z hs)).mul him)) | |
| lemma densityCorrection_zero_low {k : β} (hk : 0 < k) {R E : β} {f b : β β β} | |
| (htail : β y, E β€ y β f y=0 β§ b y=0) (W : Base β β) (p : Sphere) (z : Base) | |
| (hz : βbracket z (p:Base)β β€ Real.exp (-E/k)) : densityCorrection k R f b W p z=0 := by | |
| unfold densityCorrection | |
| split_ifs with hc | |
| Β· have hn : 0 < βbracket z (p:Base)β := lt_trans (Real.exp_pos _) hc | |
| have hh := Real.log_le_log hn hz | |
| rw [Real.log_exp] at hh | |
| have hk0 : (0:β) < k := by exact_mod_cast hk | |
| have hhy : E β€ densityHeight k p z := by | |
| have hm := (le_div_iffβ hk0).mp hh | |
| unfold densityHeight | |
| nlinarith | |
| obtain β¨hf,hbβ© := htail _ hhy | |
| simp [densityCorrectionRaw,hf,hb] | |
| Β· rfl | |
| lemma densityCorrection_smooth {k : β} (hk : 0 < k) {R E : β} (hER : E < R) | |
| {f b : β β β} {W : Base β β} | |
| (hf : ContDiff β β f) (hb : ContDiff β β b) (hW : ContDiff β β W) | |
| (htail : β y, E β€ y β f y=0 β§ b y=0) (p : Sphere) : | |
| ContDiff β β (densityCorrection k R f b W p) := by | |
| rw [contDiff_iff_contDiffAt] | |
| intro z | |
| have hc : Continuous (fun z : Base => βbracket z (p:Base)β) := (bracket_analytic (p:Base)).continuous.norm | |
| by_cases hz : Real.exp (-R/k) < βbracket z (p:Base)β | |
| Β· have he : densityCorrection k R f b W p =αΆ [π z] densityCorrectionRaw k f b W p := by | |
| filter_upwards [(isOpen_lt continuous_const hc).mem_nhds hz] with v hv | |
| exact ite_eq_left hv | |
| exact (densityCorrectionRaw_smoothAt k hf hb hW p (norm_pos_iff.mp (lt_trans (Real.exp_pos _) hz))).congr_of_eventuallyEq he | |
| Β· have hk0 : (0:β) < k := by exact_mod_cast hk | |
| have hcut : Real.exp (-R/k) < Real.exp (-E/k) := Real.exp_lt_exp.mpr ((div_lt_div_iff_of_pos_right hk0).mpr (neg_lt_neg hER)) | |
| have hzE : βbracket z (p:Base)β < Real.exp (-E/k) := lt_of_le_of_lt (le_of_not_gt hz) hcut | |
| have he : densityCorrection k R f b W p =αΆ [π z] (fun _ => 0) := by | |
| filter_upwards [(isOpen_lt hc continuous_const).mem_nhds hzE] with v hv | |
| exact densityCorrection_zero_low hk htail W p v hv.le | |
| exact contDiffAt_const.congr_of_eventuallyEq he | |
| lemma density_smooth {Q : β} (hQ : 0 < Q) {R E : β} (hER : E < R) | |
| {f b : β β β} (hf : ContDiff β β f) (hb : ContDiff β β b) | |
| (htail : β y, E β€ y β f y=0 β§ b y=0) (P : β β Finset Sphere) (j : β) : | |
| ContDiff β β (density Q R f b P j) := by | |
| induction j with | |
| | zero => exact contDiff_const | |
| | succ j ih => | |
| exact ih.add (ContDiff.sum (fun p hp => densityCorrection_smooth (pow_pos hQ _) hER hf hb ih htail p)) | |
| end PinchedHartogs.BaseConstruction | |
| end | |
| end OAI | |