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
Tej Chajed
stdpp
Commits
7246cee7
Commit
7246cee7
authored
May 23, 2016
by
Robbert Krebbers
Browse files
CMRA structure on lists.
Initial commit by Amin Timany.
parent
2e67e68f
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/list.v
View file @
7246cee7
...
...
@@ -983,6 +983,11 @@ Proof.
-
intros
[->
Hi
].
revert
i
Hi
.
induction
n
;
intros
[|?]
;
naive_solver
auto
with
lia
.
Qed
.
Lemma
elem_of_replicate
n
x
y
:
y
∈
replicate
n
x
↔
y
=
x
∧
n
≠
0
.
Proof
.
rewrite
elem_of_list_lookup
,
Nat
.
neq_0_lt_0
.
setoid_rewrite
lookup_replicate
;
naive_solver
eauto
with
lia
.
Qed
.
Lemma
lookup_replicate_1
n
x
y
i
:
replicate
n
x
!!
i
=
Some
y
→
y
=
x
∧
i
<
n
.
Proof
.
by
rewrite
lookup_replicate
.
Qed
.
...
...
Write
Preview
Supports
Markdown
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