Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PROSA - Formally Proven Schedulability Analysis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RT-PROOFS
PROSA - Formally Proven Schedulability Analysis
Commits
8ed0149e
Commit
8ed0149e
authored
9 years ago
by
Felipe Cerqueira
Browse files
Options
Downloads
Patches
Plain Diff
Add more lemmas about bigcat
parent
1213a684
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
util/lemmas.v
+25
-13
25 additions, 13 deletions
util/lemmas.v
with
25 additions
and
13 deletions
util/lemmas.v
+
25
−
13
View file @
8ed0149e
...
...
@@ -354,21 +354,33 @@ Section BigCatLemmas.
}
Qed
.
Lemma
size_bigcat_ord
{
T
}
n
(
i
:
'
I_n
)
(
f
:
'
I_n
->
seq
T
)
:
(
forall
x
,
size
(
f
x
)
<=
1
)
->
size
(
\
cat_
(
i
<
n
)
(
f
i
))
<=
n
.
Lemma
map_bigcat_ord
{
T
}
{
T'
}
n
(
f
:
'
I_n
->
seq
T
)
(
g
:
T
->
T'
)
:
map
g
(
\
cat_
(
i
<
n
)
(
f
i
))
=
\
cat_
(
i
<
n
)
(
map
g
(
f
i
))
.
Proof
.
destruct
n
;
first
by
rewrite
2
!
big_ord0
.
induction
n
;
first
by
rewrite
2
!
big_ord_recr
2
!
big_ord0
.
rewrite
big_ord_recr
[
\
cat_
(
cpu
<
n
.
+
2
)_]
big_ord_recr
/=.
by
rewrite
map_cat
;
f_equal
;
apply
IHn
.
Qed
.
Lemma
size_bigcat_ord
{
T
}
n
(
f
:
'
I_n
->
seq
T
)
:
size
(
\
cat_
(
i
<
n
)
(
f
i
))
=
\
sum_
(
i
<
n
)
(
size
(
f
i
))
.
Proof
.
destruct
n
;
first
by
rewrite
2
!
big_ord0
.
induction
n
;
first
by
rewrite
2
!
big_ord_recr
2
!
big_ord0
/=
add0n
.
rewrite
big_ord_recr
[
\
sum_
(
i0
<
n
.
+
2
)_]
big_ord_recr
size_cat
/=.
by
f_equal
;
apply
IHn
.
Qed
.
Lemma
size_bigcat_ord_max
{
T
}
n
(
f
:
'
I_n
->
seq
T
)
m
:
(
forall
x
,
size
(
f
x
)
<=
m
)
->
size
(
\
cat_
(
i
<
n
)
(
f
i
))
<=
m
*
n
.
Proof
.
intros
SIZE
.
destruct
n
;
first
by
rewrite
big_ord0
.
induction
n
;
first
by
rewrite
big_ord_recl
big_ord0
size_cat
addn0
.
rewrite
big_ord_recr
size_cat
.
apply
leq_trans
with
(
n
.
+
1
+
1
);
last
by
rewrite
addn1
.
apply
leq_add
;
last
by
apply
SIZE
.
apply
IHn
;
last
by
ins
;
apply
SIZE
.
{
assert
(
LT
:
0
<
n
.
+
1
)
.
by
done
.
by
apply
(
Ordinal
LT
)
.
}
rewrite
size_bigcat_ord
.
apply
leq_trans
with
(
n
:=
\
sum_
(
i0
<
n
)
m
);
last
by
rewrite
big_const_ord
iter_addn
addn0
.
by
apply
leq_sum
;
ins
;
apply
SIZE
.
Qed
.
End
BigCatLemmas
.
...
...
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