Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
stdpp
Commits
1aec4451
Commit
1aec4451
authored
Sep 25, 2014
by
Robbert Krebbers
Browse files
Soundness of constant expression evaluation.
parent
34b2d077
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/list.v
View file @
1aec4451
...
...
@@ -752,6 +752,14 @@ Proof.
intros
l1
l2
Hl
.
by
rewrite
<-(
reverse_involutive
l1
),
<-(
reverse_involutive
l2
),
Hl
.
Qed
.
Lemma
sum_list_with_app
(
f
:
A
→
nat
)
l
k
:
sum_list_with
f
(
l
++
k
)
=
sum_list_with
f
l
+
sum_list_with
f
k
.
Proof
.
induction
l
;
simpl
;
lia
.
Qed
.
Lemma
sum_list_with_reverse
(
f
:
A
→
nat
)
l
:
sum_list_with
f
(
reverse
l
)
=
sum_list_with
f
l
.
Proof
.
induction
l
;
simpl
;
rewrite
?reverse_cons
,
?sum_list_with_app
;
simpl
;
lia
.
Qed
.
(** ** Properties of the [last] function *)
Lemma
last_snoc
x
l
:
last
(
l
++
[
x
])
=
Some
x
.
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment