Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-atomic
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
Model registry
Operate
Environments
Monitor
Incidents
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
FP
iris-atomic
Commits
099eb48a
Commit
099eb48a
authored
8 years ago
by
Zhen Zhang
Browse files
Options
Downloads
Patches
Plain Diff
cleanups
parent
3f8c5a06
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
srv.v
+0
-15
0 additions, 15 deletions
srv.v
sync.v
+1
-1
1 addition, 1 deletion
sync.v
with
1 addition
and
16 deletions
srv.v
+
0
−
15
View file @
099eb48a
...
...
@@ -34,22 +34,7 @@ Definition mk_srv : val :=
release
"l"
;;
"ret"
.
(
*
play
with
some
algebraic
structure
to
see
what
fit
...
*
)
Definition
srvR
:=
prodR
fracR
(
dec_agreeR
val
).
Lemma
srv_coincide
:
∀
(
x1
x2
:
val
)
(
q1
q2
:
Qp
),
✓
((
q1
,
DecAgree
x1
)
⋅
(
q2
,
DecAgree
x2
))
→
x1
=
x2
.
Proof
.
intros
x1
x2
q1
q2
H
.
destruct
(
decide
(
x1
=
x2
))
=>
//.
exfalso
.
destruct
H
as
[
H1
H2
].
simpl
in
H2
.
apply
dec_agree_op_inv
in
H2
.
by
inversion
H2
.
Qed
.
Lemma
srv_update
:
∀
(
x1
x2
:
val
),
(
1
%
Qp
,
DecAgree
x1
)
~~>
(
1
%
Qp
,
DecAgree
x2
).
Proof
.
intros
.
by
apply
cmra_update_exclusive
.
Qed
.
(
*
define
the
gFunctors
*
)
Class
srvG
Σ
:=
FlatG
{
srv_tokG
:>
inG
Σ
srvR
}
.
Definition
srv
Σ
:
gFunctors
:=
#[
GFunctor
(
constRF
srvR
)].
...
...
This diff is collapsed.
Click to expand it.
sync.v
+
1
−
1
View file @
099eb48a
...
...
@@ -106,7 +106,7 @@ Section generic.
Definition
gFrag
(
γ
:
gname
)
g
:
iProp
Σ
:=
own
γ
(
gFragR
g
).
Definition
gFull
(
γ
:
gname
)
g
:
iProp
Σ
:=
own
γ
(
gFullR
g
).
Global
Instance
frag_timeless
γ
g
:
TimelessP
(
@
own
Σ
syncR
sync_tokG
γ
(
gFrag
R
g
)
)
.
Global
Instance
frag_timeless
γ
g
:
TimelessP
(
gFrag
γ
g
).
Proof
.
apply
_.
Qed
.
Global
Instance
full_timeless
γ
g
:
TimelessP
(
gFull
γ
g
).
...
...
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