Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rt-proofs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sophie Quinton
rt-proofs
Commits
9295617e
Commit
9295617e
authored
Nov 30, 2016
by
Felipe Cerqueira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add lemma about concatenation
parent
e7d2a65b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
util/bigcat.v
util/bigcat.v
+23
-0
No files found.
util/bigcat.v
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
)
->
...
...
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