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
65dfc546
Commit
65dfc546
authored
9 years ago
by
Felipe Cerqueira
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup code
parent
91b497aa
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
BertognaResponseTimeFP.v
+15
-9
15 additions, 9 deletions
BertognaResponseTimeFP.v
with
15 additions
and
9 deletions
BertognaResponseTimeFP.v
+
15
−
9
View file @
65dfc546
...
...
@@ -14,9 +14,6 @@ Module ResponseTimeIterationFP.
Variable
higher_eq_priority
:
fp_policy
.
Hypothesis
H_valid_policy
:
valid_fp_policy
higher_eq_priority
.
(* Consider a task set ts. *)
Variable
ts
:
sporadic_taskset
.
(* Next we define the fixed-point iteration for computing
Bertogna's response-time bound for any task in ts. *)
...
...
@@ -67,16 +64,19 @@ Module ResponseTimeIterationFP.
(* The schedulability test simply checks if we got a list of
response-time bounds (i.e., if the computation did not fail). *)
Definition
fp_schedulability_test
:=
R_list
ts
!=
None
.
Definition
fp_schedulability_test
(
ts
:
sporadic_taskset
)
:=
R_list
ts
!=
None
.
Section
AuxiliaryLemmas
.
(* In this section, we prove several helper lemmas about the
list of response-time bounds, such as:
(1) Equality among tasks in R_list and in the task set.
(2) (tsk, R) \in R_list -> R <= task_deadline tsk.
(3) (tsk, R) \in R_list -> R >= task_cost tsk.
(4) per_task_rta <= deadline -> per_task_rta converges *)
(2) If (tsk, R) \in R_list, then R <= task_deadline tsk.
(3) If (tsk, R) \in R_list, then R >= task_cost tsk.
(4) If per_task_rta returns a bound <= deadline, then the
iteration reached a fixed-point. *)
Lemma
R_list_rcons_prefix
:
forall
ts'
hp_bounds
tsk1
tsk2
R
,
R_list
(
rcons
ts'
tsk1
)
=
Some
(
rcons
hp_bounds
(
tsk2
,
R
))
->
...
...
@@ -451,7 +451,13 @@ Module ResponseTimeIterationFP.
Section
Proof
.
(* Assume that higher_eq_priority is a total order over the task set. *)
(* Consider a task set ts. *)
Variable
ts
:
sporadic_taskset
.
(* Assume that higher_eq_priority is a total order.
Actually, it just needs to be total over the task set,
but to weaken the assumption, I have to re-prove many lemmas
about ordering in ssreflect. This can be done later. *)
Hypothesis
H_reflexive
:
reflexive
higher_eq_priority
.
Hypothesis
H_transitive
:
transitive
higher_eq_priority
.
Hypothesis
H_unique_priorities
:
antisymmetric
higher_eq_priority
.
...
...
@@ -640,7 +646,7 @@ Module ResponseTimeIterationFP.
Qed
.
(* Finally, we show that if the schedulability test suceeds, ...*)
Hypothesis
H_test_passes
:
fp_schedulability_test
.
Hypothesis
H_test_passes
:
fp_schedulability_test
ts
.
(*..., then no task misses its deadline. *)
Theorem
taskset_schedulable_by_fp_rta
:
...
...
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