Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
gpfsl
Commits
eceb5a00
Commit
eceb5a00
authored
Oct 11, 2021
by
Hai Dang
Browse files
Remove more TODOs
parent
67a102f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/examples/lock/proof_ticket_lock_gps.v
View file @
eceb5a00
...
...
@@ -184,20 +184,11 @@ Proof.
apply
set_unfold_2
.
move
=>
?
[[?
[
_
[?
?]]]
_
].
lia
.
Qed
.
(* TODO : move *)
Lemma
set_seq_size
(
s
n
:
nat
)
:
size
(
set_seq
s
n
:
gset
nat
)
=
n
.
Proof
.
induction
n
as
[|
n
IHn
]
;
[
done
|].
rewrite
set_seq_S_end_union_L
/=
size_union
.
-
rewrite
IHn
size_singleton
.
lia
.
-
apply
disjoint_singleton_l
.
move
=>
/
elem_of_set_seq
[
_
?].
lia
.
Qed
.
Lemma
Waiting_dom_size
C
M
(
DS
:
dom
(
gset
nat
)
M
≡
set_seq
0
(
Pos
.
to_nat
C
))
:
Z
.
pos
C
=
size
(
dom
(
gset
nat
)
M
).
Proof
.
by
rewrite
(
set_size_proper
_
_
DS
)
-
positive_nat_Z
set_seq
_size
.
by
rewrite
(
set_size_proper
_
_
DS
)
-
positive_nat_Z
size_
set_seq
.
Qed
.
Lemma
Waiting_size_le
C
M
n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment