Download data/lean/OAI/Geometry/PrescribedRicci/ComplexIntegrationByParts.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.46 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/PrescribedRicci/ComplexIntegrationByParts.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/PrescribedRicci/ComplexIntegrationByParts.lean
-
curl -L -o ComplexIntegrationByParts.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/PrescribedRicci/ComplexIntegrationByParts.lean
6.46 kB
| import Mathlib | |
| import OAI.Geometry.PrescribedPotential.GlobalSobolev | |
| import OAI.Geometry.PrescribedRicci.KahlerCofactorDivergence | |
| namespace OAI | |
| /-! Complex Integration By Parts. -/ | |
| noncomputable section | |
| open Matrix Filter Set Topology MeasureTheory | |
| open scoped ContDiff ComplexOrder Matrix.Norms.Elementwise | |
| namespace Anticanonical.SourceSmooth | |
| namespace KaehlerMetric | |
| variable {d : β} | |
| def barDeriv (f : Coordinates d β β) (z : Coordinates d) (j : Fin d) : β := | |
| (2 : β)β»ΒΉ * (fderiv β f z (coordinateVector j) + | |
| Complex.I * fderiv β f z (Complex.I β’ coordinateVector j)) | |
| def holDeriv (f : Coordinates d β β) (z : Coordinates d) (j : Fin d) : β := | |
| (2 : β)β»ΒΉ * (fderiv β f z (coordinateVector j) - | |
| Complex.I * fderiv β f z (Complex.I β’ coordinateVector j)) | |
| lemma contDiff_deriv_direction {E F : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| [NormedAddCommGroup F] [NormedSpace β F] {f : E β F} | |
| (hf : ContDiff β β f) (v : E) : ContDiff β β (fun z => fderiv β f z v) := | |
| (hf.fderiv_right (by simp)).clm_apply contDiff_const | |
| lemma contDiff_barDeriv {f : Coordinates d β β} (hf : ContDiff β β f) (j : Fin d) : | |
| ContDiff β β (fun z => barDeriv f z j) := | |
| contDiff_const.mul ((contDiff_deriv_direction hf _).add | |
| (contDiff_const.mul (contDiff_deriv_direction hf _))) | |
| lemma contDiff_holDeriv {f : Coordinates d β β} (hf : ContDiff β β f) (j : Fin d) : | |
| ContDiff β β (fun z => holDeriv f z j) := | |
| contDiff_const.mul ((contDiff_deriv_direction hf _).sub | |
| (contDiff_const.mul (contDiff_deriv_direction hf _))) | |
| lemma compactSupport_barDeriv {f : Coordinates d β β} (hf : HasCompactSupport f) | |
| (j : Fin d) : HasCompactSupport (fun z => barDeriv f z j) := by | |
| exact ((hf.fderiv_apply β (coordinateVector j)).add | |
| (hf.fderiv_apply β (Complex.I β’ coordinateVector j)).mul_left).mul_left | |
| lemma integrable_mul_deriv {f g : Coordinates d β β} | |
| (hf : ContDiff β β f) (hg : ContDiff β β g) (hc : HasCompactSupport f) | |
| (v : Coordinates d) : Integrable (fun z => f z * fderiv β g z v) := | |
| (hf.continuous.mul (contDiff_deriv_direction hg v).continuous).integrable_of_hasCompactSupport | |
| hc.mul_right | |
| lemma integrable_deriv_mul {f g : Coordinates d β β} | |
| (hf : ContDiff β β f) (hg : ContDiff β β g) (hc : HasCompactSupport f) | |
| (v : Coordinates d) : Integrable (fun z => fderiv β f z v * g z) := | |
| ((contDiff_deriv_direction hf v).continuous.mul hg.continuous).integrable_of_hasCompactSupport | |
| (hc.fderiv_apply β v).mul_right | |
| lemma contDiffAt_deriv_direction {E F : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| [NormedAddCommGroup F] [NormedSpace β F] {f : E β F} {z : E} | |
| (hf : ContDiffAt β β f z) (v : E) : ContDiffAt β β (fun y => fderiv β f y v) z := | |
| (hf.fderiv_right (by simp)).clm_apply contDiffAt_const | |
| lemma continuous_mul_on_tsupport {E : Type*} [TopologicalSpace E] {f g : E β β} | |
| (hf : Continuous f) (hg : β z β tsupport f, ContinuousAt g z) : | |
| Continuous (fun z => f z * g z) := by | |
| rw [continuous_iff_continuousAt] | |
| intro z | |
| by_cases hz : z β tsupport f | |
| Β· exact hf.continuousAt.mul (hg z hz) | |
| Β· apply (continuousAt_const (y := (0 : β))).congr | |
| filter_upwards [notMem_tsupport_iff_eventuallyEq.mp hz] with y hy | |
| simp only [hy, zero_mul, Pi.zero_apply] | |
| lemma contDiff_mul_on_tsupport {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| {f g : E β β} (hf : ContDiff β β f) | |
| (hg : β z β tsupport f, ContDiffAt β β g z) : | |
| ContDiff β β (fun z => f z * g z) := by | |
| rw [contDiff_iff_contDiffAt] | |
| intro z | |
| by_cases hz : z β tsupport f | |
| Β· exact hf.contDiffAt.mul (hg z hz) | |
| Β· apply (contDiffAt_const (c := (0 : β))).congr_of_eventuallyEq | |
| filter_upwards [notMem_tsupport_iff_eventuallyEq.mp hz] with y hy | |
| simp only [hy, zero_mul, Pi.zero_apply] | |
| lemma integrable_mul_deriv_local {f g : Coordinates d β β} | |
| (hf : ContDiff β β f) (hg : β z β tsupport f, ContDiffAt β β g z) | |
| (hc : HasCompactSupport f) (v : Coordinates d) : | |
| Integrable (fun z => f z * fderiv β g z v) := | |
| (continuous_mul_on_tsupport hf.continuous (fun z hz => | |
| (contDiffAt_deriv_direction (hg z hz) v).continuousAt)).integrable_of_hasCompactSupport | |
| hc.mul_right | |
| lemma integrable_deriv_mul_local {f g : Coordinates d β β} | |
| (hf : ContDiff β β f) (hg : β z β tsupport f, ContDiffAt β β g z) | |
| (hc : HasCompactSupport f) (v : Coordinates d) : | |
| Integrable (fun z => fderiv β f z v * g z) := | |
| (continuous_mul_on_tsupport (contDiff_deriv_direction hf v).continuous (fun z hz => | |
| (hg z (tsupport_fderiv_apply_subset β v hz)).continuousAt)).integrable_of_hasCompactSupport | |
| (hc.fderiv_apply β v).mul_right | |
| lemma integral_mul_barDeriv_local {f g : Coordinates d β β} | |
| (hf : ContDiff β β f) (hg : β z β tsupport f, ContDiffAt β β g z) | |
| (hc : HasCompactSupport f) (j : Fin d) : | |
| (β« z, f z * barDeriv g z j) = -(β« z, barDeriv f z j * g z) := by | |
| have hv (v : Coordinates d) : (β« z, f z * fderiv β g z v) = | |
| -(β« z, fderiv β f z v * g z) := | |
| integral_mul_fderiv_eq_neg_fderiv_mul_of_integrable | |
| (integrable_deriv_mul_local hf hg hc v) (integrable_mul_deriv_local hf hg hc v) | |
| ((continuous_mul_on_tsupport hf.continuous (fun z hz => (hg z hz).continuousAt)).integrable_of_hasCompactSupport hc.mul_right) | |
| (fun z _ => hf.differentiable (by simp) z) | |
| (fun z hz => (hg z hz).differentiableAt (by simp)) | |
| have he (z : Coordinates d) : f z * barDeriv g z j = | |
| (2 : β)β»ΒΉ * (f z * fderiv β g z (coordinateVector j)) + | |
| ((2 : β)β»ΒΉ * Complex.I) * (f z * fderiv β g z (Complex.I β’ coordinateVector j)) := by | |
| unfold barDeriv | |
| ring | |
| have he' (z : Coordinates d) : barDeriv f z j * g z = | |
| (2 : β)β»ΒΉ * (fderiv β f z (coordinateVector j) * g z) + | |
| ((2 : β)β»ΒΉ * Complex.I) * (fderiv β f z (Complex.I β’ coordinateVector j) * g z) := by | |
| unfold barDeriv | |
| ring | |
| simp_rw [he, he'] | |
| rw [integral_add ((integrable_mul_deriv_local hf hg hc _).const_mul _) ((integrable_mul_deriv_local hf hg hc _).const_mul _), | |
| integral_add ((integrable_deriv_mul_local hf hg hc _).const_mul _) ((integrable_deriv_mul_local hf hg hc _).const_mul _)] | |
| simp only [integral_const_mul, hv] | |
| ring | |
| end KaehlerMetric | |
| end Anticanonical.SourceSmooth | |
| end | |
| end OAI | |