NLA-lib Explorer

NLAlib.Ops.Profile.Refines.integral_runVal

Library · theorem

Expectations transfer: an expectation of an observable of the final memory, proved for every interpretation satisfying the contracts, holds for the linked program.

NLAlib.Ops.Profile.Refines.integral_runVal {Op Lo Tst K Ω : Type} {P : Ops.Profile Op Lo Tst}
  {Base : Ops.Interp Lo Tst K → Prop} {Ck : Ops.Interp Op Tst K → Prop} {I : Ops.Interp Lo Tst K}
  {ξ : Ω → Ops.Tape K} {s : Ops.Stmt Op Tst} {ρ : Ops.Env} {m : Ops.Mem K} (h : P.Refines Base Ck)
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {obs : Ops.Mem K → ℝ} {c : ℝ}
  (hT :
    ∀ (J : Ops.Interp Op Tst K),
      Ck J → (∀ (o : Op), J.TapeLocal o (P.win o)) → ∫ (ω : Ω), Ops.runVal J (ξ ω) s ρ m obs ∂μ = c)
  (hI : Base I) (hloc : ∀ (o : Lo), I.TapeLocal o (P.winLo o)) :
  ∫ (ω : Ω), Ops.runVal I (ξ ω) (Ops.Stmt.link P.table s) ρ m obs ∂μ = c

Full source on GitHub

Import NLAlib.Ops.Law.