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
761e3110
There was a problem fetching the pipeline summary.
Commit
761e3110
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
start work towards equalizing: equality of lifetimes
parent
1b2ed249
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/typing/lft_contexts.v
+15
-3
15 additions, 3 deletions
theories/typing/lft_contexts.v
theories/typing/shr_bor.v
+3
-3
3 additions, 3 deletions
theories/typing/shr_bor.v
theories/typing/uniq_bor.v
+3
-3
3 additions, 3 deletions
theories/typing/uniq_bor.v
with
21 additions
and
9 deletions
theories/typing/lft_contexts.v
+
15
−
3
View file @
761e3110
...
@@ -148,12 +148,12 @@ Section lft_contexts.
...
@@ -148,12 +148,12 @@ Section lft_contexts.
(* Lifetime inclusion *)
(* Lifetime inclusion *)
(* There does not seem to be a need in the type system for
"equivalence" of lifetimes. If so, TODO : add it, and the
corresponding [Proper] instances for the relevent types. *)
Definition
lctx_lft_incl
κ
κ'
:
Prop
:=
Definition
lctx_lft_incl
κ
κ'
:
Prop
:=
elctx_interp_0
E
-∗
⌜
llctx_interp_0
L
⌝
-∗
κ
⊑
κ'
.
elctx_interp_0
E
-∗
⌜
llctx_interp_0
L
⌝
-∗
κ
⊑
κ'
.
Definition
lctx_lft_eq
κ
κ'
:
Prop
:=
lctx_lft_incl
κ
κ'
∧
lctx_lft_incl
κ'
κ
.
Lemma
lctx_lft_incl_relf
κ
:
lctx_lft_incl
κ
κ
.
Lemma
lctx_lft_incl_relf
κ
:
lctx_lft_incl
κ
κ
.
Proof
.
iIntros
"_ _"
.
iApply
lft_incl_refl
.
Qed
.
Proof
.
iIntros
"_ _"
.
iApply
lft_incl_refl
.
Qed
.
...
@@ -164,6 +164,18 @@ Section lft_contexts.
...
@@ -164,6 +164,18 @@ Section lft_contexts.
iApply
(
H1
with
"HE HL"
)
.
iApply
(
H2
with
"HE HL"
)
.
iApply
(
H1
with
"HE HL"
)
.
iApply
(
H2
with
"HE HL"
)
.
Qed
.
Qed
.
Global
Instance
lctx_lft_incl_proper
:
Proper
(
lctx_lft_eq
==>
lctx_lft_eq
==>
iff
)
lctx_lft_incl
.
Proof
.
intros
??[]
??[]
.
split
;
intros
;
by
etrans
;
[|
etrans
]
.
Qed
.
Global
Instance
lctx_lft_eq_equivalence
:
Equivalence
lctx_lft_eq
.
Proof
.
split
.
-
by
split
.
-
intros
??
Heq
;
split
;
apply
Heq
.
-
intros
???
H1
H2
.
split
;
etrans
;
(
apply
H1
||
apply
H2
)
.
Qed
.
Lemma
lctx_lft_incl_static
κ
:
lctx_lft_incl
κ
static
.
Lemma
lctx_lft_incl_static
κ
:
lctx_lft_incl
κ
static
.
Proof
.
iIntros
"_ _"
.
iApply
lft_incl_static
.
Qed
.
Proof
.
iIntros
"_ _"
.
iApply
lft_incl_static
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
theories/typing/shr_bor.v
+
3
−
3
View file @
761e3110
...
@@ -26,9 +26,9 @@ Section shr_bor.
...
@@ -26,9 +26,9 @@ Section shr_bor.
Global
Instance
shr_mono_flip
E
L
:
Global
Instance
shr_mono_flip
E
L
:
Proper
(
lctx_lft_incl
E
L
==>
flip
(
subtype
E
L
)
==>
flip
(
subtype
E
L
))
shr_bor
.
Proper
(
lctx_lft_incl
E
L
==>
flip
(
subtype
E
L
)
==>
flip
(
subtype
E
L
))
shr_bor
.
Proof
.
intros
??????
.
by
apply
shr_mono
.
Qed
.
Proof
.
intros
??????
.
by
apply
shr_mono
.
Qed
.
Global
Instance
shr_proper
E
L
κ
:
Global
Instance
shr_proper
E
L
:
Proper
(
eqtype
E
L
==>
eqtype
E
L
)
(
shr_bor
κ
)
.
Proper
(
lctx_lft_eq
E
L
==>
eqtype
E
L
==>
eqtype
E
L
)
shr_bor
.
Proof
.
intros
??[]
.
by
split
;
apply
shr_mono
.
Qed
.
Proof
.
intros
??[]
??[]
.
by
split
;
apply
shr_mono
.
Qed
.
Global
Instance
shr_contractive
κ
:
Contractive
(
shr_bor
κ
)
.
Global
Instance
shr_contractive
κ
:
Contractive
(
shr_bor
κ
)
.
Proof
.
Proof
.
...
...
This diff is collapsed.
Click to expand it.
theories/typing/uniq_bor.v
+
3
−
3
View file @
761e3110
...
@@ -100,9 +100,9 @@ Section uniq_bor.
...
@@ -100,9 +100,9 @@ Section uniq_bor.
Global
Instance
uniq_mono_flip
E
L
:
Global
Instance
uniq_mono_flip
E
L
:
Proper
(
lctx_lft_incl
E
L
==>
eqtype
E
L
==>
flip
(
subtype
E
L
))
uniq_bor
.
Proper
(
lctx_lft_incl
E
L
==>
eqtype
E
L
==>
flip
(
subtype
E
L
))
uniq_bor
.
Proof
.
intros
??????
.
apply
uniq_mono
.
done
.
by
symmetry
.
Qed
.
Proof
.
intros
??????
.
apply
uniq_mono
.
done
.
by
symmetry
.
Qed
.
Global
Instance
uniq_proper
E
L
κ
:
Global
Instance
uniq_proper
E
L
:
Proper
(
eqtype
E
L
==>
eqtype
E
L
)
(
uniq_bor
κ
)
.
Proper
(
lctx_lft_eq
E
L
==>
eqtype
E
L
==>
eqtype
E
L
)
uniq_bor
.
Proof
.
split
;
by
apply
uniq_mono
.
Qed
.
Proof
.
intros
??[];
split
;
by
apply
uniq_mono
.
Qed
.
Global
Instance
uniq_contractive
κ
:
Contractive
(
uniq_bor
κ
)
.
Global
Instance
uniq_contractive
κ
:
Contractive
(
uniq_bor
κ
)
.
Proof
.
Proof
.
...
...
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