Buckets:
cfahlgren1/math / lean /OAI /Computability /PerfectCompleteness /Sampling /RecursiveSamplerLaws.lean
| import OAI.Computability.PerfectCompleteness.Algebra.UniformLinearImage | |
| namespace OAI | |
| section | |
| namespace PerfectCompleteness.FiniteProduct | |
| open UniqueGamesTheorem.Foundations.Games | |
| noncomputable section | |
| variable {I : Type*} [Fintype I] [DecidableEq I] | |
| {Ω : I → Type*} [∀ i, Fintype (Ω i)] | |
| theorem eval_pushforward (P : (i : I) → FiniteDistribution (Ω i)) (i : I) : | |
| (law P).pushforward (fun x => x i) = P i := by | |
| classical | |
| apply FiniteDistribution.eq_of_weight_eq | |
| intro a | |
| calc | |
| _ = (law P).expectation (fun x => if x i = a then 1 else 0) := by | |
| simp [FiniteDistribution.pushforward, FiniteDistribution.expectation, mul_ite] | |
| _ = (P i).expectation (fun b => if b = a then 1 else 0) := | |
| expectation_eval P i (fun b => if b = a then (1 : ℝ) else 0) | |
| _ = _ := by simp [FiniteDistribution.expectation, mul_ite] | |
| end | |
| end PerfectCompleteness.FiniteProduct | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 912 Bytes
- Xet hash:
- 798bca6c20ea7f8c7e016eb2ff60c9b7e3fd006fcc367b298cf17f3a8d222fb2
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.