Sampling continuations #
sampleContinuation feeds a recorded value to the sampling step of an expression; the compact
replay (Proof/Traces/CompactReplay.lean) and the symbolic trace generation use it to read a
G-affinity draw from a trace, and measurable_sampleContinuation makes that step a
measurable function of the expression and the value.
noncomputable def
Determinize.Proof.StepTraces.sampleContinuation
(expression : Spec.Paper.Expr)
(value : ℝ)
:
Supply a retained draw directly; other reduction actions have no sampling continuation.
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
Determinize.Proof.StepTraces.measurable_actionContinuation
{α : Type u_1}
[MeasurableSpace α]
{action : α → Spec.Paper.Action}
(family : Paper.MeasurableActionFamily α action)
:
Measurable fun (pair : α × ℝ) =>
match action pair.1 with
| Spec.Paper.Action.sample site fiber continuation => continuation pair.2
| x => Spec.Paper.Expr.unit
theorem
Determinize.Proof.StepTraces.measurable_sampleContinuation :
Measurable fun (pair : Spec.Paper.Expr × ℝ) => sampleContinuation pair.1 pair.2