Documentation

VCVio.EvalDist.Bool

Evaluation Distributions on Boolean-Valued Computations #

Specialization lemmas for HasEvalSPMF computations returning Bool.

@[simp]
theorem probOutput_true_add_false {m : TypeType u_1} [Monad m] [HasEvalSPMF m] (mx : m Bool) :
@[simp]
theorem probOutput_false_add_true {m : TypeType u_1} [Monad m] [HasEvalSPMF m] (mx : m Bool) :
theorem probOutput_true_eq_sub {m : TypeType u_1} [Monad m] [HasEvalSPMF m] (mx : m Bool) :
theorem probOutput_false_eq_sub {m : TypeType u_1} [Monad m] [HasEvalSPMF m] (mx : m Bool) :
@[simp]
theorem probOutput_not_map {m : TypeType u_1} [Monad m] [HasEvalSPMF m] [LawfulMonad m] (mx : m Bool) :
Pr[=true | (fun (x : Bool) => !x) <$> mx] = Pr[=false | mx]
@[simp]
theorem probOutput_not_map' {m : TypeType u_1} [Monad m] [HasEvalSPMF m] [LawfulMonad m] (mx : m Bool) :
Pr[=false | (fun (x : Bool) => !x) <$> mx] = Pr[=true | mx]
@[simp]
@[simp]
theorem probEvent_true_eq_probOutput {m : TypeType u_1} [Monad m] [HasEvalSPMF m] (mx : m Bool) :
Pr[fun (x : Bool) => x = true | mx] = Pr[=true | mx]
@[simp]
theorem probEvent_not_eq_probOutput {m : TypeType u_1} [Monad m] [HasEvalSPMF m] (mx : m Bool) :
Pr[fun (x : Bool) => x = false | mx] = Pr[=false | mx]