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
601cc94a
Commit
601cc94a
authored
5 years ago
by
Björn Brandenburg
Browse files
Options
Downloads
Patches
Plain Diff
expand on the relation of service to scheduled_at
parent
1f6c31c0
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
behavior/schedule/service_facts.v
+65
-1
65 additions, 1 deletion
behavior/schedule/service_facts.v
with
65 additions
and
1 deletion
behavior/schedule/service_facts.v
+
65
−
1
View file @
601cc94a
From
rt
.
behavior
.
schedule
Require
Export
schedule
.
From
rt
Require
Import
util
.
tactics
.
From
rt
.
util
Require
Import
tactics
step_function
.
(** In this file, we establish basic facts about the service received by
jobs. *)
...
...
@@ -218,4 +218,68 @@ Section RelationToScheduled.
by
apply
:
negbTE
.
Qed
.
(* Conversely, if a job receives service, then it must be scheduled. *)
Lemma
service_at_implies_scheduled_at
:
forall
t
,
service_at
sched
j
t
>
0
->
scheduled_at
sched
j
t
.
Proof
.
move
=>
t
.
destruct
(
scheduled_at
sched
j
t
)
eqn
:
SCHEDULED
;
first
trivial
.
rewrite
not_scheduled_implies_no_service
//
negbT
//.
Qed
.
(* Thus, if the cumulative amount of service changes, then it must be
scheduled, too. *)
Lemma
service_delta_implies_scheduled
:
forall
t
,
service
sched
j
t
<
service
sched
j
t
.
+
1
->
scheduled_at
sched
j
t
.
Proof
.
move
=>
t
.
rewrite
-
service_last_plus_before
-
{
1
}(
addn0
(
service
sched
j
t
))
ltn_add2l
.
apply
:
service_at_implies_scheduled_at
.
Qed
.
(* Similarly, any job with positive cumulative service must have been
scheduled before. *)
Lemma
positive_service_implies_scheduled_before
:
forall
t
,
service
sched
j
t
>
0
->
exists
t'
,
(
t'
<
t
/\
scheduled_at
sched
j
t'
)
.
Proof
.
move
=>
t
.
elim
:
t
=>
[|
t
IND
SERVICE
]
.
-
rewrite
service0
//.
-
destruct
(
scheduled_at
sched
j
t
)
eqn
:
SCHED
.
*
exists
t
;
split
;
auto
.
*
move
:
SERVICE
.
rewrite
-
service_last_plus_before
not_scheduled_implies_no_service
;
last
by
apply
negbT
;
assumption
.
rewrite
addn0
.
move
=>
SERVICE
.
apply
IND
in
SERVICE
.
inversion
SERVICE
as
[
t''
[
t''t
SCHED_AT
]]
.
exists
t''
;
split
;
auto
.
Qed
.
Section
AfterArrival
.
(* Futhermore, if we know that jobs are not released early, then we can
narrow the interval during which they must have been scheduled. *)
Context
`{
JobArrival
Job
}
.
(* Assume that jobs must arrive to execute. *)
Hypothesis
H_jobs_must_arrive
:
jobs_must_arrive_to_execute
sched
.
(* We prove that any job with positive cumulative service at time [t] must
have been scheduled some time since its arrival and before time [t]. *)
Lemma
positive_service_implies_scheduled_since_arrival
:
forall
t
,
service
sched
j
t
>
0
->
exists
t'
,
(
job_arrival
j
<=
t'
<
t
/\
scheduled_at
sched
j
t'
)
.
Proof
.
move
=>
t
SERVICE
.
have
EX_SCHED
:=
positive_service_implies_scheduled_before
t
SERVICE
.
inversion
EX_SCHED
as
[
t''
[
TIMES
SCHED_AT
]]
.
exists
t''
;
split
;
last
by
assumption
.
rewrite
/
(_
&&
_)
ifT
//.
move
:
H_jobs_must_arrive
.
rewrite
/
jobs_must_arrive_to_execute
/
has_arrived
=>
ARR
.
by
apply
:
ARR
;
exact
.
Qed
.
End
AfterArrival
.
End
RelationToScheduled
.
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