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
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
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
Lasse Blaauwbroek
PROSA - Formally Proven Schedulability Analysis
Commits
9295617e
Commit
9295617e
authored
8 years ago
by
Felipe Cerqueira
Browse files
Options
Downloads
Patches
Plain Diff
Add lemma about concatenation
parent
e7d2a65b
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/bigcat.v
+23
-0
23 additions, 0 deletions
util/bigcat.v
with
23 additions
and
0 deletions
util/bigcat.v
+
23
−
0
View file @
9295617e
...
...
@@ -52,6 +52,29 @@ Section BigCatLemmas.
[
by
apply
/
andP
;
split
|
by
rewrite
eq_fun_ord_to_nat
]
.
Qed
.
Lemma
bigcat_nat_uniq
:
forall
(
T
:
eqType
)
n1
n2
(
F
:
nat
->
list
T
),
(
forall
i
,
uniq
(
F
i
))
->
(
forall
x
i1
i2
,
x
\
in
(
F
i1
)
->
x
\
in
(
F
i2
)
->
i1
=
i2
)
->
uniq
(
\
cat_
(
n1
<=
i
<
n2
)
(
F
i
))
.
Proof
.
intros
T
n1
n2
f
SINGLE
UNIQ
.
case
(
leqP
n1
n2
)
=>
[
LE
|
GT
];
last
by
rewrite
big_geq
//
ltnW
.
rewrite
-
[
n2
](
addKn
n1
)
.
rewrite
-
addnBA
//
;
set
delta
:=
n2
-
n1
.
induction
delta
;
first
by
rewrite
addn0
big_geq
.
rewrite
addnS
big_nat_recr
/=
;
last
by
apply
leq_addr
.
rewrite
cat_uniq
;
apply
/
andP
;
split
;
first
by
apply
IHdelta
.
apply
/
andP
;
split
;
last
by
apply
SINGLE
.
rewrite
-
all_predC
;
apply
/
allP
;
intros
x
INx
.
simpl
;
apply
/
negP
;
unfold
not
;
intro
BUG
.
apply
mem_bigcat_nat_exists
in
BUG
.
move
:
BUG
=>
[
i
[
IN
/
andP
[_
LTi
]]]
.
apply
UNIQ
with
(
i1
:=
i
)
in
INx
;
last
by
done
.
by
rewrite
INx
ltnn
in
LTi
.
Qed
.
Lemma
mem_bigcat_ord_exists
:
forall
(
T
:
eqType
)
x
n
(
f
:
'
I_n
->
list
T
),
x
\
in
\
cat_
(
i
<
n
)
(
f
i
)
->
...
...
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