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
bd5383a1
Commit
bd5383a1
authored
5 years ago
by
Björn Brandenburg
Browse files
Options
Downloads
Patches
Plain Diff
port scheduler_executes_job_with_earliest_arrival
parent
780f7045
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
behavior/facts/all.v
+1
-0
1 addition, 0 deletions
behavior/facts/all.v
behavior/facts/sequential.v
+42
-0
42 additions, 0 deletions
behavior/facts/sequential.v
behavior/sequential.v
+29
-0
29 additions, 0 deletions
behavior/sequential.v
behavior/task.v
+15
-1
15 additions, 1 deletion
behavior/task.v
with
87 additions
and
1 deletion
behavior/facts/all.v
+
1
−
0
View file @
bd5383a1
Require
Export
rt
.
behavior
.
facts
.
service
.
Require
Export
rt
.
behavior
.
facts
.
service
.
Require
Export
rt
.
behavior
.
facts
.
completion
.
Require
Export
rt
.
behavior
.
facts
.
completion
.
Require
Export
rt
.
behavior
.
facts
.
ideal_schedule
.
Require
Export
rt
.
behavior
.
facts
.
ideal_schedule
.
Require
Export
rt
.
behavior
.
facts
.
sequential
.
This diff is collapsed.
Click to expand it.
behavior/facts/sequential.v
0 → 100644
+
42
−
0
View file @
bd5383a1
From
rt
.
behavior
Require
Export
sequential
.
Section
ExecutionOrder
.
(* Consider any type of job associated with any type of tasks... *)
Context
{
Job
:
JobType
}
.
Context
{
Task
:
TaskType
}
.
Context
`{
JobTask
Job
Task
}
.
(* ... with arrival times and costs ... *)
Context
`{
JobArrival
Job
}
.
Context
`{
JobCost
Job
}
.
(* ... and any kind of processor state model. *)
Context
{
PState
:
Type
}
.
Context
`{
ProcessorState
Job
PState
}
.
(* Assume a schedule ... *)
Variable
sched
:
schedule
PState
.
(* in which the sequential jobs hypothesis holds. *)
Hypothesis
H_sequential_jobs
:
sequential_jobs
sched
.
(* A simple corollary of this hypothesis is that the scheduler
executes a job with the earliest arrival time. *)
Corollary
scheduler_executes_job_with_earliest_arrival
:
forall
j1
j2
t
,
same_task
j1
j2
->
~~
completed_by
sched
j2
t
->
scheduled_at
sched
j1
t
->
job_arrival
j1
<=
job_arrival
j2
.
Proof
.
intros
?
?
t
TSK
NCOMPL
SCHED
.
rewrite
/
same_task
eq_sym
in
TSK
.
have
SEQ
:=
H_sequential_jobs
j2
j1
t
TSK
.
rewrite
leqNgt
;
apply
/
negP
;
intros
ARR
.
move
:
NCOMPL
=>
/
negP
NCOMPL
;
apply
:
NCOMPL
.
by
apply
SEQ
.
Qed
.
End
ExecutionOrder
.
This diff is collapsed.
Click to expand it.
behavior/sequential.v
0 → 100644
+
29
−
0
View file @
bd5383a1
From
rt
.
behavior
Require
Export
schedule
task
.
Section
PropertyOfSequentiality
.
(* Consider any type of job associated with any type of tasks... *)
Context
{
Job
:
JobType
}
.
Context
{
Task
:
TaskType
}
.
Context
`{
JobTask
Job
Task
}
.
(* ... with arrival times and costs ... *)
Context
`{
JobArrival
Job
}
.
Context
`{
JobCost
Job
}
.
(* ... and any kind of processor state model. *)
Context
{
PState
:
Type
}
.
Context
`{
ProcessorState
Job
PState
}
.
(* Given a schedule ... *)
Variable
sched
:
schedule
PState
.
(* ...we say that jobs (or, rather, tasks) are sequential if each task's jobs
are executed in the order they arrived. *)
Definition
sequential_jobs
:=
forall
(
j1
j2
:
Job
)
(
t
:
instant
),
same_task
j1
j2
->
job_arrival
j1
<
job_arrival
j2
->
scheduled_at
sched
j2
t
->
completed_by
sched
j1
t
.
End
PropertyOfSequentiality
.
This diff is collapsed.
Click to expand it.
behavior/task.v
+
15
−
1
View file @
bd5383a1
From
mathcomp
Require
Export
ssrbool
.
From
rt
.
behavior
Require
Export
job
.
From
rt
.
behavior
Require
Export
job
.
(* Throughout the library we assume that jobs have decidable equality *)
(* Throughout the library we assume that jobs have decidable equality *)
...
@@ -6,4 +7,17 @@ Definition TaskType := eqType.
...
@@ -6,4 +7,17 @@ Definition TaskType := eqType.
(* Definition of a generic type of parameter relating jobs to tasks *)
(* Definition of a generic type of parameter relating jobs to tasks *)
Class
JobTask
(
T
:
TaskType
)
(
J
:
JobType
)
:=
job_task
:
J
->
T
.
Class
JobTask
(
J
:
JobType
)
(
T
:
TaskType
)
:=
job_task
:
J
->
T
.
\ No newline at end of file
Section
SameTask
.
(* For any type of job associated with any type of tasks... *)
Context
{
Job
:
JobType
}
.
Context
{
Task
:
TaskType
}
.
Context
`{
JobTask
Job
Task
}
.
(* ... we say that two jobs j1 and j2 are from the same task iff job_task j1
is equal to job_task j2. *)
Definition
same_task
j1
j2
:=
job_task
j1
==
job_task
j2
.
End
SameTask
.
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