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
9418275e
Commit
9418275e
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
mark a stronger-than-on-paper rule as such
parent
875e7747
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#28579
passed
4 years ago
Stage: build
Changes
2
Pipelines
10
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/typing/cont_context.v
+5
-4
5 additions, 4 deletions
theories/typing/cont_context.v
theories/typing/function.v
+1
-1
1 addition, 1 deletion
theories/typing/function.v
with
6 additions
and
5 deletions
theories/typing/cont_context.v
+
5
−
4
View file @
9418275e
...
...
@@ -82,7 +82,7 @@ Section cont_context.
iApply
(
"H"
with
"[%]"
)
.
by
apply
HC1C2
.
Qed
.
Lemma
cctx_incl_cons
_match
E
k
L
n
(
T1
T2
:
vec
val
n
→
tctx
)
C1
C2
:
Lemma
cctx_incl_cons
E
k
L
n
(
T1
T2
:
vec
val
n
→
tctx
)
C1
C2
:
cctx_incl
E
C1
C2
→
(
∀
args
,
tctx_incl
E
L
(
T2
args
)
(
T1
args
))
→
cctx_incl
E
(
k
◁
cont
(
L
,
T1
)
::
C1
)
(
k
◁
cont
(
L
,
T2
)
::
C2
)
.
Proof
.
...
...
@@ -99,14 +99,15 @@ Section cont_context.
Lemma
cctx_incl_nil
E
C
:
cctx_incl
E
C
[]
.
Proof
.
apply
incl_cctx_incl
.
by
set_unfold
.
Qed
.
Lemma
cctx_incl_cons
E
k
L
n
(
T1
T2
:
vec
val
n
→
tctx
)
C1
C2
:
(* Extra strong cctx inclusion rule that we do not have on paper. *)
Lemma
cctx_incl_cons_dup
E
k
L
n
(
T1
T2
:
vec
val
n
→
tctx
)
C1
C2
:
k
◁
cont
(
L
,
T1
)
∈
C1
→
(
∀
args
,
tctx_incl
E
L
(
T2
args
)
(
T1
args
))
→
cctx_incl
E
C1
C2
→
cctx_incl
E
C1
(
k
◁
cont
(
L
,
T2
)
::
C2
)
.
Proof
.
intros
Hin
??
.
rewrite
<-
cctx_incl_cons
_match
;
try
done
.
iIntros
(?)
"_ #HE HC"
.
intros
Hin
??
.
rewrite
<-
cctx_incl_cons
;
try
done
.
clear
-
Hin
.
iIntros
(?)
"_ #HE HC"
.
rewrite
cctx_interp_cons
.
iSplit
;
last
done
.
clear
-
Hin
.
iInduction
Hin
as
[]
"IH"
;
rewrite
cctx_interp_cons
;
[
iDestruct
"HC"
as
"[$ _]"
|
iApply
"IH"
;
iDestruct
"HC"
as
"[_ $]"
]
.
...
...
This diff is collapsed.
Click to expand it.
theories/typing/function.v
+
1
−
1
View file @
9418275e
...
...
@@ -349,7 +349,7 @@ Section typing.
intros
Hfn
HL
HE
HTT'
HC
HT'T''
.
rewrite
-
typed_body_mono
/
flip
;
last
done
;
first
by
eapply
type_call'
.
-
etrans
.
eapply
(
incl_cctx_incl
_
[_]);
first
by
intros
?
->%
stdpp
.
list
.
elem_of_list_singleton
.
apply
cctx_incl_cons
_match
;
first
done
.
intros
args
.
by
inv_vec
args
.
apply
cctx_incl_cons
;
first
done
.
intros
args
.
by
inv_vec
args
.
-
etrans
;
last
by
apply
(
tctx_incl_frame_l
[_])
.
apply
copy_elem_of_tctx_incl
;
last
done
.
apply
_
.
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