Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cpdt
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
research
cpdt
Commits
2cadc205
Commit
2cadc205
authored
Oct 08, 2008
by
Adam Chlipala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prettify rbtree a bit more
parent
c294d392
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
26 deletions
+17
-26
MoreDep.v
src/MoreDep.v
+17
-26
No files found.
src/MoreDep.v
View file @
2cadc205
...
...
@@ -495,40 +495,31 @@ Section insert.
Section
present
.
Variable
z
:
nat
.
Lemma
present_balance1
:
forall
n
(
a
:
rtree
n
)
(
y
:
nat
)
c2
(
b
:
rbtree
c2
n
)
,
present
z
(
projT2
(
balance1
a
y
b
))
<->
rpresent
z
a
\
/
z
=
y
\
/
present
z
b
.
destruct
a
;
crush
;
repeat
match
goal
with
|
[
H
:
context
[
match
?
T
with
|
Leaf
=>
_
|
RedNode
_
_
_
_
=>
_
|
BlackNode
_
_
_
_
_
_
=>
_
end
]
|-
_
]
=>
pose
T
;
dep_destruct
T
;
crush
|
[
|-
context
[
match
?
T
with
Ltac
present_balance
:=
crush
;
repeat
(
match
goal
with
|
[
H
:
context
[
match
?
T
with
|
Leaf
=>
_
|
RedNode
_
_
_
_
=>
_
|
BlackNode
_
_
_
_
_
_
=>
_
end
]
]
=>
pose
T
;
dep_destruct
T
;
crush
end
.
end
]
|-
_
]
=>
dep_destruct
T
|
[
|-
context
[
match
?
T
with
|
Leaf
=>
_
|
RedNode
_
_
_
_
=>
_
|
BlackNode
_
_
_
_
_
_
=>
_
end
]
]
=>
dep_destruct
T
end
;
crush
)
.
Lemma
present_balance1
:
forall
n
(
a
:
rtree
n
)
(
y
:
nat
)
c2
(
b
:
rbtree
c2
n
)
,
present
z
(
projT2
(
balance1
a
y
b
))
<->
rpresent
z
a
\
/
z
=
y
\
/
present
z
b
.
destruct
a
;
present_balance
.
Qed
.
Lemma
present_balance2
:
forall
n
(
a
:
rtree
n
)
(
y
:
nat
)
c2
(
b
:
rbtree
c2
n
)
,
present
z
(
projT2
(
balance2
a
y
b
))
<->
rpresent
z
a
\
/
z
=
y
\
/
present
z
b
.
destruct
a
;
crush
;
repeat
match
goal
with
|
[
H
:
context
[
match
?
T
with
|
Leaf
=>
_
|
RedNode
_
_
_
_
=>
_
|
BlackNode
_
_
_
_
_
_
=>
_
end
]
|-
_
]
=>
pose
T
;
dep_destruct
T
;
crush
|
[
|-
context
[
match
?
T
with
|
Leaf
=>
_
|
RedNode
_
_
_
_
=>
_
|
BlackNode
_
_
_
_
_
_
=>
_
end
]
]
=>
pose
T
;
dep_destruct
T
;
crush
end
.
destruct
a
;
present_balance
.
Qed
.
Definition
present_insResult
c
n
:=
...
...
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