Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
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
Terraform modules
Monitor
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
Yixuan Chen
Iris
Commits
26341006
Commit
26341006
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
define the program we want to verify, and the STS we plan to use
parent
5b048a31
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
_CoqProject
+1
-0
1 addition, 0 deletions
_CoqProject
algebra/sts.v
+1
-0
1 addition, 0 deletions
algebra/sts.v
barrier/barrier.v
+29
-0
29 additions, 0 deletions
barrier/barrier.v
heap_lang/notation.v
+1
-0
1 addition, 0 deletions
heap_lang/notation.v
with
32 additions
and
0 deletions
_CoqProject
+
1
−
0
View file @
26341006
...
@@ -77,3 +77,4 @@ heap_lang/heap.v
...
@@ -77,3 +77,4 @@ heap_lang/heap.v
heap_lang/notation.v
heap_lang/notation.v
heap_lang/tests.v
heap_lang/tests.v
heap_lang/substitution.v
heap_lang/substitution.v
barrier/barrier.v
This diff is collapsed.
Click to expand it.
algebra/sts.v
+
1
−
0
View file @
26341006
...
@@ -13,6 +13,7 @@ Record stsT := STS {
...
@@ -13,6 +13,7 @@ Record stsT := STS {
trans
:
relation
state
;
trans
:
relation
state
;
tok
:
state
→
set
token
;
tok
:
state
→
set
token
;
}
.
}
.
Arguments
STS
{_
_}
_
_
.
(* The type of bounds we can give to the state of an STS. This is the type
(* The type of bounds we can give to the state of an STS. This is the type
that we equip with an RA structure. *)
that we equip with an RA structure. *)
...
...
This diff is collapsed.
Click to expand it.
barrier/barrier.v
0 → 100644
+
29
−
0
View file @
26341006
From
program_logic
Require
Export
sts
.
From
heap_lang
Require
Export
derived
heap
wp_tactics
notation
.
Definition
newchan
:=
(
λ
:
""
,
ref
'
0
)
%
L
.
Definition
signal
:=
(
λ
:
"x"
,
"x"
<-
'
1
)
%
L
.
Definition
wait
:=
(
rec
:
"wait"
"x"
:=
if
:
!
"x"
=
'
1
then
'
()
else
"wait"
"x"
)
%
L
.
(** The STS describing the main barrier protocol. *)
Module
barrier_proto
.
Inductive
state
:=
Low
(
I
:
gset
gname
)
|
High
(
I
:
gset
gname
)
.
Inductive
token
:=
Change
(
i
:
gname
)
|
Send
.
Definition
change_tokens
(
I
:
gset
gname
)
:
set
token
:=
mkSet
(
λ
t
,
match
t
with
Change
i
=>
i
∈
I
|
Send
=>
False
end
)
.
Inductive
trans
:
relation
state
:=
|
LowChange
I1
I2
:
trans
(
Low
I1
)
(
Low
I2
)
|
HighChange
I2
I1
:
trans
(
High
I1
)
(
High
I2
)
|
LowHigh
I
:
trans
(
Low
I
)
(
High
I
)
.
Definition
tok
(
s
:
state
)
:
set
token
:=
match
s
with
|
Low
I'
=>
change_tokens
I'
|
High
I'
=>
change_tokens
I'
∪
{[
Send
]}
end
.
Definition
sts
:=
sts
.
STS
trans
tok
.
End
barrier_proto
.
This diff is collapsed.
Click to expand it.
heap_lang/notation.v
+
1
−
0
View file @
26341006
...
@@ -20,6 +20,7 @@ Coercion of_val : val >-> expr.
...
@@ -20,6 +20,7 @@ Coercion of_val : val >-> expr.
pretty printing. *)
pretty printing. *)
Notation
"' l"
:=
(
Lit
l
%
Z
)
(
at
level
8
,
format
"' l"
)
.
Notation
"' l"
:=
(
Lit
l
%
Z
)
(
at
level
8
,
format
"' l"
)
.
Notation
"' l"
:=
(
LitV
l
%
Z
)
(
at
level
8
,
format
"' l"
)
.
Notation
"' l"
:=
(
LitV
l
%
Z
)
(
at
level
8
,
format
"' l"
)
.
Notation
"()"
:=
LitUnit
(
at
level
0
)
:
lang_scope
.
Notation
"! e"
:=
(
Load
e
%
L
)
(
at
level
10
,
right
associativity
)
:
lang_scope
.
Notation
"! e"
:=
(
Load
e
%
L
)
(
at
level
10
,
right
associativity
)
:
lang_scope
.
Notation
"'ref' e"
:=
(
Alloc
e
%
L
)
Notation
"'ref' e"
:=
(
Alloc
e
%
L
)
(
at
level
30
,
right
associativity
)
:
lang_scope
.
(
at
level
30
,
right
associativity
)
:
lang_scope
.
...
...
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