Skip to content
Snippets Groups Projects
Commit 049df491 authored by Pierre Roux's avatar Pierre Roux
Browse files

[tutorial] Avoid introducing the `{...} syntax

parent 4135a3fe
No related branches found
No related tags found
1 merge request!191Draft: Initiate a Prosa Tutorial
Pipeline #78180 passed
...@@ -47,8 +47,8 @@ Section ValidArrivalSequence. ...@@ -47,8 +47,8 @@ Section ValidArrivalSequence.
(** Assume that job arrival times are known. *) (** Assume that job arrival times are known. *)
Context {Job: JobType}. Context {Job: JobType}.
Context `{JobArrival Job}. Context {ja : JobArrival Job}.
(** Consider any job arrival sequence. *) (** Consider any job arrival sequence. *)
Variable arr_seq: arrival_sequence Job. Variable arr_seq: arrival_sequence Job.
...@@ -75,11 +75,11 @@ End ValidArrivalSequence. ...@@ -75,11 +75,11 @@ End ValidArrivalSequence.
Section ArrivalTimeProperties. Section ArrivalTimeProperties.
(** Assume that job arrival times are known. *) (** Assume that job arrival times are known. *)
Context {Job: JobType}. Context {Job : JobType}.
Context `{JobArrival Job}. Context {ja : JobArrival Job}.
(** Let j be any job. *) (** Let j be any job. *)
Variable j: Job. Variable j : Job.
(** We say that job j has arrived at time t iff it arrives at some time t_0 (** We say that job j has arrived at time t iff it arrives at some time t_0
with t_0 <= t. *) with t_0 <= t. *)
...@@ -102,11 +102,11 @@ End ArrivalTimeProperties. ...@@ -102,11 +102,11 @@ End ArrivalTimeProperties.
Section ArrivalSequencePrefix. Section ArrivalSequencePrefix.
(** Assume that job arrival times are known. *) (** Assume that job arrival times are known. *)
Context {Job: JobType}. Context {Job : JobType}.
Context `{JobArrival Job}. Context {ja : JobArrival Job}.
(** Consider any job arrival sequence. *) (** Consider any job arrival sequence. *)
Variable arr_seq: arrival_sequence Job. Variable arr_seq : arrival_sequence Job.
(** By concatenation, we construct the list of jobs that arrived in the (** By concatenation, we construct the list of jobs that arrived in the
interval <<[t1, t2)>>. *) interval <<[t1, t2)>>. *)
......
...@@ -35,9 +35,9 @@ Section Service. ...@@ -35,9 +35,9 @@ Section Service.
(** In the following, consider jobs that have a cost, a deadline, and an (** In the following, consider jobs that have a cost, a deadline, and an
arbitrary arrival time. *) arbitrary arrival time. *)
Context `{JobCost Job}. Context {jc : JobCost Job}.
Context `{JobDeadline Job}. Context {jd : JobDeadline Job}.
Context `{JobArrival Job}. Context {ja : JobArrival Job}.
(** We say that job [j] has completed by time [t] if it received all required (** We say that job [j] has completed by time [t] if it received all required
service in the interval from [0] until (but not including) [t]. *) service in the interval from [0] until (but not including) [t]. *)
......
...@@ -433,7 +433,7 @@ Section ValidArrivalSequence. ...@@ -433,7 +433,7 @@ Section ValidArrivalSequence.
(** Assume that job arrival times are known. *) (** Assume that job arrival times are known. *)
Context {Job : JobType}. Context {Job : JobType}.
Context `{JobArrival Job}. Context {ja : JobArrival Job}.
(** Consider any job arrival sequence. *) (** Consider any job arrival sequence. *)
Variable arr_seq : arrival_sequence Job. Variable arr_seq : arrival_sequence Job.
...@@ -463,7 +463,7 @@ Section ArrivalTimeProperties. ...@@ -463,7 +463,7 @@ Section ArrivalTimeProperties.
(** Assume that job arrival times are known. *) (** Assume that job arrival times are known. *)
Context {Job : JobType}. Context {Job : JobType}.
Context `{JobArrival Job}. Context {ja : JobArrival Job}.
(** Let j be any job. *) (** Let j be any job. *)
Variable j : Job. Variable j : Job.
...@@ -490,7 +490,7 @@ Section ArrivalSequencePrefix. ...@@ -490,7 +490,7 @@ Section ArrivalSequencePrefix.
(** Assume that job arrival times are known. *) (** Assume that job arrival times are known. *)
Context {Job : JobType}. Context {Job : JobType}.
Context `{JobArrival Job}. Context {ja : JobArrival Job}.
(** Consider any job arrival sequence. *) (** Consider any job arrival sequence. *)
Variable arr_seq : arrival_sequence Job. Variable arr_seq : arrival_sequence Job.
...@@ -592,9 +592,9 @@ as well as the notion of completion of a job ...@@ -592,9 +592,9 @@ as well as the notion of completion of a job
|*) |*)
(** In the following, consider jobs that have a cost, a deadline, (** In the following, consider jobs that have a cost, a deadline,
and an arbitrary arrival time. *) and an arbitrary arrival time. *)
Context `{JobCost Job}. Context {jc : JobCost Job}.
Context `{JobDeadline Job}. Context {jd : JobDeadline Job}.
Context `{JobArrival Job}. Context {ja : JobArrival Job}.
(** We say that job [j] has completed by time [t] if it received all (** We say that job [j] has completed by time [t] if it received all
required service in the interval from [0] until required service in the interval from [0] until
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment