Buckets:
| import OAI.NumberTheory.Ostmann.Arithmetic.BulkLogContinuity | |
| import OAI.NumberTheory.Ostmann.Arithmetic.RealBulkPrimeComparison | |
| import OAI.NumberTheory.Ostmann.Construction.PrimeLogCellMeasure | |
| namespace OAI | |
| /-! # Actual prime and Page averages of a bulk coordinate -/ | |
| namespace Ostmann | |
| open MeasureTheory | |
| open scoped Classical BigOperators SchwartzMap BoundedContinuousFunction | |
| noncomputable def bulkSmoothComparisonBudget (Ο : π’(β, β)) (V lo hi : β) | |
| (n d r : β) (B D : β) : β := | |
| (((2 ^ n + (2 ^ n - 1)) * (2 * (n * d) + r) + 1 : β) : β) * | |
| (movingFourierVariationBudget Ο V lo hi n * (2 * B + D * (Real.exp 2 - 1)) ^ (2 ^ n - 1)) | |
| noncomputable def bulkPrimeErrorFactor (P : PublishedProgressionInput) (Q : β) (u : β) : β := | |
| 18 * P.errorConstant * Real.exp (-P.decay * Real.sqrt u) + | |
| Real.exp (-P.kappa * u / Real.log (4 * (Q : β))) + 2 * Real.exp (-u) | |
| /-- An actual one-coordinate comparison, uniformly in the remaining real bulk | |
| logarithms. The finite prime measure includes both boundary conventions exactly. -/ | |
| theorem PublishedProgressionInput.bulk_log_slice_comparison | |
| (P : PublishedProgressionInput) {Ο : Type*} [Fintype Ο] | |
| (base : Ο β β) (S : Finset Ο) {n : β} (T : MovingSlotData Ο n) | |
| (i : Ο) (hiS : i β S) (hT : T.CompensationAbsent i) | |
| (Ο : π’(β, β)) (X lo hi V : β) (hlo : 1 β€ lo) (hhi : lo β€ hi) | |
| (hV : T.Frequencies (fun s => |(s : β)| β€ V)) | |
| (Ο : β β β) (G : β β β) (B D : β) (hB : 0 β€ B) (hD : 0 β€ D) | |
| (hΟ : β x, |Ο x| β€ B) (hlip : β x y, |Ο x - Ο y| β€ D * |x - y|) | |
| (hout : β x, 1 β€ |x| β Ο x = 0) | |
| (d r : β) (hsize : T.SizeLE d) (hregular : T.RegularLengthLE r) | |
| (L R : β) (f : (Ο β β) βα΅ β) | |
| (hf : β x, f x = realValueSmoothWeight (bulkLogValues base S x) T Ο X lo hi hlo hhi Ο G L R) | |
| {Q q a : β} (hQ : 2 β€ Q) (hq : 1 β€ q) (hqQ : q β€ Q) (ha : a.Coprime q) | |
| (u v : β) (hu : 1 β€ u) (huv : u β€ v) (hshort : v β€ u + 1) : | |
| let _ := finite_primeGiantMeasure P Q q a u v (by linarith : 0 < u) | |
| βcoordinateAverage (primeLogCellMeasure q a u v) i f - | |
| coordinateAverage (primeGiantMeasure P Q q a u v) i fβ β€ | |
| bulkSmoothComparisonBudget Ο V lo hi n d r B D * bulkPrimeErrorFactor P Q u := by | |
| let _ := finite_primeGiantMeasure P Q q a u v (by linarith : 0 < u) | |
| have hpoint (x : Ο β β) : | |
| βcoordinateAverage (primeLogCellMeasure q a u v) i f x - | |
| coordinateAverage (primeGiantMeasure P Q q a u v) i f xβ β€ | |
| bulkSmoothComparisonBudget Ο V lo hi n d r B D * bulkPrimeErrorFactor P Q u := by | |
| let value := bulkLogValues base S x | |
| have hprime : coordinateAverage (primeLogCellMeasure q a u v) i f x = | |
| realBulkPrimeSmoothSum value i T (Polynomial.C L) (Polynomial.C R) | |
| Ο X lo hi hlo hhi Ο G q a u v := by | |
| rw [coordinateAverage_apply] | |
| change (β« t, coordinateSlice f i x t βprimeLogCellMeasure q a u v) = _ | |
| rw [primeLogCellMeasure_integral] | |
| unfold realBulkPrimeSmoothSum | |
| apply Finset.sum_congr rfl | |
| intro p hp | |
| have hp0 : (0 : β) < p := by | |
| have hpprime : p.Prime := (Finset.mem_filter.mp hp).2.1 | |
| exact_mod_cast hpprime.pos | |
| change f (Function.update x i (Real.log p)) * _ = _ | |
| rw [hf, bulkLogValues_update base S x i hiS, Real.exp_log hp0] | |
| simp only [Polynomial.eval_C, value] | |
| have hpage : coordinateAverage (primeGiantMeasure P Q q a u v) i f x = | |
| β« y in Set.Ioc u v, | |
| smoothPolynomialWeight (bulkSmoothFactors value i T (Polynomial.C L) (Polynomial.C R) | |
| Ο X lo hi hlo hhi Ο G B D hB hD hΟ hlip) (Real.exp y) * | |
| (selectedPrimeLogDensity P Q q a y : β) := by | |
| rw [coordinateAverage_apply, primeGiantMeasure_integral P Q q a u v (by linarith)] | |
| apply setIntegral_congr_fun measurableSet_Ioc | |
| intro y _ | |
| dsimp only | |
| rw [hf, bulkLogValues_update base S x i hiS, | |
| bulkSmoothFactors_value value i T hT _ _ Ο X lo hi hlo hhi Ο G B D hB hD hΟ hlip hout] | |
| simp only [Polynomial.eval_C, value] | |
| rw [hprime, hpage] | |
| have h := P.real_bulk_prime_comparison value i T hT (Polynomial.C L) (Polynomial.C R) | |
| Ο X lo hi V hlo hhi hV Ο G B D hB hD hΟ hlip hout d r 0 hsize hregular | |
| (by simp) (by simp) hQ hq hqQ ha u v hu huv hshort | |
| simpa only [bulkSmoothComparisonBudget, bulkPrimeErrorFactor, | |
| MovingSlotData.bulkNodePolynomials_length, add_zero] using h | |
| have hnonneg := (norm_nonneg _).trans (hpoint (fun _ => 0)) | |
| exact (BoundedContinuousFunction.norm_le hnonneg).mpr hpoint | |
| end Ostmann | |
| end OAI | |
Xet Storage Details
- Size:
- 4.67 kB
- Xet hash:
- 122673d64c99f63ebf0889463dc50d2da2aa4ee671d6edf4c42b00734a09714a
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.