Mercurial > hg > Papers > 2023 > soto-master
view Paper/src/tree.agda @ 32:4915eaa51ee0 default tip
Add front
author | soto <soto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 23 Feb 2023 18:39:56 +0900 |
parents | a72446879486 |
children |
line wrap: on
line source
data nomal-tree (A : Set) : Set where nleaf : (key : ℕ) → tree A nnode : (key : ℕ) → (lnode : nomal-tree A) → (rnode : nomal-tree A) → nomal-tree A data meta-tree (A : Set) : (key : ℕ) → Set where mleaf : (key : ℕ) → meta-tree A key mnode : { l r : ℕ } → (key : ℕ) → (value : A) → (lnode : meta-tree A l) → (rnode : meta-tree A r) → l ≤ key → key ≤ r → metatree A key