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
Gaëtan Gilbert
Iris
Commits
ae1ed016
Commit
ae1ed016
authored
4 years ago
by
Simon Friis Vindum
Browse files
Options
Downloads
Patches
Plain Diff
Make core_id_local_update work with fraction
parent
213fc044
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/algebra/agree.v
+7
-0
7 additions, 0 deletions
theories/algebra/agree.v
theories/algebra/auth.v
+12
-4
12 additions, 4 deletions
theories/algebra/auth.v
theories/algebra/local_updates.v
+0
-8
0 additions, 8 deletions
theories/algebra/local_updates.v
with
19 additions
and
12 deletions
theories/algebra/agree.v
+
7
−
0
View file @
ae1ed016
...
...
@@ -207,6 +207,13 @@ Proof.
by
move
=>
/
agree_op_invN
->
;
rewrite
agree_idemp
.
Qed
.
Lemma
to_agree_includedN
n
a
b
:
to_agree
a
≼
{
n
}
to_agree
b
↔
a
≡
{
n
}
≡
b
.
Proof
.
split
;
last
by
intros
->
.
intros
(
x
&
Heq
)
.
destruct
Heq
as
[_
Hincl
]
.
by
destruct
(
Hincl
a
)
as
(?
&
->%
elem_of_list_singleton
&
?);
first
set_solver
+.
Qed
.
Lemma
to_agree_included
a
b
:
to_agree
a
≼
to_agree
b
↔
a
≡
b
.
Proof
.
split
;
last
by
intros
->
.
...
...
This diff is collapsed.
Click to expand it.
theories/algebra/auth.v
+
12
−
4
View file @
ae1ed016
...
...
@@ -385,11 +385,19 @@ Proof.
exact
:
cmra_update_op_l
.
Qed
.
Lemma
auth_update_core_id
a
b
`{
!
CoreId
b
}
:
b
≼
a
→
●
a
~~>
●
a
⋅
◯
b
.
Lemma
auth_update_core_id
q
a
b
`{
!
CoreId
b
}
:
b
≼
a
→
●
{
q
}
a
~~>
●
{
q
}
a
⋅
◯
b
.
Proof
.
intros
Hincl
.
apply
:
auth_update_alloc
.
rewrite
-
(
left_id
ε
_
b
)
.
apply
:
core_id_local_update
.
done
.
intros
Heq
%
core_id_extract
;
last
done
.
apply
cmra_total_update
.
move
=>
n
[[[
q'
ag
]|]
bf1
]
[
/=
VL
[
a0
[
Eq
[[
bf2
Ha
]
VL2
]]]];
do
2
red
;
simpl
in
*.
+
split
;
first
done
.
exists
a0
.
split
;
last
split
;
try
done
.
exists
bf2
.
assert
(
a
≡
{
n
}
≡
a0
)
as
Eq2
.
{
apply
to_agree_includedN
.
exists
ag
.
done
.
}
by
rewrite
left_id
-
Eq2
-
assoc
-
comm
Heq
Eq2
Ha
left_id
.
+
split
;
first
done
.
exists
a0
.
split
;
first
done
.
split
;
last
done
.
exists
bf2
.
apply
(
inj
to_agree
)
in
Eq
.
by
rewrite
left_id
-
Eq
-
assoc
-
comm
Heq
Eq
Ha
left_id
.
Qed
.
Lemma
auth_update_dealloc
a
b
a'
:
(
a
,
b
)
~l
~>
(
a'
,
ε
)
→
●
a
⋅
◯
b
~~>
●
a'
.
...
...
This diff is collapsed.
Click to expand it.
theories/algebra/local_updates.v
+
0
−
8
View file @
ae1ed016
...
...
@@ -59,14 +59,6 @@ Section updates.
destruct
mz
as
[
z
|];
[|
done
]
.
by
destruct
(
id_freeN_r
n
n
x
z
)
.
Qed
.
Lemma
core_id_local_update
x
y
z
`{
!
CoreId
y
}
:
y
≼
x
→
(
x
,
z
)
~l
~>
(
x
,
z
⋅
y
)
.
Proof
.
intros
Hincl
n
mf
?
Heq
;
simpl
in
*
;
split
;
first
done
.
rewrite
[
x
]
core_id_extract
//
Heq
.
destruct
mf
as
[
f
|];
last
done
.
simpl
.
rewrite
-
assoc
[
f
⋅
y
]
comm
assoc
//.
Qed
.
Lemma
local_update_discrete
`{
!
CmraDiscrete
A
}
(
x
y
x'
y'
:
A
)
:
(
x
,
y
)
~l
~>
(
x'
,
y'
)
↔
∀
mz
,
✓
x
→
x
≡
y
⋅
?
mz
→
✓
x'
∧
x'
≡
y'
⋅
?
mz
.
Proof
.
...
...
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