haskellari / lattices

Fine-grained lattice primitives for Haskell
BSD 3-Clause "New" or "Revised" License
35 stars 15 forks source link

Complemented lattice #49

Closed jakubdaniel closed 5 years ago

jakubdaniel commented 7 years ago

It would be nice, if this package directly exported

class BoundedLattice a => ComplementedLattice a where
    complement :: a -> a

or something of that sort.

phadej commented 7 years ago

Taken how fine grained this library is atm, we'd need HeytingAlgebra in between.

There are heyting algebras which aren't boolean. See https://en.wikipedia.org/wiki/Heyting_algebra

phadej commented 5 years ago

Heyting algebra is added