Liking cljdoc? Tell your friends :D

rolling-stones.core


!clj

source

ANDclj

(AND & literals)
source

and?clj

(and? x)
source

at-leastclj

(at-least n literals)
source

at-mostclj

(at-most n literals)
source

CNFcljprotocol

encode-cnfclj

(encode-cnf this)

Returns variable and clauses

Returns variable and clauses
source

constraint?clj

(constraint? c)
source

encode-constraintclj

(encode-constraint constraint)

Returns (cons new-constraint new-clauses)

Returns (cons new-constraint new-clauses)
sourceraw docstring

exactlyclj

(exactly n literals)
source

formula->cnfclj

(formula->cnf wff)
source

formula?clj

(formula? x)
source

IFFclj

source

iff?clj

(iff? x)
source

IMPclj

source

imp?clj

(imp? x)
source

NANDclj

(NAND & literals)
source

negateclj

(negate x)
source

negative?clj

source

NORclj

(NOR & literals)
source

NOTclj

source

not?clj

(not? r)
source

ORclj

(OR & literals)
source

or?clj

(or? x)
source

positive?clj

source

solutionsclj

(solutions clauses)
(solutions clauses timeout)
(solutions clauses timeout timeout-atom)

Takes a formula in integer CNF form, i.e., vector of constraints and vectors of non-zero ints and optional timeout in millis and optional atom to set to true if timeout occurs. Returns lazy sequence of all solutions. Stats attached as metadata to each solution.

Takes a formula in integer CNF form, i.e., vector of constraints and vectors of non-zero ints
and optional timeout in millis and optional atom to set to true if timeout occurs.
Returns lazy sequence of all solutions.  Stats attached as metadata to each solution.
sourceraw docstring

solutions-symbolic-cnfclj

(solutions-symbolic-cnf clauses)
(solutions-symbolic-cnf clauses timeout)
(solutions-symbolic-cnf clauses timeout timeout-atom)

Takes a formula in symbolic CNF form, i.e., vector of constraints and vectors of variables and ! of variables, where variables are represented by arbitrary Clojure data. Also takes optional timeout in millis and optional atom to set to true if timeout occurs. Returns lazy sequence of solutions. Stats attached as metadata to each solution.

Takes a formula in symbolic CNF form, i.e., vector of constraints and vectors of variables and
! of variables, where variables are represented by arbitrary Clojure data.
Also takes optional timeout in millis and optional atom to set to true if timeout occurs.
Returns lazy sequence of solutions.  Stats attached as metadata to each solution.
sourceraw docstring

solutions-symbolic-formulaclj

(solutions-symbolic-formula wffs)
(solutions-symbolic-formula wffs timeout)
(solutions-symbolic-formula wffs timeout timeout-atom)

Takes a formula in symbolic form, i.e., vector of constraints and formulas, where formulas are built with formula constructors such as AND, OR, XOR, IFF, NAND, NOR, IMP, NOT, and formula variables are represented by arbitrary Clojure data. Also takes optional timeout in millis and optional atom to set to true if timeout occurs. Returns lazy sequence of all solutions. Stats attached as metadata.

Takes a formula in symbolic form, i.e., vector of constraints and formulas, where formulas
are built with formula constructors such as AND, OR, XOR, IFF, NAND, NOR, IMP, NOT,
and formula variables are represented by arbitrary Clojure data.
Also takes optional timeout in millis and optional atom to set to true if timeout occurs.
Returns lazy sequence of all solutions.  Stats attached as metadata.
sourceraw docstring

solveclj

(solve clauses)
(solve clauses timeout)
(solve clauses timeout timeout-atom)

Takes a formula in integer CNF form, i.e., vector of constraints and vectors of non-zero ints and optional timeout in millis and optional atom to set to true if timeout occurs. Returns solution or nil if no solution exists. Stats attached as metadata.

Takes a formula in integer CNF form, i.e., vector of constraints and vectors of non-zero ints
and optional timeout in millis and optional atom to set to true if timeout occurs.
Returns solution or nil if no solution exists.  Stats attached as metadata.
sourceraw docstring

solve-symbolic-cnfclj

(solve-symbolic-cnf clauses)
(solve-symbolic-cnf clauses timeout)
(solve-symbolic-cnf clauses timeout timeout-atom)

Takes a formula in symbolic CNF form, i.e., vector of constraints and vectors of variables and ! of variables, where variables are represented by arbitrary Clojure data. Also takes optional timeout in millis and optional atom to set to true if timeout occurs. Returns solution or nil if no solution exists. Stats attached as metadata.

Takes a formula in symbolic CNF form, i.e., vector of constraints and vectors of variables and
! of variables, where variables are represented by arbitrary Clojure data.
Also takes optional timeout in millis and optional atom to set to true if timeout occurs.
Returns solution or nil if no solution exists.  Stats attached as metadata.
sourceraw docstring

solve-symbolic-formulaclj

(solve-symbolic-formula wffs)
(solve-symbolic-formula wffs timeout)
(solve-symbolic-formula wffs timeout timeout-atom)

Takes a formula in symbolic form, i.e., vector of constraints and formulas, where formulas are built with formula constructors such as AND, OR, XOR, IFF, NAND, NOR, IMP, NOT, and formula variables are represented by arbitrary Clojure data. Also takes optional timeout in millis and optional atom to set to true if timeout occurs. Returns solution or nil if no solution exists. Stats attached as metadata.

Takes a formula in symbolic form, i.e., vector of constraints and formulas, where formulas
are built with formula constructors such as AND, OR, XOR, IFF, NAND, NOR, IMP, NOT,
and formula variables are represented by arbitrary Clojure data.
Also takes optional timeout in millis and optional atom to set to true if timeout occurs.
Returns solution or nil if no solution exists.  Stats attached as metadata.
sourceraw docstring

temporary?clj

(temporary? var)
source

true-integer-variablesclj

(true-integer-variables coll)

Returns a set of all the true variables from a collection of integer variables. Returns nil if passed nil.

Returns a set of all the true variables from a collection of integer variables.
Returns nil if passed nil.
sourceraw docstring

true-symbolic-variablesclj

(true-symbolic-variables coll)

Returns a set of all the true variables from a collection of symbolic variables. Returns nil if passed nil.

Returns a set of all the true variables from a collection of symbolic variables.
Returns nil if passed nil.
sourceraw docstring

XORclj

source

xor?clj

(xor? x)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close