ersatz-0.2: A monad for expressing SAT or QSAT problems using observable sharing.

Portabilitynon-portable
Stabilityexperimental
MaintainerEdward Kmett <ekmett@gmail.com>
Safe HaskellSafe-Inferred

Ersatz.Internal.Literal

Description

 

Synopsis

Documentation

newtype Literal Source

A naked possibly-negated Atom, present in the target Solver.

The literals -1 and 1 are dedicated for the constant False and the constant True respectively.

Constructors

Literal 

Fields

literalId :: Int
 

literalFalse :: LiteralSource

The False constant. The literal -1 is dedicated for it.

literalTrue :: LiteralSource

The True constant. The literal 1 is dedicated for it.