Monad Evaluation Semantics Instances #
This file defines various instances of evaluation semantics for different monads
Enable support notation for SetM (note the need for the monadic instance and not Set).
Equations
- SetM.instHasEvalSet = { toSet := MonadHom.id SetM }
The support of a computation in Id is the result being returned.
Equations
- Id.instHasEvalPMF = { toSet := MonadHom.pure SetM, toSPMF := MonadHom.pure SPMF, support_eq := ⋯, toPMF := MonadHom.pure PMF, toSPMF_eq := @Id.instHasEvalPMF._proof_2 }
Equations
- Id.instHasEvalFinset = { finSupport := fun {α : Type ?u.8} [DecidableEq α] (x : Id α) => {x}, coe_finSupport := @Id.instHasEvalFinset._proof_1 }
@[simp]
@[simp]
theorem
Id.probEvent_eq_ite
{α : Type u}
[DecidableEq α]
(x : Id α)
(p : α → Prop)
[DecidablePred p]
: