Uses of Class
org.logicng.formulas.Formula
-
-
Uses of Formula in org.logicng.backbones
Methods in org.logicng.backbones that return Formula Modifier and Type Method Description FormulaBackbone. toFormula(FormulaFactory f)Returns the positive and negative backbone as a conjunction of literals.Methods in org.logicng.backbones with parameters of type Formula Modifier and Type Method Description static BackboneBackboneGeneration. compute(Formula formula)Computes the complete backbone for a given formula.static BackboneBackboneGeneration. compute(Formula formula, Collection<Variable> variables)Computes the complete backbone for a given formula w.r.t.static BackboneBackboneGeneration. compute(Formula formula, Collection<Variable> variables, BackboneType type)Computes the backbone for a given formula w.r.t.static BackboneBackboneGeneration. compute(Formula formula, BackboneType type)Computes the backbone for a given formula w.r.t.static BackboneBackboneGeneration. computeNegative(Formula formula)Computes the negative backbone variables for a given formula.static BackboneBackboneGeneration. computeNegative(Formula formula, Collection<Variable> variables)Computes the negative backbone variables for a given formula w.r.t.static BackboneBackboneGeneration. computePositive(Formula formula)Computes the positive backbone variables for a given formula.static BackboneBackboneGeneration. computePositive(Formula formula, Collection<Variable> variables)Computes the positive backbone allVariablesInFormulas for a given formula w.r.t.Method parameters in org.logicng.backbones with type arguments of type Formula Modifier and Type Method Description static BackboneBackboneGeneration. compute(Collection<Formula> formulas)Computes the complete backbone for a given collection of formulas.static BackboneBackboneGeneration. compute(Collection<Formula> formulas, Collection<Variable> variables)Computes the complete backbone for a given collection of formulas w.r.t.static BackboneBackboneGeneration. compute(Collection<Formula> formulas, Collection<Variable> variables, BackboneType type)Computes the backbone for a given collection of formulas w.r.t.static BackboneBackboneGeneration. compute(Collection<Formula> formulas, Collection<Variable> variables, BackboneType type, SATHandler handler)Computes the backbone for a given collection of formulas w.r.t.static BackboneBackboneGeneration. compute(Collection<Formula> formulas, BackboneType type)Computes the backbone for a given collection of formulas w.r.t.static BackboneBackboneGeneration. computeNegative(Collection<Formula> formulas)Computes the negative backbone variables for a given collection of formulas.static BackboneBackboneGeneration. computeNegative(Collection<Formula> formulas, Collection<Variable> variables)Computes the negative backbone variables for a given collection of formulas w.r.t.static BackboneBackboneGeneration. computePositive(Collection<Formula> formulas)Computes the positive backbone variables for a given collection of formulas.static BackboneBackboneGeneration. computePositive(Collection<Formula> formulas, Collection<Variable> variables)Computes the positive backbone variables for a given collection of formulas w.r.t. -
Uses of Formula in org.logicng.cardinalityconstraints
Methods in org.logicng.cardinalityconstraints that return types with arguments of type Formula Modifier and Type Method Description List<Formula>CCEncoder. encode(CardinalityConstraint cc)Encodes a cardinality constraint and returns its CNF encoding.Pair<List<Formula>,CCIncrementalData>CCEncoder. encodeIncremental(CardinalityConstraint cc)Encodes an incremental cardinality constraint and returns its encoding.List<Formula>CCIncrementalData. newLowerBound(int rhs)Tightens the lower bound of an at-least-k constraint and returns the resulting formula.List<Formula>CCIncrementalData. newUpperBound(int rhs)Tightens the upper bound of an at-most-k constraint and returns the resulting formula. -
Uses of Formula in org.logicng.datastructures
Methods in org.logicng.datastructures that return Formula Modifier and Type Method Description FormulaAssignment. blockingClause(FormulaFactory f)Creates the blocking clause for this assignment.FormulaAssignment. blockingClause(FormulaFactory f, Collection<? extends Literal> literals)Creates the blocking clause for this assignment wrt.FormulaAssignment. formula(FormulaFactory f)Returns the assignment as a formula.FormulaSubstitution. getSubstitution(Variable variable)Returns a formula for a given variable.FormulaAssignment. restrictLit(Literal lit)Restricts a given literal to a constant.Methods in org.logicng.datastructures that return types with arguments of type Formula Modifier and Type Method Description Map<Variable,Formula>Substitution. getMapping()Returns an unmodifiable reference to the internal mapping of variables to formulas.List<Formula>EncodingResult. result()Returns the result of this algorithm.Methods in org.logicng.datastructures with parameters of type Formula Modifier and Type Method Description voidSubstitution. addMapping(Variable variable, Formula formula)Adds a mapping from variable to formula to this substitution.Constructor parameters in org.logicng.datastructures with type arguments of type Formula Constructor Description Substitution(Map<Variable,Formula> mapping)Constructs a new substitution and initializes it with the given mapping. -
Uses of Formula in org.logicng.explanations.smus
Methods in org.logicng.explanations.smus that return types with arguments of type Formula Modifier and Type Method Description static List<Formula>SmusComputation. computeSmusForFormulas(List<Formula> formulas, List<Formula> additionalConstraints, FormulaFactory f)Computes the SMUS for the given list of formulas and some additional constraints.static List<Formula>SmusComputation. computeSmusForFormulas(List<Formula> formulas, List<Formula> additionalConstraints, FormulaFactory f, OptimizationHandler handler)Computes the SMUS for the given list of formulas and some additional constraints.Method parameters in org.logicng.explanations.smus with type arguments of type Formula Modifier and Type Method Description static List<Formula>SmusComputation. computeSmusForFormulas(List<Formula> formulas, List<Formula> additionalConstraints, FormulaFactory f)Computes the SMUS for the given list of formulas and some additional constraints.static List<Formula>SmusComputation. computeSmusForFormulas(List<Formula> formulas, List<Formula> additionalConstraints, FormulaFactory f, OptimizationHandler handler)Computes the SMUS for the given list of formulas and some additional constraints. -
Uses of Formula in org.logicng.formulas
Subclasses of Formula in org.logicng.formulas Modifier and Type Class Description classAndBoolean conjunction.classBinaryOperatorSuper class for Boolean binary operators.classCardinalityConstraintA cardinality constraint of the forml_1 + ... + l_n R kwhereRis one of=, >, >=, <, <=and with the following restrictions: The right-hand sidekis greater or equal 0 for=, >=, <=The right-hand sidekis greater or equal -1 for>The right-hand sidekis greater or equal 1 for<classCFalseBoolean constant "False".classConstantSuper class for Boolean constants.classCTrueBoolean constant "True".classEquivalenceBoolean equivalence.classImplicationBoolean implication.classLiteralBoolean literals.classNAryOperatorSuper class for Boolean n-ary operators.classNotBoolean negation.classOrBoolean disjunction.classPBConstraintA pseudo-Boolean constraint of the formc_1 * l_1 + ... + c_n * l_n R kwhereRis one of=, >, >=, <, <=.classVariableBoolean variables.Fields in org.logicng.formulas declared as Formula Modifier and Type Field Description protected FormulaBinaryOperator. leftprotected Formula[]NAryOperator. operandsprotected FormulaBinaryOperator. rightMethods in org.logicng.formulas that return Formula Modifier and Type Method Description FormulaFormulaFactory. amo(Collection<Variable> variables)Creates a new at-most-one cardinality constraint.FormulaFormulaFactory. amo(Variable... variables)Creates a new at-most-one cardinality constraint.FormulaFormulaFactory. and(Collection<? extends Formula> operands)Creates a new conjunction from a collection of formulas.FormulaFormulaFactory. and(Formula... operands)Creates a new conjunction from an array of formulas.FormulaFormulaTransformation. apply(Formula formula, boolean cache)Returns the transformed formula.FormulaFormulaFactory. binaryOperator(FType type, Formula left, Formula right)Creates a new binary operator with a given type and two operands.FormulaFormulaFactory. cc(CType comparator, int rhs, Collection<Variable> variables)Creates a new cardinality constraint.FormulaFormulaFactory. cc(CType comparator, int rhs, Variable... variables)Creates a new cardinality constraint.FormulaFormulaFactory. clause(Collection<? extends Literal> literals)Creates a new clause from a collection of literals.FormulaFormulaFactory. clause(Literal... literals)Creates a new clause from an array of literals.FormulaFormula. cnf()Returns a copy of this formula which is in CNF.FormulaFormulaFactory. cnf(Collection<? extends Formula> clauses)Creates a new CNF from a collection of clauses.FormulaFormulaFactory. cnf(Formula... clauses)Creates a new CNF from an array of clauses.FormulaFormulaFactory. equivalence(Formula leftIn, Formula rightIn)Creates a new equivalence.FormulaFormulaFactory. exo(Collection<Variable> variables)Creates a new exactly-one cardinality constraint.FormulaFormulaFactory. exo(Variable... variables)Creates a new exactly-one cardinality constraint.FormulaFormulaFactory. implication(Formula leftIn, Formula rightIn)Creates a new implication.FormulaFormulaFactory. importFormula(Formula formula)Imports a formula from another formula factory into this factory and returns it.FormulaBinaryOperator. left()Returns the left-hand side operator.FormulaFormulaFactory. naryOperator(FType type, Collection<? extends Formula> operands)Creates a new n-ary operator with a given type and a list of operands.FormulaFormulaFactory. naryOperator(FType type, Formula... operands)Creates a new n-ary operator with a given type and a list of operands.FormulaBinaryOperator. negate()abstract FormulaFormula. negate()Returns a negated copy of this formula.FormulaNAryOperator. negate()FormulaNot. negate()FormulaPBConstraint. negate()FormulaFormula. nnf()Returns a copy of this formula which is in NNF.FormulaPBConstraint. normalize()Normalizes this constraint s.t.FormulaFormulaFactory. not(Formula formula)Creates the negation of a given formula.FormulaNot. operand()Returns the operand of this negation.FormulaFormulaFactory. or(Collection<? extends Formula> operands)Creates a new disjunction from a collection of formulas.FormulaFormulaFactory. or(Formula... operands)Creates a new disjunction from an array of formulas.FormulaFormulaFactory. parse(String string)Parses a given string to a formula using a pseudo boolean parser.FormulaFormulaFactory. pbc(CType comparator, int rhs, List<? extends Literal> literals, List<Integer> coefficients)Creates a new pseudo-Boolean constraint.FormulaFormulaFactory. pbc(CType comparator, int rhs, Literal[] literals, int[] coefficients)Creates a new pseudo-Boolean constraint.FormulaConstant. restrict(Assignment assignment)FormulaEquivalence. restrict(Assignment assignment)abstract FormulaFormula. restrict(Assignment assignment)Restricts this formula with a given assignment.FormulaImplication. restrict(Assignment assignment)FormulaLiteral. restrict(Assignment assignment)FormulaNAryOperator. restrict(Assignment assignment)FormulaNot. restrict(Assignment assignment)FormulaPBConstraint. restrict(Assignment assignment)FormulaBinaryOperator. right()Returns the right-hand side operator.FormulaBinaryOperator. substitute(Substitution substitution)FormulaConstant. substitute(Substitution substitution)abstract FormulaFormula. substitute(Substitution substitution)Performs a given substitution on this formula.FormulaFormula. substitute(Variable variable, Formula formula)Performs a simultaneous substitution on this formula given a single mapping from variable to formula.FormulaLiteral. substitute(Substitution substitution)FormulaNAryOperator. substitute(Substitution substitution)FormulaNot. substitute(Substitution substitution)FormulaPBConstraint. substitute(Substitution substitution)FormulaFormula. transform(FormulaTransformation transformation)Transforms this formula with a given formula transformator and caches the result.FormulaFormula. transform(FormulaTransformation transformation, boolean cache)Transforms this formula with a given formula transformator.FormulaFormula. transformationCacheEntry(CacheEntry key)Returns an entry of the transformation cache of this formula.protected FormulaFormulaFactory. transformationCacheEntry(Formula formula, CacheEntry key)Returns an entry of the transformation cache for the given formula.Methods in org.logicng.formulas that return types with arguments of type Formula Modifier and Type Method Description List<Formula>PBConstraint. getEncoding()Encodes this constraint as CNF and stores the result, if the encoding does not already exist.Iterator<Formula>BinaryOperator. iterator()Iterator<Formula>Constant. iterator()Iterator<Formula>Literal. iterator()Iterator<Formula>NAryOperator. iterator()Iterator<Formula>Not. iterator()Iterator<Formula>PBConstraint. iterator()Stream<Formula>BinaryOperator. stream()Stream<Formula>Constant. stream()abstract Stream<Formula>Formula. stream()Returns a stream of this formula's operands.Stream<Formula>Literal. stream()Stream<Formula>NAryOperator. stream()Stream<Formula>Not. stream()Stream<Formula>PBConstraint. stream()Methods in org.logicng.formulas with parameters of type Formula Modifier and Type Method Description FormulaFormulaFactory. and(Formula... operands)Creates a new conjunction from an array of formulas.TFormulaFunction. apply(Formula formula, boolean cache)Applies this function to a given formula.FormulaFormulaTransformation. apply(Formula formula, boolean cache)Returns the transformed formula.FormulaFormulaFactory. binaryOperator(FType type, Formula left, Formula right)Creates a new binary operator with a given type and two operands.protected voidFormulaFactory. clearCaches(Formula formula)Clears the transformation, function, and PB encoding cache for the given formula.FormulaFormulaFactory. cnf(Formula... clauses)Creates a new CNF from an array of clauses.protected booleanNAryOperator. compareOperands(Formula[] other)booleanBinaryOperator. containsNode(Formula formula)booleanConstant. containsNode(Formula formula)abstract booleanFormula. containsNode(Formula formula)Returnstrueif this formula contains a given node,falseotherwise.booleanLiteral. containsNode(Formula formula)booleanNAryOperator. containsNode(Formula formula)booleanNot. containsNode(Formula formula)booleanPBConstraint. containsNode(Formula formula)FormulaFormulaFactory. equivalence(Formula leftIn, Formula rightIn)Creates a new equivalence.protected ObjectFormulaFactory. functionCacheEntry(Formula formula, CacheEntry key)Returns an entry of the function cache for the given formula.FormulaFormulaFactory. implication(Formula leftIn, Formula rightIn)Creates a new implication.booleanFormula. implies(Formula other)Returns whether this formula implies the given other formula, i.e.FormulaFormulaFactory. importFormula(Formula formula)Imports a formula from another formula factory into this factory and returns it.booleanFormula. isEquivalentTo(Formula other)Returns whether this formula is equivalent to the given other formula, i.e.booleanFormula. isImpliedBy(Formula other)Returns whether this formula is implied by the given other formula, i.e.FormulaFormulaFactory. naryOperator(FType type, Formula... operands)Creates a new n-ary operator with a given type and a list of operands.FormulaFormulaFactory. not(Formula formula)Creates the negation of a given formula.longFormulaFactory. numberOfNodes(Formula formula)Returns the number of internal nodes of a given formula.FormulaFormulaFactory. or(Formula... operands)Creates a new disjunction from an array of formulas.protected TristateFormulaFactory. predicateCacheEntry(Formula formula, CacheEntry key)Returns an entry of the predicate cache for the given formula.protected voidFormulaFactory. setFunctionCacheEntry(Formula formula, CacheEntry key, Object value)Sets an entry in the function cache for the given formula.protected voidFormulaFactory. setPredicateCacheEntry(Formula formula, CacheEntry key, boolean value)Sets an entry in the predicate cache for the given formula.protected voidFormulaFactory. setPredicateCacheEntry(Formula formula, CacheEntry key, Tristate value)Sets an entry in the predicate cache for the given formula.voidFormula. setTransformationCacheEntry(CacheEntry key, Formula value)Sets an entry in the transformation cache of this formulaprotected voidFormulaFactory. setTransformationCacheEntry(Formula formula, CacheEntry key, Formula value)Sets an entry in the transformation cache for the given formula.StringFormulaFactory. string(Formula formula)Returns a string representation of a formula with this factories string representationStringFormulaFactory. string(Formula formula, FormulaStringRepresentation stringRepresentation)Returns a string representation of a formula with this factories string representationFormulaFormula. substitute(Variable variable, Formula formula)Performs a simultaneous substitution on this formula given a single mapping from variable to formula.booleanFormulaPredicate. test(Formula formula, boolean cache)Tests the predicate on a given formula.protected FormulaFormulaFactory. transformationCacheEntry(Formula formula, CacheEntry key)Returns an entry of the transformation cache for the given formula.Method parameters in org.logicng.formulas with type arguments of type Formula Modifier and Type Method Description FormulaFormulaFactory. and(Collection<? extends Formula> operands)Creates a new conjunction from a collection of formulas.FormulaFormulaFactory. cnf(Collection<? extends Formula> clauses)Creates a new CNF from a collection of clauses.FormulaFormulaFactory. naryOperator(FType type, Collection<? extends Formula> operands)Creates a new n-ary operator with a given type and a list of operands.FormulaFormulaFactory. or(Collection<? extends Formula> operands)Creates a new disjunction from a collection of formulas. -
Uses of Formula in org.logicng.formulas.printer
Methods in org.logicng.formulas.printer with parameters of type Formula Modifier and Type Method Description protected StringFormulaStringRepresentation. bracket(Formula formula)Returns a bracketed string version of a given formula.protected StringFormulaStringRepresentation. toInnerString(Formula formula)Returns the string representation of the given formula.StringLatexStringRepresentation. toInnerString(Formula formula)StringSortedStringRepresentation. toInnerString(Formula formula)Returns the sorted string representation of the given formula.protected StringUTF8StringRepresentation. toInnerString(Formula formula)StringFormulaStringRepresentation. toString(Formula formula)Returns the string representation of the given formula. -
Uses of Formula in org.logicng.functions
Methods in org.logicng.functions that return types with arguments of type Formula Modifier and Type Method Description LinkedHashSet<Formula>SubNodeFunction. apply(Formula formula, boolean cache)Methods in org.logicng.functions with parameters of type Formula Modifier and Type Method Description IntegerFormulaDepthFunction. apply(Formula formula, boolean cache)Map<Literal,Integer>LiteralProfileFunction. apply(Formula formula, boolean cache)SortedSet<Literal>LiteralsFunction. apply(Formula formula, boolean cache)SortedSet<Literal>MinimumPrimeImplicantFunction. apply(Formula formula, boolean cache)LongNumberOfAtomsFunction. apply(Formula formula, boolean cache)LongNumberOfNodesFunction. apply(Formula formula, boolean cache)LinkedHashSet<Formula>SubNodeFunction. apply(Formula formula, boolean cache)Map<Variable,Integer>VariableProfileFunction. apply(Formula formula, boolean cache)SortedSet<Variable>VariablesFunction. apply(Formula formula, boolean cache) -
Uses of Formula in org.logicng.graphs.algorithms
Methods in org.logicng.graphs.algorithms that return types with arguments of type Formula Modifier and Type Method Description static List<List<Formula>>ConnectedComponentsComputation. splitFormulasByComponent(Collection<Formula> formulas, Set<Set<Node<Variable>>> components)Split a list of formulas in their respective connected components.Method parameters in org.logicng.graphs.algorithms with type arguments of type Formula Modifier and Type Method Description static List<List<Formula>>ConnectedComponentsComputation. splitFormulasByComponent(Collection<Formula> formulas, Set<Set<Node<Variable>>> components)Split a list of formulas in their respective connected components. -
Uses of Formula in org.logicng.graphs.generators
Methods in org.logicng.graphs.generators with parameters of type Formula Modifier and Type Method Description static Hypergraph<Variable>HypergraphGenerator. fromCNF(Formula cnf)Generates a hypergraph from a CNF.static Hypergraph<Variable>HypergraphGenerator. fromCNF(Formula... cnf)Generates a hypergraph from a CNF given as a list of clauses.static Graph<Variable>ConstraintGraphGenerator. generateFromCnf(Formula formula)Deprecated.the constraint graph generation is not CNF specific.Method parameters in org.logicng.graphs.generators with type arguments of type Formula Modifier and Type Method Description static Hypergraph<Variable>HypergraphGenerator. fromCNF(List<Formula> cnf)Generates a hypergraph from a CNF given as a list of clauses.static Graph<Variable>ConstraintGraphGenerator. generateFromCnf(Collection<Formula> formulas)Deprecated.the constraint graph generation is not CNF specific.static Graph<Variable>ConstraintGraphGenerator. generateFromFormulas(Collection<Formula> formulas)Constructs the constraint graph. -
Uses of Formula in org.logicng.handlers
Methods in org.logicng.handlers with parameters of type Formula Modifier and Type Method Description default booleanFactorizationHandler. createdClause(Formula clause)This method is called every time a new clause is created. -
Uses of Formula in org.logicng.io.graphical.generators
Methods in org.logicng.io.graphical.generators that return types with arguments of type Formula Modifier and Type Method Description static GraphicalGeneratorBuilder<FormulaAstGraphicalGenerator,Formula>FormulaAstGraphicalGenerator. builder()Returns the builder for this generator.static GraphicalGeneratorBuilder<FormulaDagGraphicalGenerator,Formula>FormulaDagGraphicalGenerator. builder()Returns the builder for this generator.Methods in org.logicng.io.graphical.generators with parameters of type Formula Modifier and Type Method Description GraphicalRepresentationFormulaAstGraphicalGenerator. translate(Formula formula)Translates a given formula's AST into its graphical representation.GraphicalRepresentationFormulaDagGraphicalGenerator. translate(Formula formula)Translates a given formula's DAG into its graphical representation. -
Uses of Formula in org.logicng.io.parsers
Fields in org.logicng.io.parsers declared as Formula Modifier and Type Field Description FormulaLogicNGPropositionalParser.ConjContext. fFormulaLogicNGPropositionalParser.ConstantContext. fFormulaLogicNGPropositionalParser.DisjContext. fFormulaLogicNGPropositionalParser.EquivContext. fFormulaLogicNGPropositionalParser.FormulaContext. fFormulaLogicNGPropositionalParser.ImplContext. fFormulaLogicNGPropositionalParser.LitContext. fFormulaLogicNGPropositionalParser.SimpContext. fFormulaLogicNGPseudoBooleanParser.ComparisonContext. fFormulaLogicNGPseudoBooleanParser.ConjContext. fFormulaLogicNGPseudoBooleanParser.ConstantContext. fFormulaLogicNGPseudoBooleanParser.DisjContext. fFormulaLogicNGPseudoBooleanParser.EquivContext. fFormulaLogicNGPseudoBooleanParser.FormulaContext. fFormulaLogicNGPseudoBooleanParser.ImplContext. fFormulaLogicNGPseudoBooleanParser.LitContext. fFormulaLogicNGPseudoBooleanParser.SimpContext. fMethods in org.logicng.io.parsers that return Formula Modifier and Type Method Description FormulaLogicNGPropositionalParser. getParsedFormula()FormulaLogicNGPseudoBooleanParser. getParsedFormula()abstract FormulaParserWithFormula. getParsedFormula()Returns the parsed formula.FormulaFormulaParser. parse(InputStream inputStream)Parses and returns a given input stream.FormulaFormulaParser. parse(String in)Parses and returns a given string. -
Uses of Formula in org.logicng.io.readers
Methods in org.logicng.io.readers that return Formula Modifier and Type Method Description static FormulaFormulaReader. readPropositionalFormula(File file, FormulaFactory f)Reads a given file and returns the contained propositional formula.static FormulaFormulaReader. readPropositionalFormula(String fileName, FormulaFactory f)Reads a given file and returns the contained propositional formula.static FormulaFormulaReader. readPseudoBooleanFormula(File file, FormulaFactory f)Reads a given file and returns the contained pseudo-Boolean formula.static FormulaFormulaReader. readPseudoBooleanFormula(String fileName, FormulaFactory f)Reads a given file and returns the contained pseudo-Boolean formula.Methods in org.logicng.io.readers that return types with arguments of type Formula Modifier and Type Method Description static List<Formula>DimacsReader. readCNF(File file, FormulaFactory f)Reads a given DIMACS CNF file and returns the contained clauses as a list of formulas.static List<Formula>DimacsReader. readCNF(File file, FormulaFactory f, String prefix)Reads a given DIMACS CNF file and returns the contained clauses as a list of formulas.static List<Formula>DimacsReader. readCNF(String fileName, FormulaFactory f)Reads a given DIMACS CNF file and returns the contained clauses as a list of formulas.static List<Formula>DimacsReader. readCNF(String fileName, FormulaFactory f, String prefix)Reads a given DIMACS CNF file and returns the contained clauses as a list of formulas. -
Uses of Formula in org.logicng.io.writers
Methods in org.logicng.io.writers with parameters of type Formula Modifier and Type Method Description static voidFormulaDimacsFileWriter. write(String fileName, Formula formula, boolean writeMapping)Writes a given formula's internal data structure as a dimacs file.static voidFormulaDotFileWriter. write(File file, Formula formula, boolean alignLiterals)Deprecated.Writes a given formula's internal data structure as a dot file with the default style configuration.static voidFormulaDotFileWriter. write(String fileName, Formula formula, boolean alignLiterals)Deprecated.Writes a given formula's internal data structure as a dot file with the default style configuration.static voidFormulaWriter. write(File file, Formula formula, boolean splitAndMultiline)Writes a given formula to a file using the formula formatter of the formula's formula factory.static voidFormulaWriter. write(File file, Formula formula, boolean splitAndMultiline, FormulaStringRepresentation formatter)Writes a given formula to a file with a given formula formatter.static voidFormulaWriter. write(String fileName, Formula formula, boolean splitAndMultiline)Writes a given formula to a file using the formula formatter of the formula's formula factory.static voidFormulaWriter. write(String fileName, Formula formula, boolean splitAndMultiline, FormulaStringRepresentation formatter)Writes a given formula to a file with a given formula formatter. -
Uses of Formula in org.logicng.knowledgecompilation.bdds
Methods in org.logicng.knowledgecompilation.bdds that return Formula Modifier and Type Method Description FormulaBDD. cnf()Returns a CNF formula for this BDD.FormulaBDD. dnf()Returns a DNF formula for this BDD.FormulaBDD. toFormula()Returns a formula representation of this BDD.FormulaBDD. toFormula(boolean followPathsToTrue)Returns a formula representation of this BDD.Methods in org.logicng.knowledgecompilation.bdds with parameters of type Formula Modifier and Type Method Description static BDDBDDFactory. build(Formula formula)Builds a BDD for a given formula.static BDDBDDFactory. build(Formula formula, BDDKernel kernel)Builds a BDD for a given formula.static BDDBDDFactory. build(Formula formula, BDDKernel kernel, BDDHandler handler)Builds a BDD for a given formula. -
Uses of Formula in org.logicng.knowledgecompilation.bdds.datastructures
Methods in org.logicng.knowledgecompilation.bdds.datastructures that return Formula Modifier and Type Method Description FormulaBDDConstant. label()FormulaBDDNode. label()Returns the label of the node. -
Uses of Formula in org.logicng.knowledgecompilation.bdds.functions
Methods in org.logicng.knowledgecompilation.bdds.functions that return Formula Modifier and Type Method Description FormulaBDDCNFFunction. apply(BDD bdd)FormulaBDDDNFFunction. apply(BDD bdd)protected static FormulaBDDNormalFormFunction. compute(BDD bdd, boolean cnf)Computes a CNF/DNF from the given BDD. -
Uses of Formula in org.logicng.knowledgecompilation.bdds.jbuddy
Methods in org.logicng.knowledgecompilation.bdds.jbuddy that return Formula Modifier and Type Method Description FormulaBDDOperations. toFormula(int r, boolean followPathsToTrue)Returns a formula representation of this BDD.protected FormulaBDDOperations. toFormulaRec(int r, boolean followPathsToTrue) -
Uses of Formula in org.logicng.knowledgecompilation.bdds.orderings
Methods in org.logicng.knowledgecompilation.bdds.orderings with parameters of type Formula Modifier and Type Method Description List<Variable>BFSOrdering. getOrder(Formula formula)List<Variable>DFSOrdering. getOrder(Formula formula)List<Variable>ForceOrdering. getOrder(Formula formula)List<Variable>MaxToMinOrdering. getOrder(Formula formula)List<Variable>MinToMaxOrdering. getOrder(Formula formula)List<Variable>VariableOrderingProvider. getOrder(Formula formula)Generates a variable ordering for a given formula. -
Uses of Formula in org.logicng.knowledgecompilation.dnnf
Fields in org.logicng.knowledgecompilation.dnnf declared as Formula Modifier and Type Field Description protected FormulaDnnfCompiler. cnfprotected FormulaDnnfCompiler. nonUnitClausesprotected FormulaDnnfCompiler. unitClausesFields in org.logicng.knowledgecompilation.dnnf with type parameters of type Formula Modifier and Type Field Description protected Map<BitSet,Formula>DnnfCompiler. cacheprotected List<Formula>DnnfCompiler. leafResultOperandsMethods in org.logicng.knowledgecompilation.dnnf that return Formula Modifier and Type Method Description protected FormulaDnnfCompiler. cnf2Ddnnf(DTree tree)protected FormulaDnnfCompiler. cnf2Ddnnf(DTree tree, int currentShannons)protected FormulaDnnfCompiler. cnfAux(DTree tree, int currentShannons)FormulaDnnfCompiler. compile(DTreeGenerator generator)Performs the compilation using the given DTree generator.FormulaDnnfCompiler. compile(DTreeGenerator generator, DnnfCompilationHandler handler)Performs the compilation using the given DTree generator and the compilation handler.protected FormulaDnnfCompiler. compile(DTree dTree, DnnfCompilationHandler handler)protected FormulaDnnfCompiler. conjoin(Formula implied, DTreeNode tree, int currentShannons)protected FormulaDnnfCompiler. leaf2Ddnnf(DTreeLeaf leaf)FormulaDnnfMiniSatStyleSolver. newlyImplied(BitSet knownVariables)FormulaDnnfSatSolver. newlyImplied(BitSet knownVariables)Returns a conjunction of all literals in the known variables which were propagated by the last UP.protected FormulaDnnfCompiler. newlyImpliedLiterals(BitSet knownVariables)protected FormulaDnnfFactory. simplifyFormula(Formula formula)Methods in org.logicng.knowledgecompilation.dnnf that return types with arguments of type Formula Modifier and Type Method Description protected Pair<Formula,Formula>DnnfCompiler. initializeClauses()protected Pair<Formula,Formula>DnnfCompiler. initializeClauses()Methods in org.logicng.knowledgecompilation.dnnf with parameters of type Formula Modifier and Type Method Description voidDnnfMiniSatStyleSolver. add(Formula formula)voidDnnfSatSolver. add(Formula formula)Adds a formula to the solver.DnnfDnnfFactory. compile(Formula formula)Compiles the given formula to a DNNF instance.protected intDnnfCompiler. computeMaxClauseSize(Formula cnf)protected FormulaDnnfCompiler. conjoin(Formula implied, DTreeNode tree, int currentShannons)protected FormulaDnnfFactory. simplifyFormula(Formula formula)Constructors in org.logicng.knowledgecompilation.dnnf with parameters of type Formula Constructor Description DnnfCompiler(Formula formula)Constructs a new DNNF compiler for the given formula. -
Uses of Formula in org.logicng.knowledgecompilation.dnnf.datastructures
Methods in org.logicng.knowledgecompilation.dnnf.datastructures that return Formula Modifier and Type Method Description FormulaDnnf. formula()Returns the formula of the DNNF.Constructors in org.logicng.knowledgecompilation.dnnf.datastructures with parameters of type Formula Constructor Description Dnnf(SortedSet<Variable> originalVariables, Formula dnnf)Constructs a new DNNF. -
Uses of Formula in org.logicng.knowledgecompilation.dnnf.datastructures.dtree
Fields in org.logicng.knowledgecompilation.dnnf.datastructures.dtree declared as Formula Modifier and Type Field Description protected FormulaDTreeLeaf. clauseMethods in org.logicng.knowledgecompilation.dnnf.datastructures.dtree that return Formula Modifier and Type Method Description FormulaDTreeLeaf. clause()Returns the leaf's clause.Methods in org.logicng.knowledgecompilation.dnnf.datastructures.dtree with parameters of type Formula Modifier and Type Method Description DTreeDTreeGenerator. generate(Formula cnf)Generates a DTree for the given CNF.DTreeMinFillDTreeGenerator. generate(Formula cnf)DTreeEliminatingOrderDTreeGenerator. generateWithEliminatingOrder(Formula cnf, List<Variable> ordering)Generates the DTreeConstructors in org.logicng.knowledgecompilation.dnnf.datastructures.dtree with parameters of type Formula Constructor Description DTreeLeaf(int id, Formula clause)Constructs a new leaf with the given id and clause.Graph(Formula cnf)Computes the DTree from the given CNF. -
Uses of Formula in org.logicng.knowledgecompilation.dnnf.functions
Methods in org.logicng.knowledgecompilation.dnnf.functions with parameters of type Formula Modifier and Type Method Description RESULTDnnfFunction. apply(SortedSet<Variable> originalVariables, Formula formula)Applies this function to a given DNNFBigIntegerDnnfModelCountFunction. apply(SortedSet<Variable> originalVariables, Formula formula) -
Uses of Formula in org.logicng.modelcounting
Method parameters in org.logicng.modelcounting with type arguments of type Formula Modifier and Type Method Description static BigIntegerModelCounter. count(Collection<Formula> formulas, SortedSet<Variable> variables)Computes the model count for a given set of formulas (interpreted as conjunction) and a set of relevant variables. -
Uses of Formula in org.logicng.predicates
Methods in org.logicng.predicates with parameters of type Formula Modifier and Type Method Description booleanAIGPredicate. test(Formula formula, boolean cache)booleanCNFPredicate. test(Formula formula, boolean cache)booleanContainsPBCPredicate. test(Formula formula, boolean cache)booleanDNFPredicate. test(Formula formula, boolean cache)booleanEvaluatesToConstantPredicate. test(Formula formula, boolean caching)Checks if the formula evaluates to false (or true) when the (partial) assignment is applied.booleanNNFPredicate. test(Formula formula, boolean cache)booleanTermPredicate. test(Formula formula, boolean cache) -
Uses of Formula in org.logicng.predicates.satisfiability
Methods in org.logicng.predicates.satisfiability with parameters of type Formula Modifier and Type Method Description booleanContingencyPredicate. test(Formula formula, boolean cache)booleanContradictionPredicate. test(Formula formula, boolean cache)booleanSATPredicate. test(Formula formula, boolean cache)booleanTautologyPredicate. test(Formula formula, boolean cache) -
Uses of Formula in org.logicng.primecomputation
Methods in org.logicng.primecomputation with parameters of type Formula Modifier and Type Method Description PrimeResultPrimeCompiler. compute(Formula formula, PrimeResult.CoverageType type)Computes prime implicants and prime implicates for a given formula.PrimeResultPrimeCompiler. compute(Formula formula, PrimeResult.CoverageType type, OptimizationHandler handler)Computes prime implicants and prime implicates for a given formula.Constructors in org.logicng.primecomputation with parameters of type Formula Constructor Description NaivePrimeReduction(Formula formula)Creates a new prime implicant computation for a given formula. -
Uses of Formula in org.logicng.propositions
Methods in org.logicng.propositions that return Formula Modifier and Type Method Description FormulaExtendedProposition. formula()abstract FormulaProposition. formula()Returns the formula of this proposition.FormulaStandardProposition. formula()Constructors in org.logicng.propositions with parameters of type Formula Constructor Description ExtendedProposition(T backpack, Formula formula)Constructs a new extended proposition for a single formula.StandardProposition(String description, Formula formula)Constructs a new proposition for a single formulas.StandardProposition(Formula formula)Constructs a new proposition for a single formulas. -
Uses of Formula in org.logicng.pseudobooleans
Methods in org.logicng.pseudobooleans that return types with arguments of type Formula Modifier and Type Method Description List<Formula>PBAdderNetworks. encode(LNGVector<Literal> lits, LNGIntVector coeffs, int rhs, List<Formula> formula)List<Formula>PBBinaryMerge. encode(LNGVector<Literal> lts, LNGIntVector cffs, int rhs, List<Formula> formula)protected List<Formula>PBEncoder. encode(Literal[] lits, int[] coeffs, int rhs)Builds a pseudo Boolean constraint of the formc_1 * lit_1 + c_2 * lit_2 + ... + c_n * lit_n >= k.List<Formula>PBEncoder. encode(PBConstraint constraint)Encodes a pseudo-Boolean constraint and returns its CNF encoding.List<Formula>PBEncoding. encode(LNGVector<Literal> lits, LNGIntVector coeffs, int rhs, List<Formula> result)Encodes a pseudo-Boolean constraint and returns its CNF encoding.List<Formula>PBSWC. encode(LNGVector<Literal> lits, LNGIntVector coeffs, int rhs, List<Formula> result)Method parameters in org.logicng.pseudobooleans with type arguments of type Formula Modifier and Type Method Description List<Formula>PBAdderNetworks. encode(LNGVector<Literal> lits, LNGIntVector coeffs, int rhs, List<Formula> formula)List<Formula>PBBinaryMerge. encode(LNGVector<Literal> lts, LNGIntVector cffs, int rhs, List<Formula> formula)List<Formula>PBEncoding. encode(LNGVector<Literal> lits, LNGIntVector coeffs, int rhs, List<Formula> result)Encodes a pseudo-Boolean constraint and returns its CNF encoding.List<Formula>PBSWC. encode(LNGVector<Literal> lits, LNGIntVector coeffs, int rhs, List<Formula> result) -
Uses of Formula in org.logicng.solvers
Methods in org.logicng.solvers with parameters of type Formula Modifier and Type Method Description voidMiniSat. add(Formula formula, Proposition proposition)voidSATSolver. add(Formula formula)Adds a formula to the solver.abstract voidSATSolver. add(Formula formula, Proposition proposition)Adds a formula to the solver.protected voidMaxSATSolver. addClause(Formula formula, int weight)Adds a clause to the solver.protected voidMiniSat. addClause(Formula formula, Proposition proposition)protected abstract voidSATSolver. addClause(Formula formula, Proposition proposition)Adds a formula which must be a clause to the solver.protected voidMaxSATSolver. addCNF(Formula formula, int weight)Adds a formula which is already in CNF to the solver.protected voidMiniSat. addFormulaAsCNF(Formula formula, Proposition proposition)voidMaxSATSolver. addHardFormula(Formula formula)Adds a new hard formula to the solver.voidMaxSATSolver. addSoftFormula(Formula formula, int weight)Adds a new soft formula to the solver.voidMiniSat. addWithoutUnknown(Formula formula)abstract voidSATSolver. addWithoutUnknown(Formula formula)Deprecated.Due to simplifications of formulas in LogicNG the solver might not know all original variables of the formulas added.voidSATSolver. addWithRelaxation(Variable relaxationVar, Formula formula)Adds a formula to the solver by using the given relaxation variable, i.e.Method parameters in org.logicng.solvers with type arguments of type Formula Modifier and Type Method Description voidSATSolver. add(Collection<? extends Formula> formulas)Adds a collection of formulas to the solver.voidSATSolver. addWithRelaxation(Variable relaxationVar, Collection<? extends Formula> formulas)Adds a collection of formulas to the solver by using the given relaxation variable, i.e. -
Uses of Formula in org.logicng.solvers.functions
Methods in org.logicng.solvers.functions that return types with arguments of type Formula Modifier and Type Method Description Set<Formula>FormulaOnSolverFunction. apply(MiniSat solver, Consumer<Tristate> resultSetter) -
Uses of Formula in org.logicng.transformations
Methods in org.logicng.transformations that return Formula Modifier and Type Method Description FormulaAIGTransformation. apply(Formula formula, boolean cache)FormulaAnonymizer. apply(Formula formula, boolean cache)FormulaFormulaFactoryImporter. apply(Formula formula, boolean cache)FormulaLiteralSubstitution. apply(Formula formula, boolean cache)FormulaNNFTransformation. apply(Formula formula, boolean cache)FormulaPureExpansionTransformation. apply(Formula formula, boolean cache)FormulaUnitPropagation. apply(Formula formula, boolean cache)protected FormulaBDDNormalFormTransformation. compute(Formula formula, boolean cnf, boolean cache)Computes the CNF or DNF from the given formula by using a BDD.protected static FormulaCanonicalEnumeration. compute(Formula formula, boolean cnf)Constructs the canonical CNF/DNF of the given formula by enumerating the falsifying/satisfying assignments.Methods in org.logicng.transformations with parameters of type Formula Modifier and Type Method Description FormulaAIGTransformation. apply(Formula formula, boolean cache)FormulaAnonymizer. apply(Formula formula, boolean cache)FormulaFormulaFactoryImporter. apply(Formula formula, boolean cache)FormulaLiteralSubstitution. apply(Formula formula, boolean cache)FormulaNNFTransformation. apply(Formula formula, boolean cache)FormulaPureExpansionTransformation. apply(Formula formula, boolean cache)FormulaUnitPropagation. apply(Formula formula, boolean cache)protected FormulaBDDNormalFormTransformation. compute(Formula formula, boolean cnf, boolean cache)Computes the CNF or DNF from the given formula by using a BDD.protected static FormulaCanonicalEnumeration. compute(Formula formula, boolean cnf)Constructs the canonical CNF/DNF of the given formula by enumerating the falsifying/satisfying assignments.protected static UBTree<Literal>Subsumption. generateSubsumedUBTree(Formula formula)Generates a UBTree from the formulas operands (clauses in CNF, minterms in DNF) where all subsumed operands are already deleted. -
Uses of Formula in org.logicng.transformations.cnf
Methods in org.logicng.transformations.cnf that return Formula Modifier and Type Method Description protected FormulaCNFEncoder. advancedEncoding(Formula formula)Encodes the given formula to CNF by first trying to use Factorization for the single sub-formulas.FormulaBDDCNFTransformation. apply(Formula formula, boolean cache)FormulaCanonicalCNFEnumeration. apply(Formula formula, boolean cache)FormulaCNFFactorization. apply(Formula formula, boolean cache)FormulaCNFSubsumption. apply(Formula formula, boolean cache)FormulaPlaistedGreenbaumTransformation. apply(Formula formula, boolean cache)FormulaTseitinTransformation. apply(Formula formula, boolean cache)FormulaCNFEncoder. encode(Formula formula)Encodes a formula to CNF.protected FormulaCNFEncoder. singleAdvancedEncoding(Formula formula)Methods in org.logicng.transformations.cnf with parameters of type Formula Modifier and Type Method Description voidPlaistedGreenbaumTransformationSolver. addCNFtoSolver(Formula formula, Proposition proposition)Adds the CNF of the given formula (and its optional proposition) to the solver,protected FormulaCNFEncoder. advancedEncoding(Formula formula)Encodes the given formula to CNF by first trying to use Factorization for the single sub-formulas.FormulaBDDCNFTransformation. apply(Formula formula, boolean cache)FormulaCanonicalCNFEnumeration. apply(Formula formula, boolean cache)FormulaCNFFactorization. apply(Formula formula, boolean cache)FormulaCNFSubsumption. apply(Formula formula, boolean cache)FormulaPlaistedGreenbaumTransformation. apply(Formula formula, boolean cache)FormulaTseitinTransformation. apply(Formula formula, boolean cache)booleanCNFEncoder.AdvancedFactorizationHandler. createdClause(Formula clause)FormulaCNFEncoder. encode(Formula formula)Encodes a formula to CNF.protected FormulaCNFEncoder. singleAdvancedEncoding(Formula formula) -
Uses of Formula in org.logicng.transformations.dnf
Methods in org.logicng.transformations.dnf that return Formula Modifier and Type Method Description FormulaBDDDNFTransformation. apply(Formula formula, boolean cache)FormulaCanonicalDNFEnumeration. apply(Formula formula, boolean cache)FormulaDNFFactorization. apply(Formula formula, boolean cache)FormulaDNFSubsumption. apply(Formula formula, boolean cache)Methods in org.logicng.transformations.dnf with parameters of type Formula Modifier and Type Method Description FormulaBDDDNFTransformation. apply(Formula formula, boolean cache)FormulaCanonicalDNFEnumeration. apply(Formula formula, boolean cache)FormulaDNFFactorization. apply(Formula formula, boolean cache)FormulaDNFSubsumption. apply(Formula formula, boolean cache) -
Uses of Formula in org.logicng.transformations.qe
Methods in org.logicng.transformations.qe that return Formula Modifier and Type Method Description FormulaExistentialQuantifierElimination. apply(Formula formula, boolean cache)FormulaUniversalQuantifierElimination. apply(Formula formula, boolean cache)Methods in org.logicng.transformations.qe with parameters of type Formula Modifier and Type Method Description FormulaExistentialQuantifierElimination. apply(Formula formula, boolean cache)FormulaUniversalQuantifierElimination. apply(Formula formula, boolean cache) -
Uses of Formula in org.logicng.transformations.qmc
Fields in org.logicng.transformations.qmc with type parameters of type Formula Modifier and Type Field Description protected Vector<Formula>TermTable. columnHeadersprotected List<Formula>Term. mintermsMethods in org.logicng.transformations.qmc that return Formula Modifier and Type Method Description static FormulaQuineMcCluskeyAlgorithm. compute(List<Assignment> models, FormulaFactory f)Computes a minimized DNF for a given set of models.static FormulaQuineMcCluskeyAlgorithm. compute(Formula formula)Computes a minimized DNF for a given formula.static FormulaQuineMcCluskeyAlgorithm. compute(Formula formula, Collection<Variable> relevantVariables)Computes a minimized DNF for a given formula projected to a given set of variables.Methods in org.logicng.transformations.qmc that return types with arguments of type Formula Modifier and Type Method Description protected Vector<Formula>TermTable. initializeColumnHeaders(LinkedHashSet<Term> terms)Initialize the column headers with the mintermsMethods in org.logicng.transformations.qmc with parameters of type Formula Modifier and Type Method Description static FormulaQuineMcCluskeyAlgorithm. compute(Formula formula)Computes a minimized DNF for a given formula.static FormulaQuineMcCluskeyAlgorithm. compute(Formula formula, Collection<Variable> relevantVariables)Computes a minimized DNF for a given formula projected to a given set of variables. -
Uses of Formula in org.logicng.transformations.simplification
Methods in org.logicng.transformations.simplification that return Formula Modifier and Type Method Description FormulaAdvancedSimplifier. apply(Formula formula, boolean cache)FormulaBackboneSimplifier. apply(Formula formula, boolean cache)FormulaDistributiveSimplifier. apply(Formula formula, boolean cache)FormulaFactorOutSimplifier. apply(Formula formula, boolean cache)FormulaNegationSimplifier. apply(Formula formula, boolean cache)Methods in org.logicng.transformations.simplification with parameters of type Formula Modifier and Type Method Description FormulaAdvancedSimplifier. apply(Formula formula, boolean cache)FormulaBackboneSimplifier. apply(Formula formula, boolean cache)IntegerDefaultRatingFunction. apply(Formula formula, boolean cache)FormulaDistributiveSimplifier. apply(Formula formula, boolean cache)FormulaFactorOutSimplifier. apply(Formula formula, boolean cache)FormulaNegationSimplifier. apply(Formula formula, boolean cache) -
Uses of Formula in org.logicng.util
Methods in org.logicng.util with type parameters of type Formula Modifier and Type Method Description static <C extends Collection<Formula>>
CFormulaHelper. negate(Collection<? extends Formula> formulas, Supplier<C> collectionFactory)Returns the negation of the given formulas.Methods in org.logicng.util that return Formula Modifier and Type Method Description FormulaFormulaRandomizer. amo()Returns a random at-most-one constraint.FormulaFormulaRandomizer. and(int maxDepth)Returns a random conjunction with a given maximal depth.FormulaFormulaRandomizer. atom()Returns a random atom.FormulaFormulaRandomizer. cc()Returns a random cardinality constraint.FormulaFormulaRandomizer. equiv(int maxDepth)Returns a random equivalence with a given maximal depth.FormulaFormulaRandomizer. exo()Returns a random exactly-one constraint.FormulaFormulaRandomizer. formula(int maxDepth)Returns a random formula with a given maximal depth.FormulaFormulaRandomizer. impl(int maxDepth)Returns a random implication with a given maximal depth.FormulaFormulaRandomizer. not(int maxDepth)Returns a random negation with a given maximal depth.FormulaFormulaRandomizer. or(int maxDepth)Returns a random disjunction with a given maximal depth.FormulaFormulaRandomizer. pbc()Returns a random pseudo boolean constraint.Methods in org.logicng.util that return types with arguments of type Formula Modifier and Type Method Description List<Formula>FormulaRandomizer. constraintSet(int numConstraints, int maxDepth)Returns a list ofnumConstraintsrandom formula with a given maximal depth.List<Formula>FormulaCornerCases. cornerCases()Generates corner cases for all operators.static List<Formula>FormulaHelper. splitTopLevelAnd(Formula formula)Splits the top levelAndif possible.Methods in org.logicng.util with parameters of type Formula Modifier and Type Method Description static SortedSet<Literal>FormulaHelper. literals(Formula... formulas)Returns all literals occurring in the given formulas.static List<Formula>FormulaHelper. splitTopLevelAnd(Formula formula)Splits the top levelAndif possible.static SortedSet<Variable>FormulaHelper. variables(Formula... formulas)Returns all variables occurring in the given formulas.Method parameters in org.logicng.util with type arguments of type Formula Modifier and Type Method Description static SortedSet<Literal>FormulaHelper. literals(Collection<? extends Formula> formulas)Returns all literals occurring in the given formulas.static <C extends Collection<Formula>>
CFormulaHelper. negate(Collection<? extends Formula> formulas, Supplier<C> collectionFactory)Returns the negation of the given formulas.static SortedSet<Variable>FormulaHelper. variables(Collection<? extends Formula> formulas)Returns all variables occurring in the given formulas.
-