Coerces a state to a history
Equations
- MDPs.instCoeFinSHist M = { coe := fun (s : Fin M.S) => MDPs.Hist.init s }
@[reducible]
The length of the history corresponds to the zero-based step of the decision
Equations
- MDPs.Hist.length M (MDPs.Hist.init a) = 0
- MDPs.Hist.length M (h.foll a a_1) = 1 + MDPs.Hist.length M h
Instances For
@[reducible, inline]
Nonempty histories
Equations
- MDPs.HistNE m = { h : MDPs.Hist m // MDPs.Hist.length m h ≥ 1 }
Instances For
Returns the last state of the history
Equations
- MDPs.Hist.last M (MDPs.Hist.init a) = a
- MDPs.Hist.last M (h.foll a a_1) = a_1
Instances For
Equations
- MDPs.Hist.one M s₀ a s = (MDPs.Hist.init s₀).foll a s
Instances For
Return the prefix of hist of length k
Equations
- MDPs.Hist.prefix M k (MDPs.Hist.init a) = MDPs.Hist.init a
- MDPs.Hist.prefix M k (h_1.foll a a_1) = if MDPs.Hist.length M h_1 + 1 ≤ k then h_1.foll a a_1 else MDPs.Hist.prefix M k h_1