Lemmas About the Distribution Semantics of Failure Operations #
This file collects various lemmas about the operations associated to Alternative
,
like guard
, orElse
, tryM?
, etc.
@[simp]
theorem
OracleComp.evalDist_orElse
{ι : Type u}
{spec : OracleSpec ι}
{α : Type v}
[h : spec.FiniteRange]
(oa oa' : OracleComp spec α)
:
@[simp]
theorem
OracleComp.probFailure_orElse
{ι : Type u}
{spec : OracleSpec ι}
{α : Type u}
[h : spec.FiniteRange]
(oa oa' : OracleComp spec α)
:
@[simp]
theorem
OracleComp.support_orElse
{ι : Type u}
{spec : OracleSpec ι}
{α : Type u}
(oa oa' : OracleComp spec α)
[Decidable oa.neverFails]
: