mirror of
https://github.com/achlipala/frap.git
synced 2024-11-10 00:07:51 +00:00
Harmonize inductive-definition convention
This commit is contained in:
parent
0123f45d21
commit
33d01606bf
2 changed files with 12 additions and 12 deletions
|
@ -301,12 +301,12 @@ Qed.
|
|||
* kinds of *local*state* in a thread:
|
||||
* - program counter
|
||||
* - values of local variables that may be ready eventually *)
|
||||
Inductive increment_program : Set :=
|
||||
| Lock : increment_program
|
||||
| Read : increment_program
|
||||
| Write : nat -> increment_program
|
||||
| Unlock : increment_program
|
||||
| Done : increment_program.
|
||||
Inductive increment_program :=
|
||||
| Lock
|
||||
| Read
|
||||
| Write (local : nat)
|
||||
| Unlock
|
||||
| Done.
|
||||
|
||||
(* Next, a type for state shared between threads. *)
|
||||
Record inc_state := {
|
||||
|
|
|
@ -203,12 +203,12 @@ Qed.
|
|||
* kinds of *local*state* in a thread:
|
||||
* - program counter
|
||||
* - values of local variables that may be ready eventually *)
|
||||
Inductive increment_program : Set :=
|
||||
| Lock : increment_program
|
||||
| Read : increment_program
|
||||
| Write : nat -> increment_program
|
||||
| Unlock : increment_program
|
||||
| Done : increment_program.
|
||||
Inductive increment_program :=
|
||||
| Lock
|
||||
| Read
|
||||
| Write (local : nat)
|
||||
| Unlock
|
||||
| Done.
|
||||
|
||||
(* Next, a type for state shared between threads. *)
|
||||
Record inc_state := {
|
||||
|
|
Loading…
Reference in a new issue