OAI/Dynamics/SmoothObstruction/FiniteLaw.lean
34 declarations, 0 contain sorry, 0 declared as axioms
- structure
OAI.SmoothObstruction.FiniteLaw.Lawline 13 - def
OAI.SmoothObstruction.FiniteLaw.expectline 20 - lemma
OAI.SmoothObstruction.FiniteLaw.expect_nonnegline 22 - lemma
OAI.SmoothObstruction.FiniteLaw.expect_monoline 25 - lemma
OAI.SmoothObstruction.FiniteLaw.expect_constline 28 - lemma
OAI.SmoothObstruction.FiniteLaw.expect_addline 31 - lemma
OAI.SmoothObstruction.FiniteLaw.expect_subline 35 - lemma
OAI.SmoothObstruction.FiniteLaw.expect_mul_constline 39 - lemma
OAI.SmoothObstruction.FiniteLaw.expect_const_mulline 43 - lemma
OAI.SmoothObstruction.FiniteLaw.expect_sumline 47 - lemma
OAI.SmoothObstruction.FiniteLaw.expect_sq_absline 52 - def
OAI.SmoothObstruction.FiniteLaw.productline 63 - lemma
OAI.SmoothObstruction.FiniteLaw.product_momentline 72 - lemma
OAI.SmoothObstruction.FiniteLaw.product_one_momentline 81 - lemma
OAI.SmoothObstruction.FiniteLaw.product_two_momentline 91 - def
OAI.SmoothObstruction.FiniteLaw.conditionline 108 - lemma
OAI.SmoothObstruction.FiniteLaw.condition_boundline 116 - lemma
OAI.SmoothObstruction.FiniteLaw.orthogonal_sum_squareline 140 - lemma
OAI.SmoothObstruction.FiniteLaw.centered_square_leline 155 - lemma
OAI.SmoothObstruction.FiniteLaw.empirical_varianceline 163Source documentation
The exact second-moment calculation for genuinely independent sampled probability vectors. The vector's coordinates need not be independent.
lemma empirical_variance [Nonempty I] (P : I → Law A) (Y : I → A → J → ℝ) (p : J → ℝ) (hY : ∀ i x a, 0 ≤ Y i x a) (hs : ∀ i x, ∑ a, Y i x a = 1) (hm : ∀ i a, expect (P i) (fun x => Y i x a) = p a) : (∑ a, expect (product P) (fun x => ((∑ i, Y i (x i) a) / Fintype.card I - p a) ^ 2)) ≤ 1 / Fintype.card I := by …Mentions: OAI.SmoothObstruction.FiniteLaw.Law, OAI.SmoothObstruction.FiniteLaw.expect, OAI.SmoothObstruction.FiniteLaw.product
- lemma
OAI.SmoothObstruction.FiniteLaw.expected_tv_of_second_momentline 213Source documentation
A finite form of the TV/second-moment inequality, including samples with zero mass.
lemma expected_tv_of_second_moment (P : Law A) (Z : A → J → ℝ) {v : ℝ} (hv : 0 ≤ v) (hvar : ∑ a, expect P (fun x => Z x a ^ 2) ≤ v) : expect P (fun x => (1 / 2 : ℝ) * ∑ a, |Z x a|) ≤ (1 / 2 : ℝ) * Real.sqrt (Fintype.card J * v) := by …Mentions: OAI.SmoothObstruction.FiniteLaw.Law, OAI.SmoothObstruction.FiniteLaw.expect
- theorem
OAI.SmoothObstruction.FiniteLaw.independent_vectors_tvline 236Source documentation
Source lem:word-tv, for independent complete vectors, with its literal one-half constant. This is used twice, not an assumption about empirical laws.
theorem independent_vectors_tv [Nonempty I] (P : I → Law A) (Y : I → A → J → ℝ) (p : J → ℝ) (hY : ∀ i x a, 0 ≤ Y i x a) (hs : ∀ i x, ∑ a, Y i x a = 1) (hm : ∀ i a, expect (P i) (fun x => Y i x a) = p a) : expect (product P) (fun x => (1 / 2 : ℝ) * ∑ a, |(∑ i, Y i (x i) a) / Fintype.card I - p a|) ≤ (1 / 2 : ℝ) * Real.sqrt (Fintype.card J / Fintype.card I) := by …Mentions: OAI.SmoothObstruction.FiniteLaw.Law, OAI.SmoothObstruction.FiniteLaw.expect, OAI.SmoothObstruction.FiniteLaw.product
- def
OAI.SmoothObstruction.FiniteLaw.probline 253 - lemma
OAI.SmoothObstruction.FiniteLaw.prob_nonnegline 256 - lemma
OAI.SmoothObstruction.FiniteLaw.prob_le_oneline 260 - lemma
OAI.SmoothObstruction.FiniteLaw.prob_eq_expectline 265 - lemma
OAI.SmoothObstruction.FiniteLaw.prob_complline 269 - lemma
OAI.SmoothObstruction.FiniteLaw.markovline 274 - lemma
OAI.SmoothObstruction.FiniteLaw.union_boundline 284 - lemma
OAI.SmoothObstruction.FiniteLaw.good_event_massline 299 - lemma
OAI.SmoothObstruction.FiniteLaw.exists_goodline 318 - lemma
OAI.SmoothObstruction.FiniteLaw.condition_supportedline 329 - def
OAI.SmoothObstruction.FiniteLaw.pushline 337 - lemma
OAI.SmoothObstruction.FiniteLaw.expect_pushline 344