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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Simon Spies
lambda-rust
Commits
50500359
Commit
50500359
authored
8 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.mpi-sws.org:FP/LambdaRust-coq
parents
be5f96ef
05bd12cd
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
_CoqProject
+1
-1
1 addition, 1 deletion
_CoqProject
theories/typing/adequacy.v
+3
-11
3 additions, 11 deletions
theories/typing/adequacy.v
with
4 additions
and
12 deletions
_CoqProject
+
1
−
1
View file @
50500359
...
...
@@ -44,7 +44,7 @@ theories/typing/cont.v
theories/typing/fixpoint.v
theories/typing/type_sum.v
theories/typing/typing.v
theories/typing/
soundness
.v
theories/typing/
adequacy
.v
theories/typing/tests/get_x.v
theories/typing/tests/rebor.v
theories/typing/tests/unbox.v
...
...
This diff is collapsed.
Click to expand it.
theories/typing/
soundness
.v
→
theories/typing/
adequacy
.v
+
3
−
11
View file @
50500359
...
...
@@ -18,13 +18,7 @@ Class typePreG Σ := PreTypeG {
Definition
typeΣ
:
gFunctors
:=
#
[
heapΣ
;
lftΣ
;
na_invΣ
;
GFunctor
(
constRF
fracR
)]
.
Instance
subG_typePreG
{
Σ
}
:
subG
typeΣ
Σ
→
typePreG
Σ
.
Proof
.
split
.
-
apply
subG_heapPreG
.
solve_inG
.
-
apply
subG_lftPreG
.
solve_inG
.
-
solve_inG
.
-
solve_inG
.
Qed
.
Proof
.
solve_inG
.
Qed
.
Section
type_soundness
.
Definition
exit_cont
:
val
:=
λ
:
[
<>
],
#
()
.
...
...
@@ -50,17 +44,15 @@ Section type_soundness.
{
by
rewrite
/
elctx_interp
big_sepL_nil
.
}
{
by
rewrite
/
llctx_interp
big_sepL_nil
.
}
{
by
rewrite
tctx_interp_nil
.
}
clear
Hrtc
Hmain
main
.
iIntros
(
main
)
"(Htl &
_
&
_
& Hmain)"
.
clear
Hrtc
Hmain
main
.
iIntros
(
main
)
"(Htl &
HE
&
HL
& Hmain)"
.
rewrite
tctx_interp_singleton
.
iDestruct
"Hmain"
as
(?)
"[EQ Hmain]"
.
rewrite
eval_path_of_val
.
iDestruct
"EQ"
as
%
[
=
<-
]
.
iDestruct
"Hmain"
as
(
f
k
x
e
?)
"(EQ & % & Hmain)"
.
iDestruct
"EQ"
as
%
[
=
->
]
.
destruct
x
;
try
done
.
iApply
(
wp_rec
_
_
_
_
_
_
[
exit_cont
]
%
E
);
[
done
|
|
by
simpl_subst
|
iNext
]
.
{
repeat
econstructor
.
apply
to_of_val
.
}
iApply
(
"Hmain"
$!
()
exit_cont
[
#
]
tid
1
%
Qp
with
"HEAP LFT Htl
[] []
[]"
);
iApply
(
"Hmain"
$!
()
exit_cont
[
#
]
tid
1
%
Qp
with
"HEAP LFT Htl
HE HL
[]"
);
last
by
rewrite
tctx_interp_nil
.
{
by
rewrite
/
elctx_interp
big_sepL_nil
.
}
{
by
rewrite
/
llctx_interp
big_sepL_nil
.
}
iIntros
"_"
.
rewrite
cctx_interp_singleton
.
simpl
.
iIntros
(
args
)
"_ _"
.
inv_vec
args
.
iIntros
(
x
)
"_"
.
by
wp_seq
.
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