The claferIG package

[Tags: library, mit, program]

Clafer is a powerful (equivalent to first-order predicate logic) yet lightweight structural modeling language. Despite simplicity and conciseness of Clafer, writing correct models remains challenging due to hard-to-predict interactions among all constraints expressed in the model. Clafer instance generator (ClaferIG) is an interactive tool that generates instances and counter examples of concrete clafers in a Clafer model. If the concrete clafers do not have contradicting constraints, the generator produces valid instance data. Otherwise, the generator produces an unsatisfiable core which included all contradicting constraints and generates a counter example by removing one constraint from the core. The generator can potentially produce many instances if the concrete clafers are not fully specialized. The generator produces different instances on-demand. With these capabilities, the instance generator can be used for debugging models: checking the consistency of the model and detecting under- and overconstraining of the model. The instance generator can also be used programmatically via API (the command line and interactive session interfaces only use the API).


Versions0.3.5,, 0.3.6,, 0.3.7, 0.3.8, 0.3.9, 0.3.10 (info)
Dependenciesarray (>=0.5.0), base (>= && <5), clafer (==0.3.10), claferIG (==0.3.10), cmdargs (>=0.10.7), containers (>=, data-stringmap (>=, directory (>=, executable-path (>=0.0.3), filepath (>=, haskeline (>=, HaXml (>=1.24), json-builder (>=0.3), mtl (>=, parsec (>=3.1.5), process (>=, string-conversions (>=, transformers (>=
AuthorJimmy Liang, Michal Antkiewicz, Luke Michael Brown
MaintainerMichal Antkiewicz <>
Home page
Source repositoryhead: git clone git://
UploadedSat Apr 25 00:39:59 UTC 2015 by mantkiew
Downloads790 total (75 in last 30 days)
StatusDocs available [build log]
Last success reported on 2015-04-25 [all 1 reports]




Maintainers' corner

For package maintainers and hackage trustees