Debian Codegraph @

src/Data/Tree/AVL/NonEmpty/Propositional.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Non-empty AVL trees, where equality for keys is propositional equality
5 ------------------------------------------------------------------------
6
7 {-# OPTIONS --cubical-compatible --safe #-}
8
9 open import Relation.Binary.Core using (Rel)
10 open import Relation.Binary.Structures using (IsStrictTotalOrder)
11 open import Relation.Binary.PropositionalEquality.Core using (_≡_; refl; subst)
12
13 module Data.Tree.AVL.NonEmpty.Propositional
14 {k r} {Key : Set k} {_<_ : Rel Key r}
15 (isStrictTotalOrder : IsStrictTotalOrder _≡_ _<_) where
16
17 open import Level using (Level; _⊔_)
18 open import Relation.Binary.Bundles using (StrictTotalOrder)
19
20 private
21 strictTotalOrder : StrictTotalOrder _ _ _
22 strictTotalOrder = record { isStrictTotalOrder = isStrictTotalOrder}
23 open import Data.Tree.AVL.Value (StrictTotalOrder.Eq.setoid strictTotalOrder)
24 import Data.Tree.AVL.NonEmpty strictTotalOrder as AVL⁺
25
26 Tree⁺ : ∀ {v} (V : Key → Set v) → Set (k ⊔ v ⊔ r)
27 Tree⁺ V = AVL⁺.Tree⁺ λ where
28 .Value.family → V
29 .Value.respects refl t → t
30
31 open AVL⁺ hiding (Tree⁺) public