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
1a8d980f
Commit
1a8d980f
authored
Oct 08, 2008
by
Adam Chlipala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move [present] section earlier
parent
0ee88d52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
MoreDep.v
src/MoreDep.v
+16
-16
No files found.
src/MoreDep.v
View file @
1a8d980f
...
...
@@ -398,6 +398,22 @@ Qed.
Inductive
rtree
:
nat
->
Set
:=
|
RedNode
'
:
forall
c1
c2
n
,
rbtree
c1
n
->
nat
->
rbtree
c2
n
->
rtree
n
.
Section
present
.
Variable
x
:
nat
.
Fixpoint
present
c
n
(
t
:
rbtree
c
n
)
{
struct
t
}
:
Prop
:=
match
t
with
|
Leaf
=>
False
|
RedNode
_
a
y
b
=>
present
a
\
/
x
=
y
\
/
present
b
|
BlackNode
_
_
_
a
y
b
=>
present
a
\
/
x
=
y
\
/
present
b
end
.
Definition
rpresent
n
(
t
:
rtree
n
)
:
Prop
:=
match
t
with
|
RedNode
'
_
_
_
a
y
b
=>
present
a
\
/
x
=
y
\
/
present
b
end
.
End
present
.
Notation
"{< x >}"
:=
(
existT
_
_
x
)
.
Definition
balance1
n
(
a
:
rtree
n
)
(
data
:
nat
)
c2
:=
...
...
@@ -426,22 +442,6 @@ Definition balance2 n (a : rtree n) (data : nat) c2 :=
end
t2
end
.
Section
present
.
Variable
x
:
nat
.
Fixpoint
present
c
n
(
t
:
rbtree
c
n
)
{
struct
t
}
:
Prop
:=
match
t
with
|
Leaf
=>
False
|
RedNode
_
a
y
b
=>
present
a
\
/
x
=
y
\
/
present
b
|
BlackNode
_
_
_
a
y
b
=>
present
a
\
/
x
=
y
\
/
present
b
end
.
Definition
rpresent
n
(
t
:
rtree
n
)
:
Prop
:=
match
t
with
|
RedNode
'
_
_
_
a
y
b
=>
present
a
\
/
x
=
y
\
/
present
b
end
.
End
present
.
Section
insert
.
Variable
x
:
nat
.
...
...
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