Library prosa.analysis.facts.preemption.task.preemptive
Require Export prosa.analysis.definitions.job_properties.
Require Export prosa.analysis.facts.preemption.job.preemptive.
Require Export prosa.analysis.facts.preemption.job.preemptive.
Furthermore, we assume the fully non-preemptive task model.
Platform for Fully Preemptive Model
In this section, we prove that instantiation of functions job_preemptable and task_max_nonpreemptive_segment to the fully preemptive model indeed defines a valid preemption model with bounded non-preemptive regions.
Consider any type of tasks ...
... and any type of jobs associated with these tasks.
Context {Job : JobType}.
Context `{JobTask Job Task}.
Context `{JobArrival Job}.
Context `{JobCost Job}.
Context `{JobTask Job Task}.
Context `{JobArrival Job}.
Context `{JobCost Job}.
Consider any kind of processor state model, ...
... any job arrival sequence, ...
... and any given schedule.
We prove that fully_preemptive_model function
defines a model with bounded non-preemptive regions.
Lemma fully_preemptive_model_is_model_with_bounded_nonpreemptive_regions:
model_with_bounded_nonpreemptive_segments arr_seq.
model_with_bounded_nonpreemptive_segments arr_seq.
Which together with lemma valid_fully_preemptive_model gives
us the fact that fully_preemptive_model defined a valid
preemption model with bounded non-preemptive regions.
Corollary fully_preemptive_model_is_valid_model_with_bounded_nonpreemptive_segments:
valid_model_with_bounded_nonpreemptive_segments arr_seq sched.
End FullyPreemptiveModel.
valid_model_with_bounded_nonpreemptive_segments arr_seq sched.
End FullyPreemptiveModel.
We add the above lemma into a "Hint Database" basic_facts, so Coq will be able to apply them automatically.
Hint Resolve
valid_fully_preemptive_model
fully_preemptive_model_is_model_with_bounded_nonpreemptive_regions
fully_preemptive_model_is_valid_model_with_bounded_nonpreemptive_segments : basic_facts.
valid_fully_preemptive_model
fully_preemptive_model_is_model_with_bounded_nonpreemptive_regions
fully_preemptive_model_is_valid_model_with_bounded_nonpreemptive_segments : basic_facts.