Built with Alectryon, running Coq+SerAPI v8.14.0+0.14.0. Bubbles () indicate interactive fragments: hover for details, tap to reveal contents. Use Ctrl+↑Ctrl+↓ to navigate, Ctrl+🖱️ to focus. On Mac, use ⌘ instead of Ctrl.
Notation"[ rel _ _ | _ ]" was already used in scope
fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ : _ | _ ]" was already used in
scope fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ in _ & _ | _ ]" was already used
in scope fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ in _ & _ ]" was already used in
scope fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ in _ | _ ]" was already used in
scope fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ in _ ]" was already used in scope
fun_scope. [notation-overridden,parsing]
Notation"_ + _" was already used in scope nat_scope.
[notation-overridden,parsing]
Notation"_ - _" was already used in scope nat_scope.
[notation-overridden,parsing]
Notation"_ <= _" was already used in scope nat_scope.
[notation-overridden,parsing]
Notation"_ < _" was already used in scope nat_scope.
[notation-overridden,parsing]
Notation"_ >= _" was already used in scope nat_scope.
[notation-overridden,parsing]
Notation"_ > _" was already used in scope nat_scope.
[notation-overridden,parsing]
Notation"_ <= _ <= _" was already used in scope
nat_scope. [notation-overridden,parsing]
Notation"_ < _ <= _" was already used in scope
nat_scope. [notation-overridden,parsing]
Notation"_ <= _ < _" was already used in scope
nat_scope. [notation-overridden,parsing]
Notation"_ < _ < _" was already used in scope
nat_scope. [notation-overridden,parsing]
Notation"_ * _" was already used in scope nat_scope.
[notation-overridden,parsing]
(** Throughout this file, we assume ideal uniprocessor schedules. *)
Notation"[ rel _ _ | _ ]" was already used in scope
fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ : _ | _ ]" was already used in
scope fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ in _ & _ | _ ]" was already used
in scope fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ in _ & _ ]" was already used in
scope fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ in _ | _ ]" was already used in
scope fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ in _ ]" was already used in scope
fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ | _ ]" was already used in scope
fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ : _ | _ ]" was already used in
scope fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ in _ & _ | _ ]" was already used
in scope fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ in _ & _ ]" was already used in
scope fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ in _ | _ ]" was already used in
scope fun_scope. [notation-overridden,parsing]
Notation"[ rel _ _ in _ ]" was already used in scope
fun_scope. [notation-overridden,parsing]
(** * Cumulative Priority Inversion for JLFP-models *)(** In this module we define the notion of cumulative priority inversion for uni-processor for JLFP schedulers. *)SectionCumulativePriorityInversion.(** Consider any type of tasks ... *)Context {Task : TaskType}.Context `{TaskCost Task}.(** ... and any type of jobs associated with these tasks. *)Context {Job : JobType}.Context `{JobTask Job Task}.Context `{JobArrival Job}.Context `{JobCost Job}.(** Consider any arrival sequence with consistent arrivals. *)Variablearr_seq : arrival_sequence Job.HypothesisH_arrival_times_are_consistent : consistent_arrival_times arr_seq.(** Next, consider any ideal uniprocessor schedule of this arrival sequence. *)Variablesched : schedule (ideal.processor_state Job).(** Assume a given JLFP policy. *)Context `{JLFP_policy Job}.(** In this section, we define a notion of bounded priority inversion experienced by a job. *)SectionJobPriorityInversionBound.(** Consider an arbitrary task [tsk]. *)Variabletsk : Task.(** Consider any job j of [tsk]. *)Variablej : Job.HypothesisH_from_arrival_sequence : arrives_in arr_seq j.HypothesisH_job_task : job_of_task tsk j.(** We say that the job incurs priority inversion if it has higher priority than the scheduled job. Note that this definition implicitly assumes that the scheduler is work-conserving. Therefore, it cannot be applied to models with jitter or self-suspensions. *)Definitionis_priority_inversion (t : instant) :=
if sched t is Some jlp then
~~ hep_job jlp j
else false.(** Then we compute the cumulative priority inversion incurred by a job within some time interval <<[t1, t2)>>. *)Definitioncumulative_priority_inversion (t1t2 : instant) :=
\sum_(t1 <= t < t2) is_priority_inversion t.(** We say that priority inversion of job [j] is bounded by a constant [B] iff cumulative priority inversion within any busy interval prefix is bounded by [B]. *)Definitionpriority_inversion_of_job_is_bounded_by (B : duration) :=
forall (t1t2 : instant),
busy_interval_prefix arr_seq sched j t1 t2 ->
cumulative_priority_inversion t1 t2 <= B.EndJobPriorityInversionBound.(** In this section, we define a notion of the bounded priority inversion for task. *)SectionTaskPriorityInversionBound.(** Consider an arbitrary task [tsk]. *)Variabletsk : Task.(** We say that task [tsk] has bounded priority inversion if all its jobs have bounded cumulative priority inversion. *)Definitionpriority_inversion_is_bounded_by (B : duration) :=
forall (j : Job),
arrives_in arr_seq j ->
job_task j = tsk ->
job_cost j > 0 ->
priority_inversion_of_job_is_bounded_by j B.EndTaskPriorityInversionBound.EndCumulativePriorityInversion.