LeanMachineLearning exposition

Learning.randomSampling_p0๐Ÿ”—

This page has the declaration's own card below, then its dependency graph, then a card for each dependency (type dependencies first, then the rest of the transitive closure). For a theorem, the graph and the dependency cards only follow its statement's dependencies (its proof is replaced by sorry, so what it proves doesn't depend on how); for everything else, both the type and the body/value are followed, since their content is part of what later declarations build on.

Minimal Lean file

randomSampling_p0๐Ÿ”—

LemmaLearning.randomSampling_p0

No docstring.

๐Ÿ”—theorem
Learning.randomSampling_p0.{u_1, u_2} {๐“ : Type u_1} {๐“จ : Type u_2} {m๐“ : MeasurableSpace ๐“} {m๐“จ : MeasurableSpace ๐“จ} (ฮผ : MeasureTheory.Measure ๐“) [MeasureTheory.IsProbabilityMeasure ฮผ] : Algorithm.p0 (randomSampling ฮผ) = ฮผ
Learning.randomSampling_p0.{u_1, u_2} {๐“ : Type u_1} {๐“จ : Type u_2} {m๐“ : MeasurableSpace ๐“} {m๐“จ : MeasurableSpace ๐“จ} (ฮผ : MeasureTheory.Measure ๐“) [MeasureTheory.IsProbabilityMeasure ฮผ] : Algorithm.p0 (randomSampling ฮผ) = ฮผ

Code

theorem randomSampling_p0 : โˆ€ {๐“ : Type u_1} {๐“จ : Type u_2} {m๐“ : MeasurableSpace ๐“} {m๐“จ : MeasurableSpace ๐“จ} (ฮผ : MeasureTheory.Measure ๐“)
  [inst : MeasureTheory.IsProbabilityMeasure ฮผ], (Learning.randomSampling ฮผ).p0 = ฮผ
Type uses (2)
Used by (1)

Actions: Source ยท Open Issue

Proof
@[simps]

Dependency graph

Type dependencies (2)

randomSampling๐Ÿ”—

DefinitionLearning.randomSampling

The Random Sampling algorithm, which samples from a fixed probability measure at each iteration.

๐Ÿ”—def
Learning.randomSampling.{u_1, u_2} {๐“ : Type u_1} {๐“จ : Type u_2} {m๐“ : MeasurableSpace ๐“} {m๐“จ : MeasurableSpace ๐“จ} (ฮผ : MeasureTheory.Measure ๐“) [MeasureTheory.IsProbabilityMeasure ฮผ] : Algorithm ๐“ ๐“จ
Learning.randomSampling.{u_1, u_2} {๐“ : Type u_1} {๐“จ : Type u_2} {m๐“ : MeasurableSpace ๐“} {m๐“จ : MeasurableSpace ๐“จ} (ฮผ : MeasureTheory.Measure ๐“) [MeasureTheory.IsProbabilityMeasure ฮผ] : Algorithm ๐“ ๐“จ

Code

noncomputable def randomSampling (ฮผ : Measure ๐“) [IsProbabilityMeasure ฮผ] : Algorithm ๐“ ๐“จ where
  policy _ := Kernel.const _ ฮผ
  p0 := ฮผ
Type uses (1)
Used by (5)

Actions: Source ยท Open Issue

Algorithm๐Ÿ”—

StructureLearning.Algorithm

A stochastic, sequential algorithm.

๐Ÿ”—structure
Learning.Algorithm.{u_4, u_5} (๐“ : Type u_4) (๐“จ : Type u_5) [MeasurableSpace ๐“] [MeasurableSpace ๐“จ] : Type (max u_4 u_5)
Learning.Algorithm.{u_4, u_5} (๐“ : Type u_4) (๐“จ : Type u_5) [MeasurableSpace ๐“] [MeasurableSpace ๐“จ] : Type (max u_4 u_5)

Code

structure Algorithm (๐“ ๐“จ : Type*) [MeasurableSpace ๐“] [MeasurableSpace ๐“จ] where
  /-- Policy or sampling rule: distribution of the next action. -/
  policy : (n : โ„•) โ†’ Kernel (Iic n โ†’ ๐“ ร— ๐“จ) ๐“
  /-- The policy is a Markov kernel. -/
  [h_policy : โˆ€ n, IsMarkovKernel (policy n)]
  /-- Distribution of the first action. -/
  p0 : Measure ๐“
  /-- The first action distribution is a probability measure. -/
  [hp0 : IsProbabilityMeasure p0]
Used by (216)

Actions: Source ยท Open Issue