- java.lang.Object
-
- org.logicng.transformations.qe.UniversalQuantifierElimination
-
- All Implemented Interfaces:
FormulaTransformation
public final class UniversalQuantifierElimination extends Object implements FormulaTransformation
This transformation eliminates a number of universally quantified variables by replacing them with the Shannon expansion. Ifxis eliminated from a formulaf, the resulting formula isf[true/x] & f[false/x].This transformation cannot be cached since it is dependent on the set of literals to eliminate.
- Since:
- 1.0
- Version:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description UniversalQuantifierElimination(Collection<Variable> variables)Constructs a new universal quantifier elimination for a given collection of variables.UniversalQuantifierElimination(Variable... variables)Constructs a new universal quantifier elimination for the given variables.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Formulaapply(Formula formula, boolean cache)Returns the transformed formula.
-
-
-
Constructor Detail
-
UniversalQuantifierElimination
public UniversalQuantifierElimination(Variable... variables)
Constructs a new universal quantifier elimination for the given variables.- Parameters:
variables- the variables
-
UniversalQuantifierElimination
public UniversalQuantifierElimination(Collection<Variable> variables)
Constructs a new universal quantifier elimination for a given collection of variables.- Parameters:
variables- the collection of variables
-
-
Method Detail
-
apply
public Formula apply(Formula formula, boolean cache)
Description copied from interface:FormulaTransformationReturns the transformed formula.- Specified by:
applyin interfaceFormulaTransformation- Parameters:
formula- the input formulacache- indicated whether the result (and associated predicates) should be cached in the formula's cache.- Returns:
- the transformed formula
-
-