Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
storebuffer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tacoq
storebuffer
Commits
6ae7da3d
Commit
6ae7da3d
authored
2 years ago
by
Alban Gruin
Browse files
Options
Downloads
Patches
Plain Diff
utils: simplification of proofs
Signed-off-by:
Alban Gruin
<
alban.gruin@irit.fr
>
parent
53b81285
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/utils.v
+3
-12
3 additions, 12 deletions
src/utils.v
with
3 additions
and
12 deletions
src/utils.v
+
3
−
12
View file @
6ae7da3d
...
...
@@ -9,9 +9,7 @@ Proof.
induction
l
.
-
reflexivity
.
-
simpl
.
destruct
f
.
+
discriminate
.
+
exact
IHl
.
now
destruct
f
.
Qed
.
Lemma
nth_error_on_composed_list
:
...
...
@@ -26,8 +24,7 @@ Proof.
simpl
.
lia
.
-
rewrite
(
nth_error_nth
'
_
d
Hlength
),
Hl
,
Hi
,
nth_middle
.
reflexivity
.
-
now
rewrite
(
nth_error_nth
'
_
d
Hlength
),
Hl
,
Hi
,
nth_middle
.
Qed
.
Lemma
map_in_the_middle
:
...
...
@@ -36,13 +33,7 @@ Lemma map_in_the_middle :
List
.
nth_error
(
List
.
map
f
l
)
i
=
Some
(
f
a
).
Proof
.
intros
A
B
a
d
f
l
lpre
lpost
i
Hl
Hi
.
assert
(
List
.
nth_error
l
i
=
Some
a
)
as
Hnth
.
apply
(
nth_error_on_composed_list
_
_
d
_
lpre
lpost
);
assumption
.
rewrite
(
map_nth_error
_
i
l
Hnth
).
reflexivity
.
now
apply
map_nth_error
,
(
nth_error_on_composed_list
_
_
d
_
lpre
lpost
).
Qed
.
Section
ListCustomBool
.
...
...
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