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
79e938f1
Commit
79e938f1
authored
8 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Handle singleton in lists of type sepratatly, so that we avoid "++ []".
parent
f567700e
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
theories/typing/lib/rc/rc.v
+2
-2
2 additions, 2 deletions
theories/typing/lib/rc/rc.v
theories/typing/type.v
+5
-1
5 additions, 1 deletion
theories/typing/type.v
with
7 additions
and
3 deletions
theories/typing/lib/rc/rc.v
+
2
−
2
View file @
79e938f1
...
@@ -970,8 +970,8 @@ Section code.
...
@@ -970,8 +970,8 @@ Section code.
iApply
type_let
;
[
apply
rc_drop_type
|
solve_typing
|]
.
iIntros
(
drop
)
.
simpl_subst
.
iApply
type_let
;
[
apply
rc_drop_type
|
solve_typing
|]
.
iIntros
(
drop
)
.
simpl_subst
.
iApply
(
type_letcall
());
[
try
solve_typing
..|]
.
iApply
(
type_letcall
());
[
try
solve_typing
..|]
.
{
(* FIXME : solve_typing should be able to do this. *)
{
(* FIXME : solve_typing should be able to do this. *)
move
=>
ϝ'
/=.
replac
e
(
ty_outlives_E
(
option
ty
)
ϝ'
)
with
(
ty_outlives_E
ty
ϝ'
)
.
move
=>
ϝ'
/=.
chang
e
(
ty_outlives_E
(
option
ty
)
ϝ'
)
with
(
ty_outlives_E
ty
ϝ'
)
.
solve_typing
.
by
rewrite
/
ty_outlives_E
/=
app_nil_r
.
}
solve_typing
.
}
iIntros
(
content
)
.
simpl_subst
.
iIntros
(
content
)
.
simpl_subst
.
iApply
type_delete
;
[
solve_typing
..|]
.
iApply
type_delete
;
[
solve_typing
..|]
.
iApply
type_assign
;
[
solve_typing
..|]
.
iApply
type_assign
;
[
solve_typing
..|]
.
...
...
This diff is collapsed.
Click to expand it.
theories/typing/type.v
+
5
−
1
View file @
79e938f1
...
@@ -83,18 +83,21 @@ Existing Instances tyl_wf_nil tyl_wf_cons.
...
@@ -83,18 +83,21 @@ Existing Instances tyl_wf_nil tyl_wf_cons.
Fixpoint
tyl_lfts
`{
typeG
Σ
}
tyl
{
WF
:
TyWfLst
tyl
}
:
list
lft
:=
Fixpoint
tyl_lfts
`{
typeG
Σ
}
tyl
{
WF
:
TyWfLst
tyl
}
:
list
lft
:=
match
WF
with
match
WF
with
|
tyl_wf_nil
=>
[]
|
tyl_wf_nil
=>
[]
|
tyl_wf_cons
ty
[]
_
_
=>
ty
.(
ty_lfts
)
|
tyl_wf_cons
ty
tyl
_
_
=>
ty
.(
ty_lfts
)
++
tyl
.(
tyl_lfts
)
|
tyl_wf_cons
ty
tyl
_
_
=>
ty
.(
ty_lfts
)
++
tyl
.(
tyl_lfts
)
end
.
end
.
Fixpoint
tyl_wf_E
`{
typeG
Σ
}
tyl
{
WF
:
TyWfLst
tyl
}
:
elctx
:=
Fixpoint
tyl_wf_E
`{
typeG
Σ
}
tyl
{
WF
:
TyWfLst
tyl
}
:
elctx
:=
match
WF
with
match
WF
with
|
tyl_wf_nil
=>
[]
|
tyl_wf_nil
=>
[]
|
tyl_wf_cons
ty
[]
_
_
=>
ty
.(
ty_wf_E
)
|
tyl_wf_cons
ty
tyl
_
_
=>
ty
.(
ty_wf_E
)
++
tyl
.(
tyl_wf_E
)
|
tyl_wf_cons
ty
tyl
_
_
=>
ty
.(
ty_wf_E
)
++
tyl
.(
tyl_wf_E
)
end
.
end
.
Fixpoint
tyl_outlives_E
`{
typeG
Σ
}
tyl
{
WF
:
TyWfLst
tyl
}
(
κ
:
lft
)
:
elctx
:=
Fixpoint
tyl_outlives_E
`{
typeG
Σ
}
tyl
{
WF
:
TyWfLst
tyl
}
(
κ
:
lft
)
:
elctx
:=
match
WF
with
match
WF
with
|
tyl_wf_nil
=>
[]
|
tyl_wf_nil
=>
[]
|
tyl_wf_cons
ty
[]
_
_
=>
ty
.(
ty_outlives_E
)
κ
|
tyl_wf_cons
ty
tyl
_
_
=>
ty
.(
ty_outlives_E
)
κ
++
tyl
.(
tyl_outlives_E
)
κ
|
tyl_wf_cons
ty
tyl
_
_
=>
ty
.(
ty_outlives_E
)
κ
++
tyl
.(
tyl_outlives_E
)
κ
end
.
end
.
...
@@ -103,8 +106,9 @@ Lemma tyl_outlives_E_elctx_sat `{typeG Σ} E L tyl {WF : TyWfLst tyl} α β :
...
@@ -103,8 +106,9 @@ Lemma tyl_outlives_E_elctx_sat `{typeG Σ} E L tyl {WF : TyWfLst tyl} α β :
lctx_lft_incl
E
L
α
β
→
lctx_lft_incl
E
L
α
β
→
elctx_sat
E
L
(
tyl
.(
tyl_outlives_E
)
α
)
.
elctx_sat
E
L
(
tyl
.(
tyl_outlives_E
)
α
)
.
Proof
.
Proof
.
induction
WF
as
[|?
?
??
IH
]=>
/=.
induction
WF
as
[|?
[]
??
IH
]=>
/=.
-
solve_typing
.
-
solve_typing
.
-
intros
.
by
eapply
ty_outlives_E_elctx_sat
.
-
intros
.
apply
elctx_sat_app
,
IH
;
[
eapply
ty_outlives_E_elctx_sat
|
|]=>
//
;
-
intros
.
apply
elctx_sat_app
,
IH
;
[
eapply
ty_outlives_E_elctx_sat
|
|]=>
//
;
(
etrans
;
[|
done
]);
solve_typing
.
(
etrans
;
[|
done
]);
solve_typing
.
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