Download data/lean/OAI/Analysis/BernoulliCone/HalfspaceUnitSlope.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.69 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BernoulliCone/HalfspaceUnitSlope.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/BernoulliCone/HalfspaceUnitSlope.lean
-
curl -L -o HalfspaceUnitSlope.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BernoulliCone/HalfspaceUnitSlope.lean
3.69 kB
| import OAI.Analysis.BernoulliCone.RadialShapeTest | |
| namespace OAI | |
| section | |
| noncomputable section | |
| open MeasureTheory Set Filter Metric | |
| open scoped Topology NNReal ENNReal ContDiff | |
| namespace Bernoulli.Shape | |
| variable {d : β} | |
| lemma small_parameter_bounds {Ο : Space d β β} {C : ββ₯0} | |
| (hΟ : ContDiff β β Ο) (hLip : LipschitzWith C Ο) | |
| (e : Space d) {t : β} (ht : |t| < (4*((C:β)*βeβ+1))β»ΒΉ) : | |
| βtββ*C*βeββ < 1 β§ β x, (1:β)/2 β€ 1+t*fderiv β Ο x e := by | |
| have hC : 0 β€ (C:β)*βeβ := mul_nonneg C.coe_nonneg (norm_nonneg _) | |
| have hp : 0 < 4*((C:β)*βeβ+1) := by positivity | |
| have hh : |t| *(4*((C:β)*βeβ+1)) < 1 := (lt_div_iffβ hp).mp (by simpa only [one_div] using ht) | |
| have hprod : |t| *(C:β)*βeβ < (1:β)/4 := by nlinarith [abs_nonneg t] | |
| constructor | |
| Β· change βtβ*(C:β)*βeβ < 1 | |
| rw [Real.norm_eq_abs] | |
| linarith | |
| Β· intro x | |
| have hb := (fderiv β Ο x).le_opNorm e | |
| have hn := ((hΟ.differentiable (by simp)) x).hasFDerivAt.le_of_lipschitz hLip | |
| have hb' : |fderiv β Ο x e| β€ (C:β)*βeβ := by | |
| rw [β Real.norm_eq_abs] | |
| exact hb.trans (mul_le_mul_of_nonneg_right hn (norm_nonneg _)) | |
| have hh' : |t*fderiv β Ο x e| < (1:β)/4 := by | |
| rw [abs_mul] | |
| exact lt_of_le_of_lt (mul_le_mul_of_nonneg_left hb' (abs_nonneg _)) (by simpa only [mul_assoc] using hprod) | |
| have hneg := neg_abs_le (t*fderiv β Ο x e) | |
| linarith | |
| /-- Domain comparisons for the *actual* Bernoulli energy force the unit slope | |
| of a minimizing halfspace. No boundary condition is assumed. -/ | |
| theorem positiveLinear_minimizer_unit {e : Space d} (he : e β 0) | |
| (hm : GlobalMinimizer (positiveLinear e)) : βeβ=1 := by | |
| let Ο : Space d β β := HarmonicKernel.potential | |
| have hΟ : Test (ball (0:Space d) 2) Ο := potential_test | |
| obtain β¨C,hLipβ© := ContDiff.lipschitzWith_of_hasCompactSupport hΟ.2.1 hΟ.1 (by simp) | |
| let I : β := β« x in ball (0:Space d) 2, firstTerm Ο e x | |
| have hI : I β 0 := firstTerm_potential_integral_ne_zero he | |
| let B : β := (2*βeβ^4*(C:β)^2)*(volume (ball (0:Space d) 2)).toReal | |
| have hΞ΅ : 0 < (4*((C:β)*βeβ+1))β»ΒΉ := by positivity | |
| have hz : (1-βeβ^2)*I/2 = 0 := by | |
| apply linear_coefficient_eq_zero _ B hΞ΅ | |
| intro t ht | |
| obtain β¨hK,hdetβ© := small_parameter_bounds hΟ.1 hLip e ht | |
| let hf := displacement_lipschitz hLip e t | |
| let g : Space d ββ Space d := perturbationHomeomorph hf hK | |
| have hg : β x, g x=deform Ο e t x := fun _ => rfl | |
| let v := fun y => positiveLinear e (g.symm y) | |
| have hvLip := (positiveLinear_lipschitz e).comp (perturbationHomeomorph_symm_lipschitz hf hK) | |
| have hsup : tsupport (fun x => v x-positiveLinear e x) β tsupport Ο := | |
| pullback_diff_support (u:=positiveLinear e) e t g hg | |
| have hc : HasCompactSupport (fun x => v x-positiveLinear e x) := | |
| hΟ.2.1.of_isClosed_subset (isClosed_tsupport _) hsup | |
| have hcB := hsup.trans hΟ.2.2 | |
| have hcomp := hm.compare_lipschitz (positiveLinear_lipschitz e) hvLip 0 (by norm_num : 0 < (2:β)) | |
| (Eventually.of_forall (fun _ => le_max_right _ _)) hc hcB | |
| have hupper := energy_pullback_upper hΟ.1 hLip he t hdet g hg 0 2 (by | |
| intro x hx | |
| by_contra hh | |
| exact hx (hΟ.2.2 (subset_tsupport Ο hh))) | |
| change energy (ball (0:Space d) 2) v (gradient v) β€ _ at hupper | |
| have hboth := hcomp.trans hupper | |
| dsimp [B,I] | |
| nlinarith | |
| have hz' : (1-βeβ^2)*I=0 := (div_eq_zero_iff).mp hz |>.resolve_right (by norm_num) | |
| have hn : 1-βeβ^2=0 := (mul_eq_zero.mp hz').resolve_right hI | |
| nlinarith [norm_nonneg e] | |
| end Bernoulli.Shape | |
| end | |
| end | |
| end OAI | |