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
8db776a5
Commit
8db776a5
authored
1 year ago
by
Jonas Kastberg
Browse files
Options
Downloads
Patches
Plain Diff
[list_to_set $ seq] -> [set_eq]
parent
9c584bab
No related branches found
Branches containing commit
No related tags found
1 merge request
!39
Multiparty synchronous
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/channel/multi_channel.v
+9
-11
9 additions, 11 deletions
theories/channel/multi_channel.v
with
9 additions
and
11 deletions
theories/channel/multi_channel.v
+
9
−
11
View file @
8db776a5
...
...
@@ -224,7 +224,7 @@ Section channel.
(** ** Specifications of [send] and [recv] *)
Lemma
new_chan_spec
(
n
:
nat
)
(
ps
:
gmap
nat
(
iProto
Σ
))
:
0
<
n
→
dom
ps
=
list_to_set
$
seq
0
n
→
(* TODO: Consider using [set_eq] instead *)
dom
ps
=
set_seq
0
n
→
{{{
iProto_consistent
ps
}}}
new_chan
#
n
{{{
cs
,
RET
cs
;
chan_pool
cs
ps
}}}
.
...
...
@@ -248,7 +248,6 @@ Section channel.
assert
(
is_Some
(
ps
!!
n
))
as
[
p
?]
.
{
apply
elem_of_dom
.
rewrite
Hdom
.
rewrite
list_to_set_seq
.
apply
elem_of_set_seq
.
lia
.
}
iDestruct
(
big_sepM_delete
_
_
n
with
"Hps'"
)
as
"[Hp Hps']"
.
...
...
@@ -259,13 +258,13 @@ Section channel.
{
iPureIntro
.
rewrite
dom_delete_L
.
rewrite
Hdom
.
replace
(
S
n
)
with
(
n
+
1
)
by
lia
.
rewrite
se
q_app
.
simpl
.
rewrite
list_to_set_app_L
.
simpl
.
rewrite
se
t_seq_add_L
.
simpl
.
rewrite
right_id_L
.
rewrite
difference_union_distr_l_L
.
rewrite
difference_diag_L
.
rewrite
right_id_L
.
assert
(
n
∉
seq
0
n
);
[|
set_solver
]
.
intros
Hin
%
elem_of_seq
.
lia
.
}
assert
(
n
∉
(
set_
seq
0
n
:
gset
_)
);
[|
set_solver
]
.
intros
Hin
%
elem_of_
set_
seq
.
lia
.
}
iModIntro
.
iExists
(
γEs
++
[
γE
])
.
replace
(
S
n
)
with
(
n
+
1
)
by
lia
.
rewrite
replicate_add
.
...
...
@@ -310,11 +309,10 @@ Section channel.
iExists
_,_,_,_
.
iModIntro
.
iSplit
;
[
done
|]
.
iSplit
.
{
iPureIntro
.
intros
.
apply
elem_of_dom
in
H
.
rewrite
Hdom
in
H
.
rewrite
list_to_set_seq
in
H
.
apply
elem_of_set_seq
in
H
.
lia
.
}
{
iPureIntro
.
intros
i
HSome
.
apply
elem_of_dom
in
HSome
.
rewrite
Hdom
in
HSome
.
apply
elem_of_set_seq
in
HSome
.
lia
.
}
iFrame
"IHp"
.
iApply
(
big_sepL_impl
with
"H"
)
.
iIntros
"!>"
(
i
?
HSome'
)
"(Hauth & Hfrag & Hown)"
.
...
...
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