cfahlgren1's picture
download
raw
1.32 kB
12
theorem measurePreserving_uniform01_projIcc :
    MeasurePreserving (Set.projIcc (0 : ℝ) 1 (by norm_num))
      uniform01 (volume : Measure I) := by
proof · 8 lines
  have hp : Measurable (Set.projIcc (0 : ℝ) 1 (by norm_num)) :=
    continuous_projIcc.measurable
  refine ⟨hp, ?_⟩
  change (volume.restrict (Set.Icc (0 : ℝ) 1)).map _ = _
  rw [← unitInterval.measurePreserving_coe.map_eq,
    Measure.map_map hp measurable_subtype_coe]
  simp only [Function.comp_def, Set.projIcc_val]
  exact Measure.map_id
24
theorem exists_uniform01_sampler {α : Type*} [MeasurableSpace α]
    [Nonempty α] [StandardBorelSpace α]
    (ν : Measure α) [IsProbabilityMeasure ν] :
    ∃ ξ : ℝ → α, Measurable ξ ∧ Measure.map ξ uniform01 = ν := by
proof · 8 lines
  obtain ⟨f, hf, hmap⟩ := ν.exists_measurable_map_eq
  let p : ℝ → I := Set.projIcc 0 1 (by norm_num)
  have hp : Measurable p := measurePreserving_uniform01_projIcc.measurable
  refine ⟨f ∘ p, hf.comp hp, ?_⟩
  rw [← Measure.map_map hf hp]
  change (uniform01.map (Set.projIcc (0 : ℝ) 1 (by norm_num))).map f = ν
  rw [measurePreserving_uniform01_projIcc.map_eq]
  exact hmap

Xet Storage Details

Size:
1.32 kB
·
Xet hash:
ed8d8709c45ecd262b8aef203b4354fbc8197276491bee7f4ddbcc33ffc93637

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.