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.1.0.2.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
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.5 && <6), containers (>=0.2.0.1), data-default (>=0.5 && <0.6), ghc-prim, 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> |
Revised | Revision 1 made by EdwardKmett at 2015-07-11T22:45:17Z |
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-09T09:19:45Z |
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] |