theorem extracted_formal_statement_6.{u_2, u_1} {Ω : Type u_1} {ι : Type u_2} [inst : MeasurableSpace Ω] {μ : Measure Ω}
  [inst_1 : IsProbabilityMeasure μ] [inst_2 : Fintype ι] [inst_3 : DecidableEq ι] (s : Finset ι) {f : ι → Set (ι → Ω)}
  (hf : ∀ i ∈ s, ∃ s', inst.MeasurableSet' s' ∧ Function.eval i ⁻¹' s' = f i) :
  let f' := fun i hi => Classical.choose (hf i hi);
  let hf' := fun i hi => Classical.choose_spec (hf i hi);
  ∀ x ∈ ⋂ i ∈ s, f i, ∀ i ∈ Set.univ, i ∉ s → (x i ∈ if h : i ∈ s then f' i h else Set.univ) → x i ∈ Set.univ := sorry

State before:
Ω : Type u_1
ι : Type u_2
inst✝³ : MeasurableSpace Ω
μ : Measure Ω
inst✝² : IsProbabilityMeasure μ
inst✝¹ : Fintype ι
inst✝ : DecidableEq ι
s : Finset ι
f : ι → Set (ι → Ω)
hf : ∀ i ∈ s, ∃ s', inst✝³.MeasurableSet' s' ∧ Function.eval i ⁻¹' s' = f i
f' : (i : ι) → i ∈ s → Set Ω := fun i hi => Classical.choose ⋯
hf' : ∀ (i : ι) (hi : i ∈ s),
  inst✝³.MeasurableSet' (Classical.choose ⋯) ∧ Function.eval i ⁻¹' Classical.choose ⋯ = f i :=
  fun i hi => Classical.choose_spec (hf i hi)
f'' : ι → Set Ω := fun i => if h : i ∈ s then f' i h else Set.univ
x : ι → Ω
hx : x ∈ ⋂ i ∈ s, f i
i : ι
a✝ : i ∈ Set.univ
h : i ∉ s
⊢ x i ∈ if h : i ∈ s then f' i h else Set.univ

Tactic: rw [dif_neg h]

State after:
[Ω : Type u_1
 ι : Type u_2
 inst✝³ : MeasurableSpace Ω
 μ : Measure Ω
 inst✝² : IsProbabilityMeasure μ
 inst✝¹ : Fintype ι
 inst✝ : DecidableEq ι
 s : Finset ι
 f : ι → Set (ι → Ω)
 hf : ∀ i ∈ s, ∃ s', inst✝³.MeasurableSet' s' ∧ Function.eval i ⁻¹' s' = f i
 f' : (i : ι) → i ∈ s → Set Ω := fun i hi => Classical.choose ⋯
 hf' : ∀ (i : ι) (hi : i ∈ s),
   inst✝³.MeasurableSet' (Classical.choose ⋯) ∧ Function.eval i ⁻¹' Classical.choose ⋯ = f i :=
   fun i hi => Classical.choose_spec (hf i hi)
 f'' : ι → Set Ω := fun i => if h : i ∈ s then f' i h else Set.univ
 x : ι → Ω
 hx : x ∈ ⋂ i ∈ s, f i
 i : ι
 a✝ : i ∈ Set.univ
 h : i ∉ s
 ⊢ x i ∈ Set.univ]

Relevant lemmas:
dif_neg : ∀ {c : Prop} {h : Decidable c} (hnc : ¬c) {α : Sort u} {t : c → α} {e : ¬c → α}, dite c t e = e hnc