@@ -22,8 +22,7 @@ largest one making both `ForInStep.yield` and `ForInStep.done` measurable.
2222 ## Main results
2323* `measurable_yield`, `measurable_run`, `measurable_isDone`: the maps relating `ForInStep β` to `β`
2424 and to `Bool` are measurable.
25- * The points of `ForInStep β` are measurable as soon as those of `β` are, and `ForInStep.yield` is a
26- measurable embedding.
25+ * The points of `ForInStep β` are measurable as soon as those of `β` are.
2726* `measurable_CasesOn`: a case analysis on a `ForInStep`, measurable in each of its two branches, is
2827 measurable.
2928* `IsMarkov.forInStepCasesOn`: the same statement for the Markov property.
@@ -65,17 +64,6 @@ instance [MeasurableSingletonClass β] : MeasurableSingletonClass (ForInStep β)
6564 -- A singleton's preimages under `yield` and `done` are a singleton and the empty set.
6665 constructor <;> cases t <;> change MeasurableSet (_ ⁻¹' _) <;> simp [Set.preimage]
6766
68- lemma measurableEmbedding_yield : MeasurableEmbedding (ForInStep.yield : β → ForInStep β) where
69- injective _ _ h := ForInStep.yield.inj h
70- measurable := measurable_yield
71- measurableSet_image' S hS := by
72- refine ⟨?_, ?_⟩
73- · change MeasurableSet (ForInStep.yield ⁻¹' _)
74- rwa [Set.preimage_image_eq _ fun _ _ h ↦ ForInStep.yield.inj h]
75- · change MeasurableSet (ForInStep.done ⁻¹' _)
76- convert MeasurableSet.empty (α := β)
77- ext; simp
78-
7967instance [Countable β] : Countable (ForInStep β) :=
8068 Function.Injective.countable (f := fun t : ForInStep β ↦ (t.isDone, t.run)) <| by
8169 rintro (_ | _) (_ | _) h <;> simp_all
0 commit comments