Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ReLoC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Iris
ReLoC
Commits
b7a16730
Commit
b7a16730
authored
1 year ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
finish mapsto rename
parent
ff8d4a47
No related branches found
No related tags found
No related merge requests found
Pipeline
#96060
passed
1 year ago
Changes
2
Pipelines
88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/examples/symbol.v
+4
-4
4 additions, 4 deletions
theories/examples/symbol.v
theories/logic/spec_ra.v
+13
-13
13 additions, 13 deletions
theories/logic/spec_ra.v
with
17 additions
and
17 deletions
theories/examples/symbol.v
+
4
−
4
View file @
b7a16730
...
@@ -258,7 +258,7 @@ Section proof.
...
@@ -258,7 +258,7 @@ Section proof.
repeat
rel_pure_l
.
repeat
rel_pure_l
.
rel_apply_r
(
refines_acquire_r
with
"Hl2"
)
.
rel_apply_r
(
refines_acquire_r
with
"Hl2"
)
.
iIntros
"Hl2"
.
repeat
rel_pure_r
.
iIntros
"Hl2"
.
repeat
rel_pure_r
.
iDestruct
(
map
stoS_half_combine
with
"Hs2 Hs2'"
)
as
"[% Hs2]"
;
simplify_eq
.
iDestruct
(
point
stoS_half_combine
with
"Hs2 Hs2'"
)
as
"[% Hs2]"
;
simplify_eq
.
rel_load_r
.
repeat
rel_pure_r
.
rel_load_r
.
repeat
rel_pure_r
.
rel_store_r
.
repeat
rel_pure_r
.
rel_store_r
.
repeat
rel_pure_r
.
(* Before we close the lock, we need to gather some evidence *)
(* Before we close the lock, we need to gather some evidence *)
...
@@ -277,7 +277,7 @@ Section proof.
...
@@ -277,7 +277,7 @@ Section proof.
iCombine
"Htbl1 Htbl1'"
as
"Htbl1"
.
iCombine
"Htbl1 Htbl1'"
as
"Htbl1"
.
iModIntro
.
iExists
_
.
iFrame
.
iNext
.
iIntros
"[Htbl1 Htbl1']"
.
iModIntro
.
iExists
_
.
iFrame
.
iNext
.
iIntros
"[Htbl1 Htbl1']"
.
repeat
rel_pure_l
.
repeat
rel_pure_r
.
rel_load_r
.
repeat
rel_pure_l
.
repeat
rel_pure_r
.
rel_load_r
.
iDestruct
(
map
stoS_half_combine
with
"Htbl2 Htbl2'"
)
as
"[% Htbl2]"
;
simplify_eq
.
iDestruct
(
point
stoS_half_combine
with
"Htbl2 Htbl2'"
)
as
"[% Htbl2]"
;
simplify_eq
.
repeat
rel_pure_r
.
rel_store_r
.
repeat
rel_pure_r
.
repeat
rel_pure_r
.
rel_store_r
.
repeat
rel_pure_r
.
rel_apply_r
(
refines_release_r
with
"Hl2"
)
.
rel_apply_r
(
refines_release_r
with
"Hl2"
)
.
iIntros
"Hl2"
.
repeat
rel_pure_r
.
iIntros
"Hl2"
.
repeat
rel_pure_r
.
...
@@ -337,7 +337,7 @@ Section proof.
...
@@ -337,7 +337,7 @@ Section proof.
repeat
rel_pure_l
.
repeat
rel_pure_l
.
rel_apply_r
(
refines_acquire_r
with
"Hl2"
)
.
rel_apply_r
(
refines_acquire_r
with
"Hl2"
)
.
iIntros
"Hl2"
.
repeat
rel_pure_r
.
iIntros
"Hl2"
.
repeat
rel_pure_r
.
iDestruct
(
map
stoS_half_combine
with
"Hs2 Hs2'"
)
as
"[% Hs2]"
;
simplify_eq
.
iDestruct
(
point
stoS_half_combine
with
"Hs2 Hs2'"
)
as
"[% Hs2]"
;
simplify_eq
.
rel_load_r
.
repeat
rel_pure_r
.
rel_load_r
.
repeat
rel_pure_r
.
rel_store_r
.
repeat
rel_pure_r
.
rel_store_r
.
repeat
rel_pure_r
.
(* Before we close the lock, we need to gather some evidence *)
(* Before we close the lock, we need to gather some evidence *)
...
@@ -356,7 +356,7 @@ Section proof.
...
@@ -356,7 +356,7 @@ Section proof.
iCombine
"Htbl1 Htbl1'"
as
"Htbl1"
.
iCombine
"Htbl1 Htbl1'"
as
"Htbl1"
.
iModIntro
.
iExists
_
.
iFrame
.
iNext
.
iIntros
"[Htbl1 Htbl1']"
.
iModIntro
.
iExists
_
.
iFrame
.
iNext
.
iIntros
"[Htbl1 Htbl1']"
.
repeat
rel_pure_l
.
repeat
rel_pure_r
.
rel_load_r
.
repeat
rel_pure_l
.
repeat
rel_pure_r
.
rel_load_r
.
iDestruct
(
map
stoS_half_combine
with
"Htbl2 Htbl2'"
)
as
"[% Htbl2]"
;
simplify_eq
.
iDestruct
(
point
stoS_half_combine
with
"Htbl2 Htbl2'"
)
as
"[% Htbl2]"
;
simplify_eq
.
repeat
rel_pure_r
.
rel_store_r
.
repeat
rel_pure_r
.
repeat
rel_pure_r
.
rel_store_r
.
repeat
rel_pure_r
.
rel_apply_r
(
refines_release_r
with
"Hl2"
)
.
rel_apply_r
(
refines_release_r
with
"Hl2"
)
.
iIntros
"Hl2"
.
repeat
rel_pure_r
.
iIntros
"Hl2"
.
repeat
rel_pure_r
.
...
...
This diff is collapsed.
Click to expand it.
theories/logic/spec_ra.v
+
13
−
13
View file @
b7a16730
...
@@ -151,20 +151,20 @@ End to_heap.
...
@@ -151,20 +151,20 @@ End to_heap.
Section
pointsto
.
Section
pointsto
.
Context
`{
!
cfgSG
Σ
}
.
Context
`{
!
cfgSG
Σ
}
.
Global
Instance
map
stoS_fractional
l
v
:
Fractional
(
λ
q
,
l
↦
ₛ
{
q
}
v
)
%
I
.
Global
Instance
point
stoS_fractional
l
v
:
Fractional
(
λ
q
,
l
↦
ₛ
{
q
}
v
)
%
I
.
Proof
.
Proof
.
intros
p
q
.
rewrite
heapS_pointsto_eq
-
own_op
-
auth_frag_op
.
intros
p
q
.
rewrite
heapS_pointsto_eq
-
own_op
-
auth_frag_op
.
by
rewrite
-
pair_op
singleton_op
-
pair_op
agree_idemp
right_id
.
by
rewrite
-
pair_op
singleton_op
-
pair_op
agree_idemp
right_id
.
Qed
.
Qed
.
Global
Instance
map
stoS_as_fractional
l
q
v
:
Global
Instance
point
stoS_as_fractional
l
q
v
:
AsFractional
(
l
↦
ₛ
{
q
}
v
)
(
λ
q
,
l
↦
ₛ
{
q
}
v
)
%
I
q
.
AsFractional
(
l
↦
ₛ
{
q
}
v
)
(
λ
q
,
l
↦
ₛ
{
q
}
v
)
%
I
q
.
Proof
.
split
.
done
.
apply
_
.
Qed
.
Proof
.
split
.
done
.
apply
_
.
Qed
.
Global
Instance
frame_
map
stoS
p
l
v
q1
q2
q
:
Global
Instance
frame_
point
stoS
p
l
v
q1
q2
q
:
FrameFractionalQp
q1
q2
q
→
FrameFractionalQp
q1
q2
q
→
Frame
p
(
l
↦
ₛ
{
q1
}
v
)
(
l
↦
ₛ
{
q2
}
v
)
(
l
↦
ₛ
{
q
}
v
)
|
5
.
Frame
p
(
l
↦
ₛ
{
q1
}
v
)
(
l
↦
ₛ
{
q2
}
v
)
(
l
↦
ₛ
{
q
}
v
)
|
5
.
Proof
.
apply
:
frame_fractional
.
Qed
.
Proof
.
apply
:
frame_fractional
.
Qed
.
Lemma
map
stoS_agree
l
q1
q2
v1
v2
:
l
↦
ₛ
{
q1
}
v1
-∗
l
↦
ₛ
{
q2
}
v2
-∗
⌜
v1
=
v2
⌝.
Lemma
point
stoS_agree
l
q1
q2
v1
v2
:
l
↦
ₛ
{
q1
}
v1
-∗
l
↦
ₛ
{
q2
}
v2
-∗
⌜
v1
=
v2
⌝.
Proof
.
Proof
.
apply
bi
.
entails_wand
,
bi
.
wand_intro_r
.
apply
bi
.
entails_wand
,
bi
.
wand_intro_r
.
rewrite
heapS_pointsto_eq
-
own_op
-
auth_frag_op
own_valid
uPred
.
discrete_valid
.
rewrite
heapS_pointsto_eq
-
own_op
-
auth_frag_op
own_valid
uPred
.
discrete_valid
.
...
@@ -176,7 +176,7 @@ Section pointsto.
...
@@ -176,7 +176,7 @@ Section pointsto.
by
move
=>
[_]
/
to_agree_op_inv_L
[
->
]
.
by
move
=>
[_]
/
to_agree_op_inv_L
[
->
]
.
Qed
.
Qed
.
Lemma
map
stoS_valid
l
q
v
:
l
↦
ₛ
{
q
}
v
-∗
✓
q
.
Lemma
point
stoS_valid
l
q
v
:
l
↦
ₛ
{
q
}
v
-∗
✓
q
.
Proof
.
Proof
.
rewrite
heapS_pointsto_eq
/
heapS_pointsto_def
own_valid
!
uPred
.
discrete_valid
.
rewrite
heapS_pointsto_eq
/
heapS_pointsto_def
own_valid
!
uPred
.
discrete_valid
.
apply
bi
.
entails_wand
,
pure_mono
=>
/
auth_frag_valid
/=
[_
Hfoo
]
.
apply
bi
.
entails_wand
,
pure_mono
=>
/
auth_frag_valid
/=
[_
Hfoo
]
.
...
@@ -184,25 +184,25 @@ Section pointsto.
...
@@ -184,25 +184,25 @@ Section pointsto.
by
intros
[?
_]
.
by
intros
[?
_]
.
Qed
.
Qed
.
Lemma
map
stoS_valid_2
l
q1
q2
v1
v2
:
l
↦
ₛ
{
q1
}
v1
-∗
l
↦
ₛ
{
q2
}
v2
-∗
✓
(
q1
+
q2
)
%
Qp
.
Lemma
point
stoS_valid_2
l
q1
q2
v1
v2
:
l
↦
ₛ
{
q1
}
v1
-∗
l
↦
ₛ
{
q2
}
v2
-∗
✓
(
q1
+
q2
)
%
Qp
.
Proof
.
Proof
.
iIntros
"H1 H2"
.
iDestruct
(
map
stoS_agree
with
"H1 H2"
)
as
%->
.
iIntros
"H1 H2"
.
iDestruct
(
point
stoS_agree
with
"H1 H2"
)
as
%->
.
iApply
(
map
stoS_valid
l
_
v2
)
.
by
iFrame
.
iApply
(
point
stoS_valid
l
_
v2
)
.
by
iFrame
.
Qed
.
Qed
.
Global
Instance
map
stoS_combine_sep_gives
l
dq1
dq2
v1
v2
:
Global
Instance
point
stoS_combine_sep_gives
l
dq1
dq2
v1
v2
:
CombineSepGives
(
l
↦
ₛ
{
dq1
}
v1
)
(
l
↦
ₛ
{
dq2
}
v2
)
⌜✓
(
dq1
⋅
dq2
)
∧
v1
=
v2
⌝.
CombineSepGives
(
l
↦
ₛ
{
dq1
}
v1
)
(
l
↦
ₛ
{
dq2
}
v2
)
⌜✓
(
dq1
⋅
dq2
)
∧
v1
=
v2
⌝.
Proof
.
Proof
.
rewrite
/
CombineSepGives
.
iIntros
"[H1 H2]"
.
iSplit
.
rewrite
/
CombineSepGives
.
iIntros
"[H1 H2]"
.
iSplit
.
-
iDestruct
(
map
stoS_valid_2
with
"H1 H2"
)
as
%
?;
auto
.
-
iDestruct
(
point
stoS_valid_2
with
"H1 H2"
)
as
%
?;
auto
.
-
iDestruct
(
map
stoS_agree
with
"H1 H2"
)
as
%
?;
auto
.
-
iDestruct
(
point
stoS_agree
with
"H1 H2"
)
as
%
?;
auto
.
Qed
.
Qed
.
Lemma
map
stoS_half_combine
l
v1
v2
:
Lemma
point
stoS_half_combine
l
v1
v2
:
l
↦
ₛ
{
1
/
2
}
v1
-∗
l
↦
ₛ
{
1
/
2
}
v2
-∗
⌜
v1
=
v2
⌝
∗
l
↦
ₛ
v1
.
l
↦
ₛ
{
1
/
2
}
v1
-∗
l
↦
ₛ
{
1
/
2
}
v2
-∗
⌜
v1
=
v2
⌝
∗
l
↦
ₛ
v1
.
Proof
.
Proof
.
iIntros
"Hl1 Hl2"
.
iIntros
"Hl1 Hl2"
.
iDestruct
(
map
stoS_agree
with
"Hl1 Hl2"
)
as
%
?
.
simplify_eq
.
iDestruct
(
point
stoS_agree
with
"Hl1 Hl2"
)
as
%
?
.
simplify_eq
.
iSplit
;
eauto
.
iCombine
"Hl1 Hl2"
as
"?"
.
done
.
iSplit
;
eauto
.
iCombine
"Hl1 Hl2"
as
"?"
.
done
.
Qed
.
Qed
.
...
...
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