Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rt-proofs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sergey Bozhko
rt-proofs
Commits
d72908b6
Commit
d72908b6
authored
May 24, 2019
by
Maxime Lesourd
Committed by
Björn Brandenburg
Jun 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renaming in schedule.v
parent
7a9c7cbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
behavior/schedule/schedule.v
behavior/schedule/schedule.v
+13
-7
No files found.
behavior/schedule/schedule.v
View file @
d72908b6
...
@@ -26,7 +26,7 @@ Definition schedule (PState : Type) := instant -> PState.
...
@@ -26,7 +26,7 @@ Definition schedule (PState : Type) := instant -> PState.
Class
JobCost
(
J
:
JobType
)
:
=
job_cost
:
J
->
nat
.
Class
JobCost
(
J
:
JobType
)
:
=
job_cost
:
J
->
nat
.
Section
S
ervic
e
.
Section
S
chedul
e
.
Context
{
Job
:
eqType
}
{
PState
:
Type
}.
Context
{
Job
:
eqType
}
{
PState
:
Type
}.
Context
`
{
ProcessorState
Job
PState
}.
Context
`
{
ProcessorState
Job
PState
}.
...
@@ -71,10 +71,8 @@ Section Service.
...
@@ -71,10 +71,8 @@ Section Service.
Definition
remaining_cost
j
t
:
=
Definition
remaining_cost
j
t
:
=
job_cost
j
-
service
j
t
.
job_cost
j
-
service
j
t
.
(* In this section, we define properties of valid schedules. *)
(* In this section, we define valid schedules. *)
Section
ValidSchedules
.
Section
ValidSchedule
.
Variable
(
arr_seq
:
arrival_sequence
Job
).
(* We define whether jobs come from some arrival sequence... *)
(* We define whether jobs come from some arrival sequence... *)
Definition
jobs_come_from_arrival_sequence
(
arr_seq
:
arrival_sequence
Job
)
:
=
Definition
jobs_come_from_arrival_sequence
(
arr_seq
:
arrival_sequence
Job
)
:
=
...
@@ -88,5 +86,13 @@ Section Service.
...
@@ -88,5 +86,13 @@ Section Service.
Definition
completed_jobs_dont_execute
:
=
Definition
completed_jobs_dont_execute
:
=
forall
j
t
,
service
j
t
<=
job_cost
j
.
forall
j
t
,
service
j
t
<=
job_cost
j
.
End
ValidSchedules
.
(* We say that the schedule is valid iff
End
Service
.
- jobs come from some arrival sequence
- a job can only be scheduled if it has arrived and is not completed yet *)
Definition
schedule_is_valid
(
arr_seq
:
arrival_sequence
Job
)
:
=
jobs_come_from_arrival_sequence
arr_seq
/\
jobs_must_arrive_to_execute
/\
completed_jobs_dont_execute
.
End
ValidSchedule
.
End
Schedule
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment