Theorem: MeasureTheory.limsup_measure_compl_le_of_le_liminf_measure
File: Mathlib/MeasureTheory/Measure/Portmanteau.lean

tactic: rcases L.eq_or_neBot with rfl | hne
state_before: Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
⊢ limsup (fun i => (μs i) Eᶜ) L ≤ μ Eᶜ
state_after: case inl
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) ⊥
⊢ limsup (fun i => (μs i) Eᶜ) ⊥ ≤ μ Eᶜ

case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
⊢ limsup (fun i => (μs i) Eᶜ) L ≤ μ Eᶜ

tactic: have meas_Ec : μ Eᶜ = 1 - μ E := by
  simpa only [measure_univ] using measure_compl E_mble (measure_lt_top μ E).ne
state_before: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
⊢ limsup (fun i => (μs i) Eᶜ) L ≤ μ Eᶜ
state_after: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
⊢ limsup (fun i => (μs i) Eᶜ) L ≤ μ Eᶜ

tactic: have meas_i_Ec : ∀ i, μs i Eᶜ = 1 - μs i E := by
  intro i
  simpa only [measure_univ] using measure_compl E_mble (measure_lt_top (μs i) E).ne
state_before: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
⊢ limsup (fun i => (μs i) Eᶜ) L ≤ μ Eᶜ
state_after: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
meas_i_Ec : ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
⊢ limsup (fun i => (μs i) Eᶜ) L ≤ μ Eᶜ

tactic: simp_rw [meas_Ec, meas_i_Ec]
state_before: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
meas_i_Ec : ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
⊢ limsup (fun i => (μs i) Eᶜ) L ≤ μ Eᶜ
state_after: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
meas_i_Ec : ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
⊢ limsup (fun i => 1 - (μs i) E) L ≤ 1 - μ E

tactic: have obs :
  (L.limsup fun i : ι => 1 - μs i E) = L.limsup ((fun x => 1 - x) ∘ fun i : ι => μs i E) := rfl
state_before: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
meas_i_Ec : ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
⊢ limsup (fun i => 1 - (μs i) E) L ≤ 1 - μ E
state_after: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
meas_i_Ec : ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
obs : limsup (fun i => 1 - (μs i) E) L = limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L
⊢ limsup (fun i => 1 - (μs i) E) L ≤ 1 - μ E

tactic: rw [obs]
state_before: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
meas_i_Ec : ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
obs : limsup (fun i => 1 - (μs i) E) L = limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L
⊢ limsup (fun i => 1 - (μs i) E) L ≤ 1 - μ E
state_after: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
meas_i_Ec : ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
obs : limsup (fun i => 1 - (μs i) E) L = limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L
⊢ limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L ≤ 1 - μ E

tactic: have := antitone_const_tsub.map_liminf_of_continuousAt (F := L)
  (fun i => μs i E) (ENNReal.continuous_sub_left ENNReal.one_ne_top).continuousAt
state_before: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
meas_i_Ec : ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
obs : limsup (fun i => 1 - (μs i) E) L = limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L
⊢ limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L ≤ 1 - μ E
state_after: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
meas_i_Ec : ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
obs : limsup (fun i => 1 - (μs i) E) L = limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L
this : 1 - liminf (fun i => (μs i) E) L = limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L
⊢ limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L ≤ 1 - μ E

tactic: simp_rw [← this]
state_before: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
meas_i_Ec : ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
obs : limsup (fun i => 1 - (μs i) E) L = limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L
this : 1 - liminf (fun i => (μs i) E) L = limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L
⊢ limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L ≤ 1 - μ E
state_after: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
meas_i_Ec : ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
obs : limsup (fun i => 1 - (μs i) E) L = limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L
this : 1 - liminf (fun i => (μs i) E) L = limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L
⊢ 1 - liminf (fun i => (μs i) E) L ≤ 1 - μ E

tactic: exact antitone_const_tsub h
state_before: case inr
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
meas_i_Ec : ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
obs : limsup (fun i => 1 - (μs i) E) L = limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L
this : 1 - liminf (fun i => (μs i) E) L = limsup ((fun x => 1 - x) ∘ fun i => (μs i) E) L
⊢ 1 - liminf (fun i => (μs i) E) L ≤ 1 - μ E
state_after: no goals

tactic: simp only [limsup_bot, bot_le]
state_before: case inl
Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) ⊥
⊢ limsup (fun i => (μs i) Eᶜ) ⊥ ≤ μ Eᶜ
state_after: no goals

tactic: simpa only [measure_univ] using measure_compl E_mble (measure_lt_top μ E).ne
state_before: Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
⊢ μ Eᶜ = 1 - μ E
state_after: no goals

tactic: intro i
state_before: Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
⊢ ∀ (i : ι), (μs i) Eᶜ = 1 - (μs i) E
state_after: Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
i : ι
⊢ (μs i) Eᶜ = 1 - (μs i) E

tactic: simpa only [measure_univ] using measure_compl E_mble (measure_lt_top (μs i) E).ne
state_before: Ω : Type u_1
inst✝² : MeasurableSpace Ω
ι : Type u_2
L : Filter ι
μ : Measure Ω
μs : ι → Measure Ω
inst✝¹ : IsProbabilityMeasure μ
inst✝ : ∀ (i : ι), IsProbabilityMeasure (μs i)
E : Set Ω
E_mble : MeasurableSet E
h : μ E ≤ liminf (fun i => (μs i) E) L
hne : L.NeBot
meas_Ec : μ Eᶜ = 1 - μ E
i : ι
⊢ (μs i) Eᶜ = 1 - (μs i) E
state_after: no goals