Library probsa.rt.model.task
(* --------------------------------- Prosa ---------------------------------- *)
From prosa.model Require Export task.concept.
(* --------------------------------- ProBsa --------------------------------- *)
From probsa.probability Require Export nrvar.
(* ---------------------------------- Main ---------------------------------- *)
From prosa.model Require Export task.concept.
(* --------------------------------- ProBsa --------------------------------- *)
From probsa.probability Require Export nrvar.
(* ---------------------------------- Main ---------------------------------- *)
PMF of pWCET
In this file, we define pWCET's probability mass function. The typeclass contains three elements: (1) a function called pWCET_pmf that takes a Task and a work as input and returns a value in R that is supposed to denote the "probability" of a task to take a certain value, (2) a proof term that pWCET_pmf is non negative for any task and any work value, and (3) a proof term that pWCET_pmf sums up to 1.
Class ProbWCET (Task : TaskType) := {
pWCET_pmf : Task → (work → R);
pWCET_nonnegative : ∀ (tsk : Task), ∀ (w : work), pWCET_pmf tsk w ≥ 0;
pWCET_sum1 : ∀ (tsk : Task), is_series (countable_sum (pWCET_pmf tsk)) 1
}.
(* ------------------------------ Definitions ------------------------------- *)
pWCET_pmf : Task → (work → R);
pWCET_nonnegative : ∀ (tsk : Task), ∀ (w : work), pWCET_pmf tsk w ≥ 0;
pWCET_sum1 : ∀ (tsk : Task), is_series (countable_sum (pWCET_pmf tsk)) 1
}.
(* ------------------------------ Definitions ------------------------------- *)