Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ On a subsingleton, every probability measure is a Dirac mass.
namespace MeasureTheory.Measure

/-- On a subsingleton, every probability measure is a Dirac mass. -/
Comment thread
RemyDegenne marked this conversation as resolved.
Resolved
lemma eq_dirac_of_subsingleton {α : Type*} {mα : MeasurableSpace α}
-- A prime was added to the name for compatibility with Tau Ceti.
lemma eq_dirac_of_subsingleton' {α : Type*} {mα : MeasurableSpace α}
[Subsingleton α] (μ : Measure α) [IsProbabilityMeasure μ] (x : α) :
μ = Measure.dirac x := by
ext s hs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ variable {α δ : Type*} [MeasurableSpace δ] [SemilatticeInf α] {m : Measurabl
attribute [to_dual existing] MeasurableInf₂

/-- Dual version of `Finset.measurable_sup'`. -/
Comment thread
RemyDegenne marked this conversation as resolved.
Resolved
@[to_dual existing (attr := fun_prop)]
theorem Finset.measurable_inf' {ι : Type*} {s : Finset ι} (hs : s.Nonempty) {f : ι → δ → α}
-- 2 primes were added to the name for compatibility with Tau Ceti.
@[to_dual existing (attr := fun_prop) Finset.measurable_sup']
theorem Finset.measurable_inf''' {ι : Type*} {s : Finset ι} (hs : s.Nonempty) {f : ι → δ → α}
(hf : ∀ n ∈ s, Measurable (f n)) : Measurable (s.inf' hs f) :=
Finset.inf'_induction hs _ (fun _f hf _g hg => hf.inf hg) fun n hn => hf n hn
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ lemma eq_const_dirac_of_subsingleton [Subsingleton β] (κ : Kernel α β) [IsMa
κ = Kernel.const α (Measure.dirac y) := by
ext a : 1
rw [Kernel.const_apply]
exact (κ a).eq_dirac_of_subsingleton y
exact (κ a).eq_dirac_of_subsingleton' y

end ProbabilityTheory.Kernel
4 changes: 2 additions & 2 deletions LeanMachineLearning/SequentialLearning/StationaryEnv.lean
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ instance : (Environment.banditSeq ν).IsOblivious :=

@[simp]
lemma obsLaw_banditSeq (n : ℕ) : (Environment.banditSeq ν).obsLaw n = Measure.dirac () :=
Measure.eq_dirac_of_subsingleton _ ()
Measure.eq_dirac_of_subsingleton' _ ()

@[simp]
lemma feedbackCondObsAction_banditSeq (n : ℕ) :
Expand Down Expand Up @@ -522,7 +522,7 @@ instance : (Environment.bandit ν).IsOblivious :=

@[simp]
lemma obsLaw_bandit (n : ℕ) : (Environment.bandit ν).obsLaw n = Measure.dirac () :=
Measure.eq_dirac_of_subsingleton _ ()
Measure.eq_dirac_of_subsingleton' _ ()

@[simp]
lemma feedbackCondObsAction_bandit (n : ℕ) :
Expand Down