Mercurial > hg > Papers > 2021 > soto-thesis
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 |
rev | line source |
---|---|
0 | 1 data nomal-tree (A : Set) : Set where |
2 nleaf : (key : ℕ) → tree A | |
3 nnode : (key : ℕ) → (lnode : nomal-tree A) → (rnode : nomal-tree A) → nomal-tree A | |
4 | |
5 data meta-tree (A : Set) : (key : ℕ) → Set where | |
6 mleaf : (key : ℕ) → meta-tree A key | |
7 mnode : { l r : ℕ } → (key : ℕ) → (value : A) | |
8 → (lnode : meta-tree A l) → (rnode : meta-tree A r) | |
9 → l ≤ key → key ≤ r → metatree A key | |
10 |