Mercurial > hg > Papers > 2021 > soto-prosym
view Paper/src/agda/cmp.agda.replaced @ 5:339fb67b4375
INIT rbt.agda
author | soto <soto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 07 Nov 2021 00:51:16 +0900 |
parents | 9176dff8f38a |
children |
line wrap: on
line source
module cmp where open import Data.Nat open import Data.Nat.Properties as NatProp -- <-cmp open import Relation.Binary compare_test : !$\mathbb{N}$! !$\rightarrow$! !$\mathbb{N}$! !$\rightarrow$! !$\mathbb{N}$! compare_test x y with <-cmp x y ... | tri< a !$\neg$!b !$\neg$!c = y ... | tri!$\approx$! !$\neg$!a b !$\neg$!c = x ... | tri> !$\neg$!a !$\neg$!b c = x -- test = compare_test 7 2 -- 7