Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Actris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Iris
Actris
Commits
2c1e72c3
Commit
2c1e72c3
authored
4 years ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
Updated subtyping rules for select/branch insertion
parent
4cbf8bb5
No related branches found
Branches containing commit
No related tags found
1 merge request
!5
n-ary choice
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/logrel/subtyping.v
+21
-26
21 additions, 26 deletions
theories/logrel/subtyping.v
with
21 additions
and
26 deletions
theories/logrel/subtyping.v
+
21
−
26
View file @
2c1e72c3
...
...
@@ -238,25 +238,22 @@ Section subtype.
do
2
(
iSplitR
;
[
iApply
iProto_le_refl
|])
.
by
iFrame
.
Qed
.
Lemma
lsty_select_le_insert
i
P
(
Ps
:
gmap
Z
(
lsty
Σ
))
:
Ps
!!
i
=
None
→
⊢
lsty_select
(
<
[
i
:=
P
]
>
Ps
)
<
p
:
lsty_select
Ps
.
Lemma
lsty_select_le_insert
(
Ps1
Ps
2
:
gmap
Z
(
lsty
Σ
))
:
Ps
2
⊆
Ps1
→
⊢
lsty_select
Ps
1
<
p
:
lsty_select
Ps
2
.
Proof
.
iIntros
(
Hnone
)
"!>"
.
iApply
iProto_le_send
.
iIntros
(
x
)
">% !>"
=>
/=.
iExists
_
.
iSplit
=>
//.
assert
(
i
≠
x
)
.
{
unfold
not
=>
Heq
.
rewrite
Heq
in
Hnone
.
rewrite
Hnone
in
H1
.
inversion
H1
.
inversion
H2
.
}
iExists
_
.
iSplit
=>
//.
iSplit
.
-
iNext
.
iPureIntro
.
apply
lookup_insert_is_Some
.
right
.
eauto
.
-
iNext
.
rewrite
lookup_total_insert_ne
=>
//.
-
iNext
.
iPureIntro
.
by
eapply
lookup_weaken_is_Some
.
-
iNext
.
destruct
H1
as
[
P
H1
]
.
assert
(
Ps1
!!
x
=
Some
P
)
.
{
by
eapply
lookup_weaken
.
}
rewrite
(
lookup_total_correct
Ps1
x
P
)=>
//.
rewrite
(
lookup_total_correct
Ps2
x
P
)=>
//.
iApply
iProto_le_refl
.
Qed
.
...
...
@@ -278,24 +275,22 @@ Section subtype.
+
iPureIntro
.
by
apply
lookup_lookup_total
.
Qed
.
Lemma
lsty_branch_le_insert
i
P
(
Ps
:
gmap
Z
(
lsty
Σ
))
:
Ps
!!
i
=
None
→
⊢
lsty_branch
Ps
<
p
:
lsty_branch
(
<
[
i
:=
P
]
>
Ps
)
.
Lemma
lsty_branch_le_insert
(
Ps1
Ps
2
:
gmap
Z
(
lsty
Σ
))
:
Ps
1
⊆
Ps2
→
⊢
lsty_branch
Ps
1
<
p
:
lsty_branch
Ps
2
.
Proof
.
iIntros
(
Hnone
)
"!>"
.
iApply
iProto_le_recv
.
iIntros
(
x
)
">% !>"
=>
/=.
iExists
_
.
iSplit
=>
//.
assert
(
i
≠
x
)
.
{
unfold
not
=>
Heq
.
rewrite
Heq
in
Hnone
.
rewrite
Hnone
in
H1
.
inversion
H1
.
inversion
H2
.
}
iSplit
.
-
iNext
.
iPureIntro
.
apply
lookup_insert_is_Some
.
right
.
split
=>
//.
-
iNext
.
rewrite
lookup_total_insert_ne
=>
//.
-
iNext
.
iPureIntro
.
by
eapply
lookup_weaken_is_Some
.
-
iNext
.
destruct
H1
as
[
P
H1
]
.
assert
(
Ps2
!!
x
=
Some
P
)
.
{
by
eapply
lookup_weaken
.
}
rewrite
(
lookup_total_correct
Ps1
x
P
)=>
//.
rewrite
(
lookup_total_correct
Ps2
x
P
)=>
//.
iApply
iProto_le_refl
.
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