Search in sources :

Example 6 with Exhaustive

use of com.sri.ai.grinder.rewriter.core.Exhaustive in project aic-expresso by aic-sri-international.

the class AbstractTheory method setAllRewriters.

private void setAllRewriters(TopRewriter topRewriter) {
    this.topRewriter = topRewriter;
    this.rewriter = new Recursive(new Exhaustive(topRewriter));
    this.completeRewriter = new CompleteRewriter(topRewriter);
}
Also used : Exhaustive(com.sri.ai.grinder.rewriter.core.Exhaustive) Recursive(com.sri.ai.grinder.rewriter.core.Recursive) CompleteRewriter(com.sri.ai.grinder.rewriter.help.CompleteRewriter)

Example 7 with Exhaustive

use of com.sri.ai.grinder.rewriter.core.Exhaustive in project aic-expresso by aic-sri-international.

the class AssignmentsSamplingIteratorTest method setUp.

@Before
public void setUp() {
    // Make tests repeatable
    random = new Random(1);
    conditionRewriter = new Recursive(new Exhaustive(new BruteForceCommonInterpreter()));
    context = new TrueContext(new CompoundTheory(new DifferenceArithmeticTheory(false, false), new LinearRealArithmeticTheory(false, false), new EqualityTheory(false, false), new PropositionalTheory()));
}
Also used : BruteForceCommonInterpreter(com.sri.ai.grinder.interpreter.BruteForceCommonInterpreter) EqualityTheory(com.sri.ai.grinder.theory.equality.EqualityTheory) Random(java.util.Random) Exhaustive(com.sri.ai.grinder.rewriter.core.Exhaustive) DifferenceArithmeticTheory(com.sri.ai.grinder.theory.differencearithmetic.DifferenceArithmeticTheory) LinearRealArithmeticTheory(com.sri.ai.grinder.theory.linearrealarithmetic.LinearRealArithmeticTheory) PropositionalTheory(com.sri.ai.grinder.theory.propositional.PropositionalTheory) Recursive(com.sri.ai.grinder.rewriter.core.Recursive) CompoundTheory(com.sri.ai.grinder.theory.compound.CompoundTheory) TrueContext(com.sri.ai.grinder.core.TrueContext) Before(org.junit.Before)

Aggregations

Exhaustive (com.sri.ai.grinder.rewriter.core.Exhaustive)7 Recursive (com.sri.ai.grinder.rewriter.core.Recursive)6 Rewriter (com.sri.ai.grinder.rewriter.api.Rewriter)4 Expression (com.sri.ai.expresso.api.Expression)3 TrueContext (com.sri.ai.grinder.core.TrueContext)2 TopRewriter (com.sri.ai.grinder.rewriter.api.TopRewriter)2 CompoundTheory (com.sri.ai.grinder.theory.compound.CompoundTheory)2 DifferenceArithmeticTheory (com.sri.ai.grinder.theory.differencearithmetic.DifferenceArithmeticTheory)2 PropositionalTheory (com.sri.ai.grinder.theory.propositional.PropositionalTheory)2 Context (com.sri.ai.grinder.api.Context)1 AssignmentsSamplingIterator (com.sri.ai.grinder.helper.AssignmentsSamplingIterator)1 BruteForceCommonInterpreter (com.sri.ai.grinder.interpreter.BruteForceCommonInterpreter)1 ForAllRewriter (com.sri.ai.grinder.library.boole.ForAllRewriter)1 ThereExistsRewriter (com.sri.ai.grinder.library.boole.ThereExistsRewriter)1 CommonSimplifier (com.sri.ai.grinder.library.commonrewriters.CommonSimplifier)1 MaxRewriter (com.sri.ai.grinder.library.number.MaxRewriter)1 ProductRewriter (com.sri.ai.grinder.library.number.ProductRewriter)1 SummationRewriter (com.sri.ai.grinder.library.number.SummationRewriter)1 PrettySimplifier (com.sri.ai.grinder.library.pretty.PrettySimplifier)1 ProceduralAttachments.getProceduralAttachmentsTopRewriter (com.sri.ai.grinder.library.proceduralattachment.ProceduralAttachments.getProceduralAttachmentsTopRewriter)1