Lean 4 Β· 37
declarations statementsfull
| import Mathlib | |
| import OAI.Geometry.CubicTorus.Regularity.NormalCoverMap | |
| namespace OAI | |
| section | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| theorem coverC1BoundaryAt_physical_patch {A : Set Cover} (hA : MeasurableSet A) | |
| {p : Cover} (hp : p β coverEssentialBoundary A) (hC : CoverC1BoundaryAt A p) : | |
| β (a n : Cover) (g : Plane β β) (R : β) (U : Set Cover), | |
| βnβ = 1 β§ LipschitzWith (1/4) g β§ 0 < R β§ | |
| (β y β Metric.closedBall (0 : Plane) R, ContDiffAt β 1 g y) β§ | |
| IsOpen U β§ p β U β§ U β Metric.ball a R β§ | |
| (β x β U, x β coverEssentialBoundary A β | |
| normalGraph n g (normalPlaneCoordinates n (x-a))=x-a) β§ | |
| ((βα΅ x : Cover βvolume, x β U β (x β A β graphSignedHeight a n g x < 0)) β¨ | |
| (βα΅ x : Cover βvolume, x β U β (x β A β 0 < graphSignedHeight a n g x))) := by | |
| obtain β¨n,b,s,G,hn,hs,hb,hG,hGc,_,hcoverβ© := hC | |
| let a := p+s β’ b | |
| let g := dilatedGraph s G | |
| let R := 3*s/(544*8192) | |
| let r := s/(544*16384) | |
| have hR : 0 < R := by dsimp only [R]; positivity | |
| have hr : 0 < r := by dsimp only [r]; positivity | |
| have hg := dilatedGraph_lipschitz hG hs | |
| have hc (y : Plane) (hy : y β Metric.closedBall (0 : Plane) R) : ContDiffAt β 1 g y := by | |
| apply dilatedGraph_contDiffAt | |
| apply hGc.contDiffAt | |
| apply Metric.isOpen_ball.mem_nhds | |
| simp only [Metric.mem_ball,dist_zero_right,norm_smul,Real.norm_of_nonneg (inv_pos.mpr hs).le] | |
| apply (inv_mul_lt_iffβ hs).mpr | |
| have hh : βyβ β€ R := by simpa using hy | |
| dsimp only [R] at hh | |
| nlinarith | |
| have hba : Metric.ball p r β Metric.ball a R := by | |
| intro x hx | |
| have hd := dist_triangle x p a | |
| have hpa : dist p a = s*βbβ := by simp only [a,dist_eq_norm,sub_add_eq_sub_sub,sub_self,zero_sub,norm_neg,norm_smul,Real.norm_of_nonneg hs.le] | |
| rw [hpa] at hd | |
| have hx' : dist x p < r := hx | |
| change dist x a < R | |
| dsimp only [R,r] at hx' β’ | |
| nlinarith [mul_le_mul_of_nonneg_left hb hs.le] | |
| have hbd (x : Cover) (hx : x β Metric.ball p r) : | |
| x β coverEssentialBoundary A β normalGraph n g (normalPlaneCoordinates n (x-a))=x-a := by | |
| let z := sβ»ΒΉ β’ (x-p) | |
| have hz : z β Metric.ball (0 : Cover) (1/(544*8192)) := by | |
| simp only [Metric.mem_ball,dist_zero_right,z,norm_smul,Real.norm_of_nonneg (inv_pos.mpr hs).le] | |
| apply (inv_mul_lt_iffβ hs).mpr | |
| have hh : βx-pβ < r := by simpa only [Metric.mem_ball,dist_eq_norm] using hx | |
| dsimp only [r] at hh | |
| nlinarith | |
| have hxz : p+s β’ z=x := by simp only [z,smul_smul,mul_inv_cancelβ hs.ne',one_smul,add_sub_cancel] | |
| have hxa : x-a=s β’ (z-b) := by | |
| simp only [a,z,smul_sub,smul_smul,mul_inv_cancelβ hs.ne',one_smul] | |
| abel | |
| have he : normalGraph n g (normalPlaneCoordinates n (x-a)) = | |
| s β’ normalGraph n G (normalPlaneCoordinates n (z-b)) := by | |
| rw [normalGraph_dilated n G hs.ne',hxa,map_smul,smul_smul,inv_mul_cancelβ hs.ne',one_smul] | |
| rw [he,hxa,smul_right_inj hs.ne'] | |
| simpa only [hxz] using hcover z hz | |
| obtain β¨W,hW,hpW,hWU,hphaseβ© := cover_graph_boundary_phases hA a hn hg.continuous | |
| (Metric.isOpen_ball.mem_nhds (by simpa using hr)) hp (fun x hx hb β¦ (hbd x hx).mp hb) | |
| refine β¨a,n,g,R,W,hn,hg,hR,hc,hW,hpW,hWU.trans hba,fun x hx β¦ hbd x (hWU hx),?_β© | |
| exact hphase.symm | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| lemma tangentialDivergence_neg_normal (F : Cover β Cover) (x v : Cover) : | |
| tangentialDivergence F x (-v)=tangentialDivergence F x v := by | |
| simp only [tangentialDivergence,map_neg,inner_neg_neg] | |
| lemma reverseBlowupNormal_stationary (Ξ½ : FiniteMeasure BlowupNormalBundle) | |
| {F : Cover β Cover} (hF : ContDiff β (β€ : ββ) F) (_hs : HasCompactSupport F) : | |
| (β« z, tangentialDivergence F z.1 z.2 β(Ξ½.map reverseBlowupNormal : Measure BlowupNormalBundle)) = | |
| β« z, tangentialDivergence F z.1 z.2 β(Ξ½ : Measure BlowupNormalBundle) := by | |
| rw [FiniteMeasure.toMeasure_map,integral_map continuous_reverseBlowupNormal.measurable.aemeasurable | |
| (continuous_blowupTangentTest hF).aestronglyMeasurable] | |
| exact integral_congr_ae (ae_of_all _ fun z β¦ tangentialDivergence_neg_normal F z.1 z.2) | |
| lemma graph_superlevel_compl_ae {A U : Set Cover} (a : Cover) {n : Cover} (hn : βnβ=1) | |
| {g : Plane β β} (hg : Continuous g) | |
| (hgraph : βα΅ x : Cover βvolume, x β U β (x β A β graphHeightExtension a n g x < βͺn,x-aβ«)) : | |
| βα΅ x : Cover βvolume, x β U β (x β AαΆ β βͺn,x-aβ« < graphHeightExtension a n g x) := by | |
| have hnz : βα΅ x : Cover βvolume, βͺn,x-aβ« β graphHeightExtension a n g x := by | |
| rw [ae_iff] | |
| simpa only [not_not] using graph_trace_volume_zero a hn hg | |
| filter_upwards [hgraph,hnz] with x hx hne hU | |
| rw [mem_compl_iff,hx hU,not_lt] | |
| exact β¨fun h β¦ lt_of_le_of_ne h hne,le_of_ltβ© | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| theorem strict_C1_patch_stationary {A : Set Cover} (hA : MeasurableSet A) | |
| {Ξ½ : FiniteMeasure BlowupNormalBundle} | |
| (heq : coverLocalPerimeter A (Metric.closedBall (0 : Cover) 1) = | |
| (Ξ½ : Measure BlowupNormalBundle) {z | z.1 β Metric.closedBall (0 : Cover) 1}) | |
| (hflux : β F : Cover β Cover, ContDiff β (β€ : ββ) F β | |
| tsupport F β Metric.closedBall (0 : Cover) 1 β | |
| (β« z, tangentialDivergence F z.1 z.2 β(Ξ½ : Measure BlowupNormalBundle))=0 β§ | |
| (β« z, βͺ(z.2 : Cover),F z.1β« β(Ξ½ : Measure BlowupNormalBundle)) = β« x in A, divergence F x) | |
| {p : Cover} (hp : p β coverEssentialBoundary A) (hpn : βpβ < 1) | |
| (hC : CoverC1BoundaryAt A p) : | |
| β (a n : Cover) (g : Plane β β) (R Ο : β), | |
| βnβ=1 β§ LipschitzWith (1/4) g β§ 0<R β§ 0<Ο β§ | |
| (β y β Metric.closedBall (0 : Plane) R, ContDiffAt β 1 g y) β§ | |
| Metric.closedBall p (2*Ο) β Metric.ball a R β§ | |
| (β x β Metric.closedBall p (2*Ο), x β coverEssentialBoundary A β | |
| normalGraph n g (normalPlaneCoordinates n (x-a))=x-a) β§ | |
| β F : Cover β Cover, ContDiff β (β€ : ββ) F β | |
| tsupport F β Metric.closedBall p Ο β | |
| (β« y : Plane, tangentialDivergence F (a+normalGraph n g y) | |
| (graphSlopeNormal n (gradient g y))*βgraphAreaVector n g yβ)=0 := by | |
| obtain β¨a,n,g,R,U,hn,hg,hR,hc,hU,hpU,hUR,hbd,hphaseβ© := | |
| coverC1BoundaryAt_physical_patch hA hp hC | |
| have hpB : p β Metric.ball (0 : Cover) 1 := by simpa using hpn | |
| obtain β¨r,hr,hrsubβ© := Metric.mem_nhds_iff.mp | |
| ((hU.inter Metric.isOpen_ball).mem_nhds β¨hpU,hpBβ©) | |
| let Ο := r/3 | |
| have hΟ : 0<Ο := by dsimp only [Ο]; positivity | |
| have hsub : Metric.closedBall p (2*Ο) β U β© Metric.ball (0 : Cover) 1 := by | |
| apply Subset.trans _ hrsub | |
| exact Metric.closedBall_subset_ball (by dsimp only [Ο]; linarith) | |
| have hsubU := hsub.trans inter_subset_left | |
| have hsubO := hsub.trans (inter_subset_right.trans Metric.ball_subset_closedBall) | |
| refine β¨a,n,g,R,Ο,hn,hg,hR,hΟ,hc,hsubU.trans hUR, | |
| fun x hx β¦ hbd x (hsubU hx),?_β© | |
| intro F hF hsF | |
| let Ο := radialHeightCutoff p Ο | |
| have hΟ : ContDiff β (β€ : ββ) Ο := radialDensityWeight_contDiff _ _ _ | |
| have hsΟ : HasCompactSupport Ο := radialDensityWeight_hasCompactSupport (by positivity) (by positivity) | |
| have hΟs : tsupport Ο β Metric.closedBall p (2*Ο) := | |
| radialDensityWeight_tsupport (by positivity) (by positivity) | |
| have hΟU := hΟs.trans hsubU | |
| have hΟO := hΟs.trans hsubO | |
| have hΟR := hΟU.trans (hUR.trans Metric.ball_subset_closedBall) | |
| have hΟb (x : Cover) : Ο x β Icc 0 1 := | |
| β¨radialDensityWeight_nonneg _ _ _ _,radialDensityWeight_le_one _ _ _ _β© | |
| have hΟF (x : Cover) (hx : x β tsupport F) : Ο x=1 := radialHeightCutoff_one hΟ (hsF hx) | |
| have hFs : HasCompactSupport F := (isCompact_closedBall p Ο).of_isClosed_subset isClosed_closure hsF | |
| have hFO : tsupport F β Metric.closedBall (0 : Cover) 1 := | |
| hsF.trans ((Metric.closedBall_subset_closedBall (by linarith)).trans hsubO) | |
| have hdc (y : Plane) (hy : y β Metric.closedBall (0 : Plane) R) : ContinuousAt (fderiv β g) y := | |
| (hc y hy).continuousAt_fderiv (by norm_num) | |
| rcases hphase with hphase|hphase | |
| Β· have hp' : βα΅ x : Cover βvolume, x β U β (x β A β βͺn,x-aβ« < graphHeightExtension a n g x) := by | |
| filter_upwards [hphase] with x hx hU | |
| simpa only [graphSignedHeight,sub_neg] using hx hU | |
| exact blowup_C1graph_stationary hA a hn hg hdc hp' heq | |
| (fun F hF _ hs _ β¦ (hflux F hF hs).2) hΟ hsΟ hΟU hΟO hΟR hΟb | |
| hF hFs hΟF (hflux F hF hFO).1 | |
| Β· have hp' : βα΅ x : Cover βvolume, x β U β (x β A β graphHeightExtension a n g x < βͺn,x-aβ«) := by | |
| filter_upwards [hphase] with x hx hU | |
| simpa only [graphSignedHeight,sub_pos] using hx hU | |
| have hphase' := graph_superlevel_compl_ae a hn hg.continuous hp' | |
| have heq' := coverLocalPerimeter_normal_compl hA Metric.isClosed_closedBall.measurableSet heq | |
| have hflux' := fun (F : Cover β Cover) hF hFs hs hb β¦ reverseBlowupNormal_flux (F := F) hA | |
| (fun F hF _ hs _ β¦ (hflux F hF hs).2) hF hFs hs hb | |
| have hstat' : (β« z, tangentialDivergence F z.1 z.2 | |
| β(Ξ½.map reverseBlowupNormal : Measure BlowupNormalBundle))=0 := by | |
| rw [reverseBlowupNormal_stationary Ξ½ hF hFs] | |
| exact (hflux F hF hFO).1 | |
| exact blowup_C1graph_stationary hA.compl a hn hg hdc hphase' heq' hflux' | |
| hΟ hsΟ hΟU hΟO hΟR hΟb hF hFs hΟF hstat' | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| lemma normalPlaneCoordinates_tangent_graph {n : Cover} (hn : βnβ = 1) (q : Plane) : | |
| normalPlaneCoordinates n (tangentPart (graphSlopeNormal n q) n) = | |
| (βn-normalPlaneEmbedding n qββ»ΒΉ)^2 β’ q := by | |
| have hi : βͺgraphSlopeNormal n q,nβ« = βn-normalPlaneEmbedding n qββ»ΒΉ := by | |
| have hz : βͺnormalPlaneEmbedding n q,nβ«=0 := | |
| (real_inner_comm _ _).trans (normalPlaneEmbedding_inner hn q) | |
| rw [graphSlopeNormal,real_inner_smul_left,inner_sub_left,real_inner_self_eq_norm_sq,hn,hz] | |
| ring | |
| rw [tangentPart,hi] | |
| simp only [map_sub,map_smul,normalPlaneCoordinates_normal hn,graphSlopeNormal, | |
| normalPlaneCoordinates_embedding,zero_sub,smul_neg,neg_neg,smul_smul,pow_two] | |
| lemma graph_vertical_variation (a : Cover) {n : Cover} (hn : βnβ=1) | |
| (g : Plane β β) {Ο : Plane β β} (hΟ : Differentiable β Ο) (y : Plane) : | |
| tangentialDivergence (fun x β¦ graphHeightExtension a n Ο x β’ n) | |
| (a+normalGraph n g y) (graphSlopeNormal n (gradient g y)) * βgraphAreaVector n g yβ = | |
| fderiv β Ο y (gradient g y) / βgraphAreaVector n g yβ := by | |
| have hd : DifferentiableAt β (graphHeightExtension a n Ο) (a+normalGraph n g y) := | |
| ((hΟ _).comp _ ((normalPlaneCoordinates n).differentiableAt.comp _ | |
| (differentiableAt_id.sub_const a))) | |
| have hnz : βgraphAreaVector n g yβ β 0 := by | |
| have hh := graphSlopeVector_norm_ge hn (gradient g y) | |
| exact ne_of_gt (by change 0 < βn-normalPlaneEmbedding n (gradient g y)β; linarith) | |
| rw [tangentialDivergence_smul_const hd,graphHeightExtension_fderiv a n hΟ, | |
| ContinuousLinearMap.comp_apply,normalPlaneCoordinates_tangent_graph hn, | |
| add_sub_cancel_left,normalPlaneCoordinates_graph hn,map_smul] | |
| change (βgraphAreaVector n g yββ»ΒΉ)^2 * fderiv β Ο y (gradient g y) * | |
| βgraphAreaVector n g yβ = _ | |
| field_simp | |
| lemma radialHeightCutoff_eventually_one {p : Cover} {r : β} (hr : 0<r) | |
| {x : Cover} (hx : x β Metric.ball p r) : | |
| radialHeightCutoff p r =αΆ [π x] (fun _ β¦ (1 : β)) := by | |
| filter_upwards [Metric.isOpen_ball.mem_nhds hx] with z hz | |
| exact radialHeightCutoff_one hr (Metric.ball_subset_closedBall hz) | |
| theorem stationary_graph_weak_equation (a : Cover) {n : Cover} (hn : βnβ=1) | |
| (g : Plane β β) {p : Cover} {Ο : β} (hΟ : 0<Ο) | |
| (hstat : β F : Cover β Cover, ContDiff β (β€ : ββ) F β | |
| tsupport F β Metric.closedBall p Ο β | |
| (β« y : Plane, tangentialDivergence F (a+normalGraph n g y) | |
| (graphSlopeNormal n (gradient g y))*βgraphAreaVector n g yβ)=0) | |
| {Ο : Plane β β} (hΟ : ContDiff β (β€ : ββ) Ο) | |
| (hsΟ : β y β tsupport Ο, a+normalGraph n g y β Metric.ball p (Ο/2)) : | |
| (β« y : Plane, fderiv β Ο y (gradient g y)/βgraphAreaVector n g yβ)=0 := by | |
| let ΞΆ := radialHeightCutoff p (Ο/2) | |
| let f := graphHeightExtension a n Ο | |
| let F : Cover β Cover := fun x β¦ (ΞΆ x*f x) β’ n | |
| have hΞΆ : ContDiff β (β€ : ββ) ΞΆ := radialDensityWeight_contDiff _ _ _ | |
| have hf : ContDiff β (β€ : ββ) f := graphHeightExtension_contDiff a n hΟ | |
| have hF : ContDiff β (β€ : ββ) F := (hΞΆ.mul hf).smul contDiff_const | |
| have hsF : tsupport F β Metric.closedBall p Ο := by | |
| have hsΞΆ : tsupport ΞΆ β Metric.closedBall p Ο := by | |
| have hh := radialDensityWeight_tsupport (a := p) (r := 2*(Ο/2)) | |
| (Ξ΅ := 3*(Ο/2)^2) (by positivity) (by positivity) | |
| convert hh using 1 <;> congr 1; ring | |
| apply Subset.trans _ hsΞΆ | |
| apply closure_mono | |
| intro x hx | |
| by_contra hh | |
| exact hx (by simp [F,Function.notMem_support.mp hh]) | |
| have he (y : Plane) : tangentialDivergence F (a+normalGraph n g y) | |
| (graphSlopeNormal n (gradient g y))*βgraphAreaVector n g yβ = | |
| fderiv β Ο y (gradient g y)/βgraphAreaVector n g yβ := by | |
| let x := a+normalGraph n g y | |
| have hxy : normalPlaneCoordinates n (x-a)=y := by | |
| simp only [x,add_sub_cancel_left,normalPlaneCoordinates_graph hn] | |
| by_cases hy : y β tsupport Ο | |
| Β· have hz : ΞΆ =αΆ [π x] (fun _ β¦ (1 : β)) := | |
| radialHeightCutoff_eventually_one (by positivity) (hsΟ y hy) | |
| have hFe : F =αΆ [π x] (fun z β¦ f z β’ n) := by | |
| filter_upwards [hz] with z hz | |
| simp only [F,hz,one_mul] | |
| have hde := hFe.fderiv_eq (π := β) | |
| have hte : tangentialDivergence F x (graphSlopeNormal n (gradient g y)) = | |
| tangentialDivergence (fun z β¦ f z β’ n) x (graphSlopeNormal n (gradient g y)) := by | |
| simp only [tangentialDivergence,divergence,hde] | |
| change tangentialDivergence F x _ * _ = _ | |
| rw [hte] | |
| exact graph_vertical_variation a hn g (hΟ.differentiable (by simp)) y | |
| Β· have hΟ0 : Ο =αΆ [π y] (fun _ β¦ (0 : β)) := notMem_tsupport_iff_eventuallyEq.mp hy | |
| have hf0 : f =αΆ [π x] (fun _ β¦ (0 : β)) := by | |
| have hp := ((normalPlaneCoordinates n).continuous.comp (continuous_id.sub (continuous_const (y := a)))).tendsto x | |
| change Tendsto (fun z : Cover β¦ normalPlaneCoordinates n (z-a)) (π x) | |
| (π (normalPlaneCoordinates n (x-a))) at hp | |
| rw [hxy] at hp | |
| exact hp.eventually hΟ0 | |
| have hF0 : F =αΆ [π x] (fun _ β¦ (0 : Cover)) := by | |
| filter_upwards [hf0] with z hz | |
| simp only [F,hz,mul_zero,zero_smul] | |
| have hd0 := hF0.fderiv_eq (π := β) | |
| have hΟd0 := hΟ0.fderiv_eq (π := β) | |
| change tangentialDivergence F x _ * _ = _ | |
| simp [tangentialDivergence,divergence,hd0,hΟd0] | |
| simpa only [he] using hstat F hF hsF | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| lemma cover_cone_boundary_smul {A : Set Cover} | |
| (hcone : β t : β, 1 β€ t β βα΅ x β(volume : Measure Cover), x β Metric.ball (0 : Cover) 1 β | |
| (tβ»ΒΉ β’ x β A β x β A)) | |
| {x : Cover} (hx : x β coverEssentialBoundary A) (hxb : βxβ<1) | |
| {s : β} (hs : 0<s) (hs1 : sβ€1) : s β’ x β coverEssentialBoundary A := by | |
| have hinv : 1 β€ sβ»ΒΉ := (one_le_invβ hs).mpr hs1 | |
| have he : βα΅ y : Cover βvolume, y β Metric.ball (0 : Cover) 1 β | |
| (y β A β y β (fun z : Cover β¦ s β’ z) β»ΒΉ' A) := by | |
| filter_upwards [hcone sβ»ΒΉ hinv] with y hy hb | |
| simpa only [inv_inv,mem_preimage] using (hy hb).symm | |
| have hpre := cover_boundary_local_ae | |
| (Metric.isOpen_ball.mem_nhds (show x β Metric.ball (0 : Cover) 1 by simpa using hxb)) he hx | |
| exact cover_boundary_preimage_image (Measure.quasiMeasurePreserving_smul volume hs.ne') | |
| (show ContinuousAt (fun z : Cover β¦ s β’ z) x from (Continuous.const_smul continuous_id s).continuousAt) hpre | |
| theorem cone_graph_radial_derivative {A : Set Cover} | |
| (hcone : β t : β, 1 β€ t β βα΅ x β(volume : Measure Cover), x β Metric.ball (0 : Cover) 1 β | |
| (tβ»ΒΉ β’ x β A β x β A)) | |
| {x a n : Cover} (hn : βnβ=1) (hx : x β coverEssentialBoundary A) (hxb : βxβ<1) | |
| {g : Plane β β} | |
| (hg : DifferentiableAt β g (normalPlaneCoordinates n (x-a))) | |
| (hgraph : βαΆ z in π x, z β coverEssentialBoundary A β | |
| normalGraph n g (normalPlaneCoordinates n (z-a))=z-a) : | |
| fderiv β g (normalPlaneCoordinates n (x-a)) (normalPlaneCoordinates n x)=βͺn,xβ« := by | |
| have htx : Tendsto (fun t : β β¦ t β’ x) (π (1 : β)) (π x) := by | |
| have hh : Continuous (fun t : β β¦ t β’ x) := continuous_id.smul continuous_const | |
| simpa only [one_smul] using hh.tendsto (1 : β) | |
| have he : (fun t : β β¦ g (normalPlaneCoordinates n (t β’ x-a))) =αΆ [π[β€] (1 : β)] | |
| (fun t β¦ βͺn,t β’ x-aβ«) := by | |
| filter_upwards [htx.eventually hgraph |> mem_nhdsWithin_of_mem_nhds, | |
| mem_nhdsWithin_of_mem_nhds (Ioi_mem_nhds (by norm_num : (0 : β)<1)), self_mem_nhdsWithin] with t ht ht0 ht1 | |
| have hb := ht (cover_cone_boundary_smul hcone hx hxb ht0 ht1) | |
| have hh := congrArg (fun v : Cover β¦ βͺn,vβ«) hb | |
| simpa only [normalGraph_inner hn] using hh | |
| have hlin : HasDerivAt (fun t : β β¦ t β’ x-a) x 1 := by | |
| simpa using (((hasDerivAt_id (1 : β)).smul_const x).sub_const a) | |
| have hdlin : HasDerivAt (fun t : β β¦ normalPlaneCoordinates n (t β’ x-a)) | |
| (normalPlaneCoordinates n x) 1 := | |
| (normalPlaneCoordinates n).hasFDerivAt.comp_hasDerivAt 1 hlin | |
| have hg' : DifferentiableAt β g (normalPlaneCoordinates n ((1 : β) β’ x-a)) := by | |
| simpa only [one_smul] using hg | |
| have hdg' : HasDerivAt (fun t : β β¦ g (normalPlaneCoordinates n (t β’ x-a))) | |
| (fderiv β g (normalPlaneCoordinates n (x-a)) (normalPlaneCoordinates n x)) 1 := by | |
| simpa only [Function.comp_def,one_smul] using hg'.hasFDerivAt.comp_hasDerivAt 1 hdlin | |
| have hdi : HasDerivAt (fun t : β β¦ βͺn,t β’ x-aβ«) βͺn,xβ« 1 := | |
| (innerSL β n).hasFDerivAt.comp_hasDerivAt 1 hlin | |
| have hval : g (normalPlaneCoordinates n ((1 : β) β’ x-a)) = βͺn,(1 : β) β’ x-aβ« := | |
| he.self_of_nhdsWithin (by simp : (1 : β) β Iic (1 : β)) | |
| exact (hdg'.hasDerivWithinAt.derivWithin (uniqueDiffWithinAt_Iic 1)).symm.trans | |
| ((hdi.hasDerivWithinAt.congr_of_eventuallyEq he hval).derivWithin | |
| (uniqueDiffWithinAt_Iic 1)) | |
| lemma cone_graph_radial_projection_ne_zero {x n : Cover} (hn : βnβ=1) | |
| (hx : xβ 0) {L : Plane βL[β] β} (he : L (normalPlaneCoordinates n x)=βͺn,xβ«) : | |
| normalPlaneCoordinates n x β 0 := by | |
| intro hz | |
| have hi : βͺn,xβ«=0 := by rw [hz,map_zero] at he; exact he.symm | |
| have hh := normalPlaneCoordinates_reconstruct hn x | |
| rw [hz,hi] at hh | |
| have h0 : normalPlaneEmbedding n 0=0 := by | |
| apply norm_eq_zero.mp | |
| simpa using normalPlaneEmbedding_norm n (0 : Plane) | |
| exact hx (by simpa only [h0,zero_smul,add_zero] using hh.symm) | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| lemma slopeScalarTest_derivative {Ο Ο : β β β} | |
| (hΟ : ContDiff β (β€ : ββ) Ο) (hΟ : ContDiff β (β€ : ββ) Ο) | |
| (hΟ0 : 0 β tsupport Ο) {r s : β} (hr : rβ 0) (v : Plane) : | |
| fderiv β (slopeScalarTest Ο Ο) (planarWedgeChart (r,s)) v = | |
| deriv Ο r*Ο s*(planeProductCoordinates v).1 + | |
| Ο r*deriv Ο s*((planeProductCoordinates v).2-s*(planeProductCoordinates v).1)/r := by | |
| let x := planarWedgeChart (r,s) | |
| have hf := slopeScalarTest_contDiff hΟ hΟ hΟ0 | |
| have hl : HasDerivAt (fun t : β β¦ x+t β’ v) v 0 := by | |
| simpa using ((hasDerivAt_id (0 : β)).smul_const v).const_add x | |
| have hd : HasDerivAt (fun t : β β¦ slopeScalarTest Ο Ο (x+t β’ v)) | |
| (fderiv β (slopeScalarTest Ο Ο) x v) 0 := by | |
| simpa only [zero_smul,add_zero,Function.comp_def] using | |
| ((hf.differentiable (by simp)) (x+(0 : β) β’ v)).hasFDerivAt.comp_hasDerivAt 0 hl | |
| have he (t : β) : slopeScalarTest Ο Ο (x+t β’ v)= | |
| Ο (r+t*(planeProductCoordinates v).1)* | |
| Ο ((r*s+t*(planeProductCoordinates v).2)/(r+t*(planeProductCoordinates v).1)) := by | |
| simp [slopeScalarTest,x,planarWedgeChart] | |
| simp_rw [he] at hd | |
| have hdβ : HasDerivAt (fun t : β β¦ r+t*(planeProductCoordinates v).1) | |
| (planeProductCoordinates v).1 0 := by | |
| simpa using ((hasDerivAt_id (0 : β)).mul_const (planeProductCoordinates v).1).const_add r | |
| have hdβ : HasDerivAt (fun t : β β¦ r*s+t*(planeProductCoordinates v).2) | |
| (planeProductCoordinates v).2 0 := by | |
| simpa using ((hasDerivAt_id (0 : β)).mul_const (planeProductCoordinates v).2).const_add (r*s) | |
| have hden : r+(0 : β)*(planeProductCoordinates v).1β 0 := by simpa using hr | |
| have hquot := hdβ.div hdβ hden | |
| have hc := (((hΟ.differentiable (by simp)) _).hasDerivAt.comp 0 hdβ) | |
| have hp := (((hΟ.differentiable (by simp)) _).hasDerivAt.comp 0 hquot) | |
| have hh := hd.unique (hc.mul hp) | |
| simp only [Function.comp_apply,Pi.div_apply,zero_mul,add_zero,mul_div_cancel_leftβ _ hr] at hh | |
| change _ = _ at hh | |
| rw [hh] | |
| field_simp | |
| lemma integral_mul_deriv_radial {Ο : β β β} | |
| (hΟ : ContDiff β (β€ : ββ) Ο) (hsΟ : HasCompactSupport Ο) : | |
| (β« r : β, r*deriv Ο r)=-(β« r : β, Ο r) := by | |
| have hΟd : Continuous (deriv Ο) := hΟ.continuous_deriv (by simp) | |
| have hi : Integrable (fun r : β β¦ r*deriv Ο r) := | |
| (continuous_id.mul hΟd).integrable_of_hasCompactSupport hsΟ.deriv.mul_left | |
| have hj : Integrable (fun r : β β¦ (1 : β)*Ο r) := by | |
| simpa only [one_mul] using hΟ.continuous.integrable_of_hasCompactSupport hsΟ | |
| have hk : Integrable (fun r : β β¦ r*Ο r) := | |
| (continuous_id.mul hΟ.continuous).integrable_of_hasCompactSupport hsΟ.mul_left | |
| simpa only [one_mul,id_eq] using integral_mul_deriv_eq_deriv_mul_of_integrable | |
| (fun r _ β¦ hasDerivAt_id r) (fun r _ β¦ ((hΟ.differentiable (by simp)) r).hasDerivAt) hi hj hk | |
| theorem integral_slope_separated {G : Plane β β} (hG : Integrable G) | |
| {Ο A B : β β β} (hΟ : ContDiff β (β€ : ββ) Ο) | |
| (hsΟ : HasCompactSupport Ο) (hΟpos : tsupport Ο β Ioi (0 : β)) | |
| (hA : Integrable A) (hB : Integrable B) | |
| (hzero : β r : β, rβ€0 β β y : β, G (planeProductCoordinates.symm (r,y))=0) | |
| (he : β r : β, 0<r β β s : β, G (planarWedgeChart (r,s))= | |
| deriv Ο r*A s+(Ο r/r)*B s) : | |
| (β« y : Plane, G y)=(β« r : β, Ο r)*((β« s : β, B s)-(β« s : β, A s)) := by | |
| have hL := planeProductCoordinates_measurePreserving.symm | |
| planeProductCoordinates.toHomeomorph.toMeasurableEquiv | |
| have hLi := (hL.integrable_comp hG.aestronglyMeasurable).mpr hG | |
| have hi : (fun r : β β¦ β« y : β, G (planeProductCoordinates.symm (r,y))) = | |
| (fun r : β β¦ (r*deriv Ο r)*(β« s : β, A s)+Ο r*(β« s : β, B s)) := by | |
| funext r | |
| by_cases hr : 0<r | |
| Β· have hscale : (β« y : β, G (planeProductCoordinates.symm (r,y))) = | |
| r*(β« s : β, G (planarWedgeChart (r,s))) := by | |
| change _ = r*(β« s : β, G (planeProductCoordinates.symm (r,r*s))) | |
| rw [Measure.integral_comp_mul_left (fun y : β β¦ G (planeProductCoordinates.symm (r,y))) r, | |
| abs_of_pos (inv_pos.mpr hr),smul_eq_mul,mul_inv_cancel_leftβ hr.ne'] | |
| rw [hscale] | |
| simp_rw [he r hr] | |
| rw [integral_add (hA.const_mul _) (hB.const_mul _),integral_const_mul,integral_const_mul] | |
| field_simp | |
| Β· have hz : r β tsupport Ο := fun hh β¦ hr (hΟpos hh) | |
| simp only [hzero r (le_of_not_gt hr),integral_zero, | |
| image_eq_zero_of_notMem_tsupport hz,deriv_of_notMem_tsupport hz,mul_zero,zero_mul,add_zero] | |
| have hΟi : Integrable Ο (volume : Measure β) := hΟ.continuous.integrable_of_hasCompactSupport hsΟ | |
| have hΟdi : Integrable (fun r : β β¦ r*deriv Ο r) := | |
| (continuous_id.mul (hΟ.continuous_deriv (by simp))).integrable_of_hasCompactSupport hsΟ.deriv.mul_left | |
| rw [β hL.integral_comp planeProductCoordinates.symm.toHomeomorph.toMeasurableEquiv.measurableEmbedding G] | |
| change (β« z : β Γ β, G (planeProductCoordinates.symm z)) = _ | |
| change Integrable (fun z : β Γ β β¦ G (planeProductCoordinates.symm z)) (volume.prod volume) at hLi | |
| rw [Measure.volume_eq_prod,integral_prod _ hLi,hi, | |
| integral_add (hΟdi.mul_const _) (hΟi.mul_const _),integral_mul_const,integral_mul_const, | |
| integral_mul_deriv_radial hΟ hsΟ] | |
| ring | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology Convolution | |
| namespace CubicTorus | |
| lemma continuous_mul_shift_integrable {u b : β β β} (hu : Continuous u) | |
| (hb : Continuous b) (hs : HasCompactSupport b) (x : β) : | |
| Integrable (fun t β¦ u t*b (t-x)) := by | |
| have hb' : HasCompactSupport (fun t β¦ b (t-x)) := by | |
| have hh := hs.comp_homeomorph (Homeomorph.addRight (-x)) | |
| change HasCompactSupport (fun t : β β¦ b (t+ -x)) at hh | |
| simpa only [sub_eq_add_neg] using hh | |
| exact (hu.mul (hb.comp (continuous_id.sub continuous_const))).integrable_of_hasCompactSupport hb'.mul_left | |
| lemma continuous_angular_smoothing_tendsto {u : β β β} (hu : Continuous u) (x : β) : | |
| Tendsto (fun i β¦ β« t : β, u t*(angularMollifier i).normed volume (t-x)) atTop (π (u x)) := by | |
| have ht := ContDiffBump.convolution_tendsto_right_of_continuous | |
| (ΞΌ := volume) angularMollifier_radius_tendsto hu x | |
| convert ht using 1 | |
| funext i | |
| rw [convolution_eq_swap] | |
| simp only [ContinuousLinearMap.lsmul_apply,smul_eq_mul] | |
| apply integral_congr_ae | |
| apply ae_of_all | |
| intro t | |
| change u t*(angularMollifier i).normed volume (t-x) = | |
| (angularMollifier i).normed volume (x-t)*u t | |
| rw [show x-t = -(t-x) by ring,(angularMollifier i).normed_neg] | |
| ring | |
| theorem continuous_constant_of_weak_derivative_zero {u : β β β} (hu : Continuous u) | |
| {a b x y : β} (hx : x β Ioo a b) (hy : y β Ioo a b) | |
| (hweak : β Ο : β β β, ContDiff β (β€ : ββ) Ο β tsupport Ο β Ioo a b β | |
| (β« t : β, u t*deriv Ο t)=0) : u x=u y := by | |
| wlog hxy : x β€ y generalizing x y | |
| Β· exact (this hy hx (le_of_not_ge hxy)).symm | |
| have hrad : βαΆ i : β in atTop, (angularMollifier i).rOut < min (x-a) (b-y) := | |
| angularMollifier_radius_tendsto.eventually (gt_mem_nhds (by exact lt_min (by linarith [hx.1]) (by linarith [hy.2]))) | |
| have he : (fun i β¦ β« t : β, u t*(angularMollifier i).normed volume (t-x)) =αΆ [atTop] | |
| (fun i β¦ β« t : β, u t*(angularMollifier i).normed volume (t-y)) := by | |
| filter_upwards [hrad] with i hi | |
| let k := (angularMollifier i).normed volume | |
| have hk : ContDiff β (β€ : ββ) k := (angularMollifier i).contDiff_normed | |
| have hks : tsupport k β Icc (-(angularMollifier i).rOut) (angularMollifier i).rOut := by | |
| rw [(angularMollifier i).tsupport_normed_eq,Real.closedBall_eq_Icc] | |
| simp only [zero_sub,zero_add,subset_refl] | |
| have hs : tsupport (intervalSmoothHat k x y) β Ioo a b := by | |
| apply (intervalSmoothHat_support hk.continuous hks hxy).trans | |
| intro t ht | |
| constructor <;> linarith [lt_of_lt_of_le hi (min_le_left _ _),lt_of_lt_of_le hi (min_le_right _ _),ht.1,ht.2] | |
| have hh := hweak (intervalSmoothHat k x y) (intervalSmoothHat_contDiff hk x y) hs | |
| simp_rw [(intervalSmoothHat_hasDerivAt hk.continuous x y _).deriv,mul_sub] at hh | |
| rw [integral_sub (continuous_mul_shift_integrable hu hk.continuous | |
| (angularMollifier i).hasCompactSupport_normed x) | |
| (continuous_mul_shift_integrable hu hk.continuous (angularMollifier i).hasCompactSupport_normed y)] at hh | |
| exact sub_eq_zero.mp hh | |
| exact tendsto_nhds_unique (continuous_angular_smoothing_tendsto hu x) | |
| ((continuous_angular_smoothing_tendsto hu y).congr' he.symm) | |
| theorem hasDerivAt_of_continuous_weak_derivative {u v : β β β} | |
| (hu : Continuous u) (hv : Continuous v) {a b : β} | |
| (hweak : β Ο : β β β, ContDiff β (β€ : ββ) Ο β tsupport Ο β Ioo a b β | |
| (β« t : β, u t*deriv Ο t) = -(β« t : β, v t*Ο t)) | |
| {x : β} (hx : x β Ioo a b) : HasDerivAt u (v x) x := by | |
| let V : β β β := fun t β¦ β« s in (0 : β)..t, v s | |
| have hd (t : β) : HasDerivAt V (v t) t := intervalIntegral.integral_hasDerivAt_right | |
| (hv.intervalIntegrable 0 t) (hv.stronglyMeasurableAtFilter volume _) hv.continuousAt | |
| have hV : Continuous V := (fun t β¦ (hd t).continuousAt) |> continuous_iff_continuousAt.mpr | |
| have hz : β Ο : β β β, ContDiff β (β€ : ββ) Ο β tsupport Ο β Ioo a b β | |
| (β« t : β, (u t-V t)*deriv Ο t)=0 := by | |
| intro Ο hΟ hsΟ | |
| have hs : HasCompactSupport Ο := isCompact_Icc.of_isClosed_subset isClosed_closure | |
| (hsΟ.trans Ioo_subset_Icc_self) | |
| have hΟd : Continuous (deriv Ο) := hΟ.continuous_deriv (by simp) | |
| have hui : Integrable (fun t β¦ u t*deriv Ο t) := | |
| (hu.mul hΟd).integrable_of_hasCompactSupport hs.deriv.mul_left | |
| have hVi : Integrable (fun t β¦ V t*deriv Ο t) := | |
| (hV.mul hΟd).integrable_of_hasCompactSupport hs.deriv.mul_left | |
| have hvi : Integrable (fun t β¦ v t*Ο t) := | |
| (hv.mul hΟ.continuous).integrable_of_hasCompactSupport hs.mul_left | |
| have hprod : Integrable (fun t β¦ V t*Ο t) := | |
| (hV.mul hΟ.continuous).integrable_of_hasCompactSupport hs.mul_left | |
| have hparts := integral_mul_deriv_eq_deriv_mul_of_integrable | |
| (fun t _ β¦ hd t) (fun t _ β¦ ((hΟ.differentiable (by simp)) t).hasDerivAt) hVi hvi hprod | |
| simp_rw [sub_mul] | |
| rw [integral_sub hui hVi,hweak Ο hΟ hsΟ,hparts,sub_self] | |
| have he : u =αΆ [π x] (fun t β¦ V t+(u x-V x)) := by | |
| filter_upwards [isOpen_Ioo.mem_nhds hx] with t ht | |
| have hh := continuous_constant_of_weak_derivative_zero (hu.sub hV) ht hx hz | |
| dsimp only [Pi.sub_apply] at hh | |
| linarith | |
| exact ((hd x).add_const (u x-V x)).congr_of_eventuallyEq he | |
| theorem hasDerivAt_of_continuousOn_weak_derivative {u v : β β β} | |
| {a b : β} (hu : ContinuousOn u (Ioo a b)) (hv : ContinuousOn v (Ioo a b)) | |
| (hweak : β Ο : β β β, ContDiff β (β€ : ββ) Ο β tsupport Ο β Ioo a b β | |
| (β« t : β, u t*deriv Ο t) = -(β« t : β, v t*Ο t)) | |
| {x : β} (hx : x β Ioo a b) : HasDerivAt u (v x) x := by | |
| let c := (a+x)/2 | |
| let d := (x+b)/2 | |
| have hcx : c<x := by dsimp only [c]; linarith [hx.1] | |
| have hxd : x<d := by dsimp only [d]; linarith [hx.2] | |
| have hsub : Icc c d β Ioo a b := by | |
| intro t ht | |
| constructor <;> dsimp only [c,d] at ht <;> linarith [ht.1,ht.2,hx.1,hx.2] | |
| let U : C(Icc c d,β) := β¨fun t β¦ u t,continuousOn_iff_continuous_domRestrict.mp (hu.mono hsub)β© | |
| let W : C(Icc c d,β) := β¨fun t β¦ v t,continuousOn_iff_continuous_domRestrict.mp (hv.mono hsub)β© | |
| obtain β¨U',hU'β© := U.exists_extension' isClosed_Icc.isClosedEmbedding_subtypeVal | |
| obtain β¨W',hW'β© := W.exists_extension' isClosed_Icc.isClosedEmbedding_subtypeVal | |
| have heU (t : β) (ht : t β Icc c d) : U' t=u t := congrFun hU' β¨t,htβ© | |
| have heW (t : β) (ht : t β Icc c d) : W' t=v t := congrFun hW' β¨t,htβ© | |
| have hw : β Ο : β β β, ContDiff β (β€ : ββ) Ο β tsupport Ο β Ioo c d β | |
| (β« t : β, U' t*deriv Ο t) = -(β« t : β, W' t*Ο t) := by | |
| intro Ο hΟ hsΟ | |
| have heβ : (fun t β¦ U' t*deriv Ο t) = (fun t β¦ u t*deriv Ο t) := by | |
| funext t | |
| by_cases ht : t β tsupport Ο | |
| Β· rw [heU t (Ioo_subset_Icc_self (hsΟ ht))] | |
| Β· rw [deriv_of_notMem_tsupport ht,mul_zero,mul_zero] | |
| have heβ : (fun t β¦ W' t*Ο t) = (fun t β¦ v t*Ο t) := by | |
| funext t | |
| by_cases ht : t β tsupport Ο | |
| Β· rw [heW t (Ioo_subset_Icc_self (hsΟ ht))] | |
| Β· rw [image_eq_zero_of_notMem_tsupport ht,mul_zero,mul_zero] | |
| rw [heβ,heβ] | |
| exact hweak Ο hΟ (hsΟ.trans (Ioo_subset_Icc_self.trans hsub)) | |
| have hd := hasDerivAt_of_continuous_weak_derivative U'.continuous W'.continuous hw β¨hcx,hxdβ© | |
| rw [heW x β¨hcx.le,hxd.leβ©] at hd | |
| apply hd.congr_of_eventuallyEq | |
| filter_upwards [isOpen_Ioo.mem_nhds (show x β Ioo c d from β¨hcx,hxdβ©)] with t ht | |
| exact (heU t (Ioo_subset_Icc_self ht)).symm | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped Topology | |
| namespace CubicTorus | |
| theorem cone_slope_ODE_derivative {f q c h : β β β} {a b : β} | |
| (hf : β s β Ioo a b, HasDerivAt f (q s) s) | |
| (hc : ContinuousOn c (Ioo a b)) | |
| (hpos : β s β Ioo a b, 0<c s) | |
| (hmetric : β s β Ioo a b, (c s)^2*(1+(f s-s*q s)^2+(q s)^2)=1) | |
| (hflux : β s β Ioo a b, h s=(q s-s*(f s-s*q s))*c s) | |
| (hh : β s β Ioo a b, HasDerivAt h (-(f s-s*q s)*c s) s) | |
| {x : β} (hx : x β Ioo a b) : HasDerivAt q 0 x β§ HasDerivAt c 0 x := by | |
| have hcx := hpos x hx | |
| have hden (s : β) : 0<1+s^2+(f s)^2 := by positivity | |
| have hid (s : β) (hs : s β Ioo a b) : | |
| 1+s^2-(h s)^2=(c s)^2*(1+s^2+(f s)^2) := by | |
| rw [hflux s hs] | |
| linear_combination -(1+s^2)*(hmetric s hs) | |
| have hhnum : 2*x+2*(h x)*(f x-x*q x)*c x = (c x)^2*(2*x+2*f x*q x) := by | |
| rw [hflux x hx] | |
| linear_combination -(2*x)*(hmetric x hx) | |
| have hdnum : HasDerivAt (fun s β¦ 1+s^2-(h s)^2) | |
| (2*x+2*(h x)*(f x-x*q x)*c x) x := by | |
| convert (((hasDerivAt_id x).pow 2).const_add 1).sub ((hh x hx).pow 2) using 1 <;> first | rfl | (simp only [id_eq]; ring) | |
| have hdden : HasDerivAt (fun s β¦ 1+s^2+(f s)^2) (2*x+2*f x*q x) x := by | |
| convert (((hasDerivAt_id x).pow 2).const_add 1).add ((hf x hx).pow 2) using 1 <;> first | rfl | (simp only [id_eq]; ring) | |
| have hdsq : HasDerivAt (fun s β¦ (c s)^2) 0 x := by | |
| have hd := hdnum.div hdden (hden x).ne' | |
| rw [hhnum,hid x hx] at hd | |
| have he : (fun s β¦ (c s)^2) =αΆ [π x] | |
| (fun s β¦ (1+s^2-(h s)^2)/(1+s^2+(f s)^2)) := by | |
| filter_upwards [isOpen_Ioo.mem_nhds hx] with s hs | |
| rw [hid s hs,mul_div_cancel_rightβ _ (hden s).ne'] | |
| convert hd.congr_of_eventuallyEq he using 1 | |
| all_goals first | rfl | (field_simp; ring) | |
| have hdc : HasDerivAt c 0 x := by | |
| have hd := hdsq.sqrt (by positivity : (c x)^2 β 0) | |
| have he : c =αΆ [π x] (fun s β¦ Real.sqrt ((c s)^2)) := by | |
| filter_upwards [(hc.continuousAt (isOpen_Ioo.mem_nhds hx)).eventually | |
| (Ioi_mem_nhds hcx)] with s hs | |
| rw [Real.sqrt_sq hs.le] | |
| simpa only [zero_div] using hd.congr_of_eventuallyEq he | |
| have hqeq (s : β) (hs : s β Ioo a b) : | |
| q s=(h s+s*f s*c s)/((1+s^2)*c s) := by | |
| rw [hflux s hs] | |
| field_simp [(hpos s hs).ne'] | |
| ring | |
| have hn : HasDerivAt (fun s β¦ h s+s*f s*c s) | |
| (2*x*q x*c x) x := by | |
| convert (hh x hx).add ((((hasDerivAt_id x).mul (hf x hx)).mul hdc)) using 1 <;> first | rfl | (simp only [id_eq]; ring) | |
| have hd : HasDerivAt (fun s β¦ (1+s^2)*c s) (2*x*c x) x := by | |
| convert ((((hasDerivAt_id x).pow 2).const_add 1).mul hdc) using 1 <;> first | rfl | (simp only [id_eq]; ring) | |
| have hneq : (1+x^2)*c xβ 0 := by positivity | |
| have hder := hn.div hd hneq | |
| have he : q =αΆ [π x] (fun s β¦ (h s+s*f s*c s)/((1+s^2)*c s)) := by | |
| filter_upwards [isOpen_Ioo.mem_nhds hx] with s hs | |
| exact hqeq s hs | |
| refine β¨?_,hdcβ© | |
| convert hder.congr_of_eventuallyEq he using 1 | |
| all_goals first | rfl | (rw [hflux x hx]; field_simp; ring) | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped Topology | |
| namespace CubicTorus | |
| def coneSlopeReciprocalArea (f q : β β β) (s : β) : β := | |
| (Real.sqrt (1+(f s-s*q s)^2+(q s)^2))β»ΒΉ | |
| def coneSlopeFlux (f q : β β β) (s : β) : β := | |
| (q s-s*(f s-s*q s))*coneSlopeReciprocalArea f q s | |
| lemma coneSlopeReciprocalArea_pos (f q : β β β) (s : β) : | |
| 0<coneSlopeReciprocalArea f q s := by | |
| exact inv_pos.mpr (Real.sqrt_pos.2 (by positivity)) | |
| lemma coneSlopeReciprocalArea_metric (f q : β β β) (s : β) : | |
| (coneSlopeReciprocalArea f q s)^2*(1+(f s-s*q s)^2+(q s)^2)=1 := by | |
| have hp : 0<1+(f s-s*q s)^2+(q s)^2 := by positivity | |
| dsimp only [coneSlopeReciprocalArea] | |
| rw [inv_pow,Real.sq_sqrt hp.le,inv_mul_cancelβ hp.ne'] | |
| lemma coneSlopeReciprocalArea_continuousOn {f q : β β β} {U : Set β} | |
| (hf : ContinuousOn f U) (hq : ContinuousOn q U) : | |
| ContinuousOn (coneSlopeReciprocalArea f q) U := by | |
| apply ((((hf.sub (continuousOn_id.mul hq)).pow 2).const_add 1).add (hq.pow 2)).sqrt.invβ | |
| intro s hs | |
| exact (Real.sqrt_pos.2 (by positivity : 0<1+(f s-s*q s)^2+(q s)^2)).ne' | |
| theorem weak_cone_slope_derivative {f q : β β β} {a b : β} | |
| (hf : β s β Ioo a b, HasDerivAt f (q s) s) | |
| (hq : ContinuousOn q (Ioo a b)) | |
| (hweak : β Ο : β β β, ContDiff β (β€ : ββ) Ο β tsupport Ο β Ioo a b β | |
| (β« s : β, coneSlopeFlux f q s*deriv Ο s) = | |
| (β« s : β, (f s-s*q s)*coneSlopeReciprocalArea f q s*Ο s)) | |
| {x : β} (hx : x β Ioo a b) : HasDerivAt q 0 x := by | |
| have hfc : ContinuousOn f (Ioo a b) := fun s hs β¦ (hf s hs).continuousAt.continuousWithinAt | |
| have hc := coneSlopeReciprocalArea_continuousOn hfc hq | |
| have hu := hfc.sub (continuousOn_id.mul hq) | |
| have hh : ContinuousOn (coneSlopeFlux f q) (Ioo a b) := | |
| (hq.sub (continuousOn_id.mul hu)).mul hc | |
| have hhder (s : β) (hs : s β Ioo a b) : | |
| HasDerivAt (coneSlopeFlux f q) (-(f s-s*q s)*coneSlopeReciprocalArea f q s) s := by | |
| apply hasDerivAt_of_continuousOn_weak_derivative hh (hu.neg.mul hc) _ hs | |
| intro Ο hΟ hsΟ | |
| rw [hweak Ο hΟ hsΟ] | |
| simp only [Pi.mul_apply,Pi.sub_apply,Pi.neg_apply,id_eq,neg_mul,integral_neg,neg_neg] | |
| exact (cone_slope_ODE_derivative hf hc | |
| (fun s _ β¦ coneSlopeReciprocalArea_pos f q s) | |
| (fun s _ β¦ coneSlopeReciprocalArea_metric f q s) | |
| (fun s _ β¦ rfl) hhder hx).1 | |
| theorem weak_cone_slope_affine {f q : β β β} {a b : β} | |
| (hf : β s β Ioo a b, HasDerivAt f (q s) s) | |
| (hq : ContinuousOn q (Ioo a b)) | |
| (hweak : β Ο : β β β, ContDiff β (β€ : ββ) Ο β tsupport Ο β Ioo a b β | |
| (β« s : β, coneSlopeFlux f q s*deriv Ο s) = | |
| (β« s : β, (f s-s*q s)*coneSlopeReciprocalArea f q s*Ο s)) | |
| {x y : β} (hx : x β Ioo a b) (hy : y β Ioo a b) : | |
| q y=q x β§ f y=f x+q x*(y-x) := by | |
| have hqd (s : β) (hs : s β Ioo a b) := weak_cone_slope_derivative hf hq hweak hs | |
| have hqc (s : β) (hs : s β Ioo a b) : q s=q x := | |
| isOpen_Ioo.is_const_of_deriv_eq_zero (convex_Ioo a b).isPreconnected | |
| (fun s hs β¦ (hqd s hs).differentiableAt.differentiableWithinAt) | |
| (fun s hs β¦ (hqd s hs).deriv) hs hx | |
| have hfd (s : β) (hs : s β Ioo a b) : HasDerivAt (fun t β¦ f t-q x*t) 0 s := by | |
| have hd := (hf s hs).sub ((hasDerivAt_id s).const_mul (q x)) | |
| convert hd using 1 <;> first | rfl | simp only [hqc s hs,mul_one,sub_self] | |
| have he := isOpen_Ioo.is_const_of_deriv_eq_zero (convex_Ioo a b).isPreconnected | |
| (fun s hs β¦ (hfd s hs).differentiableAt.differentiableWithinAt) | |
| (fun s hs β¦ (hfd s hs).deriv) hy hx | |
| exact β¨hqc y hy,by change f y-q x*y=f x-q x*x at he; linarithβ© | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| def slopeHorizontalVector : Plane := planeProductCoordinates.symm (1,0) | |
| lemma plane_inner_coordinates (u v : Plane) : | |
| βͺu,vβ« = (planeProductCoordinates u).1*(planeProductCoordinates v).1+ | |
| (planeProductCoordinates u).2*(planeProductCoordinates v).2 := by | |
| simp [planeProductCoordinates_apply,EuclideanSpace.inner_eq_star_dotProduct, | |
| dotProduct,Fin.sum_univ_two,mul_comm] | |
| lemma plane_gradient_coordinates (g : Plane β β) (y : Plane) : | |
| (planeProductCoordinates (gradient g y)).1 = fderiv β g y slopeHorizontalVector β§ | |
| (planeProductCoordinates (gradient g y)).2 = fderiv β g y slopeVerticalVector := by | |
| constructor <;> rw [β inner_gradient_left,plane_inner_coordinates] | |
| Β· simp [slopeHorizontalVector] | |
| Β· simp [slopeVerticalVector] | |
| lemma planarWedgeChart_hasDerivAt_radial (r s : β) : | |
| HasDerivAt (fun t : β β¦ planarWedgeChart (t,s)) | |
| (planeProductCoordinates.symm (1,s)) r := by | |
| have hd := (hasDerivAt_id r).prodMk ((hasDerivAt_id r).mul_const s) | |
| convert planeProductCoordinates.symm.hasFDerivAt.comp_hasDerivAt r hd using 1 <;> | |
| first | rfl | simp only [one_mul,ContinuousLinearEquiv.coe_coe] | |
| lemma planarWedgeChart_hasDerivAt_angular (r s : β) : | |
| HasDerivAt (fun t : β β¦ planarWedgeChart (r,t)) (r β’ slopeVerticalVector) s := by | |
| have hd := (hasDerivAt_const s r).prodMk ((hasDerivAt_id s).const_mul r) | |
| have hh := planeProductCoordinates.symm.hasFDerivAt.comp_hasDerivAt s hd | |
| simpa [Function.comp_def,planarWedgeChart,slopeVerticalVector,β map_smul] using hh | |
| theorem euler_graph_homogeneous {g : Plane β β} {a b c d : β} (ha : 0<a) | |
| (hg : β r β Ioo a b, β s β Ioo c d, DifferentiableAt β g (planarWedgeChart (r,s))) | |
| (he : β r β Ioo a b, β s β Ioo c d, | |
| fderiv β g (planarWedgeChart (r,s)) (planarWedgeChart (r,s))=g (planarWedgeChart (r,s))) | |
| {r t s : β} (hr : r β Ioo a b) (ht : t β Ioo a b) (hs : s β Ioo c d) : | |
| g (planarWedgeChart (r,s))/r=g (planarWedgeChart (t,s))/t := by | |
| have hd (v : β) (hv : v β Ioo a b) : | |
| HasDerivAt (fun w : β β¦ g (planarWedgeChart (w,s))/w) 0 v := by | |
| have hv0 : 0<v := ha.trans hv.1 | |
| have h := (hg v hv s hs).hasFDerivAt.comp_hasDerivAt v (planarWedgeChart_hasDerivAt_radial v s) | |
| have hh := h.div (hasDerivAt_id v) hv0.ne' | |
| have hmult : fderiv β g (planarWedgeChart (v,s)) (planeProductCoordinates.symm (1,s))*v= | |
| g (planarWedgeChart (v,s)) := by | |
| calc | |
| _ = fderiv β g (planarWedgeChart (v,s)) (v β’ planeProductCoordinates.symm (1,s)) := by | |
| rw [map_smul,smul_eq_mul,mul_comm] | |
| _ = _ := by | |
| rw [β map_smul] | |
| simpa [planarWedgeChart] using he v hv s hs | |
| convert hh using 1 <;> first | rfl | simp only [id_eq,Function.comp_def,hmult,mul_one,sub_self,zero_div] | |
| exact isOpen_Ioo.is_const_of_deriv_eq_zero (convex_Ioo a b).isPreconnected | |
| (fun v hv β¦ (hd v hv).differentiableAt.differentiableWithinAt) | |
| (fun v hv β¦ (hd v hv).deriv) hr ht | |
| lemma graph_angular_slice_hasDerivAt {g : Plane β β} {r s : β} (hr : rβ 0) | |
| (hg : DifferentiableAt β g (planarWedgeChart (r,s))) : | |
| HasDerivAt (fun t : β β¦ g (planarWedgeChart (r,t))/r) | |
| (fderiv β g (planarWedgeChart (r,s)) slopeVerticalVector) s := by | |
| have hd := (hg.hasFDerivAt.comp_hasDerivAt s | |
| (planarWedgeChart_hasDerivAt_angular r s)).div_const r | |
| simpa only [Function.comp_def,map_smul,smul_eq_mul,mul_div_cancel_leftβ _ hr] using hd | |
| lemma planarWedgeChart_expand (r s : β) : | |
| planarWedgeChart (r,s)=r β’ slopeHorizontalVector+(r*s) β’ slopeVerticalVector := by | |
| apply planeProductCoordinates.injective | |
| simp [planarWedgeChart,slopeHorizontalVector,slopeVerticalVector] | |
| theorem euler_graph_gradient {g : Plane β β} {a b c d : β} (ha : 0<a) | |
| (hg : β r β Ioo a b, β s β Ioo c d, DifferentiableAt β g (planarWedgeChart (r,s))) | |
| (he : β r β Ioo a b, β s β Ioo c d, | |
| fderiv β g (planarWedgeChart (r,s)) (planarWedgeChart (r,s))=g (planarWedgeChart (r,s))) | |
| {r rβ s : β} (hr : r β Ioo a b) (hrβ : rβ β Ioo a b) (hs : s β Ioo c d) : | |
| let f := g (planarWedgeChart (rβ,s))/rβ | |
| let q := fderiv β g (planarWedgeChart (rβ,s)) slopeVerticalVector | |
| planeProductCoordinates (gradient g (planarWedgeChart (r,s)))=(f-s*q,q) := by | |
| dsimp only | |
| have hr0 : rβ 0 := (ha.trans hr.1).ne' | |
| have hrβ0 : rββ 0 := (ha.trans hrβ.1).ne' | |
| have hvs : fderiv β g (planarWedgeChart (r,s)) slopeVerticalVector = | |
| fderiv β g (planarWedgeChart (rβ,s)) slopeVerticalVector := by | |
| have hfun : (fun t : β β¦ g (planarWedgeChart (r,t))/r) =αΆ [π s] | |
| (fun t : β β¦ g (planarWedgeChart (rβ,t))/rβ) := by | |
| filter_upwards [isOpen_Ioo.mem_nhds hs] with t ht | |
| exact euler_graph_homogeneous ha hg he hr hrβ ht | |
| exact (graph_angular_slice_hasDerivAt hr0 (hg r hr s hs)).unique | |
| ((graph_angular_slice_hasDerivAt hrβ0 (hg rβ hrβ s hs)).congr_of_eventuallyEq hfun) | |
| have hre := he r hr s hs | |
| have hlin : fderiv β g (planarWedgeChart (r,s)) (planarWedgeChart (r,s)) = | |
| r*fderiv β g (planarWedgeChart (r,s)) slopeHorizontalVector+ | |
| (r*s)*fderiv β g (planarWedgeChart (r,s)) slopeVerticalVector := by | |
| calc | |
| _ = fderiv β g (planarWedgeChart (r,s)) | |
| (r β’ slopeHorizontalVector+(r*s) β’ slopeVerticalVector) := | |
| congrArg (fderiv β g (planarWedgeChart (r,s))) (planarWedgeChart_expand r s) | |
| _ = _ := by simp only [map_add,map_smul,smul_eq_mul] | |
| rw [hlin,hvs] at hre | |
| have hhom := euler_graph_homogeneous ha hg he hr hrβ hs | |
| have hhom' : g (planarWedgeChart (r,s)) = | |
| (g (planarWedgeChart (rβ,s))/rβ)*r := (div_eq_iff hr0).mp hhom | |
| have hh : fderiv β g (planarWedgeChart (r,s)) slopeHorizontalVector= | |
| g (planarWedgeChart (rβ,s))/rβ-s*fderiv β g (planarWedgeChart (rβ,s)) slopeVerticalVector := by | |
| apply (mul_right_inj' hr0).mp | |
| nlinarith [hre,hhom'] | |
| have hcoord := plane_gradient_coordinates g (planarWedgeChart (r,s)) | |
| exact Prod.ext (hcoord.1.trans hh) (hcoord.2.trans hvs) | |
| end CubicTorus | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal NNReal Topology RealInnerProductSpace | |
| namespace CubicTorus | |
| end CubicTorus | |
| end | |
| end | |
| end | |
| end OAI | |
Outline
- theorem
coverC1BoundaryAt_physical_patch13 - lemma
tangentialDivergence_neg_normal85 - lemma
reverseBlowupNormal_stationary89 - lemma
graph_superlevel_compl_ae97 - theorem
strict_C1_patch_stationary120 - lemma
normalPlaneCoordinates_tangent_graph204 - lemma
graph_vertical_variation216 - lemma
radialHeightCutoff_eventually_one234 - theorem
stationary_graph_weak_equation240 - lemma
cover_cone_boundary_smul312 - theorem
cone_graph_radial_derivative327 - lemma
cone_graph_radial_projection_ne_zero364 - lemma
slopeScalarTest_derivative388 - lemma
integral_mul_deriv_radial423 - theorem
integral_slope_separated436 - lemma
continuous_mul_shift_integrable486 - lemma
continuous_angular_smoothing_tendsto495 - theorem
continuous_constant_of_weak_derivative_zero511 - theorem
hasDerivAt_of_continuous_weak_derivative540 - theorem
hasDerivAt_of_continuousOn_weak_derivative574 - theorem
cone_slope_ODE_derivative625 - def
coneSlopeReciprocalArea694 - def
coneSlopeFlux697 - lemma
coneSlopeReciprocalArea_pos700 - lemma
coneSlopeReciprocalArea_metric704 - lemma
coneSlopeReciprocalArea_continuousOn710 - theorem
weak_cone_slope_derivative717 - theorem
weak_cone_slope_affine740 - def
slopeHorizontalVector773 - lemma
plane_inner_coordinates775 - lemma
plane_gradient_coordinates781 - lemma
planarWedgeChart_hasDerivAt_radial788 - lemma
planarWedgeChart_hasDerivAt_angular795 - theorem
euler_graph_homogeneous801 - lemma
graph_angular_slice_hasDerivAt825 - lemma
planarWedgeChart_expand833 - theorem
euler_graph_gradient838
Xet Storage Details
- Size:
- 46.5 kB
- Xet hash:
- 13241c8daee08989ae4deb9bf42b4a34fa7c6bcf4292e94e8682b599f0b0dfb3
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.