add test implementation of Plactic monoid
Dependencies
- [2]
ROKTK7EKadd SUSY degree
Change contents
- file addition: SPlactic.idr[2.16]
module Data.SPlacticimport Data.SnocListinfixl 7 <<(<<) : SnocList Nat -> Nat -> SnocList Natxs :< x :< y << z =if x <= y && x > zthen xs :< x << z :< yelse if z >= x && z < ythen xs :< y << x :< zelse xs :< x :< y :< zxs << x = xs :< xnorm : SnocList Nat -> SnocList Natnorm [<] = [<]norm $ xs :< x = norm xs << x