mirror of
https://github.com/achlipala/frap.git
synced 2025-01-08 09:04:14 +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:
|
* kinds of *local*state* in a thread:
|
||||||
* - program counter
|
* - program counter
|
||||||
* - values of local variables that may be ready eventually *)
|
* - values of local variables that may be ready eventually *)
|
||||||
Inductive increment_program : Set :=
|
Inductive increment_program :=
|
||||||
| Lock : increment_program
|
| Lock
|
||||||
| Read : increment_program
|
| Read
|
||||||
| Write : nat -> increment_program
|
| Write (local : nat)
|
||||||
| Unlock : increment_program
|
| Unlock
|
||||||
| Done : increment_program.
|
| Done.
|
||||||
|
|
||||||
(* Next, a type for state shared between threads. *)
|
(* Next, a type for state shared between threads. *)
|
||||||
Record inc_state := {
|
Record inc_state := {
|
||||||
|
|
|
@ -203,12 +203,12 @@ Qed.
|
||||||
* kinds of *local*state* in a thread:
|
* kinds of *local*state* in a thread:
|
||||||
* - program counter
|
* - program counter
|
||||||
* - values of local variables that may be ready eventually *)
|
* - values of local variables that may be ready eventually *)
|
||||||
Inductive increment_program : Set :=
|
Inductive increment_program :=
|
||||||
| Lock : increment_program
|
| Lock
|
||||||
| Read : increment_program
|
| Read
|
||||||
| Write : nat -> increment_program
|
| Write (local : nat)
|
||||||
| Unlock : increment_program
|
| Unlock
|
||||||
| Done : increment_program.
|
| Done.
|
||||||
|
|
||||||
(* Next, a type for state shared between threads. *)
|
(* Next, a type for state shared between threads. *)
|
||||||
Record inc_state := {
|
Record inc_state := {
|
||||||
|
|
Loading…
Reference in a new issue