boolean-normal-forms-0.0.1.1: Boolean normal form: NNF, DNF & CNF

Copyright© Oleg Grenrus 2014
LicenseMIT
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Data.Algebra.Boolean.DNF.List

Description

 
Synopsis

Documentation

newtype DNF a Source #

Boolean formula in Disjunction Normal Form

Constructors

DNF 

Fields

Instances
Functor DNF Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

Methods

fmap :: (a -> b) -> DNF a -> DNF b #

(<$) :: a -> DNF b -> DNF a #

Foldable DNF Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

Methods

fold :: Monoid m => DNF m -> m #

foldMap :: Monoid m => (a -> m) -> DNF a -> m #

foldr :: (a -> b -> b) -> b -> DNF a -> b #

foldr' :: (a -> b -> b) -> b -> DNF a -> b #

foldl :: (b -> a -> b) -> b -> DNF a -> b #

foldl' :: (b -> a -> b) -> b -> DNF a -> b #

foldr1 :: (a -> a -> a) -> DNF a -> a #

foldl1 :: (a -> a -> a) -> DNF a -> a #

toList :: DNF a -> [a] #

null :: DNF a -> Bool #

length :: DNF a -> Int #

elem :: Eq a => a -> DNF a -> Bool #

maximum :: Ord a => DNF a -> a #

minimum :: Ord a => DNF a -> a #

sum :: Num a => DNF a -> a #

product :: Num a => DNF a -> a #

CoBoolean1 DNF Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

Methods

toBooleanWith :: Boolean c => (a -> c) -> DNF a -> c Source #

NormalForm DNF Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

Associated Types

type NFConstraint DNF a :: Constraint Source #

Eq a => Eq (DNF a) Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

Methods

(==) :: DNF a -> DNF a -> Bool #

(/=) :: DNF a -> DNF a -> Bool #

Ord a => Ord (DNF a) Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

Methods

compare :: DNF a -> DNF a -> Ordering #

(<) :: DNF a -> DNF a -> Bool #

(<=) :: DNF a -> DNF a -> Bool #

(>) :: DNF a -> DNF a -> Bool #

(>=) :: DNF a -> DNF a -> Bool #

max :: DNF a -> DNF a -> DNF a #

min :: DNF a -> DNF a -> DNF a #

Read a => Read (DNF a) Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

Show a => Show (DNF a) Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

Methods

showsPrec :: Int -> DNF a -> ShowS #

show :: DNF a -> String #

showList :: [DNF a] -> ShowS #

Negable a => Boolean (DNF a) Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

Methods

true :: DNF a #

false :: DNF a #

not :: DNF a -> DNF a #

(&&) :: DNF a -> DNF a -> DNF a #

(||) :: DNF a -> DNF a -> DNF a #

xor :: DNF a -> DNF a -> DNF a #

(-->) :: DNF a -> DNF a -> DNF a #

(<-->) :: DNF a -> DNF a -> DNF a #

and :: Foldable t => t (DNF a) -> DNF a #

or :: Foldable t => t (DNF a) -> DNF a #

nand :: Foldable t => t (DNF a) -> DNF a #

all :: Foldable t => (a0 -> DNF a) -> t a0 -> DNF a #

any :: Foldable t => (a0 -> DNF a) -> t a0 -> DNF a #

nor :: Foldable t => t (DNF a) -> DNF a #

NFData a => NFData (DNF a) Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

Methods

rnf :: DNF a -> () #

CoBoolean a => CoBoolean (DNF a) Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

Methods

toBoolean :: Boolean b => DNF a -> b Source #

Negable a => Negable (DNF a) Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

Methods

not :: DNF a -> DNF a Source #

type NFConstraint DNF a Source # 
Instance details

Defined in Data.Algebra.Boolean.DNF.List

fromDoubleList :: [[a]] -> DNF a Source #

toDoubleList :: DNF a -> [[a]] Source #

fromNNF :: Negable a => NNF a -> DNF a Source #