File size: 6,092 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 | import Mathlib
import OAI.Probability.BinarySweep.GridBounds.EmptyGrid
namespace OAI
noncomputable section
section
open scoped Topology
open Set Complex Complex.HadamardThreeLines
namespace BinaryCoordinateSweeps
lemma cosh_norm_le (z : β) : βComplex.cosh zβ β€ Real.cosh z.re := by
rw [Complex.cosh, norm_div]
norm_num only [Complex.norm_ofNat]
rw [Real.cosh_eq]
have h := norm_add_le (Complex.exp z) (Complex.exp (-z))
rw [Complex.norm_exp,Complex.norm_exp,Complex.neg_re] at h
linarith
def ellipseMap (v : β) (z : β) : β := (v:β)/2*(Complex.cosh z+1)
lemma ellipseMap_norm {v L : β} (hv : 0 β€ v) (hL : 0 β€ L) (z : β)
(hz : z β verticalClosedStrip 0 L) :
βellipseMap v zβ β€ v/2*(Real.cosh L+1) := by
change 0 β€ z.re β§ z.re β€ L at hz
have hc : Real.cosh z.re β€ Real.cosh L := by
rw [Real.cosh_le_cosh,abs_of_nonneg hz.1,abs_of_nonneg hL]
exact hz.2
have hn : βComplex.cosh z+1β β€ Real.cosh L+1 := by
have := norm_add_le (Complex.cosh z) (1:β)
norm_num only [norm_one] at this
linarith [cosh_norm_le z]
simpa only [ellipseMap,norm_mul,norm_div,Complex.norm_real,Real.norm_eq_abs,
abs_of_nonneg hv,Complex.norm_ofNat] using mul_le_mul_of_nonneg_left hn (by positivity : 0 β€ v/2)
lemma ellipseMap_left {v : β} (hv : 0 β€ v) (z : β) (hz : z.re=0) :
β t : β, 0 β€ t β§ t β€ v β§ ellipseMap v z=(t:β) := by
have he : z=(z.im:β)*Complex.I := by apply Complex.ext <;> simp [hz]
refine β¨v/2*(Real.cos z.im+1),?_,?_,?_β©
Β· have := Real.neg_one_le_cos z.im
exact mul_nonneg (div_nonneg hv (by norm_num)) (by linarith)
Β· have := Real.cos_le_one z.im
nlinarith
Β· have hc : Complex.cosh z=(Real.cos z.im:β) := by
calc Complex.cosh z = Complex.cosh ((z.im:β)*Complex.I) := congrArg _ he
_ = (Real.cos z.im:β) := by rw [Complex.cosh_mul_I,Complex.ofReal_cos]
rw [ellipseMap,hc]
push_cast
rfl
theorem analytic_segment_transfer (R a : β) (hR : 1 < R) (ha : 0 < a) :
β ΞΈ : β, 0 < ΞΈ β§ ΞΈ β€ 1 β§
β E : Type*, β [NormedAddCommGroup E] [NormedSpace β E],
β f : β β E, Differentiable β f β β Ξ΅ : β, 0 β€ Ξ΅ β
(β z : β, βzβ β€ R β βf zβ β€ 1) β
(β t : β, 0 β€ t β t β€ a β βf (t:β)β β€ Ξ΅) β βf 1β β€ Ξ΅^ΞΈ := by
let v := min a (1/2)
have hv : 0 < v := lt_min ha (by norm_num)
have hva : v β€ a := min_le_left _ _
have hv1 : v < 1 := (min_le_right _ _).trans_lt (by norm_num)
let x := Real.arcosh (2/v-1)
let L := Real.arcosh (2*R/v-1)
have hargx : 1 < 2/v-1 := by
have : (2:β) < 2/v := (lt_div_iffβ hv).mpr (by linarith)
linarith
have hargL : 2/v-1 < 2*R/v-1 := by
apply sub_lt_sub_right
apply (div_lt_div_iff_of_pos_right hv).2
linarith
have hx : 0 < x := Real.arcosh_pos hargx
have hxL : x < L := (Real.arcosh_lt_arcosh (by linarith) (by linarith)).mpr hargL
have hL : 0 < L := hx.trans hxL
have hcoshx : Real.cosh x=2/v-1 := Real.cosh_arcosh hargx.le
have hcoshL : Real.cosh L=2*R/v-1 := Real.cosh_arcosh (hargx.trans hargL).le
have houter : v/2*(Real.cosh L+1)=R := by rw [hcoshL]; field_simp; ring
have hat : ellipseMap v (x:β)=1 := by
rw [ellipseMap,βComplex.ofReal_cosh,hcoshx]
push_cast
have hvC : (v:β) β 0 := by exact_mod_cast hv.ne'
field_simp [hvC]
ring
refine β¨1-x/L,by have := (div_lt_one hL).mpr hxL; linarith,
by have := div_nonneg hx.le hL.le; linarith,?_β©
intro E _ _ f hf Ξ΅ hΞ΅ hbound hsmall
let F : β β E := fun z => f (ellipseMap v z)
have hmap : Differentiable β (ellipseMap v) :=
(Complex.differentiable_cosh.add_const 1).const_mul ((v:β)/2)
have hFd : Differentiable β F := hf.comp hmap
have hF1 : βz β verticalClosedStrip 0 L, βF zβ β€ 1 := by
intro z hz
exact hbound _ ((ellipseMap_norm hv.le hL.le z hz).trans_eq houter)
have hc : BddAbove ((norm β F) '' verticalClosedStrip 0 L) := by
use 1
rintro y β¨z,hz,rflβ©
exact hF1 z hz
have hleft : βz β Complex.re β»ΒΉ' {(0:β)}, βF zβ β€ Ξ΅ := by
intro z hz
obtain β¨t,ht,htv,heβ© := ellipseMap_left hv.le z hz
dsimp [F]
rw [he]
exact hsmall t ht (htv.trans hva)
have hright : βz β Complex.re β»ΒΉ' {L}, βF zβ β€ 1 := by
intro z hz
apply hF1
change 0 β€ z.re β§ z.re β€ L
change z.re=L at hz
rw [hz]
exact β¨hL.le,le_rflβ©
have ht := norm_le_interp_of_mem_verticalClosedStrip' hL
(show (x:β) β verticalClosedStrip 0 L from β¨hx.le,hxL.leβ©)
hFd.diffContOnCl hc hleft hright
simpa only [F,hat,Complex.ofReal_re,sub_zero,Real.one_rpow,mul_one] using ht
end BinaryCoordinateSweeps
end
open scoped BigOperators Classical
namespace BinaryCoordinateSweeps
theorem grid_analytic_contraction : β r : β, 0<r β§ β g : β, 0<g β§
βb : β, 1β€b β βbits : Fin b β β,
(βj,rβ€bits j β§ bits jβ€2*r) β βD : β,
βΟ : Representation β (Equiv.Perm (GridSlot bits)) (RepSpace D),
Ο.IsIrreducible β IsUnitaryRep Ο β
βcomplexGridAverage bits Ο 1β β€ (D:β)^(-g) := by
obtain β¨r,hr,q,hq,a,ha,hrealβ© := real_grid_bound
obtain β¨R,hR,hdiskβ© := complex_grid_disk (2*r)
obtain β¨ΞΈ,hΞΈ,hΞΈ1,htransβ© := analytic_segment_transfer R a hR ha
refine β¨r,hr,(c0/(2*q))*ΞΈ,mul_pos (div_pos (by norm_num [c0]) (by positivity)) hΞΈ,?_β©
intro b hb bits hbits D Ο hi hΟ
have := hi
have : Nontrivial (RepSpace D) :=
Module.nontrivial_of_finrank_pos (Signed.irreducible_finrank_pos Ο)
have ht := htrans (RepSpace D βL[β] RepSpace D) (complexGridAverage bits Ο)
(complexGridAverage_differentiable bits Ο) ((D:β)^(-c0/(2*q))) (by positivity)
(hdisk b bits (fun j => (hbits j).2) (RepSpace D) Ο hΟ)
(hreal b hb bits hbits D Ο hi hΟ)
rw [βReal.rpow_mul (Nat.cast_nonneg D)] at ht
have he : (-c0/(2*(q:β)))*ΞΈ = -(c0/(2*q)*ΞΈ) := by ring
simpa only [he] using ht
end BinaryCoordinateSweeps
end
end OAI
|