Learning.actionZero_detAlgorithm
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.
actionZero_detAlgorithm๐
Learning.actionZero_detAlgorithmNo docstring.
Learning.actionZero_detAlgorithm.{u_1, u_2} {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} {nextA : (n : โ) โ (โฅ(Finset.Iic n) โ ๐ ร ๐จ) โ ๐} {h_next : โ (n : โ), Measurable (nextA n)} {action0 : ๐} [MeasurableSpace.SeparatesPoints ๐] : actionZero (detAlgorithm nextA h_next action0) = action0Learning.actionZero_detAlgorithm.{u_1, u_2} {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} {nextA : (n : โ) โ (โฅ(Finset.Iic n) โ ๐ ร ๐จ) โ ๐} {h_next : โ (n : โ), Measurable (nextA n)} {action0 : ๐} [MeasurableSpace.SeparatesPoints ๐] : actionZero (detAlgorithm nextA h_next action0) = action0
Code
lemma actionZero_detAlgorithm [MeasurableSpace.SeparatesPoints ๐] :
actionZero (detAlgorithm nextA h_next action0) = action0Type uses (3)
Body uses (3)
Used by (5)
Actions: Source ยท Open Issue
Proof
by have h_eq := p0_eq_dirac (detAlgorithm nextA h_next action0) simp only [detAlgorithm] at h_eq rw [dirac_eq_dirac_iff] at h_eq exact h_eq.symm
Dependency graph
Type dependencies (3)
actionZero๐
Learning.actionZeroThe initial action of a deterministic algorithm.
Learning.actionZero.{u_1, u_2} {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} (alg : Algorithm ๐ ๐จ) [h_det : IsDeterministicAlg alg] : ๐Learning.actionZero.{u_1, u_2} {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} (alg : Algorithm ๐ ๐จ) [h_det : IsDeterministicAlg alg] : ๐
Code
noncomputable def actionZero (alg : Algorithm ๐ ๐จ) [h_det : IsDeterministicAlg alg] : ๐ := h_det.exists_action0.choose
Type uses (2)
Used by (12)
Actions: Source ยท Open Issue
detAlgorithm๐
Learning.detAlgorithm
A deterministic algorithm, which chooses the action given by the function nextAction.
Learning.detAlgorithm.{u_1, u_2} {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} (nextA : (n : โ) โ (โฅ(Finset.Iic n) โ ๐ ร ๐จ) โ ๐) (h_next : โ (n : โ), Measurable (nextA n)) (action0 : ๐) : Algorithm ๐ ๐จLearning.detAlgorithm.{u_1, u_2} {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} (nextA : (n : โ) โ (โฅ(Finset.Iic n) โ ๐ ร ๐จ) โ ๐) (h_next : โ (n : โ), Measurable (nextA n)) (action0 : ๐) : Algorithm ๐ ๐จ
Code
noncomputable
def detAlgorithm (nextA : (n : โ) โ (Iic n โ ๐ ร ๐จ) โ ๐)
(h_next : โ n, Measurable (nextA n)) (action0 : ๐) :
Algorithm ๐ ๐จ where
policy n := Kernel.deterministic (nextA n) (h_next n)
p0 := Measure.dirac action0Type uses (1)
Used by (15)
Actions: Source ยท Open Issue
instIsDeterministicAlgDetAlgorithm๐
Learning.instIsDeterministicAlgDetAlgorithmNo docstring.
Learning.instIsDeterministicAlgDetAlgorithm.{u_1, u_2} {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} {nextA : (n : โ) โ (โฅ(Finset.Iic n) โ ๐ ร ๐จ) โ ๐} {h_next : โ (n : โ), Measurable (nextA n)} {action0 : ๐} : IsDeterministicAlg (detAlgorithm nextA h_next action0)Learning.instIsDeterministicAlgDetAlgorithm.{u_1, u_2} {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} {nextA : (n : โ) โ (โฅ(Finset.Iic n) โ ๐ ร ๐จ) โ ๐} {h_next : โ (n : โ), Measurable (nextA n)} {action0 : ๐} : IsDeterministicAlg (detAlgorithm nextA h_next action0)
Code
instance : IsDeterministicAlg (detAlgorithm nextA h_next action0) where exists_action0
Type uses (2)
Body uses (1)
Used by (9)
Actions: Source ยท Open Issue
Proof
โจaction0, rflโฉ exists_nextAction n := โจnextA n, h_next n, rflโฉ
All dependencies, transitively (2)
Algorithm๐
Learning.AlgorithmA stochastic, sequential algorithm.
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
IsDeterministicAlg๐
Learning.IsDeterministicAlgAn algorithm is deterministic if its initial action and subsequent actions are determined by measurable functions (and not possibly random kernels).
Learning.IsDeterministicAlg.{u_1, u_2} {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} (alg : Algorithm ๐ ๐จ) : PropLearning.IsDeterministicAlg.{u_1, u_2} {๐ : Type u_1} {๐จ : Type u_2} {m๐ : MeasurableSpace ๐} {m๐จ : MeasurableSpace ๐จ} (alg : Algorithm ๐ ๐จ) : Prop
Code
class IsDeterministicAlg (alg : Algorithm ๐ ๐จ) : Prop where
exists_action0 : โ action0, alg.p0 = Measure.dirac action0
exists_nextAction n : โ (nextAction : (Iic n โ ๐ ร ๐จ) โ ๐) (h_meas : Measurable nextAction),
alg.policy n = Kernel.deterministic nextAction h_measType uses (1)
Used by (14)
Actions: Source ยท Open Issue