Buckets:
| import OAI.NumberTheory.DirichletL.ParametersSlotLengths | |
| namespace OAI | |
| noncomputable section | |
| namespace SevenEighths.Parameters | |
| theorem exists_detector_scales (R rmin mesh dmin loss ellMin allowance J : ℝ) | |
| (hR : 0≤R) (hr : 0<rmin) (hm : 0<mesh) (hd : 0<dmin) | |
| (hl : 0<loss) (hell : 0<ellMin) (ha : 0<allowance) (hJ : 0≤J) : | |
| ∃ε e κ cost τ : ℝ, | |
| 0<ε ∧ ε≤1/1000 ∧ ε<rmin*mesh ∧ ε≤allowance ∧ | |
| 0<e ∧ e<1/1000 ∧ e≤ellMin/4 ∧ e≤allowance ∧ | |
| 0<κ ∧ κ≤1 ∧ 0<cost ∧ | |
| 12*e*(22+2)+8*κ+2*cost≤ε/2 ∧ | |
| 8*e*R+κ≤ε ∧ | |
| 0<τ ∧ τ<dmin/2 ∧ 4*τ<dmin*cost ∧ | |
| 2*τ*(1+J)≤loss ∧ ∀eps : ℝ,0≤eps → eps≤1 → τ*(2+4*eps)<loss := by | |
| let ε := min (allowance/2) (min (rmin*mesh/2) (1/2000)) | |
| have hε : 0<ε := lt_min (by positivity) (lt_min (by positivity) (by norm_num)) | |
| have hεa : ε≤allowance/2 := min_le_left _ _ | |
| have hεr : ε≤rmin*mesh/2 := (min_le_right _ _).trans (min_le_left _ _) | |
| have hε1 : ε≤1/2000 := (min_le_right _ _).trans (min_le_right _ _) | |
| let e := min (ε/(10000*(1+R))) (min (ellMin/4) (allowance/2)) | |
| have he : 0<e := lt_min (div_pos hε (by positivity)) (lt_min (by positivity) (by positivity)) | |
| have heb : e≤ε/(10000*(1+R)) := min_le_left _ _ | |
| have hep : e*(10000*(1+R))≤ε := (le_div_iff₀ (by positivity)).mp heb | |
| have heR : 0≤e*R := mul_nonneg he.le hR | |
| have hel : e≤ellMin/4 := (min_le_right _ _).trans (min_le_left _ _) | |
| have hea : e≤allowance/2 := (min_le_right _ _).trans (min_le_right _ _) | |
| let κ := ε/1000 | |
| let cost := ε/1000 | |
| have hk : 0<κ := by dsimp [κ]; positivity | |
| have hc : 0<cost := by dsimp [cost]; positivity | |
| let τ := min (dmin*cost/16) (min (dmin/4) (loss/(4*(1+J+6)))) | |
| have ht : 0<τ := lt_min (by positivity) (lt_min (by positivity) (by positivity)) | |
| have htc : τ≤dmin*cost/16 := min_le_left _ _ | |
| have htd : τ≤dmin/4 := (min_le_right _ _).trans (min_le_left _ _) | |
| have htl : τ≤loss/(4*(1+J+6)) := (min_le_right _ _).trans (min_le_right _ _) | |
| have htJ : τ*(4*(1+J+6))≤loss := (le_div_iff₀ (by positivity)).mp htl | |
| have hprod : 0≤τ*J := mul_nonneg ht.le hJ | |
| refine ⟨ε,e,κ,cost,τ,hε,by linarith,by nlinarith [mul_pos hr hm],by linarith, | |
| he,by nlinarith,hel,by linarith,hk,?_,hc,?_,?_,ht,by linarith,?_,?_,?_⟩ | |
| · dsimp [κ];linarith | |
| · dsimp [κ,cost];nlinarith | |
| · dsimp [κ];nlinarith | |
| · have hp := mul_pos hd hc;linarith | |
| · nlinarith | |
| · intro eps heps heps1 | |
| have hp := mul_le_mul_of_nonneg_left heps1 ht.le | |
| nlinarith | |
| end SevenEighths.Parameters | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 2.61 kB
- Xet hash:
- cc40f78ff0db8c3acc949cd0a9b3ff20195dd96c7b3d1433a94eef3adb2801b5
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.