Search in sources :

Example 96 with Expression

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

the class MED001 method biguanide_effect.

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

Example 97 with Expression

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

the class MED001 method ex_cure.

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

Example 98 with Expression

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

the class MED001 method trans_ax1.

/**
 * Returns the trans_ax1 axiom.
 *
 * @return trans_ax1
 */
public final Formula trans_ax1() {
    final Variable x0 = Variable.unary("X0");
    final Expression x1 = UNIV.difference(x0.join(gt));
    final Formula f0 = x0.in(s0).and(x1.in(conditionnormo).not());
    final Formula f1 = x1.intersection(s1).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)

Example 99 with Expression

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

the class MED001 method normo.

/**
 * Returns the normo axiom.
 *
 * @return normo
 */
public final Formula normo() {
    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));
    final Formula f1 = x1.in(releaselg).not().and(x0.in(bcapacitysn)).and(x0.in(qilt27).not()).and(x0.join(gt).in(conditionhyper));
    final Formula f2 = x1.in(releaselg).not().or(x1.in(uptakelg)).and(x0.in(bcapacitysn)).and(x1.in(bsecretioni)).and(x0.join(gt).in(conditionhyper));
    final Formula f3 = x1.in(uptakelg).and(x1.in(uptakepg)).and(x0.in(bcapacityex)).and(x0.join(gt).in(conditionhyper));
    return x1.in(conditionnormo).implies(f0.or(f1).or(f2).or(f3)).forAll(x0.oneOf(UNIV));
}
Also used : Formula(kodkod.ast.Formula) Variable(kodkod.ast.Variable) Expression(kodkod.ast.Expression)

Example 100 with Expression

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

the class MED001 method uptake_completion.

/**
 * Returns the uptake_completion axiom.
 *
 * @return uptake_completion
 */
public final Formula uptake_completion() {
    final Variable x0 = Variable.unary("X0");
    final Expression x1 = UNIV.difference(x0.join(gt));
    final Formula f0 = x1.in(releaselg).not();
    return f0.implies(x1.in(uptakelg)).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