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));
}
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));
}
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));
}
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));
}
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));
}
Aggregations