The claferIG package


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.6,, 0.3.7
Dependenciesarray (>=, base (>= && <5), clafer (==0.3.6), claferIG (==0.3.6), cmdargs (>=0.10.7), containers (>=, data-stringmap (>=, directory (>=, executable-path (>=0.0.3), filepath (>=, haskeline (>=, HaXml (>=1.24), HUnit (>=, json-builder (>=0.3), mtl (>=2.1.2), parsec (>=3.1.3), process (>=, QuickCheck (>=2.6), string-conversions (>=, test-framework (>=, test-framework-hunit (>=, test-framework-quickcheck2 (>=, test-framework-th (>=0.2.4), transformers (>=
AuthorJimmy Liang, Michał Antkiewicz, Luke Michael Brown
MaintainerJimmy Liang <>
Home page
Source repositoryhead: git clone git://
UploadedFri May 23 20:30:54 UTC 2014 by mantkiew



Maintainers' corner

For package maintainers and hackage trustees