Safe Haskell | None |
---|---|
Language | Haskell98 |
Polarity
Synopsis
- class Polarity pol where
- type PVarId = Int
- data Pol
- mixed :: Pol
- defaultPol :: Pol
- showPVar :: Show a => a -> String
- isPVar :: Pol -> Bool
- leqPol :: Pol -> Pol -> Bool
- polNeg :: Pol -> Pol
- polComp :: Pol -> Pol -> Pol
- invComp :: Pol -> Pol -> Pol
- polAnd :: Pol -> Pol -> Pol
- relPol :: Pol -> (a -> a -> Bool) -> a -> a -> Bool
- relPolM :: Monad m => Pol -> (a -> a -> m ()) -> a -> a -> m ()
- data Multiplicity
- addMultiplicity :: Multiplicity -> Multiplicity -> Multiplicity
- type VarMults = Map PVarId Multiplicity
- showMults :: VarMults -> String
- multsEmpty :: VarMults
- multsSingle :: Int -> VarMults
- data PProd = PProd {}
- pprod :: Pol -> PProd
- fromPProd :: PProd -> Maybe Pol
- isSPos :: PProd -> Bool
- polProd :: PProd -> PProd -> PProd
- data PPoly = PPoly {}
- ppoly :: PProd -> PPoly
- polSum :: PPoly -> PPoly -> PPoly
- polProduct :: PPoly -> PPoly -> PPoly
Documentation
class Polarity pol where Source #
Methods
erased :: pol -> Bool Source #
compose :: pol -> pol -> pol Source #
Arguments
:: pol | neutral for compose. |
promote :: pol -> pol Source #
Arguments
:: pol | corresponding to hidden quantification |
Instances
Polarity PProd Source # | |
Polarity Pol Source # | |
Polarity a => Polarity (Decoration a) Source # | |
Defined in Abstract Methods erased :: Decoration a -> Bool Source # compose :: Decoration a -> Decoration a -> Decoration a Source # neutral :: Decoration a Source # promote :: Decoration a -> Decoration a Source # demote :: Decoration a -> Decoration a Source # hidden :: Decoration a Source # |
defaultPol :: Pol Source #
data Multiplicity Source #
Instances
Show Multiplicity Source # | |
Defined in Polarity Methods showsPrec :: Int -> Multiplicity -> ShowS # show :: Multiplicity -> String # showList :: [Multiplicity] -> ShowS # | |
Eq Multiplicity Source # | |
Defined in Polarity | |
Ord Multiplicity Source # | |
Defined in Polarity Methods compare :: Multiplicity -> Multiplicity -> Ordering # (<) :: Multiplicity -> Multiplicity -> Bool # (<=) :: Multiplicity -> Multiplicity -> Bool # (>) :: Multiplicity -> Multiplicity -> Bool # (>=) :: Multiplicity -> Multiplicity -> Bool # max :: Multiplicity -> Multiplicity -> Multiplicity # min :: Multiplicity -> Multiplicity -> Multiplicity # |
multsSingle :: Int -> VarMults Source #