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.preemption.fully_preemptive. Require Export prosa.model.task.preemption.fully_preemptive. (** * Task's Run to Completion Threshold *) (** In this section, we prove that the instantiation of the task run-to-completion threshold for the fully preemptive model is valid. *) Section TaskRTCThresholdFullyPreemptiveModel. (** 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 `{JobCost Job}. (** Assume that jobs and tasks are fully preemptive. *) #[local] Existing Instance fully_preemptive_job_model. #[local] Existing Instance fully_preemptive_task_model. #[local] Existing Instance fully_preemptive_rtc_threshold. (** Next, consider any arrival sequence ... *) Variable arr_seq : arrival_sequence Job. (** ... and assume that a job cost cannot be larger than a task cost. *) Hypothesis H_valid_job_cost: arrivals_have_valid_job_costs arr_seq. (** Then, we prove that [task_rtct] function defines a valid task's run to completion threshold. *)
Task: TaskType
H: TaskCost Task
Job: JobType
H0: JobTask Job Task
H1: JobCost Job
arr_seq: arrival_sequence Job
H_valid_job_cost: arrivals_have_valid_job_costs arr_seq

forall tsk : Task, valid_task_run_to_completion_threshold arr_seq tsk
Task: TaskType
H: TaskCost Task
Job: JobType
H0: JobTask Job Task
H1: JobCost Job
arr_seq: arrival_sequence Job
H_valid_job_cost: arrivals_have_valid_job_costs arr_seq

forall tsk : Task, valid_task_run_to_completion_threshold arr_seq tsk
Task: TaskType
H: TaskCost Task
Job: JobType
H0: JobTask Job Task
H1: JobCost Job
arr_seq: arrival_sequence Job
H_valid_job_cost: arrivals_have_valid_job_costs arr_seq
tsk: Task

task_rtc_bounded_by_cost tsk
Task: TaskType
H: TaskCost Task
Job: JobType
H0: JobTask Job Task
H1: JobCost Job
arr_seq: arrival_sequence Job
H_valid_job_cost: arrivals_have_valid_job_costs arr_seq
tsk: Task
job_respects_task_rtc arr_seq tsk
Task: TaskType
H: TaskCost Task
Job: JobType
H0: JobTask Job Task
H1: JobCost Job
arr_seq: arrival_sequence Job
H_valid_job_cost: arrivals_have_valid_job_costs arr_seq
tsk: Task

task_rtc_bounded_by_cost tsk
by rewrite /task_rtc_bounded_by_cost.
Task: TaskType
H: TaskCost Task
Job: JobType
H0: JobTask Job Task
H1: JobCost Job
arr_seq: arrival_sequence Job
H_valid_job_cost: arrivals_have_valid_job_costs arr_seq
tsk: Task

job_respects_task_rtc arr_seq tsk
Task: TaskType
H: TaskCost Task
Job: JobType
H0: JobTask Job Task
H1: JobCost Job
arr_seq: arrival_sequence Job
H_valid_job_cost: arrivals_have_valid_job_costs arr_seq
tsk: Task
j: Job
ARR: arrives_in arr_seq j
TSK: job_of_task tsk j

job_rtct j <= task_rtct tsk
Task: TaskType
H: TaskCost Task
Job: JobType
H0: JobTask Job Task
H1: JobCost Job
arr_seq: arrival_sequence Job
H_valid_job_cost: arrivals_have_valid_job_costs arr_seq
tsk: Task
j: Job
ARR: arrives_in arr_seq j
TSK: job_of_task tsk j

job_cost j <= task_rtct tsk
by move: TSK => /eqP <-; apply H_valid_job_cost. Qed. End TaskRTCThresholdFullyPreemptiveModel. Global Hint Resolve fully_preemptive_valid_task_run_to_completion_threshold : basic_rt_facts.