Download data/lean/OAI/Analysis/DiamondDistortion/AMUC.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.26 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/DiamondDistortion/AMUC.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/DiamondDistortion/AMUC.lean
-
curl -L -o AMUC.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/DiamondDistortion/AMUC.lean
5.26 kB
| import OAI.Analysis.DiamondDistortion.Transfers | |
| namespace OAI | |
| universe u v | |
| noncomputable section | |
| open scoped BigOperators Classical Topology | |
| open Set | |
| namespace DiamondDistortion | |
| namespace Diamond | |
| variable {X : Type*} [NormedAddCommGroup X] [NormedSpace β X] | |
| lemma old_upper {X : Type*} [NormedAddCommGroup X] [NormedSpace β X] {k : β} (f : Vertex (k+1) β X) {L : β} | |
| (hu : β u v,βf u-f vβ β€ L*distance (k+1) u v) : | |
| β u v,βf (Sum.inl u)-f (Sum.inl v)β β€ L*distance k u v := by | |
| intro u v | |
| simpa only [distance_old] using hu (Sum.inl u) (Sum.inl v) | |
| def FixedBoundGain (X : Type*) [NormedAddCommGroup X] (D c : β) : Prop := | |
| β (x : X) (z : β β X),1 β€ βxβ β βxβ β€ D β | |
| (β i,βz iβ β€ 2*D) β (β i j,i β j β 1 β€ βz i-z jβ) β | |
| β i,βxβ+c < max βx+z iβ βx-z iβ | |
| lemma actual_additive_growth {D c : β} (hD : 1 β€ D) (hX : FixedBoundGain X D c) | |
| (k : β) (f : Vertex k β X) | |
| (hl : β u v,1*distance k u v β€ βf u-f vβ) | |
| (hu : β u v,βf u-f vβ β€ D*distance k u v) : | |
| β e : Edge k,1+(k:β)*c β€ βslope f eβ β§ | |
| (k β 0 β 1+(k:β)*c < βslope f eβ) := by | |
| induction k with | |
| | zero => exact β¨(),by simpa using slope_lower f hl (),by simpβ© | |
| | succ n ih => | |
| obtain β¨e,he,_β© := ih (fun v => f (Sum.inl v)) (old_lower f hl) (old_upper f hu) | |
| have hx := slope_lower (fun v => f (Sum.inl v)) (old_lower f hl) e | |
| have hxD := slope_upper (fun v => f (Sum.inl v)) (old_upper f hu) e | |
| have hp : β i,βslope (fun v => f (Sum.inl v)) e+deviation f e iβ β€ D := by | |
| intro i | |
| rw [slope_plus_deviation] | |
| exact slope_upper f hu _ | |
| have hm : β i,βslope (fun v => f (Sum.inl v)) e-deviation f e iβ β€ D := by | |
| intro i | |
| rw [slope_minus_deviation] | |
| exact slope_upper f hu _ | |
| have hd : β i,βdeviation f e iβ β€ 2*D := by | |
| intro i | |
| have h := norm_deviation_le (hp i) (hm i) | |
| linarith | |
| have hs : β i j,i β j β 1 β€ βdeviation f e i-deviation f e jβ := by | |
| intro i j hij | |
| have h := deviation_separated f hl e hij | |
| linarith | |
| obtain β¨i,hiβ© := hX _ (deviation f e) hx hxD hd hs | |
| rcases lt_max_iff.mp hi with hi | hi | |
| Β· rw [slope_plus_deviation] at hi | |
| have hh : 1+((n+1:β):β)*c < βslope f (e,i,false)β := by push_cast; linarith | |
| exact β¨(e,i,false),hh.le,fun _ => hhβ© | |
| Β· rw [slope_minus_deviation] at hi | |
| have hh : 1+((n+1:β):β)*c < βslope f (e,i,true)β := by push_cast; linarith | |
| exact β¨(e,i,true),hh.le,fun _ => hhβ© | |
| theorem fixed_bound {D c s : β} (_hc : 0 < c) (hX : FixedBoundGain X D c) | |
| (k : β) (f : Vertex k β X) (hf : HasDistortion k f D s) : | |
| 1+(k:β)*c β€ D β§ (k β 0 β 1+(k:β)*c < D) := by | |
| obtain β¨hD,_,hβ© := normalized_distortion f hf | |
| have hu : β u v,βsβ»ΒΉ β’ f u-sβ»ΒΉ β’ f vβ β€ D*distance k u v := by | |
| intro u v | |
| simpa only [mul_one] using (h u v).2 | |
| obtain β¨e,he,he'β© := actual_additive_growth hD hX k (fun v => sβ»ΒΉ β’ f v) | |
| (fun u v => (h u v).1) hu | |
| have hb := slope_upper (fun v => sβ»ΒΉ β’ f v) hu e | |
| exact β¨he.trans hb,fun hk => (he' hk).trans_le hbβ© | |
| /-- The unconditional segment lens supplies the fixed-distortion bounded-family | |
| input as well, with a concrete positive choice of c_D. -/ | |
| lemma fixed_bound_of_quadratic {X : Type*} [NormedAddCommGroup X] [NormedSpace β X] (hX : QuadraticLens X) {D : β} (hD : 1 β€ D) : | |
| FixedBoundGain X D (1/(64*D)) := by | |
| have hD0 : 0 < D := by linarith | |
| let c : β := 1/(64*D) | |
| have hc : 0 < c := by dsimp [c]; positivity | |
| have hcD : D*c=1/64 := by dsimp [c]; field_simp | |
| have hcsmall : c β€ 1/64 := by | |
| have h := mul_le_mul_of_nonneg_right hD hc.le | |
| nlinarith | |
| intro x z hx hxD hz hs | |
| by_contra! hn | |
| have hp : β i,βx+z iβ β€ βxβ+c := fun i => (le_max_left _ _).trans (hn i) | |
| have hm : β i,βx-z iβ β€ βxβ+c := fun i => (le_max_right _ _).trans (hn i) | |
| have h := hX x z (βxβ+c) 1 (by positivity) (by norm_num) hp hm hs | |
| have hmul := mul_le_mul_of_nonneg_right hxD hc.le | |
| have hsq := (sq_le_sqβ hc.le (by norm_num : (0:β) β€ 1/64)).mpr hcsmall | |
| nlinarith | |
| /-- Uniform distortion means one finite constant, with a separate map and a | |
| separate positive scale for each depth. -/ | |
| def UniformEmbeddings (X : Type*) [NormedAddCommGroup X] : Prop := | |
| β D : β,β k : β,β (f : Vertex k β X) (s : β),HasDistortion k f D s | |
| end Diamond | |
| theorem atomic_distortion (k : β) (f : Diamond.Vertex k β ForestDual) (D s : β) | |
| (hf : Diamond.HasDistortion k f D s) : 1+(k:β)/16 β€ D^2 := by | |
| have h := headline.1 k f D s hf | |
| have hk : (0:β) β€ k := by positivity | |
| linarith | |
| theorem direct_atomic_obstruction : Β¬ Diamond.UniformEmbeddings ForestDual := by | |
| rintro β¨D,hβ© | |
| obtain β¨k,hkβ© := exists_nat_gt (4*D^2) | |
| obtain β¨f,s,hfβ© := h k | |
| have hb := headline.1 k f D s hf | |
| linarith | |
| theorem infinite_obstruction : Β¬ Diamond.UniformEmbeddings InfinitePredual := by | |
| rintro β¨D,hβ© | |
| obtain β¨k,hkβ© := exists_nat_gt (4*D^2) | |
| obtain β¨f,s,hfβ© := h k | |
| have hb := headline.2 k f D s hf | |
| linarith | |
| end DiamondDistortion | |
| end | |
| end OAI | |