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
Pierre Roux
Iris
Commits
53f179de
Commit
53f179de
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
shrink proof of timestamp_sub
parent
67abfa93
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/heap_lang/lib/atomic_snapshot.v
+7
-17
7 additions, 17 deletions
theories/heap_lang/lib/atomic_snapshot.v
with
7 additions
and
17 deletions
theories/heap_lang/lib/atomic_snapshot.v
+
7
−
17
View file @
53f179de
...
@@ -217,29 +217,19 @@ Section atomic_snapshot.
...
@@ -217,29 +217,19 @@ Section atomic_snapshot.
iMod
(
own_op
with
"Ht"
)
as
"[Ht● Ht◯]"
.
iModIntro
.
iFrame
.
iMod
(
own_op
with
"Ht"
)
as
"[Ht● Ht◯]"
.
iModIntro
.
iFrame
.
Qed
.
Qed
.
Lemma
fmap_undo
{
A
B
}
(
f
:
A
->
B
)
(
m
:
gmap
Z
A
)
k
v
:
f
<$>
m
!!
k
=
Some
v
->
exists
v'
,
m
!!
k
=
Some
v'
/\
v
=
f
v'
.
Proof
.
intros
Hl
.
destruct
(
m
!!
k
);
inversion
Hl
.
subst
.
eauto
.
Qed
.
Lemma
timestamp_sub
γ
(
T1
T2
:
gmap
Z
val
):
Lemma
timestamp_sub
γ
(
T1
T2
:
gmap
Z
val
):
own
γ
(
●
gmap_to_UR
T1
)
∗
own
γ
(
◯
gmap_to_UR
T2
)
-∗
own
γ
(
●
gmap_to_UR
T1
)
∗
own
γ
(
◯
gmap_to_UR
T2
)
-∗
⌜
forall
t
x
,
T2
!!
t
=
Some
x
->
T1
!!
t
=
Some
x
⌝.
⌜
forall
t
x
,
T2
!!
t
=
Some
x
->
T1
!!
t
=
Some
x
⌝.
Proof
.
Proof
.
iIntros
"[Hγ⚫ Hγ◯]"
.
iIntros
"[Hγ⚫ Hγ◯]"
.
iDestruct
(
own_valid_2
with
"Hγ⚫ Hγ◯"
)
as
iDestruct
(
own_valid_2
with
"Hγ⚫ Hγ◯"
)
as
%
[
H
Hv
]
%
auth_valid_discrete_2
.
iPureIntro
.
intros
t
x
Ht
.
%
[
H
Hv
]
%
auth_valid_discrete_2
.
iPureIntro
.
intros
t
x
HT2
.
pose
proof
(
iffLR
(
lookup_included
(
gmap_to_UR
T2
)
(
gmap_to_UR
T1
))
H
t
)
as
Hsub
.
pose
proof
(
iffLR
(
lookup_included
(
gmap_to_UR
T2
)
(
gmap_to_UR
T1
))
H
t
)
as
Ht
.
repeat
rewrite
lookup_fmap
in
Hsub
.
rewrite
!
lookup_fmap
HT2
/=
in
Ht
.
rewrite
Ht
in
Hsub
.
simpl
in
Hsub
.
destruct
(
is_Some_included
_
_
Ht
)
as
[?
[
t2
[
Ht2
->
]]
%
fmap_Some_1
];
first
by
eauto
.
pose
proof
(
mk_is_Some
(
Some
(
to_agree
x
))
_
eq_refl
)
as
Hsome
.
revert
Ht
.
pose
proof
(
is_Some_included
_
_
Hsub
Hsome
)
as
Hsome'
;
clear
Hsome
.
rewrite
Ht2
Some_included_total
to_agree_included
.
fold_leibniz
.
destruct
Hsome'
as
[
c
Heqx
]
.
rewrite
Heqx
in
Hsub
.
by
intros
->
.
apply
(
iffLR
(
Some_included_total
_
_))
in
Hsub
.
destruct
(
fmap_undo
to_agree
_
_
_
Heqx
)
as
[
c'
[
Heq1
Heq2
]]
.
subst
.
apply
to_agree_included
in
Hsub
.
apply
leibniz_equiv
in
Hsub
.
subst
.
done
.
Qed
.
Qed
.
Lemma
writeY_spec
e
(
y2
:
val
)
γ
p
:
Lemma
writeY_spec
e
(
y2
:
val
)
γ
p
:
...
...
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