Download data/lean/OAI/Computability/MinUncut/Games/TripleKernel.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.33 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Computability/MinUncut/Games/TripleKernel.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Computability/MinUncut/Games/TripleKernel.lean
-
curl -L -o TripleKernel.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Computability/MinUncut/Games/TripleKernel.lean
2.33 kB
| import Mathlib | |
| import OAI.Computability.MinUncut.Estimates.Density | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators | |
| open MeasureTheory ProbabilityTheory Filter | |
| open scoped Topology NNReal | |
| open scoped BigOperators | |
| namespace MinUncut.Composition | |
| open BinaryFourier OuterSmoothness | |
| variable {W : Type*} [AddCommGroup W] [Module Fβ W] [Fintype W] | |
| local instance tripleKernelDecidableEq : DecidableEq W := Classical.decEq W | |
| BinaryFourier.dualFintype | |
| def tripleKernel (f : W β β) (v : W Γ W Γ W) : β := | |
| f v.1 * f v.2.1 * f v.2.2 * f (v.1+v.2.1+v.2.2) | |
| lemma tripleKernel_mean (f : W β β) : | |
| (πΌ v : W Γ W Γ W, tripleKernel f v) = | |
| β Ξ± : Module.Dual Fβ W, coefficient f Ξ± ^ 4 := by | |
| unfold tripleKernel | |
| rw [expect_pair] | |
| simp_rw [expect_pair] | |
| exact fourth_moment f | |
| omit [Module Fβ W] [Fintype W] in | |
| lemma tripleKernel_abs (f : W β β) {M : β} (hM : 0 β€ M) | |
| (hf : β w, |f w| β€ M) (v : W Γ W Γ W) : |tripleKernel f v| β€ M^4 := by | |
| simp only [tripleKernel, abs_mul] | |
| calc _ β€ M * M * M * M := by | |
| gcongr <;> exact hf _ | |
| _ = _ := by ring | |
| theorem adaptive_fourth_moment {B : Type*} [Fintype B] [Nonempty B] | |
| (p : Density (B Γ (W Γ W Γ W))) (f : B β W β β) {M u : β} | |
| (hM : 0 β€ M) (hu : 0 < u) (hf : β b w, |f b w| β€ M) : | |
| (πΌ z, p z * tripleKernel (remainder (f z.1) u) z.2) β€ | |
| u^2 * M^2 + 2 * p.tvUniform * (M + M^2/u)^4 := by | |
| let g : B Γ (W Γ W Γ W) β β := fun z => tripleKernel (remainder (f z.1) u) z.2 | |
| have hMr : 0 β€ M + M^2/u := by positivity | |
| have hg (z : B Γ (W Γ W Γ W)) : |g z| β€ (M + M^2/u)^4 := | |
| tripleKernel_abs _ hMr (remainder_abs_bound (f z.1) hM hu (hf z.1)) z.2 | |
| have hdiff := Density.expect_difference p g (pow_nonneg hMr _) hg | |
| have hmean : (πΌ z, g z) β€ u^2 * M^2 := by | |
| change (πΌ z : B Γ (W Γ W Γ W), tripleKernel (remainder (f z.1) u) z.2) β€ _ | |
| rw [expect_pair] | |
| simp_rw [tripleKernel_mean] | |
| calc _ β€ πΌ b : B, u^2 * M^2 := Finset.expect_le_expect (fun b _ => | |
| remainder_fourth_bound (f b) hM hu (hf b)) | |
| _ = _ := Fintype.expect_const _ | |
| have habs := le_abs_self ((πΌ z, p z * g z) - (πΌ z, g z)) | |
| dsimp only [g] at hdiff hmean habs | |
| linarith | |
| end MinUncut.Composition | |
| end | |
| end OAI | |