Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
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
Service Desk
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
lambda-rust
Commits
ba659fd0
Commit
ba659fd0
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Remove some FIXMEs and update to latest Iris.
parent
18ef7b44
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
opam.pins
+1
-1
1 addition, 1 deletion
opam.pins
theories/typing/sum.v
+4
-7
4 additions, 7 deletions
theories/typing/sum.v
with
5 additions
and
8 deletions
opam.pins
+
1
−
1
View file @
ba659fd0
coq-iris https://gitlab.mpi-sws.org/FP/iris-coq
5241c33d3013b81bb620b3cfd3cba1f2efdc5b2b
coq-iris https://gitlab.mpi-sws.org/FP/iris-coq
e0789039ed0dcb01b6249fec2d5a36f66e5de21c
This diff is collapsed.
Click to expand it.
theories/typing/sum.v
+
4
−
7
View file @
ba659fd0
...
...
@@ -54,8 +54,7 @@ Section sum.
iSplit
;
iIntros
"H"
.
-
iDestruct
"H"
as
(
vl
)
"[Hmt Hown]"
.
iDestruct
"Hown"
as
(
i
vl'
vl''
)
"(% & % & Hown)"
.
subst
.
iExists
i
.
iDestruct
(
heap_mapsto_vec_cons
with
"Hmt"
)
as
"[$ Hmt]"
.
(* TODO: I should not have to say '[#]' here, similar to iDestruct ... as %.... *)
iAssert
(
⌜
length
vl'
=
(
nth
i
tyl
∅
).(
ty_size
)
⌝%
I
)
with
"[#]"
as
%
Hvl'
.
iAssert
(
⌜
length
vl'
=
(
nth
i
tyl
∅
).(
ty_size
)
⌝%
I
)
as
%
Hvl'
.
{
iApply
ty_size_eq
.
done
.
}
iDestruct
(
heap_mapsto_vec_app
with
"Hmt"
)
as
"[Hmt Htail]"
.
iSplitL
"Htail"
.
+
iExists
vl''
.
rewrite
(
shift_loc_assoc_nat
_
1
)
Hvl'
.
iFrame
.
iPureIntro
.
...
...
@@ -63,8 +62,7 @@ Section sum.
+
iExists
vl'
.
by
iFrame
.
-
iDestruct
"H"
as
(
i
)
"[[Hmt1 Htail] Hown]"
.
iDestruct
"Hown"
as
(
vl'
)
"[Hmt2 Hown]"
.
iDestruct
"Htail"
as
(
vl''
)
"[Hmt3 %]"
.
(* TODO: I should not have to say '[#]' here, similar to iDestruct ... as %.... *)
iAssert
(
⌜
length
vl'
=
(
nth
i
tyl
∅
).(
ty_size
)
⌝%
I
)
with
"[#]"
as
%
Hvl'
.
iAssert
(
⌜
length
vl'
=
(
nth
i
tyl
∅
).(
ty_size
)
⌝%
I
)
as
%
Hvl'
.
{
iApply
ty_size_eq
.
done
.
}
iExists
(
#
i
::
vl'
++
vl''
)
.
rewrite
heap_mapsto_vec_cons
heap_mapsto_vec_app
(
shift_loc_assoc_nat
_
1
)
Hvl'
.
iFrame
.
iExists
i
,
vl'
,
vl''
.
iSplit
;
first
done
.
iFrame
.
iPureIntro
.
...
...
@@ -91,9 +89,8 @@ Section sum.
intros
tyl
E
κ
l
tid
.
iIntros
(??)
"#LFT Hown Htok"
.
rewrite
split_sum_mt
.
iMod
(
bor_exists
with
"LFT Hown"
)
as
(
i
)
"Hown"
.
set_solver
.
iMod
(
bor_sep
with
"LFT Hown"
)
as
"[Hmt Hown]"
.
solve_ndisj
.
(* FIXME: Why can't I directly frame Htok in the destruct after the following mod? *)
iMod
((
nth
i
tyl
∅
).(
ty_share
)
with
"LFT Hown Htok"
)
as
"[#Hshr Htok]"
;
try
done
.
iFrame
"Htok"
.
iMod
(
bor_fracture
with
"LFT [Hmt]"
)
as
"H'"
;[
set_solver
|
|];
last
eauto
.
iMod
((
nth
i
tyl
∅
).(
ty_share
)
with
"LFT Hown Htok"
)
as
"[#Hshr $]"
;
try
done
.
iMod
(
bor_fracture
with
"LFT [Hmt]"
)
as
"H'"
;[
set_solver
|
|];
last
eauto
.
by
iFrame
.
Qed
.
Next
Obligation
.
...
...
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