Search in sources :

Example 1 with IntensionalSetFalseConditionToEmptySetSimplifier

use of com.sri.ai.grinder.sgdpllt.library.set.IntensionalSetFalseConditionToEmptySetSimplifier in project aic-expresso by aic-sri-international.

the class IntensionalSetFalseConditionToEmptySetSimplifierTest method setUp.

@Before
public void setUp() {
    context = new TrueContext(new CompoundTheory(new DifferenceArithmeticTheory(false, false), new TupleTheory()));
    IntegerInterval nType = new IntegerInterval(1, 10);
    context = (Context) GrinderUtil.extendRegistryWith(map("N", nType.toString()), Arrays.asList(nType), context);
    simplifier = new IntensionalSetFalseConditionToEmptySetSimplifier();
}
Also used : DifferenceArithmeticTheory(com.sri.ai.grinder.sgdpllt.theory.differencearithmetic.DifferenceArithmeticTheory) IntegerInterval(com.sri.ai.expresso.type.IntegerInterval) CompoundTheory(com.sri.ai.grinder.sgdpllt.theory.compound.CompoundTheory) TrueContext(com.sri.ai.grinder.sgdpllt.core.TrueContext) TupleTheory(com.sri.ai.grinder.sgdpllt.theory.tuple.TupleTheory) IntensionalSetFalseConditionToEmptySetSimplifier(com.sri.ai.grinder.sgdpllt.library.set.IntensionalSetFalseConditionToEmptySetSimplifier) Before(org.junit.Before)

Aggregations

IntegerInterval (com.sri.ai.expresso.type.IntegerInterval)1 TrueContext (com.sri.ai.grinder.sgdpllt.core.TrueContext)1 IntensionalSetFalseConditionToEmptySetSimplifier (com.sri.ai.grinder.sgdpllt.library.set.IntensionalSetFalseConditionToEmptySetSimplifier)1 CompoundTheory (com.sri.ai.grinder.sgdpllt.theory.compound.CompoundTheory)1 DifferenceArithmeticTheory (com.sri.ai.grinder.sgdpllt.theory.differencearithmetic.DifferenceArithmeticTheory)1 TupleTheory (com.sri.ai.grinder.sgdpllt.theory.tuple.TupleTheory)1 Before (org.junit.Before)1