Built with Alectryon, running Coq+SerAPI v8.20.0+0.20.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.
[Loading ML file ssrmatching_plugin.cmxs (using legacy method) ... done]
[Loading ML file ssreflect_plugin.cmxs (using legacy method) ... done]
[Loading ML file ring_plugin.cmxs (using legacy method) ... done]
Serlib plugin: coq-elpi.elpi is not available: serlib support is missing.
Incremental checking for commands in this plugin will be impacted.
[Loading ML file coq-elpi.elpi ... done]
[Loading ML file zify_plugin.cmxs (using legacy method) ... done]
[Loading ML file micromega_core_plugin.cmxs (using legacy method) ... done]
[Loading ML file micromega_plugin.cmxs (using legacy method) ... done]
[Loading ML file btauto_plugin.cmxs (using legacy method) ... done]
Notation"_ + _" was already used in scope nat_scope.
[notation-overridden,parsing,default]
Notation"_ - _" was already used in scope nat_scope.
[notation-overridden,parsing,default]
Notation"_ <= _" was already used in scope nat_scope.
[notation-overridden,parsing,default]
Notation"_ < _" was already used in scope nat_scope.
[notation-overridden,parsing,default]
Notation"_ >= _" was already used in scope nat_scope.
[notation-overridden,parsing,default]
Notation"_ > _" was already used in scope nat_scope.
[notation-overridden,parsing,default]
Notation"_ <= _ <= _" was already used in scope
nat_scope. [notation-overridden,parsing,default]
Notation"_ < _ <= _" was already used in scope
nat_scope. [notation-overridden,parsing,default]
Notation"_ <= _ < _" was already used in scope
nat_scope. [notation-overridden,parsing,default]
Notation"_ < _ < _" was already used in scope
nat_scope. [notation-overridden,parsing,default]
Notation"_ * _" was already used in scope nat_scope.
[notation-overridden,parsing,default]
Require Export prosa.model.task.arrival.task_max_inter_arrival.Require Export prosa.model.task.offset.Require Export prosa.analysis.facts.job_index.(** * The Periodic Task Model *)(** In the following, we define the classic Liu & Layland arrival process, i.e., the arrival process commonly known as the _periodic task model_, wherein the arrival times of consecutive jobs of a periodic task are separated by the task's _period_. *)(** ** Task Model Parameter for Periods *)(** Under the periodic task model, each task is characterized by its period, which we denote as [task_period]. *)ClassPeriodicModel (Task : TaskType) := task_period : Task -> duration.(** ** Model Validity *)(** Next, we define the semantics of the periodic task model. *)SectionValidPeriodicTaskModel.(** Consider any type of periodic tasks. *)Context {Task : TaskType} `{PeriodicModel Task}.(** A valid periodic task has a non-zero period. *)Definitionvalid_period (tsk : Task) := task_period tsk > 0.(** Next, consider any type of jobs stemming from these tasks ... *)Context {Job : JobType} `{JobTask Job Task} `{JobArrival Job}.(** ... and an arbitrary arrival sequence of such jobs. *)Variablearr_seq : arrival_sequence Job.(** We say that a task respects the periodic task model if every job [j] (except the first one) has a predecessor [j'] that arrives exactly one task period before it. *)Definitionrespects_periodic_task_model (tsk : Task) :=
forallj,
arrives_in arr_seq j ->
job_index arr_seq j > 0 ->
job_task j = tsk ->
existsj',
arrives_in arr_seq j' /\
job_index arr_seq j' = job_index arr_seq j - 1 /\
job_task j' = tsk /\
job_arrival j = job_arrival j' + task_period tsk.(** Further, in the context of a set of periodic tasks, ... *)Variablets : TaskSet Task.(** ... every task in the set must have a valid period ... *)Definitionvalid_periods := foralltsk : Task, tsk \in ts -> valid_period tsk.(** ... and all jobs of every task in a set of periodic tasks must respect the period constraint on arrival times. *)Definitiontaskset_respects_periodic_task_model :=
foralltsk, tsk \in ts -> respects_periodic_task_model tsk.EndValidPeriodicTaskModel.