Skip to content

Commit 717304d

Browse files
chore(MeasureTheory/Measure/DiracProba): remove some defEq abuse (#40649)
Co-authored-by: Batixx <s59fpern@uni-bonn.de>
1 parent e695991 commit 717304d

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Mathlib/MeasureTheory/Measure/DiracProba.lean

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,11 @@ variable {X : Type*} [MeasurableSpace X]
5252
noncomputable def diracProba (x : X) : ProbabilityMeasure X :=
5353
⟨Measure.dirac x, Measure.dirac.isProbabilityMeasure⟩
5454

55-
set_option backward.isDefEq.respectTransparency false in
5655
/-- The assignment `x ↦ diracProba x` is injective if all singletons are measurable. -/
5756
lemma injective_diracProba {X : Type*} [MeasurableSpace X] [MeasurableSpace.SeparatesPoints X] :
5857
Function.Injective (fun (x : X) ↦ diracProba x) := by
5958
intro x y x_eq_y
60-
rw [← dirac_eq_dirac_iff]
61-
rwa [Subtype.ext_iff] at x_eq_y
59+
simpa [diracProba, dirac_eq_dirac_iff] using congr(ProbabilityMeasure.toMeasure $x_eq_y)
6260

6361
@[simp] lemma diracProba_toMeasure_apply' (x : X) {A : Set X} (A_mble : MeasurableSet A) :
6462
(diracProba x).toMeasure A = A.indicator 1 x := Measure.dirac_apply' x A_mble
@@ -98,8 +96,7 @@ lemma not_tendsto_diracProba_of_not_tendsto [CompletelyRegularSpace X] {x : X} (
9896
refine ⟨Ioi 0, Ioi_mem_nhds (by simp only [ENNReal.coe_one, zero_lt_one]),
9997
hU.mp (Eventually.of_forall ?_)⟩
10098
intro x x_notin_U
101-
rw [f_vanishes_outside x
102-
(compl_subset_compl.mpr (show interior U ⊆ U from interior_subset) x_notin_U)]
99+
rw [f_vanishes_outside x (compl_subset_compl.mpr interior_subset x_notin_U)]
103100
simp only [ENNReal.coe_zero, mem_Ioi, lt_self_iff_false, not_false_eq_true]
104101

105102
lemma tendsto_diracProba_iff_tendsto [CompletelyRegularSpace X] {x : X} (L : Filter X) :

0 commit comments

Comments
 (0)