Download data/lean/OAI/Geometry/Perimeter/Regularity/C1MinRegularTest.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 25 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Perimeter/Regularity/C1MinRegularTest.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/Perimeter/Regularity/C1MinRegularTest.lean
-
curl -L -o C1MinRegularTest.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/Perimeter/Regularity/C1MinRegularTest.lean
25 kB
| import OAI.Geometry.Perimeter.Regularity.RegularSupersolutionC1Test | |
| namespace OAI | |
| noncomputable section | |
| open Set Filter MeasureTheory | |
| open scoped Topology ENNReal NNReal ContDiff | |
| open scoped Topology ENNReal NNReal | |
| open scoped ENNReal Topology ContDiff Pointwise | |
| open scoped Topology ENNReal ContDiff | |
| namespace RPI.Boundary | |
| section TruncationRegularLimit | |
| variable {n : β} {S Z : Set (Space n)} | |
| variable (hS : IsClosed S) (hZ : IsClosed Z) | |
| variable (hfinite : β R : β, 0 < R β (surfaceMeasure S) (Metric.ball 0 R) < β€) | |
| variable (hgrad : β f : Space n β β, ContDiff β 1 f β | |
| AEStronglyMeasurable (surfaceGradient S f) (surfaceMeasure S)) | |
| variable {W : Space n β β} {D : Space n β Space n} | |
| variable (htrace : β x β S \ Z, HasC1TraceJetAt S W D x) | |
| variable (hsup : β Ο : Space n β β, ContDiff β β Ο β HasCompactSupport Ο β | |
| Disjoint (tsupport Ο) Z β (β x, 0 β€ Ο x) β | |
| 0 β€ β« x, inner β (D x) (surfaceGradient S Ο x) βsurfaceMeasure S) | |
| include hS hZ hfinite hgrad htrace hsup | |
| theorem c1_min_regular_test {Ο : Space n β β} (hΟ : ContDiff β 1 Ο) | |
| (hcΟ : HasCompactSupport Ο) (hΟZ : Disjoint (tsupport Ο) Z) (hpΟ : β x, 0 β€ Ο x) : | |
| 0 β€ β« x, inner β (truncatedGradient W D x) (surfaceGradient S Ο x) βsurfaceMeasure S := by | |
| let b : Space n β β := fun x β¦ inner β (D x) (surfaceGradient S Ο x) | |
| have hb : Integrable b (surfaceMeasure S) := | |
| c1_integrable_regular_test_pair hS hZ hfinite hgrad htrace hΟ hcΟ hΟZ | |
| let q : β β Space n β β := fun j x β¦ | |
| inner β (truncationSlope (truncationParameter j) (W x) β’ D x) (surfaceGradient S Ο x) | |
| have hq : β j, AEStronglyMeasurable (q j) (surfaceMeasure S) := by | |
| intro j | |
| have htt : β x β S \ Z, HasC1TraceJetAt S (smoothTruncation (truncationParameter j) β W) | |
| (fun y β¦ truncationSlope (truncationParameter j) (W y) β’ D y) x := by | |
| intro x hx | |
| simpa only [smoothTruncation_deriv] using | |
| (htrace x hx).comp hx.1 ((smoothTruncation_contDiff (truncationParameter j)).of_le (by norm_num)) | |
| exact (c1_integrable_regular_test_pair hS hZ hfinite hgrad htt hΟ hcΟ hΟZ).aestronglyMeasurable | |
| have hlim : Tendsto (fun j β¦ β« x, q j x βsurfaceMeasure S) atTop | |
| (π (β« x, inner β (truncatedGradient W D x) (surfaceGradient S Ο x) βsurfaceMeasure S)) := by | |
| apply tendsto_integral_of_dominated_convergence (fun x β¦ βb xβ) hq hb.norm | |
| Β· intro j | |
| apply ae_of_all | |
| intro x | |
| simp only [q, real_inner_smul_left, norm_mul] | |
| exact mul_le_of_le_one_left (norm_nonneg _) (truncationSlope_norm_le _ _) | |
| Β· apply ae_of_all | |
| intro x | |
| have ht := (truncationSlope_tendsto (W x)).mul_const (b x) | |
| by_cases hx : W x < 1 | |
| Β· simpa only [q, b, truncatedGradient, ite_eq_left hx, one_mul, real_inner_smul_left] using ht | |
| Β· simpa only [q, b, truncatedGradient, ite_eq_right hx, zero_mul, inner_zero_left, | |
| real_inner_smul_left] using ht | |
| apply ge_of_tendsto hlim | |
| apply Eventually.of_forall | |
| intro j | |
| exact c1_smoothTruncation_regular_test hS hZ hfinite hgrad htrace hsup | |
| (truncationParameter_pos j) hΟ hcΟ hΟZ hpΟ | |
| theorem c1_min_regular_energy (hW0 : β x β S \ Z, 0 β€ W x) | |
| {Ξ· : Space n β β} (hΞ· : ContDiff β 1 Ξ·) (hcΞ· : HasCompactSupport Ξ·) | |
| (hΞ·Z : Disjoint (tsupport Ξ·) Z) : | |
| MemLp (fun x β¦ Ξ· x β’ truncatedGradient W D x) 2 (surfaceMeasure S) β§ | |
| vectorEnergy (surfaceMeasure S) (fun x β¦ Ξ· x β’ truncatedGradient W D x) β€ | |
| 4 * vectorEnergy (surfaceMeasure S) (surfaceGradient S Ξ·) := by | |
| let A : β β Space n β Space n := fun j x β¦ Ξ· x β’ (truncationSlope (truncationParameter j) (W x) β’ D x) | |
| let H : Space n β Space n := fun x β¦ Ξ· x β’ truncatedGradient W D x | |
| have hA : β j, MemLp (A j) 2 (surfaceMeasure S) := by | |
| intro j | |
| have htt : β x β S \ Z, HasC1TraceJetAt S (smoothTruncation (truncationParameter j) β W) | |
| (fun y β¦ truncationSlope (truncationParameter j) (W y) β’ D y) x := by | |
| intro x hx | |
| simpa only [smoothTruncation_deriv] using | |
| (htrace x hx).comp hx.1 ((smoothTruncation_contDiff (truncationParameter j)).of_le (by norm_num)) | |
| exact c1_regular_gradient_memLp_test hS hZ hfinite hgrad htt hΞ· hcΞ· hΞ·Z | |
| have hB : MemLp (surfaceGradient S Ξ·) 2 (surfaceMeasure S) := | |
| c1_surfaceGradient_memLp_of_compact hfinite hgrad hΞ· hcΞ· | |
| have he : β j, vectorEnergy (surfaceMeasure S) (A j) β€ | |
| 4 * vectorEnergy (surfaceMeasure S) (surfaceGradient S Ξ·) := by | |
| intro j | |
| have h := ENNReal.ofReal_le_ofReal (c1_smoothTruncation_regular_energy hS hZ hfinite hgrad | |
| htrace hW0 hsup (truncationParameter_pos j) hΞ· hcΞ· hΞ·Z) | |
| rw [ENNReal.ofReal_mul (by norm_num : (0 : β) β€ 4)] at h | |
| simpa only [A, vectorEnergy, ofReal_integral_eq_lintegral_ofReal | |
| ((memLp_two_iff_integrable_sq_norm (hA j).aestronglyMeasurable).mp (hA j)) | |
| (ae_of_all _ (fun x β¦ sq_nonneg βA j xβ)), | |
| ofReal_integral_eq_lintegral_ofReal | |
| ((memLp_two_iff_integrable_sq_norm hB.aestronglyMeasurable).mp hB) | |
| (ae_of_all _ (fun x β¦ sq_nonneg βsurfaceGradient S Ξ· xβ)), ENNReal.ofReal_ofNat] using h | |
| have hlim : βα΅ x βsurfaceMeasure S, Tendsto (fun j β¦ A j x) atTop (π (H x)) := by | |
| apply ae_of_all | |
| intro x | |
| have ht := (tendsto_const_nhds (x := Ξ· x)).smul | |
| ((truncationSlope_tendsto (W x)).smul_const (D x)) | |
| by_cases hx : W x < 1 | |
| Β· simpa only [A, H, truncatedGradient, ite_eq_left hx, one_smul] using ht | |
| Β· simpa only [A, H, truncatedGradient, ite_eq_right hx, zero_smul] using ht | |
| have hHm : AEStronglyMeasurable H (surfaceMeasure S) := | |
| aestronglyMeasurable_of_tendsto_ae atTop (fun j β¦ (hA j).aestronglyMeasurable) hlim | |
| have hHE := vectorEnergy_le_of_ae_tendsto (fun j β¦ (hA j).aestronglyMeasurable) hlim | |
| (Eventually.of_forall he) tendsto_const_nhds | |
| refine β¨(memLp_two_iff_vectorEnergy hHm).mpr (hHE.trans_lt ?_), hHEβ© | |
| exact ENNReal.mul_lt_top (by norm_num) ((memLp_two_iff_vectorEnergy hB.aestronglyMeasurable).mp hB) | |
| end TruncationRegularLimit | |
| end RPI.Boundary | |
| end | |
| noncomputable section | |
| open Set Filter MeasureTheory | |
| open scoped Topology ENNReal NNReal ContDiff | |
| open scoped Topology ENNReal NNReal | |
| open scoped ENNReal Topology ContDiff Pointwise | |
| open scoped Topology ENNReal ContDiff | |
| namespace RPI.Boundary | |
| theorem c1_min_local_energy {n : β} (hn : 8 β€ n) | |
| {S Z : Set (Space n)} (hS : IsClosed S) (hZ : IsClosed Z) | |
| (hZd : dimH Z β€ (n - 8 : β)) | |
| (hfinite : β R : β, 0 < R β (surfaceMeasure S) (Metric.ball 0 R) < β€) | |
| (hgrad : β f : Space n β β, ContDiff β 1 f β | |
| AEStronglyMeasurable (surfaceGradient S f) (surfaceMeasure S)) | |
| (hgrowth : β R : β, 0 < R β β A rβ : β, 0 < A β§ 0 < rβ β§ | |
| β c β Z β© Metric.closedBall 0 R, β r : β, 0 < r β r < rβ β | |
| (surfaceMeasure S).restrict (Metric.ball 0 R) (Metric.ball c r) β€ | |
| ENNReal.ofReal (A * r ^ (n - 1))) | |
| {W : Space n β β} {D : Space n β Space n} | |
| (htrace : β x β S \ Z, HasC1TraceJetAt S W D x) | |
| (hW0 : β x β S \ Z, 0 β€ W x) | |
| (hsup : β Ο : Space n β β, ContDiff β β Ο β HasCompactSupport Ο β | |
| Disjoint (tsupport Ο) Z β (β x, 0 β€ Ο x) β | |
| 0 β€ β« x, inner β (D x) (surfaceGradient S Ο x) βsurfaceMeasure S) | |
| {R : β} (hR : 0 < R) : | |
| MemLp (truncatedGradient W D) 2 ((surfaceMeasure S).restrict (Metric.ball 0 R)) := by | |
| let b : ContDiffBump (0 : Space n) := β¨R + 1, R + 2, by linarith, by linarithβ© | |
| let ΞΌ := (surfaceMeasure S).restrict (Metric.ball 0 (R + 3)) | |
| have hR3 : 0 < R + 3 := by linarith | |
| have : IsFiniteMeasure ΞΌ := β¨by simpa only [ΞΌ, Measure.restrict_apply_univ] using hfinite _ hR3β© | |
| let K := Z β© tsupport b | |
| have hKc : IsCompact K := b.hasCompactSupport.of_isClosed_subset | |
| (hZ.inter (isClosed_tsupport b)) inter_subset_right | |
| have hKd : dimH K β€ (n - 8 : β) := (dimH_mono inter_subset_left).trans hZd | |
| have hbs : tsupport b β Metric.ball (0 : Space n) (R + 3) := by | |
| rw [b.tsupport_eq] | |
| exact Metric.closedBall_subset_ball (by dsimp [b]; linarith) | |
| obtain β¨A, rβ, hA, hrβ, hgrβ© := hgrowth _ hR3 | |
| obtain β¨Ο, hΟ, hΟlim, hΟEβ© := exists_memLp_capacity_sequence hn S | |
| (Metric.ball 0 (R + 3)) K hKc hKd | |
| (fun f hf β¦ (hgrad f (hf.of_le (by norm_num))).mono_measure Measure.restrict_le_self) hA hrβ | |
| (fun c hc s hs hsr β¦ hgr c β¨hc.1, Metric.ball_subset_closedBall (hbs hc.2)β© s hs hsr) | |
| have hb : MemLp (fun x β¦ b x) 2 ΞΌ := MemLp.of_bound b.continuous.aestronglyMeasurable 1 | |
| (ae_of_all _ (fun x β¦ by simpa only [Real.norm_eq_abs, abs_of_nonneg b.nonneg] using b.le_one)) | |
| have hDb : MemLp (surfaceGradient S b) 2 ΞΌ := surfaceGradient_memLp_on_ball b.contDiff | |
| ((hgrad b b.contDiff).mono_measure Measure.restrict_le_self) | |
| obtain β¨_, hB, hBtβ© := capacity_product_pair_tendsto hb hDb Ο | |
| (fun i β¦ (hΟ i).1.continuous.aestronglyMeasurable) | |
| (fun i β¦ ae_of_all _ (hΟ i).2.1) hΟlim zero_le_one | |
| (ae_of_all _ (fun x β¦ by simpa only [Real.norm_eq_abs, abs_of_nonneg b.nonneg] using b.le_one)) | |
| (fun i β¦ surfaceGradient S (Ο i)) (fun i β¦ (hΟ i).2.2.2) hΟE | |
| let Ξ· : β β Space n β β := fun i x β¦ b x * Ο i x | |
| let F : β β Space n β Space n := fun i x β¦ Ξ· i x β’ truncatedGradient W D x | |
| let H : Space n β Space n := fun x β¦ b x β’ truncatedGradient W D x | |
| have hΞ· : β i, ContDiff β β (Ξ· i) := fun i β¦ b.contDiff.mul (hΟ i).1 | |
| have hcΞ· : β i, HasCompactSupport (Ξ· i) := fun _ β¦ b.hasCompactSupport.mul_right | |
| have hΞ·Z : β i, Disjoint (tsupport (Ξ· i)) Z := fun i β¦ | |
| tsupport_mul_disjoint_Singular (hΟ i).2.2.1 | |
| have hFE : β i, MemLp (F i) 2 (surfaceMeasure S) β§ | |
| vectorEnergy (surfaceMeasure S) (F i) β€ | |
| 4 * vectorEnergy (surfaceMeasure S) (surfaceGradient S (Ξ· i)) := by | |
| intro i | |
| exact c1_min_regular_energy hS hZ hfinite hgrad htrace hsup hW0 ((hΞ· i).of_le (by norm_num)) (hcΞ· i) (hΞ·Z i) | |
| have hFm : β i, MemLp (F i) 2 ΞΌ := fun i β¦ (hFE i).1.mono_measure Measure.restrict_le_self | |
| have hB_eq : β i, (fun x β¦ Ο i x β’ surfaceGradient S b x + b x β’ surfaceGradient S (Ο i) x) = | |
| surfaceGradient S (Ξ· i) := by | |
| intro i | |
| funext x | |
| change _ = surfaceGradient S (fun y β¦ b y * Ο i y) x | |
| have hbDiff : ContDiff β β (fun y β¦ b y) := b.contDiff | |
| rw [surfaceGradient_mul (hbDiff.differentiable (by simp) x) | |
| ((hΟ i).1.differentiable (by simp) x), add_comm] | |
| have hBE := vectorEnergy_tendsto_of_toLp_tendsto hB hDb hBt.snd_nhds | |
| simp_rw [hB_eq] at hBE | |
| have hbound : β i, vectorEnergy ΞΌ (F i) β€ 4 * vectorEnergy ΞΌ (surfaceGradient S (Ξ· i)) := by | |
| intro i | |
| rw [vectorEnergy_restrict_of_vanish measurableSet_ball, vectorEnergy_restrict_of_vanish measurableSet_ball] | |
| Β· exact (hFE i).2 | |
| Β· intro x hx | |
| exact surfaceGradient_eq_zero_of_notMem_tsupport S | |
| (fun h β¦ hx (hbs (tsupport_mul_subset_left h))) | |
| Β· intro x hx | |
| have hb0 : b x = 0 := image_eq_zero_of_notMem_tsupport (fun h β¦ hx (hbs h)) | |
| simp only [F, Ξ·, hb0, zero_mul, zero_smul] | |
| have hlim : βα΅ x βΞΌ, Tendsto (fun i β¦ F i x) atTop (π (H x)) := by | |
| filter_upwards [hΟlim] with x hx | |
| simpa only [F, H, Ξ·, mul_one] using | |
| (tendsto_const_nhds.mul hx).smul_const (truncatedGradient W D x) | |
| have hHm : AEStronglyMeasurable H ΞΌ := | |
| aestronglyMeasurable_of_tendsto_ae atTop (fun i β¦ (hFm i).aestronglyMeasurable) hlim | |
| have hHE := vectorEnergy_le_of_ae_tendsto (fun i β¦ (hFm i).aestronglyMeasurable) hlim | |
| (Eventually.of_forall hbound) (ENNReal.Tendsto.const_mul hBE (Or.inr (by norm_num))) | |
| have hH : MemLp H 2 ΞΌ := (memLp_two_iff_vectorEnergy hHm).mpr (hHE.trans_lt | |
| (ENNReal.mul_lt_top (by norm_num) ((memLp_two_iff_vectorEnergy hDb.aestronglyMeasurable).mp hDb))) | |
| have hHR : MemLp H 2 ((surfaceMeasure S).restrict (Metric.ball 0 R)) := | |
| hH.mono_measure (Measure.restrict_mono_set _ (Metric.ball_subset_ball (by linarith))) | |
| apply hHR.ae_eq | |
| filter_upwards [ae_restrict_mem measurableSet_ball] with x hx | |
| have hbx : b x = 1 := b.one_of_mem_closedBall (Metric.mem_closedBall.mpr | |
| ((Metric.mem_ball.mp hx).le.trans (by dsimp [b]; linarith))) | |
| simp only [H, hbx, one_smul] | |
| end RPI.Boundary | |
| end | |
| noncomputable section | |
| open Set Filter MeasureTheory | |
| open scoped Topology ENNReal NNReal ContDiff | |
| open scoped Topology ENNReal NNReal | |
| open scoped ENNReal Topology ContDiff Pointwise | |
| open scoped Topology ENNReal ContDiff | |
| namespace RPISingularHarnack | |
| open RPI RPI.Boundary | |
| theorem c1_min_wholeBoundarySobolev_and_supersolution_of_regular_geometry | |
| {n : β} (hn : 8 β€ n) {E Z : Set (Euc n)} (hE : MeasurableSet E) | |
| (hZ : IsClosed Z) (hZd : dimH Z β€ (n - 8 : β)) | |
| (hfinite : β R : β, 0 < R β surfaceMeasure (perimeterSupport E) (Metric.ball 0 R) < β€) | |
| (hgrowth : β R : β, 0 < R β β A rβ : β, 0 < A β§ 0 < rβ β§ | |
| β c β Z β© Metric.closedBall 0 R, β r : β, 0 < r β r < rβ β | |
| (surfaceMeasure (perimeterSupport E)).restrict (Metric.ball 0 R) (Metric.ball c r) β€ | |
| ENNReal.ofReal (A * r ^ (n - 1))) | |
| (hreg : β x β perimeterSupport E \ Z, β U : Set (Euc n), IsOpen U β§ x β U β§ | |
| β f : Euc n β β, ContDiffOn β β f U β§ | |
| (β y β U, fderiv β f y β 0) β§ | |
| (β y β U, y β perimeterSupport E β f y = 0) β§ | |
| (β y β U, (f y < 0 β y β E) β§ (y β E β f y β€ 0))) | |
| {W : Euc n β β} {D : Euc n β Euc n} | |
| (htrace : β x β perimeterSupport E \ Z, HasC1TraceJetAt (perimeterSupport E) W D x) | |
| (hW0 : β x β perimeterSupport E \ Z, 0 β€ W x) | |
| (hsup : β Ο : Euc n β β, ContDiff β β Ο β HasCompactSupport Ο β | |
| Disjoint (tsupport Ο) Z β (β x, 0 β€ Ο x) β | |
| 0 β€ β« x, inner β (D x) (surfaceGradient (perimeterSupport E) Ο x) | |
| βsurfaceMeasure (perimeterSupport E)) : | |
| WholeBoundarySobolev E (fun x β¦ min (W x) 1) (truncatedGradient W D) β§ | |
| WholeBoundarySupersolution E (truncatedGradient W D) := by | |
| have hS := isClosed_perimeterSupport E | |
| have hlevel : β x β perimeterSupport E \ Z, β U : Set (Euc n), IsOpen U β§ x β U β§ | |
| β f : Euc n β β, ContDiffOn β 1 f U β§ | |
| (β y β U, fderiv β f y β 0) β§ | |
| (β y β U, y β perimeterSupport E β f y = 0) := by | |
| intro x hx | |
| obtain β¨U, hU, hxU, f, hf, hdf, hs, _β© := hreg x hx | |
| exact β¨U, hU, hxU, f, hf.of_le (by norm_num), hdf, hsβ© | |
| have hfilled : β x β perimeterSupport E \ Z, β f : Euc n β β, | |
| ContDiffAt β 1 f x β§ f x = 0 β§ fderiv β f x β 0 β§ | |
| (βαΆ y in π x, y β perimeterSupport E β f y = 0) β§ | |
| (βαΆ y in π x, (f y < 0 β y β E) β§ (y β E β f y β€ 0)) := by | |
| intro x hx | |
| obtain β¨U, hU, hxU, f, hf, hdf, hs, heβ© := hreg x hx | |
| refine β¨f, (hf.of_le (by norm_num)).contDiffAt (hU.mem_nhds hxU), | |
| (hs x hxU).mp hx.1, hdf x hxU, ?_, ?_β© | |
| Β· filter_upwards [hU.mem_nhds hxU] with y hy using hs y hy | |
| Β· filter_upwards [hU.mem_nhds hxU] with y hy using he y hy | |
| have hgrad : β f : Euc n β β, ContDiff β 1 f β | |
| AEStronglyMeasurable (surfaceGradient (perimeterSupport E) f) | |
| (surfaceMeasure (perimeterSupport E)) := by | |
| intro f hf | |
| exact surfaceGradient_aestronglyMeasurable_of_regular_locus hn hS.measurableSet | |
| hZ.measurableSet hZd hlevel hf | |
| have hloc : β R : β, 0 < R β MemLp (truncatedGradient W D) 2 | |
| ((surfaceMeasure (perimeterSupport E)).restrict (Metric.ball 0 R)) := by | |
| intro R hR | |
| exact c1_min_local_energy hn hS hZ hZd hfinite hgrad hgrowth htrace hW0 hsup hR | |
| have haereg : βα΅ x βsurfaceMeasure (perimeterSupport E), x β perimeterSupport E \ Z := by | |
| have hz : βα΅ x βsurfaceMeasure (perimeterSupport E), x β Z := by | |
| simpa only [ae_iff, not_not, Set.ofPred_mem_eq] using | |
| surfaceMeasure_zero_of_singular_dim hn (perimeterSupport E) Z hZd | |
| filter_upwards [ae_restrict_mem hS.measurableSet, hz] with x hx hzx | |
| exact β¨hx, hzxβ© | |
| constructor | |
| Β· apply wholeBoundarySobolev_of_local_sobolevGraph_filled hn hE hS.measurableSet hZd hfilled | |
| intro R hR | |
| have : IsFiniteMeasure ((surfaceMeasure (perimeterSupport E)).restrict (Metric.ball 0 R)) := | |
| β¨by simpa only [Measure.restrict_apply_univ] using hfinite R hRβ© | |
| have hw : βα΅ x β(surfaceMeasure (perimeterSupport E)).restrict (Metric.ball 0 R), 0 β€ W x := by | |
| filter_upwards [haereg.filter_mono (ae_mono Measure.restrict_le_self)] with x hx | |
| exact hW0 x hx | |
| obtain β¨A, rβ, hA, hrβ, hgrβ© := hgrowth (R + 2) (by linarith) | |
| obtain β¨hh, hpairβ© := c1_min_one_mem_sobolevGraph_ball hn hS hZ hZd hR htrace hw (hloc R hR) | |
| (fun f hf β¦ (hgrad f (hf.of_le (by norm_num))).mono_measure Measure.restrict_le_self) hA hrβ (by | |
| intro c hc r hr hrr | |
| apply le_trans _ (hgr c hc r hr hrr) | |
| exact Measure.le_iff'.mp (Measure.restrict_mono_set _ | |
| (Metric.ball_subset_ball (by linarith : R β€ R + 2))) _) | |
| exact β¨hh, hloc R hR, hpairβ© | |
| Β· intro Ο hΟ hcΟ hpΟ | |
| have hh := full_test_of_regular_tests hn hZ hZd hloc hfinite (fun f hf β¦ hgrad f (hf.of_le (by norm_num))) hgrowth | |
| (fun Ο hΟ hcΟ hΟZ hpΟ β¦ c1_min_regular_test hS hZ hfinite hgrad htrace hsup (hΟ.of_le (by norm_num)) hcΟ hΟZ hpΟ) | |
| hΟ hcΟ hpΟ | |
| have heq := surfaceGradient_ae_eq_tangentialGradient_filled hn hE hS.measurableSet hZd hfilled Ο | |
| rw [boundaryArea_eq_smul_surfaceMeasure, integral_smul_measure] | |
| have hi : (β« x, inner β (truncatedGradient W D x) (tangentialGradient E Ο x) | |
| βsurfaceMeasure (perimeterSupport E)) = | |
| β« x, inner β (truncatedGradient W D x) (surfaceGradient (perimeterSupport E) Ο x) | |
| βsurfaceMeasure (perimeterSupport E) := by | |
| apply integral_congr_ae | |
| filter_upwards [heq] with x hx | |
| rw [hx] | |
| rw [hi] | |
| exact mul_nonneg ENNReal.toReal_nonneg hh | |
| end RPISingularHarnack | |
| end | |
| noncomputable section | |
| open Set Filter MeasureTheory | |
| open scoped Topology ENNReal NNReal ContDiff | |
| open scoped Topology ENNReal NNReal | |
| open scoped ENNReal Topology ContDiff Pointwise | |
| open scoped Topology ENNReal ContDiff | |
| namespace RPISingularHarnack | |
| open RPI RPI.Boundary | |
| theorem c1_min_wholeBoundarySobolev_and_supersolution_of_minimizing_regular_geometry | |
| {n : β} (hn : 8 β€ n) {E Z : Set (Euc n)} | |
| (hmin : IsLocallyPerimeterMinimizing E) | |
| (hZ : IsClosed Z) (hZd : dimH Z β€ (n - 8 : β)) | |
| (hreg : β x β perimeterSupport E \ Z, β U : Set (Euc n), IsOpen U β§ x β U β§ | |
| β f : Euc n β β, ContDiffOn β β f U β§ | |
| (β y β U, fderiv β f y β 0) β§ | |
| (β y β U, y β perimeterSupport E β f y = 0) β§ | |
| (β y β U, (f y < 0 β y β E) β§ (y β E β f y β€ 0))) | |
| {W : Euc n β β} {D : Euc n β Euc n} | |
| (htrace : β x β perimeterSupport E \ Z, HasC1TraceJetAt (perimeterSupport E) W D x) | |
| (hW0 : β x β perimeterSupport E \ Z, 0 β€ W x) | |
| (hsup : β Ο : Euc n β β, ContDiff β β Ο β HasCompactSupport Ο β | |
| Disjoint (tsupport Ο) Z β (β x, 0 β€ Ο x) β | |
| 0 β€ β« x, inner β (D x) (surfaceGradient (perimeterSupport E) Ο x) | |
| βsurfaceMeasure (perimeterSupport E)) : | |
| WholeBoundarySobolev E (fun x β¦ min (W x) 1) (truncatedGradient W D) β§ | |
| WholeBoundarySupersolution E (truncatedGradient W D) := by | |
| have hhalf : β x β perimeterSupport E \ Z, β v, HasHalfspaceBlowup E x v := by | |
| intro x hx | |
| obtain β¨U, hU, hxU, f, hf, hdf, hs, heβ© := hreg x hx | |
| refine β¨_, hasHalfspaceBlowup_gradient_filled hmin.1 | |
| ((hf.contDiffAt (hU.mem_nhds hxU)).differentiableAt (by norm_num)) | |
| ((hs x hxU).mp hx.1) (hdf x hxU) ?_β© | |
| filter_upwards [hU.mem_nhds hxU] with y hy using he y hy | |
| obtain β¨A, hA, hareaβ© := exists_minimizing_surfaceMeasure_growth_of_halfspace hn hmin hZd hhalf | |
| apply c1_min_wholeBoundarySobolev_and_supersolution_of_regular_geometry hn hmin.1 hZ hZd | |
| (fun R hR β¦ (harea 0 R hR).trans_lt ENNReal.ofReal_lt_top) _ hreg htrace hW0 hsup | |
| intro R hR | |
| refine β¨A, 1, hA, by norm_num, ?_β© | |
| intro c hc r hr hrr | |
| exact (Measure.restrict_apply_le (Metric.ball 0 R) (Metric.ball c r)).trans (harea c r hr) | |
| end RPISingularHarnack | |
| end | |
| noncomputable section | |
| open Set Filter MeasureTheory | |
| open scoped Topology ENNReal NNReal ContDiff | |
| open scoped Topology ENNReal NNReal | |
| open scoped ENNReal Topology ContDiff Pointwise | |
| open scoped Topology ENNReal ContDiff | |
| namespace RPISingularHarnack | |
| open RPI.Boundary | |
| open ContinuousLinearMap | |
| open scoped Convolution | |
| theorem divergence_comp_add_right {n : β} {V : Euc n β Euc n} | |
| (hV : Differentiable β V) (t x : Euc n) : | |
| divergence (fun y β¦ V (y + t)) x = divergence V (x + t) := by | |
| have hd : fderiv β (fun y β¦ V (y + t)) x = fderiv β V (x + t) := by | |
| simpa only [Function.comp_def, id_eq, ContinuousLinearMap.comp_id] using ((hV _).hasFDerivAt.comp x ((hasFDerivAt_id x).add_const t)).fderiv | |
| simp only [divergence, hd] | |
| theorem integral_divergence_le_perimeter_real {n : β} (E U : Set (Euc n)) | |
| (hP : perimeter E U β β€) {V : Euc n β Euc n} (hV : PerimeterAdmissible U V) : | |
| β« x in E, divergence V x β€ (perimeter E U).toReal := by | |
| apply (ENNReal.ofReal_le_iff_le_toReal hP).mp | |
| rw [perimeter_eq_iSup_tests] | |
| exact le_iSup_of_le V (le_iSup_of_le hV le_rfl) | |
| theorem indicator_convolution_variation_le {n : β} {E : Set (Euc n)} | |
| (hE : MeasurableSet E) (hP : perimeter E univ β β€) | |
| {k : Euc n β β} (hkc : Continuous k) (hk : Integrable k volume) | |
| (hk0 : β x, 0 β€ k x) (hk1 : β« x, k x = 1) | |
| {V : Euc n β Euc n} (hV : PerimeterAdmissible univ V) : | |
| (β« x, (k β[lsmul β β, volume] E.indicator (fun _ β¦ (1 : β))) x * divergence V x) β€ | |
| (perimeter E univ).toReal := by | |
| let Ο : Euc n β β := E.indicator (fun _ β¦ 1) | |
| have hmΟ : Measurable Ο := measurable_const.indicator hE | |
| have hbΟ : β x, βΟ xβ β€ 1 := by | |
| intro x | |
| by_cases hx : x β E <;> simp [Ο, hx] | |
| have hd := integrable_divergence hV.1 hV.2.1 | |
| let F : Euc n Γ Euc n β β := fun p β¦ k p.1 * Ο (p.2 - p.1) * divergence V p.2 | |
| have hFi : Integrable F (volume.prod volume) := by | |
| apply (hk.norm.mul_prod hd.norm).mono' | |
| Β· exact ((hkc.measurable.comp measurable_fst).mul | |
| (hmΟ.comp (measurable_snd.sub measurable_fst))).mul | |
| ((continuous_divergence hV.1).measurable.comp measurable_snd) |>.aestronglyMeasurable | |
| Β· apply ae_of_all | |
| intro p | |
| simp only [F, norm_mul] | |
| exact mul_le_mul_of_nonneg_right | |
| (by nlinarith [hbΟ (p.2 - p.1), norm_nonneg (k p.1)]) (norm_nonneg _) | |
| have hinner : β t, (β« x, F (t, x)) = k t * (β« y in E, divergence V (y + t)) := by | |
| intro t | |
| simp only [F, mul_assoc, integral_const_mul] | |
| congr 1 | |
| calc | |
| (β« x, Ο (x - t) * divergence V x) = | |
| β« y, Ο y * divergence V (y + t) := by | |
| simpa only [add_sub_cancel_right] using | |
| (integral_add_right_eq_self (fun x β¦ Ο (x - t) * divergence V x) t).symm | |
| _ = β« y in E, divergence V (y + t) := by | |
| rw [β integral_indicator hE] | |
| apply integral_congr_ae | |
| apply ae_of_all | |
| intro y | |
| by_cases hy : y β E <;> simp [Ο, hy] | |
| have hInt : Integrable (fun t β¦ k t * (β« y in E, divergence V (y + t))) volume := by | |
| simpa only [hinner] using hFi.integral_prod_left | |
| have heq : (β« x, (k β[lsmul β β, volume] Ο) x * divergence V x) = | |
| β« t, k t * (β« y in E, divergence V (y + t)) := by | |
| calc | |
| _ = β« x, β« t, F (t, x) := by | |
| apply integral_congr_ae | |
| apply ae_of_all | |
| intro x | |
| simp only [convolution_def, lsmul_apply, smul_eq_mul, F, integral_mul_const] | |
| _ = β« t, β« x, F (t, x) := integral_integral_swap hFi.swap | |
| _ = _ := by simp only [hinner] | |
| have hbound : β t, β« y in E, divergence V (y + t) β€ (perimeter E univ).toReal := by | |
| intro t | |
| let Vt : Euc n β Euc n := fun y β¦ V (y + t) | |
| have hVt : PerimeterAdmissible univ Vt := β¨hV.1.comp (contDiff_id.add contDiff_const), | |
| hV.2.1.comp_homeomorph (Homeomorph.addRight t), subset_univ _, fun y β¦ hV.2.2.2 _β© | |
| simpa only [Vt, divergence_comp_add_right (hV.1.differentiable (by simp))] using | |
| integral_divergence_le_perimeter_real E univ hP hVt | |
| rw [heq] | |
| calc | |
| (β« t, k t * (β« y in E, divergence V (y + t))) β€ | |
| β« t, k t * (perimeter E univ).toReal := by | |
| exact integral_mono hInt (hk.mul_const _) fun t β¦ | |
| mul_le_mul_of_nonneg_left (hbound t) (hk0 t) | |
| _ = (perimeter E univ).toReal := by rw [integral_mul_const, hk1, one_mul] | |
| end RPISingularHarnack | |
| end | |
| end OAI | |