annotate prepaper/src/tree.agda @ 14:a63df15c9afc default tip

DONE
author soto <soto@cr.ie.u-ryukyu.ac.jp>
date Mon, 15 Feb 2021 23:36:39 +0900
parents 3dba680da508
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3dba680da508 init-test
soto
parents:
diff changeset
1 data nomal-tree (A : Set) : Set where
3dba680da508 init-test
soto
parents:
diff changeset
2 nleaf : (key : ℕ) → tree A
3dba680da508 init-test
soto
parents:
diff changeset
3 nnode : (key : ℕ) → (lnode : nomal-tree A) → (rnode : nomal-tree A) → nomal-tree A
3dba680da508 init-test
soto
parents:
diff changeset
4
3dba680da508 init-test
soto
parents:
diff changeset
5 data meta-tree (A : Set) : (key : ℕ) → Set where
3dba680da508 init-test
soto
parents:
diff changeset
6 mleaf : (key : ℕ) → meta-tree A key
3dba680da508 init-test
soto
parents:
diff changeset
7 mnode : { l r : ℕ } → (key : ℕ) → (value : A)
3dba680da508 init-test
soto
parents:
diff changeset
8 → (lnode : meta-tree A l) → (rnode : meta-tree A r)
3dba680da508 init-test
soto
parents:
diff changeset
9 → l ≤ key → key ≤ r → metatree A key
3dba680da508 init-test
soto
parents:
diff changeset
10