openAI-math-dataset / lean /OAI /Analysis /IrrationalRotation /Couplings /ConditionalEventLocalization.lean
roseking's picture
Add lean source and binary files (part 19)
9eeb9c7 verified
Raw History Blame Contribute Delete
2.25 kB
15
theorem condProb_mono_on (hm : m ≤ mΩ) {A B S : Set Ω}
    (hA : MeasurableSet[mΩ] A) (hB : MeasurableSet[mΩ] B) (hS : MeasurableSet[m] S)
    (hsub : ∀ᵐ ω ∂μ, ω ∈ S → ω ∈ A → ω ∈ B) :
    ∀ᵐ ω ∂μ, ω ∈ S → (μ⟦A | m⟧) ω ≤ (μ⟦B | m⟧) ω := by
proof · 21 lines
  have hAi : Integrable (A.indicator (fun _ => (1 : ℝ))) μ :=
    (integrable_const _).indicator hA
  have hBi : Integrable (B.indicator (fun _ => (1 : ℝ))) μ :=
    (integrable_const _).indicator hB
  have hle : S.indicator (A.indicator (fun _ => (1 : ℝ))) ≤ᵐ[μ]
      S.indicator (B.indicator (fun _ => (1 : ℝ))) := by
    filter_upwards [hsub] with ω hω
    by_cases hs : ω ∈ S
    · simp only [indicator_of_mem hs]
      by_cases ha : ω ∈ A
      · simp only [indicator_of_mem ha, indicator_of_mem (hω hs ha), le_refl]
      · simp only [indicator_of_notMem ha]
        exact indicator_nonneg (fun _ _ => by norm_num) _
    · simp only [indicator_of_notMem hs, le_refl]
  have hc := condExp_mono (m := m) (hAi.indicator (hm _ hS))
    (hBi.indicator (hm _ hS)) hle
  filter_upwards [hc, condExp_indicator hAi hS, condExp_indicator hBi hS]
      with ω hle hleft hright
  intro hs
  rw [hleft, hright, indicator_of_mem hs, indicator_of_mem hs] at hle
  exact hle
41
theorem condProb_lower_on_of_forcing (hm : m ≤ mΩ) {A B S : Set Ω}
    (hA : MeasurableSet[mΩ] A) (hB : MeasurableSet[mΩ] B) (hS : MeasurableSet[m] S)
    (hsub : ∀ᵐ ω ∂μ, ω ∈ S → ω ∈ A → ω ∈ B)
    (r : Ω → ℝ) (hlower : ∀ᵐ ω ∂μ, ω ∈ S → r ω ≤ (μ⟦A | m⟧) ω) :
    ∀ᵐ ω ∂μ, ω ∈ S → r ω ≤ (μ⟦B | m⟧) ω := by
proof · 2 lines
  filter_upwards [@condProb_mono_on Ω mΩ μ _ m hm A B S hA hB hS hsub, hlower] with ω hmono hlo
  exact fun hs => (hlo hs).trans (hmono hs)