Buckets:
| import Mathlib | |
| import OAI.Computability.VertexCover.PCP.SpectralReturn | |
| import OAI.Computability.VertexCover.PCP.LazySmoothing | |
| namespace OAI | |
| namespace UniqueGames.Foundations.PCP.PoweringWalks | |
| variable {V D : Type*} | |
| def lazyRotate (G : PortGraph V D) : Edge V (Bool × D) → Edge V (Bool × D) | |
| | (v, (false, d)) => (v, (false, d)) | |
| | (v, (true, d)) => ((G.rot (v, d)).1, (true, (G.rot (v, d)).2)) | |
| theorem lazyRotate_involutive (G : PortGraph V D) : | |
| Function.Involutive (lazyRotate G) := by | |
| rintro ⟨v, b, d⟩ | |
| cases b with | |
| | false => rfl | |
| | true => | |
| exact congrArg (fun e : V × D => (e.1, (true, e.2))) (rot_rot G (v, d)) | |
| def lazyGraph (G : PortGraph V D) : PortGraph V (Bool × D) where | |
| rot := { | |
| toFun := lazyRotate G | |
| invFun := lazyRotate G | |
| left_inv := lazyRotate_involutive G | |
| right_inv := lazyRotate_involutive G } | |
| rot_involutive := lazyRotate_involutive G | |
| @[simp] theorem lazyGraph_rot_false (G : PortGraph V D) (v : V) (d : D) : | |
| (lazyGraph G).rot (v, (false, d)) = (v, (false, d)) := rfl | |
| @[simp] theorem lazyGraph_rot_true (G : PortGraph V D) (v : V) (d : D) : | |
| (lazyGraph G).rot (v, (true, d)) = ((G.rot (v, d)).1, (true, (G.rot (v, d)).2)) := rfl | |
| end UniqueGames.Foundations.PCP.PoweringWalks | |
| namespace UniqueGames.Foundations.PCP.PoweringLazy | |
| open PoweringWalks SpectralReturn | |
| variable {V D : Type*} | |
| theorem operator_binomialMean [Fintype D] (G : PortGraph V D) | |
| (n : Nat) (g : Nat → V → ℝ) (v : V) : | |
| averagingOperator G (fun w => LazySmoothing.binomialMean n (fun k => g k w)) v = | |
| LazySmoothing.binomialMean n (fun k => averagingOperator G (g k) v) := by | |
| unfold averagingOperator LazySmoothing.binomialMean | |
| exact Finset.expect_comm Finset.univ Finset.univ | |
| (fun d tape => g (LazySmoothing.bitCount tape) (G.rot (v, d)).1) | |
| theorem averagingOperator_lazy [Fintype D] [Nonempty D] | |
| (G : PortGraph V D) (f : V → ℝ) (v : V) : | |
| averagingOperator (lazyGraph G) f v = (f v + averagingOperator G f v) / 2 := by | |
| change mean (fun bd : Bool × D => f ((lazyGraph G).rot (v, bd)).1) = _ | |
| rw [mean_prod] | |
| change Finset.univ.expect (fun b : Bool => | |
| mean (fun d : D => f ((lazyGraph G).rot (v, (b, d))).1)) = _ | |
| rw [LazySmoothing.expect_bool] | |
| simp only [lazyGraph_rot_false, lazyGraph_rot_true] | |
| rw [mean_const] | |
| rfl | |
| theorem iterate_lazy_eq_binomialMean [Fintype D] [Nonempty D] | |
| (G : PortGraph V D) (n : Nat) (f : V → ℝ) : | |
| iterateOperator (lazyGraph G) n f = | |
| fun v => LazySmoothing.binomialMean n (fun k => iterateOperator G k f v) := by | |
| induction n with | |
| | zero => | |
| funext v | |
| simp [iterateOperator] | |
| | succ n ih => | |
| funext v | |
| change averagingOperator (lazyGraph G) (iterateOperator (lazyGraph G) n f) v = _ | |
| rw [ih, averagingOperator_lazy, operator_binomialMean, LazySmoothing.mean_succ] | |
| rfl | |
| theorem iterate_mem_Icc [Fintype D] [Nonempty D] | |
| (G : PortGraph V D) (f : V → ℝ) (hf : ∀ w, f w ∈ Set.Icc (0 : ℝ) 1) | |
| (n : Nat) (v : V) : iterateOperator G n f v ∈ Set.Icc (0 : ℝ) 1 := by | |
| induction n generalizing v with | |
| | zero => exact hf v | |
| | succ n ih => | |
| change mean (fun d : D => iterateOperator G n f (G.rot (v, d)).1) ∈ Set.Icc (0 : ℝ) 1 | |
| constructor | |
| · exact mean_nonnegative _ (fun d => (ih ((G.rot (v, d)).1)).1) | |
| · calc | |
| mean (fun d : D => iterateOperator G n f (G.rot (v, d)).1) ≤ | |
| mean (fun _ : D => (1 : ℝ)) := | |
| mean_mono (fun d => (ih ((G.rot (v, d)).1)).2) | |
| _ = 1 := mean_const _ | |
| theorem lazy_endpoint_modal_transfer [Fintype D] [Nonempty D] | |
| (G : PortGraph V D) (q M m : Nat) (hq : 1 ≤ q) (hM : 1 ≤ M) | |
| (hlo : (4 * q * M) ^ 2 - M ≤ m) (hhi : m ≤ (4 * q * M) ^ 2 + M) | |
| (f : V → ℝ) (hf : ∀ w, f w ∈ Set.Icc (0 : ℝ) 1) (v : V) | |
| (hmodal : 1 / (q : ℝ) ≤ iterateOperator (lazyGraph G) ((4 * q * M) ^ 2) f v) : | |
| 1 / (2 * (q : ℝ)) ≤ iterateOperator (lazyGraph G) m f v := by | |
| rw [iterate_lazy_eq_binomialMean] at hmodal ⊢ | |
| exact LazySmoothing.modal_transfer q M m hq hM hlo hhi | |
| (fun k => iterateOperator G k f v) (fun k => iterate_mem_Icc G f hf k v) hmodal | |
| end UniqueGames.Foundations.PCP.PoweringLazy | |
| end OAI | |
Xet Storage Details
- Size:
- 4.28 kB
- Xet hash:
- 215b1a2d351a58c364f05bc26d712fe06a14ab0b0c792cedf75a157b04ecc492
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.