Library rt.model.jitter.interference_edf
Require Import rt.util.all.
Require Import rt.model.jitter.task rt.model.jitter.job rt.model.jitter.schedule
rt.model.jitter.priority rt.model.jitter.task_arrival rt.model.jitter.interference
rt.model.jitter.arrival_sequence rt.model.jitter.platform.
Module InterferenceEDF.
Import ScheduleWithJitter Priority Platform Interference Priority.
Section Lemmas.
Context {Job: eqType}.
Variable job_cost: Job → time.
Variable job_deadline: Job → time.
Variable job_jitter: Job → time.
(* Assume any job arrival sequence... *)
Context {arr_seq: arrival_sequence Job}.
(* Consider any schedule. *)
Variable num_cpus: nat.
Variable sched: schedule num_cpus arr_seq.
(* Assume that the schedule satisfies the global scheduling invariant
for EDF, i.e., if any job of tsk is backlogged, every processor
must be busy with jobs with no larger absolute deadline. *)
Hypothesis H_scheduler_uses_EDF:
enforces_JLDP_policy job_cost job_jitter sched (EDF job_deadline).
(* Under EDF scheduling, a job only causes interference if its deadline
is not larger than the deadline of the analyzed job. *)
Lemma interference_under_edf_implies_shorter_deadlines :
∀ (j j': JobIn arr_seq) t1 t2,
job_interference job_cost job_jitter sched j' j t1 t2 ≠ 0 →
job_arrival j + job_deadline j ≤ job_arrival j' + job_deadline j'.
End Lemmas.
End InterferenceEDF.
Require Import rt.model.jitter.task rt.model.jitter.job rt.model.jitter.schedule
rt.model.jitter.priority rt.model.jitter.task_arrival rt.model.jitter.interference
rt.model.jitter.arrival_sequence rt.model.jitter.platform.
Module InterferenceEDF.
Import ScheduleWithJitter Priority Platform Interference Priority.
Section Lemmas.
Context {Job: eqType}.
Variable job_cost: Job → time.
Variable job_deadline: Job → time.
Variable job_jitter: Job → time.
(* Assume any job arrival sequence... *)
Context {arr_seq: arrival_sequence Job}.
(* Consider any schedule. *)
Variable num_cpus: nat.
Variable sched: schedule num_cpus arr_seq.
(* Assume that the schedule satisfies the global scheduling invariant
for EDF, i.e., if any job of tsk is backlogged, every processor
must be busy with jobs with no larger absolute deadline. *)
Hypothesis H_scheduler_uses_EDF:
enforces_JLDP_policy job_cost job_jitter sched (EDF job_deadline).
(* Under EDF scheduling, a job only causes interference if its deadline
is not larger than the deadline of the analyzed job. *)
Lemma interference_under_edf_implies_shorter_deadlines :
∀ (j j': JobIn arr_seq) t1 t2,
job_interference job_cost job_jitter sched j' j t1 t2 ≠ 0 →
job_arrival j + job_deadline j ≤ job_arrival j' + job_deadline j'.
End Lemmas.
End InterferenceEDF.