Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROSA - Formally Proven Schedulability Analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lasse Blaauwbroek
PROSA - Formally Proven Schedulability Analysis
Commits
e88d850c
Commit
e88d850c
authored
9 years ago
by
Felipe Cerqueira
Browse files
Options
Downloads
Patches
Plain Diff
Before changing workload proof
parent
0cb57c0e
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
task.v
+2
-1
2 additions, 1 deletion
task.v
workload.v
+24
-5
24 additions, 5 deletions
workload.v
with
26 additions
and
6 deletions
task.v
+
2
−
1
View file @
e88d850c
...
...
@@ -15,7 +15,8 @@ Record sporadic_task : Type :=
task_properties
:
<<
task_cost_positive
:
task_cost
>
0
>>
/\
<<
task_period_positive
:
task_period
>
0
>>
/\
<<
task_deadline_positive
:
task_deadline
>
0
>>
/\
<<
task_cost_le_deadline
:
task_cost
<=
task_deadline
>>
<<
task_cost_le_deadline
:
task_cost
<=
task_deadline
>>
/\
<<
task_cost_le_period
:
task_cost
<=
task_period
>>
}
.
(* Define decidable equality for tasks, so that it can be
...
...
This diff is collapsed.
Click to expand it.
workload.v
+
24
−
5
View file @
e88d850c
...
...
@@ -24,14 +24,32 @@ Definition W (tsk: sporadic_task) (R_tsk: time) (delta: time) :=
Definition
arrival_time
(
sched
:
schedule
)
(
t'
:
time
)
(
j
:
job
)
:
nat
:=
find
(
arrives_at
sched
j
)
(
iota
0
t'
)
.
Lemma
max_jobs_bound
:
(*
Lemma max_jobs_bound :
forall tsk delta R_tsk (GT: R_tsk >= task_cost tsk),
(
max_jobs
tsk
R_tsk
delta
).
+
1
>=
div_ceil
delta
(
task_period
tsk
)
.
(max_jobs tsk R_tsk delta).+1 >= div_ceil
(
delta
+ R_tsk)
(task_period tsk).
Proof.
unfold max_jobs, div_floor, div_ceil; ins.
destruct
(
task_period
tsk
%|
delta
);
[
apply
leqW
|
rewrite
ltnS
];
have PROP := task_properties tsk; des.
destruct (task_period tsk %| (delta + R_tsk)) eqn:DIV.
{
move: DIV => /dvdnP DIV; des.
rewrite DIV mulnK //.
destruct k; first by rewrite mul0n sub0n div0n.
{
apply leq_trans with (n := ((k.+1 * task_period tsk - task_period tsk) %/ task_period tsk).+1).
by rewrite mulSn addnC -addnBA // subnn addn0 mulnK.
by rewrite ltnS leq_div2r // leq_sub2l //.
}
}
{
have bla := geq_divBl.
specialize (bla (delta + R_tsk) (task_cost tsk) (task_period tsk)).
}
by rewrite leq_div2r // -addnBA // leq_addr.
Qed
.
Qed.*)
Lemma
max_num_jobs_ceil
:
forall
ts
sched
(
ARRts
:
ts_arrival_sequence
ts
sched
)
...
...
@@ -238,10 +256,11 @@ Proof.
(* Since num_jobs cannot be larger than n_k.+1, it must be equal to n_k.+1 *)
assert
(
EQnum
:
num_jobs
==
n_k
.
+
1
)
.
{
(*
apply negbT in NUM; rewrite -ltnNge in NUM.
rewrite eqn_leq; apply/andP; split; last by ins.
apply leq_trans with (n := div_ceil (job_deadline j) (task_period tsk));
[
by
rewrite
-
EQdelta
|
by
apply
max_jobs_bound
]
.
[by rewrite -EQdelta | by apply max_jobs_bound].
*)
admit
.
}
clear
NUM
.
(* Order the sequence of released_jobs by arrival time, so that
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment