Download data/lean/OAI/Geometry/CubicTorus/Estimates/BVSharpUpperBound.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 55.6 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CubicTorus/Estimates/BVSharpUpperBound.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CubicTorus/Estimates/BVSharpUpperBound.lean
-
curl -L -o BVSharpUpperBound.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CubicTorus/Estimates/BVSharpUpperBound.lean
55.6 kB
import Mathlib
import OAI.Geometry.CubicTorus.Regularity.BVFlatBlowupRegular
namespace OAI
section
section
noncomputable section
open MeasureTheory Set Filter
open scoped ENNReal NNReal Topology RealInnerProductSpace
namespace CubicTorus
lemma polar_normal_rescaled_equicontinuity {ΞΌ : FiniteMeasure NormalBundle}
{N : Torus β Cover} (hN : Measurable N)
(hu : βα΅ x β(spatialNormalMeasure ΞΌ : Measure Torus), βN xβ = 1)
(S : β β Set Cover) (Ξ½ : β β Cover β Cover) (center : β β Cover)
(scale : β β β) (hscale : β j, 0 < scale j)
{c : β} (hc : 0 < c) (r e : β β β)
(hr : β i, 0 < r i) (he : β i, 0 β€ e i) (helim : Tendsto e atTop (π 0))
(hm : β j a, a β S j β β i, c*(scale j*r i)^2 β€
(spatialNormalMeasure ΞΌ : Measure Torus).real
(Metric.ball (quotientMap (center j+scale j β’ a)) (scale j*r i)))
(ht : β j a, a β S j β β i,
(β« x in Metric.closedBall (quotientMap (center j+scale j β’ a)) (2*(scale j*r i)),
βN x-Ξ½ j aβ^2 β(spatialNormalMeasure ΞΌ : Measure Torus)) β€
(scale j*r i)^2*(e i)^2) :
β Ξ΅ : β, 0 < Ξ΅ β β Ξ΄ : β, 0 < Ξ΄ β§
β j a, a β S j β β b, b β S j β dist a b < Ξ΄ β dist (Ξ½ j a) (Ξ½ j b) < Ξ΅ := by
intro Ξ΅ hΞ΅
have hl : Tendsto (fun i β¦ (2/Real.sqrt c)*e i) atTop (π 0) := by
simpa only [mul_zero] using helim.const_mul (2/Real.sqrt c)
obtain β¨i,hiβ© := (hl.eventually (Iio_mem_nhds hΞ΅)).exists
refine β¨r i,hr i,?_β©
intro j a ha b hb hab
have hdist : dist (quotientMap (center j+scale j β’ a))
(quotientMap (center j+scale j β’ b)) β€ scale j*r i := by
rw [dist_eq_norm,β quotientMap_sub]
apply (norm_quotientMap_le _).trans
have heq : (center j+scale j β’ a)-(center j+scale j β’ b) = scale j β’ (a-b) := by
module
rw [heq,norm_smul,Real.norm_of_nonneg (hscale j).le,β dist_eq_norm]
exact mul_le_mul_of_nonneg_left hab.le (hscale j).le
have hh := polar_normal_nearby_centers hN hu
(quotientMap (center j+scale j β’ a)) (quotientMap (center j+scale j β’ b))
hc (mul_pos (hscale j) (hr i)) (he i) (hm j a ha i) hdist
(Ξ½ j a) (Ξ½ j b) (ht j a ha i) (ht j b hb i)
rw [dist_eq_norm]
exact hh.trans_lt hi
end CubicTorus
end
end
section
noncomputable section
open MeasureTheory Set Filter
open scoped ENNReal NNReal Topology RealInnerProductSpace symmDiff
namespace CubicTorus
theorem isMinimizerAt_singular_cone_obstruction {V : β} (hV : V β Ioo 0 1)
{E : Set Torus} (hE : MeasurableSet E) (hmin : IsMinimizerAt V E)
(hcenter : quotientMap cubeCenter β frontier (openRepresentative E))
(hsingular : Β¬ C1RegularPoint (openRepresentative E) (quotientMap cubeCenter))
{ΞΌ : FiniteMeasure NormalBundle} (hΞΌ : IsNormalMeasure E ΞΌ)
(r : β β β) (hr : β i, 0 < r i) (hrlim : Tendsto r atTop (π 0)) :
β (A : Set Cover) (ΞΈ : β), MeasurableSet A β§ 0 < ΞΈ β§
(β b : β, 0 < b β b β€ 1 β
coverLocalPerimeter A (Metric.closedBall (0 : Cover) b) = ENNReal.ofReal (ΞΈ*b^2)) β§
(β B : Set Cover, MeasurableSet B β β a b : β, 0 < a β a < b β b β€ 1 β
A β B β Metric.ball (0 : Cover) a β
coverLocalPerimeter A (Metric.closedBall (0 : Cover) b) β€
coverLocalPerimeter B (Metric.closedBall (0 : Cover) b)) β§
(β t : β, 1 β€ t β βα΅ x β(volume : Measure Cover), x β Metric.ball (0 : Cover) 1 β
(tβ»ΒΉ β’ x β A β x β A)) β§
Β¬ (β n : Cover, βnβ = 1 β§
βα΅ x β(volume : Measure Cover), x β Metric.ball (0 : Cover) 1 β
(x β A β x β coverHalfspace n)) := by
obtain β¨H,hHβ© := isMinimizerAt_centered_multiplier hV hE hmin hcenter hΞΌ
have hc := cubeCenter_closedBall_interior (by norm_num : (1/4 : β) < 1/2)
obtain β¨ΞΈ',hΞΈ'0,hdensβ© := exists_density_of_cmc_monotone (by norm_num : (0 : β) < 1/4)
(fun _ _ β¦ ENNReal.toReal_nonneg) (weakCMC_cellBallMass_monotone hΞΌ hH cubeCenter hc)
obtain β¨A,Ξ½,ΞΈ,Ο,U,hA,hΞΈ0,hΟ,hU,hconv,hΞ½,hm,hflux,hradβ© :=
isMinimizerAt_paired_blowup hV hE hmin hΞΌ hH cubeCenter
(by norm_num : (0 : β) < 1/4) hc r hr hrlim
have hrl : Tendsto (fun i β¦ r (Ο i)) atTop (π 0) := hrlim.comp hΟ.tendsto_atTop
have heΞΈ : ΞΈ'=ΞΈ := by
have hh := blowup_limit_ball_mass cubeCenter (fun i β¦ r (Ο i)) (fun i β¦ hr _)
(hrl.mono_left hU) hdens hΞ½ (by norm_num : (0 : β) < 1) (by norm_num : (1 : β) < 2)
have hh' := hm 1 (by norm_num) (by norm_num)
norm_num at hh hh'
exact hh.symm.trans hh'
subst ΞΈ'
have hsp : Tendsto (fun t β¦
(spatialNormalMeasure ΞΌ : Measure Torus).real (Metric.ball (quotientMap cubeCenter) t)/t^2)
(π[>] 0) (π ΞΈ) := by
apply hdens.congr'
filter_upwards [mem_nhdsWithin_of_mem_nhds (Iio_mem_nhds (by norm_num : (0 : β) < 1/4))] with t ht
change cellBallMass ΞΌ cubeCenter t / t^2 = _
rw [cellBallMass_eq_spatialNormalMeasure ΞΌ cubeCenter t
((Metric.ball_subset_closedBall.trans (Metric.closedBall_subset_closedBall ht.le)).trans hc)]
have heq (b : β) (hb : 0 < b) (hb1 : b β€ 1) := isMinimizerAt_blowup_perimeter_eq
hV hE hmin hΞΌ hΞΈ0 hsp (fun i β¦ r (Ο i)) (fun i β¦ hr _) hrl hA hconv hm
(fun F hF hs β¦ (hflux F hF hs).2) hb hb1
have hnonflat : Β¬ β n : Cover, βnβ = 1 β§
βα΅ x β(volume : Measure Cover), x β Metric.ball (0 : Cover) 1 β
(x β A β x β coverHalfspace n) := by
rintro β¨n,hn,hAnβ©
have hΞΈΟ := flat_set_limit_density hA hn hAn hΞΈ0
(heq (1/2) (by norm_num) (by norm_num))
have hnormal := flat_set_limit_normal hA hn hAn
(by simpa only [hΞΈΟ] using hm (1/2) (by norm_num) (by norm_num))
(fun F hF hs β¦ (hflux F hF hs).2)
exact hsingular (isMinimizerAt_c1_of_flat_normal_blowup hV hE hmin hcenter hΞΌ
(fun i β¦ r (Ο i)) (fun i β¦ hr _) (hrl.mono_left hU) hΞ½ hn hnormal)
refine β¨A,ΞΈ,hA,isMinimizerAt_density_pos hV hE hmin hΞΌ hcenter hsp,heq,?_,?_,hnonflatβ©
Β· intro B hB a b ha hab hb1 hAB
exact isMinimizerAt_blowup_local_minimal hV hE hmin hΞΌ hsp (fun i β¦ r (Ο i))
(fun i β¦ hr _) hrl hA hB hconv ha hab (by linarith : b β€ 2)
(heq b (ha.trans hab) hb1) hAB
Β· intro t ht
exact radial_flux_cone_ae hA (fun Ο hΟ hs β¦
limit_set_radial_flux (fun F hF hFs β¦ (hflux F hF hFs).2) hrad hΟ hs) ht
end CubicTorus
end
end
section
noncomputable section
open MeasureTheory Set Filter
open scoped ENNReal NNReal Topology RealInnerProductSpace
namespace CubicTorus
lemma halfspace_line_invariance_orthogonal {B : Set Cover} {N n : Cover}
(hn : βnβ = 1)
(hmodel : βα΅ x : Cover βvolume, x β Metric.ball (0 : Cover) 1 β
(x β B β x β coverHalfspace N))
(htrans : β t : β, |t| β€ 1/4 β βα΅ x : Cover βvolume,
x β Metric.ball (0 : Cover) (1/4) β (x+t β’ n β B β x β B)) :
βͺN,nβ« = 0 := by
by_contra hne
let U : Set Cover := {x | βxβ < 1/4 β§ βͺN,xβ« * βͺN,x+(1/8 : β) β’ nβ« < 0}
have hU : IsOpen U := by
apply IsOpen.inter
Β· exact isOpen_lt continuous_norm continuous_const
Β· exact isOpen_lt (show Continuous (fun x : Cover β¦ βͺN,xβ« * βͺN,x+(1/8 : β) β’ nβ«) by fun_prop) continuous_const
have hx : (-(1/16 : β)) β’ n β U := by
constructor
Β· rw [norm_smul,Real.norm_eq_abs,hn,mul_one]
norm_num
Β· rw [β add_smul,inner_smul_right,inner_smul_right]
nlinarith [sq_pos_of_ne_zero hne]
have hshift := (measurePreserving_add_right (volume : Measure Cover) ((1/8 : β) β’ n)).quasiMeasurePreserving.ae hmodel
have hzero : volume U = 0 := by
rw [measure_eq_zero_iff_ae_notMem]
filter_upwards [hmodel,hshift,htrans (1/8) (by norm_num)] with x hx hs ht hxu
have hxsmall : x β Metric.ball (0 : Cover) (1/4) := by
simpa only [Metric.mem_ball,dist_zero_right] using hxu.1
have hxlarge : x β Metric.ball (0 : Cover) 1 :=
Metric.ball_subset_ball (by norm_num : (1/4 : β) β€ 1) hxsmall
have hslarge : x+(1/8 : β) β’ n β Metric.ball (0 : Cover) 1 := by
rw [Metric.mem_ball,dist_zero_right]
have hh := norm_add_le x ((1/8 : β) β’ n)
rw [norm_smul,Real.norm_eq_abs,hn,mul_one] at hh
norm_num at hh
exact hh.trans_lt (by linarith [hxu.1])
have he := (hs hslarge).symm.trans ((ht hxsmall).trans (hx hxlarge))
change (βͺN,x+(1/8 : β) β’ nβ« < 0) β (βͺN,xβ« < 0) at he
have hp : 0 β€ βͺN,xβ« * βͺN,x+(1/8 : β) β’ nβ« := by
by_cases h : βͺN,xβ« < 0
Β· exact mul_nonneg_of_nonpos_of_nonpos h.le (he.mpr h).le
Β· exact mul_nonneg (le_of_not_gt h) (le_of_not_gt (mt he.mp h))
exact (not_lt_of_ge hp) hxu.2
exact hU.measure_ne_zero volume β¨_,hxβ© hzero
lemma radial_cone_secondary_halfspace_orthogonal {A B : Set Cover}
(hA : MeasurableSet A) (hB : MeasurableSet B)
(hcone : β t : β, 1 β€ t β βα΅ x β(volume : Measure Cover), x β Metric.ball (0 : Cover) 1 β
(tβ»ΒΉ β’ x β A β x β A))
(p : Cover) (hp : βpβ < 1) (hp0 : p β 0)
(r : β β β) (hr : β i, 0 < r i) (hrlim : Tendsto r atTop (π 0))
(hconv : Tendsto (fun i β¦ β« x in Metric.closedBall (0 : Cover) 1,
|A.indicator (fun _ β¦ (1 : β)) (p+r i β’ x)-B.indicator (fun _ β¦ (1 : β)) x|)
atTop (π 0)) {N : Cover}
(hmodel : βα΅ x : Cover βvolume, x β Metric.ball (0 : Cover) 1 β
(x β B β x β coverHalfspace N)) : βͺN,pβ« = 0 := by
have hn : ββpββ»ΒΉ β’ pβ = 1 := by
rw [norm_smul,Real.norm_of_nonneg (inv_nonneg.mpr (norm_nonneg p)),
inv_mul_cancelβ (norm_ne_zero_iff.mpr hp0)]
have hh := halfspace_line_invariance_orthogonal hn hmodel
(radial_cone_secondary_unit_line hA hB hcone p hp hp0 r hr hrlim hconv)
rw [inner_smul_right] at hh
exact (mul_eq_zero.mp hh).resolve_left (inv_ne_zero (norm_ne_zero_iff.mpr hp0))
end CubicTorus
end
end
section
noncomputable section
open MeasureTheory Set Filter
open scoped ENNReal NNReal Topology RealInnerProductSpace symmDiff
namespace CubicTorus
theorem isMinimizerAt_singular_dimension_reduction {V : β} (hV : V β Ioo 0 1)
{E : Set Torus} (hE : MeasurableSet E) (hmin : IsMinimizerAt V E)
(hcenter : quotientMap cubeCenter β frontier (openRepresentative E))
(hsingular : Β¬ C1RegularPoint (openRepresentative E) (quotientMap cubeCenter))
(r : β β β) (hr : β i, 0 < r i) (hrlim : Tendsto r atTop (π 0)) :
β (A : Set Cover) (ΞΈ : β), MeasurableSet A β§ 0 < ΞΈ β§
(β b : β, 0 < b β b β€ 1 β
coverLocalPerimeter A (Metric.closedBall (0 : Cover) b) = ENNReal.ofReal (ΞΈ*b^2)) β§
(β B : Set Cover, MeasurableSet B β β a b : β, 0 < a β a < b β b β€ 1 β
A β B β Metric.ball (0 : Cover) a β
coverLocalPerimeter A (Metric.closedBall (0 : Cover) b) β€
coverLocalPerimeter B (Metric.closedBall (0 : Cover) b)) β§
(β t : β, 1 β€ t β βα΅ x β(volume : Measure Cover), x β Metric.ball (0 : Cover) 1 β
(tβ»ΒΉ β’ x β A β x β A)) β§
Β¬ (β n : Cover, βnβ = 1 β§
βα΅ x β(volume : Measure Cover), x β Metric.ball (0 : Cover) 1 β
(x β A β x β coverHalfspace n)) β§
β p : Cover, βpβ < 1 β p β 0 β
(β Ξ΄ : β, 0 < Ξ΄ β 0 < volume.real (A β© Metric.ball p Ξ΄) β§
0 < volume.real (AαΆ β© Metric.ball p Ξ΄)) β
β s : β β β, (β i, 0 < s i) β (β i, s i β€ 1) β Tendsto s atTop (π 0) β
β (B : Set Cover) (Ο : β β β) (n : Cover),
MeasurableSet B β§ StrictMono Ο β§ βnβ = 1 β§ βͺn,pβ« = 0 β§
Tendsto (fun i β¦ β« x in Metric.closedBall (0 : Cover) 1,
|A.indicator (fun _ β¦ (1 : β)) (p+s (Ο i) β’ x)-B.indicator (fun _ β¦ (1 : β)) x|)
atTop (π 0) β§
βα΅ x : Cover βvolume, x β Metric.ball (0 : Cover) 1 β
(x β B β x β coverHalfspace n) := by
obtain β¨ΞΌ,hΞΌβ© := exists_normalMeasure hE hmin.1.2.ne
obtain β¨H,hHβ© := isMinimizerAt_centered_multiplier hV hE hmin hcenter hΞΌ
have hc := cubeCenter_closedBall_interior (by norm_num : (1/4 : β) < 1/2)
obtain β¨ΞΈ',hΞΈ'0,hdensβ© := exists_density_of_cmc_monotone (by norm_num : (0 : β) < 1/4)
(fun _ _ β¦ ENNReal.toReal_nonneg) (weakCMC_cellBallMass_monotone hΞΌ hH cubeCenter hc)
obtain β¨A,Ξ½,ΞΈ,Ο,U,hA,hΞΈ0,hΟ,hU,hconv,hΞ½,hm,hflux,hradβ© :=
isMinimizerAt_paired_blowup hV hE hmin hΞΌ hH cubeCenter
(by norm_num : (0 : β) < 1/4) hc r hr hrlim
have hrl : Tendsto (fun i β¦ r (Ο i)) atTop (π 0) := hrlim.comp hΟ.tendsto_atTop
have heΞΈ : ΞΈ'=ΞΈ := by
have hh := blowup_limit_ball_mass cubeCenter (fun i β¦ r (Ο i)) (fun i β¦ hr _)
(hrl.mono_left hU) hdens hΞ½ (by norm_num : (0 : β) < 1) (by norm_num : (1 : β) < 2)
have hh' := hm 1 (by norm_num) (by norm_num)
norm_num at hh hh'
exact hh.symm.trans hh'
subst ΞΈ'
have hsp : Tendsto (fun t β¦
(spatialNormalMeasure ΞΌ : Measure Torus).real (Metric.ball (quotientMap cubeCenter) t)/t^2)
(π[>] 0) (π ΞΈ) := by
apply hdens.congr'
filter_upwards [mem_nhdsWithin_of_mem_nhds (Iio_mem_nhds (by norm_num : (0 : β) < 1/4))] with t ht
change cellBallMass ΞΌ cubeCenter t / t^2 = _
rw [cellBallMass_eq_spatialNormalMeasure ΞΌ cubeCenter t
((Metric.ball_subset_closedBall.trans (Metric.closedBall_subset_closedBall ht.le)).trans hc)]
have heq (b : β) (hb : 0 < b) (hb1 : b β€ 1) := isMinimizerAt_blowup_perimeter_eq
hV hE hmin hΞΌ hΞΈ0 hsp (fun i β¦ r (Ο i)) (fun i β¦ hr _) hrl hA hconv hm
(fun F hF hs β¦ (hflux F hF hs).2) hb hb1
have hnonflat : Β¬ β n : Cover, βnβ = 1 β§
βα΅ x β(volume : Measure Cover), x β Metric.ball (0 : Cover) 1 β
(x β A β x β coverHalfspace n) := by
rintro β¨n,hn,hAnβ©
have hΞΈΟ := flat_set_limit_density hA hn hAn hΞΈ0
(heq (1/2) (by norm_num) (by norm_num))
have hnormal := flat_set_limit_normal hA hn hAn
(by simpa only [hΞΈΟ] using hm (1/2) (by norm_num) (by norm_num))
(fun F hF hs β¦ (hflux F hF hs).2)
exact hsingular (isMinimizerAt_c1_of_flat_normal_blowup hV hE hmin hcenter hΞΌ
(fun i β¦ r (Ο i)) (fun i β¦ hr _) (hrl.mono_left hU) hΞ½ hn hnormal)
have hcone (t : β) (ht : 1 β€ t) := radial_flux_cone_ae hA (fun Ο hΟ hs β¦
limit_set_radial_flux (fun F hF hFs β¦ (hflux F hF hFs).2) hrad hΟ hs) ht
refine β¨A,ΞΈ,hA,isMinimizerAt_density_pos hV hE hmin hΞΌ hcenter hsp,heq,?_,hcone,hnonflat,?_β©
Β· intro B hB a b ha hab hb1 hAB
exact isMinimizerAt_blowup_local_minimal hV hE hmin hΞΌ hsp (fun i β¦ r (Ο i))
(fun i β¦ hr _) hrl hA hB hconv ha hab (by linarith : b β€ 2)
(heq b (ha.trans hab) hb1) hAB
Β· intro p hp hp0 hboundary s hs hs1 hslim
obtain β¨B,Ο,n,hB,hΟ,hn,hBc,hmodel,_,_,_β© := actual_secondary_halfspace hV hE hmin hΞΌ hH
(fun i β¦ r (Ο i)) (fun i β¦ hr _) hrl hA hconv hcone hflux p hp hp0 hboundary s hs hs1 hslim
have horth := radial_cone_secondary_halfspace_orthogonal hA hB hcone p hp hp0
(fun i β¦ s (Ο i)) (fun i β¦ hs _) (hslim.comp hΟ.tendsto_atTop) hBc hmodel
exact β¨B,Ο,n,hB,hΟ,hn,horth,hBc,hmodelβ©
end CubicTorus
end
end
section
noncomputable section
open MeasureTheory Set Filter
open scoped ENNReal Topology RealInnerProductSpace
namespace CubicTorus.UpperComparison
def fieldMove (F : Cover β Cover) (t : β) (x : Cover) : Cover := x + t β’ F x
def fieldMoveDeriv (F : Cover β Cover) (t : β) (x : Cover) : Cover βL[β] Cover :=
ContinuousLinearMap.id β Cover + t β’ fderiv β F x
def derivativeEntry (F : Cover β Cover) (x : Cover) (i j : Fin 3) : β :=
(fderiv β F x (EuclideanSpace.single j 1)) i
def secondJacobian (F : Cover β Cover) (x : Cover) : β :=
derivativeEntry F x 0 0 * derivativeEntry F x 1 1 +
derivativeEntry F x 0 0 * derivativeEntry F x 2 2 +
derivativeEntry F x 1 1 * derivativeEntry F x 2 2 -
derivativeEntry F x 0 1 * derivativeEntry F x 1 0 -
derivativeEntry F x 0 2 * derivativeEntry F x 2 0 -
derivativeEntry F x 1 2 * derivativeEntry F x 2 1
def thirdJacobian (F : Cover β Cover) (x : Cover) : β :=
Matrix.det (Matrix.of (derivativeEntry F x))
lemma fieldMove_hasFDerivAt {F : Cover β Cover} {x : Cover}
(hf : DifferentiableAt β F x) (t : β) :
HasFDerivAt (fieldMove F t) (fieldMoveDeriv F t x) x :=
(hasFDerivAt_id x).add (hf.hasFDerivAt.const_smul t)
lemma fieldMoveDeriv_det (F : Cover β Cover) (t : β) (x : Cover) :
(fieldMoveDeriv F t x).det =
1 + t * divergence F x + t ^ 2 * secondJacobian F x + t ^ 3 * thirdJacobian F x := by
let B := (EuclideanSpace.basisFun (Fin 3) β).toBasis
have he : LinearMap.toMatrix B B (fieldMoveDeriv F t x).toLinearMap =
Matrix.of (fun j k β¦ (if j = k then 1 else 0) + t * derivativeEntry F x j k) := by
ext j k
rw [LinearMap.toMatrix_apply]
change (EuclideanSpace.basisFun (Fin 3) β).toBasis.repr
(fieldMoveDeriv F t x ((EuclideanSpace.basisFun (Fin 3) β) k)) j = _
rw [OrthonormalBasis.coe_toBasis_repr_apply, EuclideanSpace.basisFun_repr,
EuclideanSpace.basisFun_apply]
simp [fieldMoveDeriv, derivativeEntry]
rw [ContinuousLinearMap.det, β LinearMap.det_toMatrix B, he]
simp [Matrix.det_fin_three, divergence, secondJacobian, thirdJacobian,
derivativeEntry, Fin.sum_univ_succ]
ring
lemma fieldMove_injective {F : Cover β Cover} (hf : Differentiable β F)
{M : NNReal} (hM : β x, βfderiv β F xββ β€ M) {t : β}
(ht : |t| * M < 1) : Function.Injective (fieldMove F t) := by
have hLip := lipschitzWith_of_nnnorm_fderiv_le hf hM
intro x y hxy
have he : x - y = (-t) β’ (F x - F y) := by
calc
x - y = fieldMove F t x - fieldMove F t y - t β’ (F x - F y) := by
unfold fieldMove
module
_ = _ := by rw [hxy, sub_self, zero_sub, neg_smul]
have hn : βx - yβ = |t| * βF x - F yβ := by
rw [he, norm_smul, Real.norm_eq_abs, abs_neg]
have hh : βx - yβ β€ |t| * M * βx - yβ := by
calc
βx - yβ = |t| * βF x - F yβ := hn
_ β€ |t| * ((M : β) * βx - yβ) :=
mul_le_mul_of_nonneg_left (hLip.norm_sub_le x y) (abs_nonneg _)
_ = _ := by ring
have hz : βx - yβ = 0 := by nlinarith [norm_nonneg (x-y)]
exact sub_eq_zero.1 (norm_eq_zero.1 hz)
lemma continuous_derivativeEntry {F : Cover β Cover} (hf : ContDiff β (β€ : ββ) F)
(i j : Fin 3) : Continuous (fun x β¦ derivativeEntry F x i j) := by
exact (EuclideanSpace.proj i : Cover βL[β] β).continuous.comp
((hf.continuous_fderiv (by simp)).clm_apply continuous_const)
lemma continuous_secondJacobian {F : Cover β Cover} (hf : ContDiff β (β€ : ββ) F) :
Continuous (secondJacobian F) := by
unfold secondJacobian
exact (((((continuous_derivativeEntry hf 0 0).mul (continuous_derivativeEntry hf 1 1)).add
((continuous_derivativeEntry hf 0 0).mul (continuous_derivativeEntry hf 2 2))).add
((continuous_derivativeEntry hf 1 1).mul (continuous_derivativeEntry hf 2 2))).sub
((continuous_derivativeEntry hf 0 1).mul (continuous_derivativeEntry hf 1 0))).sub
((continuous_derivativeEntry hf 0 2).mul (continuous_derivativeEntry hf 2 0)) |>.sub
((continuous_derivativeEntry hf 1 2).mul (continuous_derivativeEntry hf 2 1))
lemma continuous_thirdJacobian {F : Cover β Cover} (hf : ContDiff β (β€ : ββ) F) :
Continuous (thirdJacobian F) := by
exact (continuous_pi fun i β¦ continuous_pi fun j β¦
continuous_derivativeEntry hf i j).matrix_det
lemma integral_det_fieldMove {F : Cover β Cover} (hf : ContDiff β (β€ : ββ) F)
{A : Set Cover} (hAc : IsCompact (closure A)) (t : β) :
(β« x in A, (fieldMoveDeriv F t x).det) = volume.real A +
t * (β« x in A, divergence F x) + t ^ 2 * (β« x in A, secondJacobian F x) +
t ^ 3 * (β« x in A, thirdJacobian F x) := by
have h1 : IntegrableOn (divergence F) (closure A) volume :=
(continuous_divergence hf).continuousOn.integrableOn_compact hAc
have h2 : IntegrableOn (secondJacobian F) (closure A) volume :=
(continuous_secondJacobian hf).continuousOn.integrableOn_compact hAc
have h3 : IntegrableOn (thirdJacobian F) (closure A) volume :=
(continuous_thirdJacobian hf).continuousOn.integrableOn_compact hAc
have hΞΌ : volume A < β€ := (measure_mono subset_closure).trans_lt hAc.measure_lt_top
have hc : IntegrableOn (fun _ : Cover β¦ (1 : β)) A :=
integrableOn_const hΞΌ.ne
simp_rw [fieldMoveDeriv_det]
rw [integral_add (ΞΌ := volume.restrict A) (f := fun x β¦ 1 + t * divergence F x + t^2 * secondJacobian F x)
(g := fun x β¦ t^3 * thirdJacobian F x)
(by simpa only [IntegrableOn, Pi.add_def] using
((hc.add ((h1.mono_set subset_closure).const_mul t)).add
((h2.mono_set subset_closure).const_mul (t^2))))
((h3.mono_set subset_closure).const_mul (t^3)),
integral_add (ΞΌ := volume.restrict A) (f := fun x β¦ 1 + t * divergence F x)
(g := fun x β¦ t^2 * secondJacobian F x)
(by simpa only [IntegrableOn, Pi.add_def] using
(hc.add ((h1.mono_set subset_closure).const_mul t)))
((h2.mono_set subset_closure).const_mul (t^2)),
integral_add (ΞΌ := volume.restrict A) (f := fun _ : Cover β¦ (1 : β)) (g := fun x β¦ t * divergence F x)
hc ((h1.mono_set subset_closure).const_mul t)]
simp only [integral_const_mul, setIntegral_const, smul_eq_mul, mul_one]
end CubicTorus.UpperComparison
namespace CubicTorus.UpperComparison
open Filter
open scoped Topology
lemma integral_det_fieldMove_le_volume {F : Cover β Cover}
(hf : ContDiff β (β€ : ββ) F) {M : NNReal} (hM : β x, βfderiv β F xββ β€ M)
{t : β} (ht : |t| * M < 1) {A : Set Cover} (hA : MeasurableSet A)
(hAc : IsCompact (closure A)) :
(β« x in A, (fieldMoveDeriv F t x).det) β€ volume.real (fieldMove F t '' A) := by
have hdet : Continuous (fun x β¦ (fieldMoveDeriv F t x).det) :=
ContinuousLinearMap.continuous_det.comp
(continuous_const.add ((hf.continuous_fderiv (by simp)).const_smul t))
have hi : IntegrableOn (fun x β¦ (fieldMoveDeriv F t x).det) A volume :=
(hdet.continuousOn.integrableOn_compact hAc).mono_set subset_closure
have hj := integral_image_eq_integral_abs_det_fderiv_smul volume hA
(fun x (_ : x β A) β¦
(fieldMove_hasFDerivAt (hf.differentiable (by simp) x) t).hasFDerivWithinAt)
(fieldMove_injective (hf.differentiable (by simp)) hM ht).injOn (fun _ β¦ (1 : β))
simp only [setIntegral_const, smul_eq_mul, mul_one] at hj
rw [hj]
exact integral_mono hi hi.abs (fun x β¦ le_abs_self _)
lemma realVolume_cover_ball (c : Cover) {r : β} (hr : 0 β€ r) :
volume.real (Metric.ball c r) = r ^ 3 * (Real.pi * 4 / 3) := by
simp only [Measure.real_def, EuclideanSpace.volume_ball_fin_three, ENNReal.toReal_mul,
ENNReal.toReal_pow, ENNReal.toReal_ofReal hr, ENNReal.toReal_ofReal (by positivity :
0 β€ Real.pi * 4 / 3)]
lemma fieldMove_ball_subset {F : Cover β Cover} (hF : β x, βF xβ β€ 1)
{t : β} (ht : 0 β€ t) (c : Cover) (r : β) :
fieldMove F t '' Metric.ball c r β Metric.ball c (r + t) := by
rintro _ β¨x, hx, rflβ©
have hh : βt β’ F xβ β€ t := by
simpa only [norm_smul, Real.norm_eq_abs, abs_of_nonneg ht, mul_one] using
mul_le_mul_of_nonneg_left (hF x) ht
rw [Metric.mem_ball, dist_eq_norm] at hx β’
calc
βfieldMove F t x - cβ = β(x - c) + t β’ F xβ := by congr 1; unfold fieldMove; abel
_ β€ βx - cβ + βt β’ F xβ := norm_add_le _ _
_ < r + t := add_lt_add_of_lt_of_le hx hh
lemma flux_cover_ball_le {F : Cover β Cover}
(hf : ContDiff β (β€ : ββ) F) (hp : β n x, F (x + latticeVector n) = F x)
(hF : β x, βF xβ β€ 1) (c : Cover) {r : β} (hr : 0 < r) :
(β« x in Metric.ball c r, divergence F x) β€ 4 * Real.pi * r ^ 2 := by
obtain β¨M, hM0, hboundβ© := periodic_bounded (hf.continuous_fderiv (by simp))
(fderiv_periodic hp)
let MN : NNReal := β¨M, hM0β©
have hM : β x, βfderiv β F xββ β€ MN := fun x β¦ by exact_mod_cast hbound x
let P := β« x in Metric.ball c r, divergence F x
let Q := β« x in Metric.ball c r, secondJacobian F x
let R := β« x in Metric.ball c r, thirdJacobian F x
have hind : β t : β, 0 < t β t < 1 / (M + 1) β
P + t * Q + t ^ 2 * R β€
4 * Real.pi * r ^ 2 + 4 * Real.pi * r * t + (Real.pi * 4 / 3) * t ^ 2 := by
intro t ht0 ht1
have htM : |t| * MN < 1 := by
rw [abs_of_pos ht0]
change t * M < 1
have hh := (lt_div_iffβ (by positivity : 0 < M+1)).1 ht1
nlinarith
have hv := integral_det_fieldMove_le_volume hf hM htM (A := Metric.ball c r) Metric.isOpen_ball.measurableSet
(Metric.isBounded_ball.isCompact_closure)
have hv' : volume.real (fieldMove F t '' Metric.ball c r) β€
volume.real (Metric.ball c (r + t)) := by
exact ENNReal.toReal_mono measure_ball_ne_top (measure_mono (fieldMove_ball_subset hF ht0.le c r))
rw [integral_det_fieldMove hf Metric.isBounded_ball.isCompact_closure,
realVolume_cover_ball c hr.le] at hv
rw [realVolume_cover_ball c (by linarith)] at hv'
have hh := hv.trans hv'
change r^3 * (Real.pi*4/3) + t*P + t^2*Q + t^3*R β€ _ at hh
apply (mul_le_mul_iff_rightβ ht0).mp
nlinarith
have htendβ : Tendsto (fun t : β β¦ P + t * Q + t^2 * R) (π[>] (0 : β)) (π P) := by
have hh : Continuous (fun t : β β¦ P + t * Q + t^2 * R) := by fun_prop
simpa using (hh.tendsto 0).mono_left (nhdsWithin_le_nhds (s := Ioi (0 : β)))
have htendβ : Tendsto (fun t : β β¦ 4 * Real.pi * r^2 + 4 * Real.pi * r * t +
(Real.pi * 4 / 3) * t^2) (π[>] (0 : β)) (π (4 * Real.pi * r^2)) := by
have hh : Continuous (fun t : β β¦ 4 * Real.pi * r^2 + 4 * Real.pi * r * t +
(Real.pi * 4 / 3) * t^2) := by fun_prop
simpa using (hh.tendsto 0).mono_left (nhdsWithin_le_nhds (s := Ioi (0 : β)))
apply le_of_tendsto_of_tendsto htendβ htendβ
filter_upwards [self_mem_nhdsWithin,
(eventually_lt_nhds (by positivity : (0 : β) < 1 / (M+1))).filter_mono nhdsWithin_le_nhds]
with t ht0 ht1
exact hind t ht0 ht1
end CubicTorus.UpperComparison
namespace CubicTorus.UpperComparison
def cubeCenter : Cover := WithLp.toLp 2 (fun _ β¦ (1 / 2 : β))
def cubeBall (r : β) : Set Torus := representative β»ΒΉ' Metric.ball cubeCenter r
lemma measurableSet_cubeBall (r : β) : MeasurableSet (cubeBall r) :=
Metric.isOpen_ball.measurableSet.preimage measurable_representative
lemma coverBall_subset_cube {r : β} (hr : r β€ 1 / 2) :
Metric.ball cubeCenter r β fundamentalCube := by
intro x hx i
have hx' : βx - cubeCenterβ < r := by
simpa only [Metric.mem_ball, dist_eq_norm] using hx
have hb := (PiLp.norm_apply_le (x - cubeCenter) i).trans_lt hx'
change βx i - (1 / 2 : β)β < r at hb
rw [Real.norm_eq_abs, abs_lt] at hb
constructor <;> linarith
lemma cubeBall_lift {r : β} (hr : r β€ 1 / 2) :
fundamentalCube β© quotientMap β»ΒΉ' cubeBall r = Metric.ball cubeCenter r := by
ext x
constructor
Β· rintro β¨hx, hballβ©
change representative (quotientMap x) β Metric.ball cubeCenter r at hball
rwa [representative_quotientMap_of_mem hx] at hball
Β· intro hx
have hm := coverBall_subset_cube hr hx
refine β¨hm, ?_β©
change representative (quotientMap x) β Metric.ball cubeCenter r
rwa [representative_quotientMap_of_mem hm]
lemma volume_cubeBall {r : β} (hr0 : 0 β€ r) (hr1 : r β€ 1 / 2) :
torusVolume (cubeBall r) = ENNReal.ofReal (r ^ 3 * (Real.pi * 4 / 3)) := by
rw [torusVolume, Measure.map_apply measurable_quotientMap (measurableSet_cubeBall r),
Measure.restrict_apply (measurable_quotientMap (measurableSet_cubeBall r)), inter_comm,
cubeBall_lift hr1, EuclideanSpace.volume_ball_fin_three]
rw [ENNReal.ofReal_mul (by positivity : 0 β€ r^3), ENNReal.ofReal_pow hr0]
lemma perimeter_cubeBall_le {r : β} (hr0 : 0 < r) (hr1 : r β€ 1 / 2) :
perimeter (cubeBall r) β€ ENNReal.ofReal (4 * Real.pi * r ^ 2) := by
unfold perimeter
refine iSup_le fun F β¦ iSup_le fun hF β¦ ?_
rw [cubeBall_lift hr1]
exact ENNReal.ofReal_le_ofReal (flux_cover_ball_le hF.1 hF.2.1 hF.2.2 cubeCenter hr0)
lemma finitePerimeter_cubeBall {r : β} (hr0 : 0 < r) (hr1 : r β€ 1 / 2) :
FinitePerimeter (cubeBall r) :=
β¨(measurableSet_cubeBall r).nullMeasurableSet,
(perimeter_cubeBall_le hr0 hr1).trans_lt ENNReal.ofReal_lt_topβ©
end CubicTorus.UpperComparison
namespace CubicTorus.UpperComparison
lemma dist_representative_cubeCenter (x : Torus) :
dist (representative x) cubeCenter = dist x (quotientMap cubeCenter) := by
rw [dist_eq_norm, dist_eq_norm, PiLp.norm_eq_of_L2, PiLp.norm_eq_of_L2]
congr 1
apply Finset.sum_congr rfl
intro i _
congr 1
have hi := ((AddCircle.equivIco (1 : β) 0) (x i)).property
have hxi : β((representative x i - (1 / 2 : β)) : AddCircle (1 : β))β =
|representative x i - (1 / 2 : β)| := by
apply (AddCircle.norm_coe_eq_abs_iff (1 : β) (by norm_num)).2
change |((AddCircle.equivIco (1 : β) 0) (x i) : β) - (1 / 2 : β)| β€ |(1 : β)| / 2
norm_num only [abs_one] at *
rw [abs_le]
constructor <;> linarith [hi.1, hi.2]
have hq : ((representative x i : β) : AddCircle (1 : β)) = x i := by
exact congrArg (fun z : Torus β¦ z i) (quotientMap_representative x)
simpa only [PiLp.sub_apply, cubeCenter, quotientMap, PiLp.toLp_apply,
Real.norm_eq_abs, map_sub, hq] using hxi.symm
lemma cubeBall_eq_metricBall (r : β) :
cubeBall r = Metric.ball (quotientMap cubeCenter) r := by
ext x
change dist (representative x) cubeCenter < r β dist x (quotientMap cubeCenter) < r
rw [dist_representative_cubeCenter]
lemma centeredBall_eq_cubeBall_preimage (r : β) :
Metric.ball (0 : Torus) r =
(fun x β¦ x + quotientMap cubeCenter) β»ΒΉ' cubeBall r := by
rw [cubeBall_eq_metricBall]
ext x
simp only [mem_preimage, Metric.mem_ball, dist_eq_norm, add_sub_cancel_right, sub_zero]
lemma volume_centeredBall {r : β} (hr0 : 0 β€ r) (hr1 : r β€ 1 / 2) :
torusVolume (Metric.ball (0 : Torus) r) = ENNReal.ofReal (r ^ 3 * (Real.pi * 4 / 3)) := by
rw [centeredBall_eq_cubeBall_preimage,
volume_translation (measurableSet_cubeBall r).nullMeasurableSet, volume_cubeBall hr0 hr1]
lemma perimeter_centeredBall_le {r : β} (hr0 : 0 < r) (hr1 : r β€ 1 / 2) :
perimeter (Metric.ball (0 : Torus) r) β€ ENNReal.ofReal (4 * Real.pi * r ^ 2) := by
rw [centeredBall_eq_cubeBall_preimage,
perimeter_translation (measurableSet_cubeBall r).nullMeasurableSet]
exact perimeter_cubeBall_le hr0 hr1
end CubicTorus.UpperComparison
namespace CubicTorus.UpperComparison
abbrev Plane := EuclideanSpace β (Fin 2)
def discProjection : Cover βL[β] Plane :=
LinearMap.toContinuousLinearMap
{ toFun := fun x β¦ WithLp.toLp 2 (fun i β¦ x i.succ)
map_add' := by intro x y; rfl
map_smul' := by intro a x; rfl }
@[simp] lemma discProjection_apply (x : Cover) (i : Fin 2) :
discProjection x i = x i.succ := rfl
lemma discProjection_norm_le (x : Cover) : βdiscProjection xβ β€ βxβ := by
have hh : βdiscProjection xβ ^ 2 β€ βxβ ^ 2 := by
rw [PiLp.norm_sq_eq_of_L2, PiLp.norm_sq_eq_of_L2]
simp only [discProjection_apply, Fin.sum_univ_succ]
nlinarith [sq_nonneg βx 0β]
nlinarith [norm_nonneg (discProjection x), norm_nonneg x]
def tubeSplit : Cover βα΅ β Γ Plane :=
(MeasurableEquiv.toLp 2 (Fin 3 β β)).symm.trans
((MeasurableEquiv.piFinSuccAbove (fun _ : Fin 3 β¦ β) 0).trans
(MeasurableEquiv.prodCongr (MeasurableEquiv.refl β)
(MeasurableEquiv.toLp 2 (Fin 2 β β))))
@[simp] lemma tubeSplit_apply (x : Cover) : tubeSplit x = (x 0, discProjection x) := by
rfl
@[simp] lemma tubeSplit_symm_zero (p : β Γ Plane) : (tubeSplit.symm p) 0 = p.1 := by
simp [tubeSplit, MeasurableEquiv.piFinSuccAbove, MeasurableEquiv.prodCongr]
@[simp] lemma tubeSplit_symm_succ (p : β Γ Plane) (i : Fin 2) :
(tubeSplit.symm p) i.succ = p.2 i := by
simp [tubeSplit, MeasurableEquiv.piFinSuccAbove, MeasurableEquiv.prodCongr]
lemma continuous_tubeSplit : Continuous tubeSplit := by
change Continuous (fun x : Cover β¦ (x 0, discProjection x))
fun_prop
lemma continuous_tubeSplit_symm : Continuous tubeSplit.symm := by
apply (PiLp.homeomorph 2 (fun _ : Fin 3 β¦ β)).continuous_symm.comp
apply continuous_pi
intro i
change Continuous (fun p : β Γ Plane β¦ tubeSplit.symm p i)
refine Fin.cases ?_ (fun j β¦ ?_) i
Β· simpa only [tubeSplit_symm_zero] using (continuous_fst : Continuous (fun p : β Γ Plane β¦ p.1))
Β· simp_rw [tubeSplit_symm_succ]
fun_prop
lemma tubeSplit_measurePreserving : MeasurePreserving tubeSplit := by
exact ((MeasurePreserving.id volume).prod (PiLp.volume_preserving_toLp (Fin 2))).comp
((volume_preserving_piFinSuccAbove (fun _ : Fin 3 β¦ β) 0).comp
(PiLp.volume_preserving_ofLp (Fin 3)))
def discCenter : Plane := WithLp.toLp 2 (fun _ β¦ (1 / 2 : β))
def coverTube (r : β) : Set Cover :=
tubeSplit β»ΒΉ' (Ico (0 : β) 1 ΓΛ’ Metric.ball discCenter r)
lemma measurableSet_coverTube (r : β) : MeasurableSet (coverTube r) :=
(measurableSet_Ico.prod Metric.isOpen_ball.measurableSet).preimage tubeSplit.measurable
lemma isCompact_closure_coverTube (r : β) : IsCompact (closure (coverTube r)) := by
have hc : IsCompact (tubeSplit.symm '' (Icc (0 : β) 1 ΓΛ’ Metric.closedBall discCenter r)) :=
(isCompact_Icc.prod (isCompact_closedBall discCenter r)).image continuous_tubeSplit_symm
apply hc.of_isClosed_subset isClosed_closure
apply closure_minimal _ hc.isClosed
intro x hx
refine β¨tubeSplit x, β¨β¨hx.1.1, hx.1.2.leβ©, Metric.ball_subset_closedBall hx.2β©, ?_β©
exact tubeSplit.symm_apply_apply x
lemma volume_coverTube {r : β} (hr : 0 β€ r) :
volume (coverTube r) = ENNReal.ofReal (Real.pi * r^2) := by
rw [coverTube, tubeSplit_measurePreserving.measure_preimage]
Β· rw [Measure.volume_eq_prod, Measure.prod_prod, Real.volume_Ico,
EuclideanSpace.volume_ball_fin_two]
simp only [sub_zero, ENNReal.ofReal_one, one_mul]
rw [ENNReal.ofReal_mul Real.pi_pos.le, ENNReal.ofReal_pow hr]
ring
Β· exact (measurableSet_Ico.prod Metric.isOpen_ball.measurableSet).nullMeasurableSet
lemma volumeReal_coverTube {r : β} (hr : 0 β€ r) :
volume.real (coverTube r) = Real.pi * r^2 := by
rw [Measure.real_def, volume_coverTube hr, ENNReal.toReal_ofReal (by positivity)]
def axialProjection : Cover βL[β] Cover :=
ContinuousLinearMap.id β Cover -
(EuclideanSpace.proj 0).smulRight (EuclideanSpace.single 0 1)
@[simp] lemma axialProjection_zero (x : Cover) : axialProjection x 0 = 0 := by
simp [axialProjection]
@[simp] lemma axialProjection_succ (x : Cover) (i : Fin 2) :
axialProjection x i.succ = x i.succ := by
simp [axialProjection]
lemma axialProjection_norm_le (x : Cover) : βaxialProjection xβ β€ βxβ := by
have hh : βaxialProjection xβ ^ 2 β€ βxβ ^ 2 := by
rw [PiLp.norm_sq_eq_of_L2, PiLp.norm_sq_eq_of_L2]
simp only [Fin.sum_univ_succ, axialProjection_zero, axialProjection_succ, norm_zero,
zero_pow (by omega : 2 β 0), zero_add]
nlinarith [sq_nonneg βx 0β]
nlinarith [norm_nonneg (axialProjection x), norm_nonneg x]
lemma fieldMove_coverTube_subset {F : Cover β Cover} (hF : β x, βF xβ β€ 1)
(hF0 : β x, F x 0 = 0) {t : β} (ht : 0 β€ t) (r : β) :
fieldMove F t '' coverTube r β coverTube (r+t) := by
rintro _ β¨x, hx, rflβ©
change (fieldMove F t x) 0 β Ico (0 : β) 1 β§
discProjection (fieldMove F t x) β Metric.ball discCenter (r+t)
constructor
Β· simpa [fieldMove, hF0 x] using hx.1
Β· have hb : βdiscProjection (F x)β β€ 1 := (discProjection_norm_le _).trans (hF x)
have hh : βt β’ discProjection (F x)β β€ t := by
simpa only [norm_smul, Real.norm_eq_abs, abs_of_nonneg ht, mul_one] using
mul_le_mul_of_nonneg_left hb ht
have hd : βdiscProjection x - discCenterβ < r := by
simpa only [tubeSplit_apply, Metric.mem_ball, dist_eq_norm] using hx.2
rw [Metric.mem_ball, dist_eq_norm]
calc
_ = β(discProjection x - discCenter) + t β’ discProjection (F x)β := by
congr 1
simp only [fieldMove, map_add, map_smul]
abel
_ β€ βdiscProjection x - discCenterβ + βt β’ discProjection (F x)β := norm_add_le _ _
_ < r+t := add_lt_add_of_lt_of_le hd hh
end CubicTorus.UpperComparison
namespace CubicTorus.UpperComparison
lemma tubeSplit_symm_line (u : β) (y : Plane) :
tubeSplit.symm (u,y) = tubeSplit.symm (0,y) + u β’ EuclideanSpace.single 0 1 := by
ext i
refine Fin.cases ?_ (fun j β¦ ?_) i
Β· simp
Β· simp
lemma hasDerivAt_tubeLine (u : β) (y : Plane) :
HasDerivAt (fun t : β β¦ tubeSplit.symm (t,y)) (EuclideanSpace.single 0 1) u := by
have he : (fun t : β β¦ tubeSplit.symm (t,y)) =
(fun t : β β¦ tubeSplit.symm (0,y) + t β’ EuclideanSpace.single 0 1) :=
funext (fun t β¦ tubeSplit_symm_line t y)
rw [he]
simpa! only [Pi.add_def, zero_add, one_smul, id_eq] using
(hasDerivAt_const u (tubeSplit.symm (0,y))).add
((hasDerivAt_id u).smul_const (EuclideanSpace.single 0 1))
lemma axial_integral_eq_zero {F : Cover β Cover} (hf : ContDiff β (β€ : ββ) F)
(hp : β n x, F (x + latticeVector n) = F x) (y : Plane) :
(β« u in Ico (0 : β) 1, derivativeEntry F (tubeSplit.symm (u,y)) 0 0) = 0 := by
have hd (u : β) : HasDerivAt (fun u β¦ F (tubeSplit.symm (u,y)) 0)
(derivativeEntry F (tubeSplit.symm (u,y)) 0 0) u := by
exact (EuclideanSpace.proj 0).hasFDerivAt.comp_hasDerivAt u
(((hf.differentiable (by simp)).differentiableAt.hasFDerivAt).comp_hasDerivAt u
(hasDerivAt_tubeLine u y))
have hc : Continuous (fun u β¦ derivativeEntry F (tubeSplit.symm (u,y)) 0 0) :=
(continuous_derivativeEntry hf 0 0).comp (continuous_tubeSplit_symm.comp (by fun_prop))
rw [integral_Ico_eq_integral_Ioc, β intervalIntegral.integral_of_le (by norm_num : (0 : β) β€ 1),
intervalIntegral.integral_eq_sub_of_hasDerivAt (fun u _ β¦ hd u) (hc.intervalIntegrable 0 1)]
have he : tubeSplit.symm (1,y) = tubeSplit.symm (0,y) + latticeVector (Pi.single 0 1) := by
rw [tubeSplit_symm_line 1 y]
congr 1
ext i
simp [latticeVector, Pi.single_apply]
rw [he, hp]
simp
lemma integral_axial_coverTube {F : Cover β Cover} (hf : ContDiff β (β€ : ββ) F)
(hp : β n x, F (x + latticeVector n) = F x) (r : β) :
(β« x in coverTube r, derivativeEntry F x 0 0) = 0 := by
let g : β Γ Plane β β := fun p β¦ derivativeEntry F (tubeSplit.symm p) 0 0
have hint : IntegrableOn (fun x β¦ derivativeEntry F x 0 0) (coverTube r) :=
((continuous_derivativeEntry hf 0 0).continuousOn.integrableOn_compact
(isCompact_closure_coverTube r)).mono_set subset_closure
have hi : IntegrableOn g (Ico (0 : β) 1 ΓΛ’ Metric.ball discCenter r) volume := by
rw [β tubeSplit_measurePreserving.integrableOn_comp_preimage tubeSplit.measurableEmbedding]
simpa only [g, Function.comp_def, tubeSplit.symm_apply_apply, coverTube] using hint
have he := tubeSplit_measurePreserving.setIntegral_preimage_emb tubeSplit.measurableEmbedding
g (Ico (0 : β) 1 ΓΛ’ Metric.ball discCenter r)
simp only [g, tubeSplit.symm_apply_apply] at he
change (β« x in coverTube r, derivativeEntry F x 0 0) = _ at he
rw [he]
change (β« p in Ico (0 : β) 1 ΓΛ’ Metric.ball discCenter r, g p) = 0
rw [Measure.volume_eq_prod, β Measure.prod_restrict]
rw [IntegrableOn, Measure.volume_eq_prod, β Measure.prod_restrict] at hi
rw [integral_prod_symm g hi]
simp only [g, axial_integral_eq_zero hf hp, integral_zero]
lemma divergence_axialProjection {x : Cover} {F : Cover β Cover} (hf : DifferentiableAt β F x) :
divergence (fun y β¦ axialProjection (F y)) x = divergence F x - derivativeEntry F x 0 0 := by
have hc : HasFDerivAt (fun y β¦ axialProjection (F y))
(axialProjection.comp (fderiv β F x)) x :=
axialProjection.hasFDerivAt.comp x hf.hasFDerivAt
simp only [divergence, hc.fderiv, ContinuousLinearMap.comp_apply, Fin.sum_univ_succ,
axialProjection_zero, axialProjection_succ, derivativeEntry]
ring
lemma flux_axialProjection {F : Cover β Cover} (hf : ContDiff β (β€ : ββ) F)
(hp : β n x, F (x + latticeVector n) = F x) (r : β) :
(β« x in coverTube r, divergence (fun y β¦ axialProjection (F y)) x) =
β« x in coverTube r, divergence F x := by
simp_rw [divergence_axialProjection ((hf.differentiable (by simp)).differentiableAt)]
rw [integral_sub]
Β· rw [integral_axial_coverTube hf hp, sub_zero]
Β· exact ((continuous_divergence hf).continuousOn.integrableOn_compact
(isCompact_closure_coverTube r)).mono_set subset_closure
Β· exact ((continuous_derivativeEntry hf 0 0).continuousOn.integrableOn_compact
(isCompact_closure_coverTube r)).mono_set subset_closure
end CubicTorus.UpperComparison
namespace CubicTorus.UpperComparison
open Filter
open scoped Topology
lemma flux_coverTube_axial_le {F : Cover β Cover}
(hf : ContDiff β (β€ : ββ) F) (hp : β n x, F (x + latticeVector n) = F x)
(hF : β x, βF xβ β€ 1) (hF0 : β x, F x 0 = 0) {r : β} (hr : 0 < r) :
(β« x in coverTube r, divergence F x) β€ 2 * Real.pi * r := by
obtain β¨M, hM0, hboundβ© := periodic_bounded (hf.continuous_fderiv (by simp))
(fderiv_periodic hp)
let MN : NNReal := β¨M, hM0β©
have hM : β x, βfderiv β F xββ β€ MN := fun x β¦ by exact_mod_cast hbound x
let P := β« x in coverTube r, divergence F x
let Q := β« x in coverTube r, secondJacobian F x
let R := β« x in coverTube r, thirdJacobian F x
have hind : β t : β, 0 < t β t < 1 / (M+1) β
P + t*Q + t^2*R β€ 2 * Real.pi * r + Real.pi*t := by
intro t ht0 ht1
have htM : |t| * MN < 1 := by
rw [abs_of_pos ht0]
change t*M < 1
have hh := (lt_div_iffβ (by positivity : 0 < M+1)).1 ht1
nlinarith
have hv := integral_det_fieldMove_le_volume hf hM htM
(measurableSet_coverTube r) (isCompact_closure_coverTube r)
have hfin : volume (coverTube (r+t)) β β€ := by
rw [volume_coverTube (by linarith)]
exact ENNReal.ofReal_ne_top
have hv' : volume.real (fieldMove F t '' coverTube r) β€ volume.real (coverTube (r+t)) :=
ENNReal.toReal_mono hfin (measure_mono (fieldMove_coverTube_subset hF hF0 ht0.le r))
rw [integral_det_fieldMove hf (isCompact_closure_coverTube r)] at hv
rw [volumeReal_coverTube (by linarith : 0 β€ r+t)] at hv'
rw [volumeReal_coverTube hr.le] at hv
change Real.pi*r^2 + t*P + t^2*Q + t^3*R β€ _ at hv
apply (mul_le_mul_iff_rightβ ht0).mp
nlinarith [hv.trans hv']
have htendβ : Tendsto (fun t : β β¦ P + t*Q + t^2*R) (π[>] (0 : β)) (π P) := by
have hh : Continuous (fun t : β β¦ P + t*Q + t^2*R) := by fun_prop
simpa using (hh.tendsto 0).mono_left (nhdsWithin_le_nhds (s := Ioi (0 : β)))
have htendβ : Tendsto (fun t : β β¦ 2*Real.pi*r + Real.pi*t)
(π[>] (0 : β)) (π (2*Real.pi*r)) := by
have hh : Continuous (fun t : β β¦ 2*Real.pi*r + Real.pi*t) := by fun_prop
simpa using (hh.tendsto 0).mono_left (nhdsWithin_le_nhds (s := Ioi (0 : β)))
apply le_of_tendsto_of_tendsto htendβ htendβ
filter_upwards [self_mem_nhdsWithin,
(eventually_lt_nhds (by positivity : (0 : β) < 1/(M+1))).filter_mono nhdsWithin_le_nhds]
with t ht0 ht1
exact hind t ht0 ht1
lemma flux_coverTube_le {F : Cover β Cover} (hF : AdmissibleField F)
{r : β} (hr : 0 < r) :
(β« x in coverTube r, divergence F x) β€ 2 * Real.pi * r := by
rw [β flux_axialProjection hF.1 hF.2.1 r]
apply flux_coverTube_axial_le (axialProjection.contDiff.comp hF.1)
Β· intro n x
change axialProjection (F (x + latticeVector n)) = axialProjection (F x)
rw [hF.2.1]
Β· intro x
exact (axialProjection_norm_le _).trans (hF.2.2 x)
Β· intro x
exact axialProjection_zero (F x)
Β· exact hr
end CubicTorus.UpperComparison
namespace CubicTorus.UpperComparison
lemma representative_mem_cube (x : Torus) : representative x β fundamentalCube := by
intro i
exact β¨((AddCircle.equivIco (1 : β) 0) (x i)).property.1,
by simpa! only [representative, PiLp.toLp_apply, zero_add] using
((AddCircle.equivIco (1 : β) 0) (x i)).property.2β©
lemma coverTube_subset_cube {r : β} (hr : r β€ 1/2) : coverTube r β fundamentalCube := by
intro x hx i
refine Fin.cases ?_ (fun j β¦ ?_) i
Β· exact hx.1
Β· have hnorm : βdiscProjection x - discCenterβ < r := by
simpa only [tubeSplit_apply, Metric.mem_ball, dist_eq_norm] using hx.2
have hi := (PiLp.norm_apply_le (discProjection x - discCenter) j).trans_lt hnorm
change |x j.succ - (1/2 : β)| < r at hi
rw [abs_lt] at hi
constructor <;> linarith
def cubeTube (r : β) : Set Torus := representative β»ΒΉ' coverTube r
lemma measurableSet_cubeTube (r : β) : MeasurableSet (cubeTube r) :=
(measurableSet_coverTube r).preimage measurable_representative
lemma cubeTube_lift {r : β} (hr : r β€ 1/2) :
fundamentalCube β© quotientMap β»ΒΉ' cubeTube r = coverTube r := by
ext x
constructor
Β· rintro β¨hx, htβ©
change representative (quotientMap x) β coverTube r at ht
rwa [representative_quotientMap_of_mem hx] at ht
Β· intro ht
have hx := coverTube_subset_cube hr ht
refine β¨hx, ?_β©
change representative (quotientMap x) β coverTube r
rwa [representative_quotientMap_of_mem hx]
lemma volume_cubeTube {r : β} (hr0 : 0 β€ r) (hr1 : r β€ 1/2) :
torusVolume (cubeTube r) = ENNReal.ofReal (Real.pi * r^2) := by
rw [torusVolume, Measure.map_apply measurable_quotientMap (measurableSet_cubeTube r),
Measure.restrict_apply (measurable_quotientMap (measurableSet_cubeTube r)), inter_comm,
cubeTube_lift hr1, volume_coverTube hr0]
lemma perimeter_cubeTube_le {r : β} (hr0 : 0 < r) (hr1 : r β€ 1/2) :
perimeter (cubeTube r) β€ ENNReal.ofReal (2 * Real.pi * r) := by
unfold perimeter
refine iSup_le fun F β¦ iSup_le fun hF β¦ ?_
rw [cubeTube_lift hr1]
exact ENNReal.ofReal_le_ofReal (flux_coverTube_le hF hr0)
lemma norm_representative_sub_half (x : Torus) (i : Fin 3) :
βrepresentative x i - (1/2 : β)β = βx i - ((1/2 : β) : AddCircle (1 : β))β := by
have hi := representative_mem_cube x i
have hb : |representative x i - (1/2 : β)| β€ |(1 : β)|/2 := by
rw [abs_one, abs_le]
constructor <;> linarith [hi.1, hi.2]
have hn : β((representative x i - (1/2 : β)) : AddCircle (1 : β))β =
|representative x i - (1/2 : β)| :=
(AddCircle.norm_coe_eq_abs_iff (1 : β) (by norm_num)).2 hb
have hxi : ((representative x i : β) : AddCircle (1 : β)) = x i :=
congrArg (fun z : Torus β¦ z i) (quotientMap_representative x)
simpa only [map_sub, hxi, Real.norm_eq_abs] using hn.symm
def centeredTube (r : β) : Set Torus := {x | βx 1β^2 + βx 2β^2 < r^2}
lemma mem_cubeTube_iff {r : β} (hr : 0 β€ r) (x : Torus) :
x β cubeTube r β x - quotientMap cubeCenter β centeredTube r := by
change (representative x 0 β Ico (0 : β) 1 β§
discProjection (representative x) β Metric.ball discCenter r) β _
simp only [mem_Ico]
rw [and_iff_right (representative_mem_cube x 0), Metric.mem_ball, dist_eq_norm,
β sq_lt_sqβ (norm_nonneg _) hr, PiLp.norm_sq_eq_of_L2]
simp only [Fin.sum_univ_two, PiLp.sub_apply, discProjection_apply, discCenter,
norm_representative_sub_half]
rfl
lemma centeredTube_eq_cubeTube_preimage {r : β} (hr : 0 β€ r) :
centeredTube r = (fun x β¦ x + quotientMap cubeCenter) β»ΒΉ' cubeTube r := by
ext x
simp only [mem_preimage, mem_cubeTube_iff hr, add_sub_cancel_right]
lemma measurableSet_centeredTube (r : β) : MeasurableSet (centeredTube r) := by
apply measurableSet_lt
Β· fun_prop
Β· fun_prop
lemma volume_centeredTube {r : β} (hr0 : 0 β€ r) (hr1 : r β€ 1/2) :
torusVolume (centeredTube r) = ENNReal.ofReal (Real.pi * r^2) := by
rw [centeredTube_eq_cubeTube_preimage hr0,
volume_translation (measurableSet_cubeTube r).nullMeasurableSet,
volume_cubeTube hr0 hr1]
lemma perimeter_centeredTube_le {r : β} (hr0 : 0 < r) (hr1 : r β€ 1/2) :
perimeter (centeredTube r) β€ ENNReal.ofReal (2 * Real.pi * r) := by
rw [centeredTube_eq_cubeTube_preimage hr0.le,
perimeter_translation (measurableSet_cubeTube r).nullMeasurableSet]
exact perimeter_cubeTube_le hr0 hr1
end CubicTorus.UpperComparison
namespace CubicTorus.UpperComparison
lemma cube_cuberoot (x : β) (hx : 0 β€ x) : (x ^ (1 / 3 : β)) ^ 3 = x := by
simpa only [one_div, Nat.cast_ofNat] using
Real.rpow_inv_natCast_pow hx (by norm_num : (3 : β) β 0)
lemma cube_two_thirds (x : β) (hx : 0 β€ x) : (x ^ (2 / 3 : β)) ^ 3 = x ^ 2 := by
rw [β Real.rpow_natCast, β Real.rpow_mul hx]
norm_num
lemma canonicalBall_radius_properties {V : β} (hV : V β Ioc 0 (1/2 : β)) :
0 < (3*V/(4*Real.pi))^(1/3 : β) β§
(3*V/(4*Real.pi))^(1/3 : β) β€ 1/2 β§
((3*V/(4*Real.pi))^(1/3 : β))^3 * (Real.pi*4/3) = V := by
have hp := Real.pi_pos
have hVpos := hV.1
have hv : 0 < 3*V/(4*Real.pi) := by positivity
have hc := cube_cuberoot _ hv.le
refine β¨Real.rpow_pos_of_pos hv _, ?_, ?_β©
Β· have hbound : 3*V/(4*Real.pi) β€ (1/2 : β)^3 := by
apply (div_le_iffβ (by positivity : 0 < 4*Real.pi)).2
nlinarith [Real.pi_gt_three, hV.2]
have hp3 : Odd (3 : β) := by decide
apply hp3.strictMono_pow.le_iff_le.1
rw [hc]
exact hbound
Β· rw [hc]
field_simp
lemma ballArea_formula {V : β} (hV : 0 β€ V) :
4*Real.pi*((3*V/(4*Real.pi))^(1/3 : β))^2 =
(36*Real.pi)^(1/3 : β)*V^(2/3 : β) := by
apply (show Odd (3 : β) by decide).pow_injective
have hc := cube_cuberoot (3*V/(4*Real.pi)) (by positivity)
have hpc := cube_cuberoot (36*Real.pi) (by positivity)
have hvc := cube_two_thirds V hV
dsimp only
calc
(4*Real.pi*((3*V/(4*Real.pi))^(1/3 : β))^2)^3 =
(4*Real.pi)^3 * (((3*V/(4*Real.pi))^(1/3 : β))^3)^2 := by ring
_ = 36*Real.pi*V^2 := by rw [hc]; field_simp; ring
_ = _ := by rw [mul_pow, hpc, hvc]
lemma volume_canonicalBall {V : β} (hV : V β Ioc 0 (1/2 : β)) :
torusVolume (canonicalBall V) = ENNReal.ofReal V := by
obtain β¨hr0, hr1, heqβ© := canonicalBall_radius_properties hV
change torusVolume (Metric.ball (0 : Torus) _) = _
rw [volume_centeredBall hr0.le hr1, heq]
lemma perimeter_canonicalBall_le {V : β} (hV : V β Ioc 0 (1/2 : β)) :
perimeter (canonicalBall V) β€
ENNReal.ofReal ((36*Real.pi)^(1/3 : β)*V^(2/3 : β)) := by
obtain β¨hr0, hr1, _β© := canonicalBall_radius_properties hV
exact (perimeter_centeredBall_le hr0 hr1).trans_eq
(congrArg ENNReal.ofReal (ballArea_formula hV.1.le))
lemma finitePerimeter_canonicalBall {V : β} (hV : V β Ioc 0 (1/2 : β)) :
FinitePerimeter (canonicalBall V) :=
β¨Metric.isOpen_ball.measurableSet.nullMeasurableSet,
(perimeter_canonicalBall_le hV).trans_lt ENNReal.ofReal_lt_topβ©
lemma canonicalTube_radius_properties {V : β} (hV : V β Ioc 0 (1/2 : β)) :
0 < Real.sqrt (V/Real.pi) β§ Real.sqrt (V/Real.pi) β€ 1/2 β§
Real.pi * (Real.sqrt (V/Real.pi))^2 = V := by
have hp := Real.pi_pos
have hVpos := hV.1
refine β¨Real.sqrt_pos.2 (div_pos hV.1 hp), ?_, ?_β©
Β· apply Real.sqrt_le_iff.2
refine β¨by norm_num, ?_β©
apply (div_le_iffβ hp).2
nlinarith [Real.pi_gt_three, hV.2]
Β· rw [Real.sq_sqrt (by positivity)]
field_simp
lemma tubeArea_formula {V : β} (hV : 0 β€ V) :
2*Real.pi*Real.sqrt (V/Real.pi) = 2*Real.sqrt (Real.pi*V) := by
have hp := Real.pi_pos
have heq : Real.pi*Real.sqrt (V/Real.pi) = Real.sqrt (Real.pi*V) := by
apply (sq_eq_sqβ (by positivity) (by positivity)).1
rw [mul_pow, Real.sq_sqrt (by positivity), Real.sq_sqrt (by positivity)]
field_simp
calc
_ = 2*(Real.pi*Real.sqrt (V/Real.pi)) := by ring
_ = _ := by rw [heq]
lemma volume_canonicalTube {V : β} (hV : V β Ioc 0 (1/2 : β)) :
torusVolume (canonicalTube V) = ENNReal.ofReal V := by
obtain β¨hr0, hr1, heqβ© := canonicalTube_radius_properties hV
change torusVolume (centeredTube _) = _
rw [volume_centeredTube hr0.le hr1, heq]
lemma perimeter_canonicalTube_le {V : β} (hV : V β Ioc 0 (1/2 : β)) :
perimeter (canonicalTube V) β€ ENNReal.ofReal (2*Real.sqrt (Real.pi*V)) := by
obtain β¨hr0, hr1, _β© := canonicalTube_radius_properties hV
exact (perimeter_centeredTube_le hr0 hr1).trans_eq
(congrArg ENNReal.ofReal (tubeArea_formula hV.1.le))
lemma finitePerimeter_canonicalTube {V : β} (hV : V β Ioc 0 (1/2 : β)) :
FinitePerimeter (canonicalTube V) :=
β¨(measurableSet_centeredTube _).nullMeasurableSet,
(perimeter_canonicalTube_le hV).trans_lt ENNReal.ofReal_lt_topβ©
theorem isMinimizerAt_perimeter_le_envelope {V : β} (hV : V β Ioc 0 (1/2 : β))
{E : Set Torus} (hE : IsMinimizerAt V E) :
perimeter E β€ ENNReal.ofReal
(min ((36*Real.pi)^(1/3 : β)*V^(2/3 : β))
(min (2*Real.sqrt (Real.pi*V)) 2)) := by
rw [ENNReal.ofReal_min, ENNReal.ofReal_min]
refine le_min ?_ (le_min ?_ ?_)
Β· exact (hE.2.2 _ (finitePerimeter_canonicalBall hV) (volume_canonicalBall hV)).trans
(perimeter_canonicalBall_le hV)
Β· exact (hE.2.2 _ (finitePerimeter_canonicalTube hV) (volume_canonicalTube hV)).trans
(perimeter_canonicalTube_le hV)
Β· have hVI : V β Icc (0 : β) 1 := β¨hV.1.le, by linarith [hV.2]β©
simpa only [ENNReal.ofReal_ofNat] using
(hE.2.2 _ (finitePerimeter_stripe hVI) (volume_stripe hVI)).trans (perimeter_stripe_le hVI)
theorem isMinimizerAt_perimeter_le_candidateProfile {V : β} (hV : V β Ioo 0 1)
{E : Set Torus} (hE : IsMinimizerAt V E) :
perimeter E β€ ENNReal.ofReal (candidateProfile V) := by
by_cases hhalf : V β€ 1/2
Β· simpa only [candidateProfile, min_eq_left (by linarith : V β€ 1-V)] using
isMinimizerAt_perimeter_le_envelope β¨hV.1, hhalfβ© hE
Β· have hvol : 1-V β Ioc (0 : β) (1/2) := β¨by linarith [hV.2], by linarithβ©
have hcompl := (isMinimizerAt_compl β¨hV.1.le, hV.2.leβ©).2 hE
have hh := isMinimizerAt_perimeter_le_envelope hvol hcompl
simpa only [perimeter_compl hE.1.1, candidateProfile,
min_eq_right (by linarith : 1-V β€ V)] using hh
end CubicTorus.UpperComparison
namespace CubicTorus
theorem isMinimizerAt_perimeter_le_candidateProfile {V : β} (hV : V β Ioo 0 1)
{E : Set Torus} (hE : IsMinimizerAt V E) :
perimeter E β€ ENNReal.ofReal (candidateProfile V) :=
UpperComparison.isMinimizerAt_perimeter_le_candidateProfile hV hE
end CubicTorus
end
end
end
end OAI
import Mathlib
import OAI.Geometry.CubicTorus.Regularity.BVFlatBlowupRegular
namespace OAI
section
section
noncomputable section
open MeasureTheory Set Filter
open scoped ENNReal NNReal Topology RealInnerProductSpace
namespace CubicTorus
lemma polar_normal_rescaled_equicontinuity {ΞΌ : FiniteMeasure NormalBundle}
{N : Torus β Cover} (hN : Measurable N)
(hu : βα΅ x β(spatialNormalMeasure ΞΌ : Measure Torus), βN xβ = 1)
(S : β β Set Cover) (Ξ½ : β β Cover β Cover) (center : β β Cover)
(scale : β β β) (hscale : β j, 0 < scale j)
{c : β} (hc : 0 < c) (r e : β β β)
(hr : β i, 0 < r i) (he : β i, 0 β€ e i) (helim : Tendsto e atTop (π 0))
(hm : β j a, a β S j β β i, c*(scale j*r i)^2 β€
(spatialNormalMeasure ΞΌ : Measure Torus).real
(Metric.ball (quotientMap (center j+scale j β’ a)) (scale j*r i)))
(ht : β j a, a β S j β β i,
(β« x in Metric.closedBall (quotientMap (center j+scale j β’ a)) (2*(scale j*r i)),
βN x-Ξ½ j aβ^2 β(spatialNormalMeasure ΞΌ : Measure Torus)) β€
(scale j*r i)^2*(e i)^2) :
β Ξ΅ : β, 0 < Ξ΅ β β Ξ΄ : β, 0 < Ξ΄ β§
β j a, a β S j β β b, b β S j β dist a b < Ξ΄ β dist (Ξ½ j a) (Ξ½ j b) < Ξ΅ := by
intro Ξ΅ hΞ΅
have hl : Tendsto (fun i β¦ (2/Real.sqrt c)*e i) atTop (π 0) := by
simpa only [mul_zero] using helim.const_mul (2/Real.sqrt c)
obtain β¨i,hiβ© := (hl.eventually (Iio_mem_nhds hΞ΅)).exists
refine β¨r i,hr i,?_β©
intro j a ha b hb hab
have hdist : dist (quotientMap (center j+scale j β’ a))
(quotientMap (center j+scale j β’ b)) β€ scale j*r i := by
rw [dist_eq_norm,β quotientMap_sub]
apply (norm_quotientMap_le _).trans
have heq : (center j+scale j β’ a)-(center j+scale j β’ b) = scale j β’ (a-b) := by
module
rw [heq,norm_smul,Real.norm_of_nonneg (hscale j).le,β dist_eq_norm]
exact mul_le_mul_of_nonneg_left hab.le (hscale j).le
have hh := polar_normal_nearby_centers hN hu
(quotientMap (center j+scale j β’ a)) (quotientMap (center j+scale j β’ b))
hc (mul_pos (hscale j) (hr i)) (he i) (hm j a ha i) hdist
(Ξ½ j a) (Ξ½ j b) (ht j a ha i) (ht j b hb i)
rw [dist_eq_norm]
exact hh.trans_lt hi
end CubicTorus
end
end
section
noncomputable section
open MeasureTheory Set Filter
open scoped ENNReal NNReal Topology RealInnerProductSpace symmDiff
namespace CubicTorus
theorem isMinimizerAt_singular_cone_obstruction {V : β} (hV : V β Ioo 0 1)
{E : Set Torus} (hE : MeasurableSet E) (hmin : IsMinimizerAt V E)
(hcenter : quotientMap cubeCenter β frontier (openRepresentative E))
(hsingular : Β¬ C1RegularPoint (openRepresentative E) (quotientMap cubeCenter))
{ΞΌ : FiniteMeasure NormalBundle} (hΞΌ : IsNormalMeasure E ΞΌ)
(r : β β β) (hr : β i, 0 < r i) (hrlim : Tendsto r atTop (π 0)) :
β (A : Set Cover) (ΞΈ : β), MeasurableSet A β§ 0 < ΞΈ β§
(β b : β, 0 < b β b β€ 1 β
coverLocalPerimeter A (Metric.closedBall (0 : Cover) b) = ENNReal.ofReal (ΞΈ*b^2)) β§
(β B : Set Cover, MeasurableSet B β β a b : β, 0 < a β a < b β b β€ 1 β
A β B β Metric.ball (0 : Cover) a β
coverLocalPerimeter A (Metric.closedBall (0 : Cover) b) β€
coverLocalPerimeter B (Metric.closedBall (0 : Cover) b)) β§
(β t : β, 1 β€ t β βα΅ x β(volume : Measure Cover), x β Metric.ball (0 : Cover) 1 β
(tβ»ΒΉ β’ x β A β x β A)) β§
Β¬ (β n : Cover, βnβ = 1 β§
βα΅ x β(volume : Measure Cover), x β Metric.ball (0 : Cover) 1 β
(x β A β x β coverHalfspace n)) := by
obtain β¨H,hHβ© := isMinimizerAt_centered_multiplier hV hE hmin hcenter hΞΌ
have hc := cubeCenter_closedBall_interior (by norm_num : (1/4 : β) < 1/2)
obtain β¨ΞΈ',hΞΈ'0,hdensβ© := exists_density_of_cmc_monotone (by norm_num : (0 : β) < 1/4)
(fun _ _ β¦ ENNReal.toReal_nonneg) (weakCMC_cellBallMass_monotone hΞΌ hH cubeCenter hc)
obtain β¨A,Ξ½,ΞΈ,Ο,U,hA,hΞΈ0,hΟ,hU,hconv,hΞ½,hm,hflux,hradβ© :=
isMinimizerAt_paired_blowup hV hE hmin hΞΌ hH cubeCenter
(by norm_num : (0 : β) < 1/4) hc r hr hrlim
have hrl : Tendsto (fun i β¦ r (Ο i)) atTop (π 0) := hrlim.comp hΟ.tendsto_atTop
have heΞΈ : ΞΈ'=ΞΈ := by
have hh := blowup_limit_ball_mass cubeCenter (fun i β¦ r (Ο i)) (fun i β¦ hr _)
(hrl.mono_left hU) hdens hΞ½ (by norm_num : (0 : β) < 1) (by norm_num : (1 : β) < 2)
have hh' := hm 1 (by norm_num) (by norm_num)
norm_num at hh hh'
exact hh.symm.trans hh'
subst ΞΈ'
have hsp : Tendsto (fun t β¦
(spatialNormalMeasure ΞΌ : Measure Torus).real (Metric.ball (quotientMap cubeCenter) t)/t^2)
(π[>] 0) (π ΞΈ) := by
apply hdens.congr'