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
Xiaojie Guo
rt-proofs
Commits
afb151ae
Commit
afb151ae
authored
Jan 12, 2016
by
Felipe Cerqueira
Browse files
Refactor EDF computation
parent
31002060
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
bertogna_edf_comp.v
View file @
afb151ae
This diff is collapsed.
Click to expand it.
util_lemmas.v
View file @
afb151ae
...
...
@@ -711,6 +711,28 @@ Proof.
}
Qed
.
Lemma
mem_zip_exists
:
forall
(
T
T'
:
eqType
)
(
x1
:
T
)
(
x2
:
T'
)
l1
l2
elem
elem'
,
size
l1
=
size
l2
->
(
x1
,
x2
)
\
in
zip
l1
l2
->
exists
idx
,
idx
<
size
l1
/\
idx
<
size
l2
/\
x1
=
nth
elem
l1
idx
/\
x2
=
nth
elem'
l2
idx
.
Proof
.
intros
T
T'
x1
x2
l1
l2
elem
elem'
SIZE
IN
.
assert
(
LT
:
index
(
x1
,
x2
)
(
zip
l1
l2
)
<
size
l1
).
{
apply
leq_trans
with
(
n
:
=
size
(
zip
l1
l2
))
;
first
by
rewrite
index_mem
.
by
rewrite
size_zip
;
apply
geq_minl
.
}
have
NTH
:
=
@
nth_index
_
(
elem
,
elem'
)
(
x1
,
x2
)
(
zip
l1
l2
)
IN
.
rewrite
nth_zip
in
NTH
;
last
by
done
.
inversion
NTH
;
rewrite
H1
H0
;
rewrite
H0
in
H1
.
by
exists
(
index
(
x1
,
x2
)
(
zip
l1
l2
))
;
repeat
split
;
try
(
by
done
)
;
rewrite
-
?SIZE
.
Qed
.
Definition
no_intersection
{
T
:
eqType
}
(
l1
l2
:
seq
T
)
:
=
~~
has
(
mem
l1
)
l2
.
...
...
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