Search in sources :

Example 61 with Expression

use of kodkod.ast.Expression in project org.alloytools.alloy by AlloyTools.

the class MED001 method sn_cure_2.

/**
 * Returns the sn_cure_2 axiom.
 *
 * @return sn_cure_2
 */
public final Formula sn_cure_2() {
    final Variable x0 = Variable.unary("X0");
    final Expression x1 = UNIV.difference(x0.join(gt));
    final Formula f0 = x1.in(releaselg).not().and(x0.in(bcapacitysn)).and(x0.in(qilt27).not()).and(x0.join(gt).in(conditionhyper));
    return f0.implies(x1.in(conditionnormo)).forAll(x0.oneOf(UNIV));
}
Also used : Formula(kodkod.ast.Formula) Variable(kodkod.ast.Variable) Expression(kodkod.ast.Expression)

Example 62 with Expression

use of kodkod.ast.Expression in project org.alloytools.alloy by AlloyTools.

the class MED001 method sn_cure_1.

/**
 * Returns the sn_cure_1 axiom.
 *
 * @return sn_cure_1
 */
public final Formula sn_cure_1() {
    final Variable x0 = Variable.unary("X0");
    final Expression x1 = UNIV.difference(x0.join(gt));
    final Formula f0 = x1.in(bsecretioni).and(x0.in(bcapacitysn)).and(x0.in(qilt27)).and(x0.join(gt).in(conditionhyper));
    return f0.implies(x1.in(conditionnormo)).forAll(x0.oneOf(UNIV));
}
Also used : Formula(kodkod.ast.Formula) Variable(kodkod.ast.Variable) Expression(kodkod.ast.Expression)

Example 63 with Expression

use of kodkod.ast.Expression in project org.alloytools.alloy by AlloyTools.

the class MED001 method su_completion.

/**
 * Returns the su_completion axiom.
 *
 * @return su_completion
 */
public final Formula su_completion() {
    final Variable x0 = Variable.unary("X0");
    final Expression x1 = UNIV.difference(x0.join(gt));
    final Formula f0 = x1.in(bsecretioni);
    return f0.implies(x1.in(drugsu).and(x0.in(bcapacityex).not())).forAll(x0.oneOf(UNIV));
}
Also used : Formula(kodkod.ast.Formula) Variable(kodkod.ast.Variable) Expression(kodkod.ast.Expression)

Example 64 with Expression

use of kodkod.ast.Expression in project org.alloytools.alloy by AlloyTools.

the class MED001 method ne_cure.

/**
 * Returns the ne_cure axiom.
 *
 * @return ne_cure
 */
public final Formula ne_cure() {
    final Variable x0 = Variable.unary("X0");
    final Expression x1 = UNIV.difference(x0.join(gt));
    final Formula f0 = x1.in(releaselg).not().or(x1.in(uptakepg)).and(x0.in(bcapacityne)).and(x1.in(bsecretioni)).and(x0.join(gt).in(conditionhyper));
    return f0.implies(x1.in(conditionnormo)).forAll(x0.oneOf(UNIV));
}
Also used : Formula(kodkod.ast.Formula) Variable(kodkod.ast.Variable) Expression(kodkod.ast.Expression)

Example 65 with Expression

use of kodkod.ast.Expression in project org.alloytools.alloy by AlloyTools.

the class MED001 method trans_ax2.

/**
 * Returns the trans_ax2 axiom.
 *
 * @return trans_ax2
 */
public final Formula trans_ax2() {
    final Variable x0 = Variable.unary("X0");
    final Expression x1 = UNIV.difference(x0.join(gt));
    final Formula f0 = x0.in(s1).and(x1.in(conditionnormo).not());
    final Formula f1 = x1.intersection(s2).intersection(bcapacityne.union(bcapacityex)).some().and(x1.join(gt).in(conditionhyper));
    return f0.implies(f1).forAll(x0.oneOf(UNIV));
}
Also used : Formula(kodkod.ast.Formula) Variable(kodkod.ast.Variable) Expression(kodkod.ast.Expression)

Aggregations

Expression (kodkod.ast.Expression)127 Formula (kodkod.ast.Formula)95 Variable (kodkod.ast.Variable)80 IntExpression (kodkod.ast.IntExpression)49 Relation (kodkod.ast.Relation)26 BinaryExpression (kodkod.ast.BinaryExpression)22 Decls (kodkod.ast.Decls)22 Bounds (kodkod.instance.Bounds)21 TupleSet (kodkod.instance.TupleSet)20 Universe (kodkod.instance.Universe)20 SumExpression (kodkod.ast.SumExpression)19 TupleFactory (kodkod.instance.TupleFactory)19 Solution (kodkod.engine.Solution)17 QuantifiedFormula (kodkod.ast.QuantifiedFormula)14 Solver (kodkod.engine.Solver)14 BinaryIntExpression (kodkod.ast.BinaryIntExpression)13 ConstantExpression (kodkod.ast.ConstantExpression)13 IfExpression (kodkod.ast.IfExpression)13 IfIntExpression (kodkod.ast.IfIntExpression)13 NaryExpression (kodkod.ast.NaryExpression)13