ersatz: A monad for expressing SAT or QSAT problems using observable sharing.
A monad for expressing SAT or QSAT problems using observable sharing.
For example, we can express a full-adder with:
full_adder :: Bit -> Bit -> Bit -> (Bit, Bit) full_adder a b cin = (s2, c1 || c2) where (s1,c1) = half_adder a b (s2,c2) = half_adder s1 cin
half_adder :: Bit -> Bit -> (Bit, Bit) half_adder a b = (a `xor` b, a && b)
[Skip to Readme]
Modules
[Index]
Downloads
- ersatz-0.2.0.1.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
Versions [RSS] | 0.1, 0.1.0.1, 0.1.0.2, 0.2, 0.2.0.1, 0.2.4, 0.2.5, 0.2.5.1, 0.2.6, 0.2.6.1, 0.3, 0.3.1, 0.4, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.9, 0.4.10, 0.4.11, 0.4.12, 0.4.13, 0.5 |
---|---|
Change log | CHANGELOG.md |
Dependencies | array (>=0.2 && <0.5), base (>=4 && <6), blaze-builder (>=0.3 && <0.4), blaze-textual (>=0.2 && <0.3), bytestring (>=0.9 && <0.12), containers (>=0.2.0.1 && <0.6), data-default (>=0.5 && <0.6), ghc-prim, lens (>=3.8 && <4.0), mtl (>=1.1 && <2.2), process (>=1.1 && <1.2), temporary (>=1.1 && <1.2), transformers (>=0.3 && <0.4), unordered-containers (>=0.2 && <0.3) [details] |
Tested with | ghc ==7.6.2 |
License | BSD-3-Clause |
Copyright | (c) 2010-2013 Edward Kmett, (c) 2013 Johan Kiviniemi |
Author | Edward A. Kmett, Johan Kiviniemi |
Maintainer | Edward A. Kmett <ekmett@gmail.com> |
Category | Logic, Algorithms |
Home page | http://github.com/ekmett/ersatz |
Bug tracker | http://github.com/ekmett/ersatz/issues |
Source repo | head: git clone git://github.com/ekmett/ersatz.git |
Uploaded | by EdwardKmett at 2013-03-16T09:53:38Z |
Distributions | LTSHaskell:0.5, Stackage:0.5 |
Reverse Dependencies | 3 direct, 0 indirect [details] |
Downloads | 19329 total (41 in the last 30 days) |
Rating | 2.0 (votes: 1) [estimated by Bayesian average] |
Your Rating | |
Status | Docs uploaded by user Build status unknown [no reports yet] |