Search in sources :

Example 91 with Variable

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

the class SET948 method antisymmetry_r2_hidden.

/**
 * Returns antisymmetry_r2_hidden axiom.
 *
 * @return antisymmetry_r2_hidden
 */
public final Formula antisymmetry_r2_hidden() {
    final Variable a = Variable.unary("A");
    final Variable b = Variable.unary("B");
    return in(a, b).implies(in(b, a).not()).forAll(a.oneOf(UNIV).and(b.oneOf(UNIV)));
}
Also used : Variable(kodkod.ast.Variable)

Example 92 with Variable

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

the class SET948 method d3_tarski.

/**
 * Returns d3_tarski axiom.
 *
 * @return d3_tarski
 */
public final Formula d3_tarski() {
    final Variable a = Variable.unary("A");
    final Variable b = Variable.unary("B");
    return subset(a, b).iff(in.join(a).in(in.join(b))).forAll(a.oneOf(UNIV).and(b.oneOf(UNIV)));
}
Also used : Variable(kodkod.ast.Variable)

Example 93 with Variable

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

the class SET948 method d10_xboole_0.

/**
 * Returns d10_xboole_0 axiom.
 *
 * @return d10_xboole_0
 */
public final Formula d10_xboole_0() {
    final Variable a = Variable.unary("A");
    final Variable b = Variable.unary("B");
    return a.eq(b).iff(subset(a, b).and(subset(b, a))).forAll(a.oneOf(UNIV).and(b.oneOf(UNIV)));
}
Also used : Variable(kodkod.ast.Variable)

Example 94 with Variable

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

the class SET948 method t101_zfmisc_1.

/**
 * Returns t101_zfmisc_1 conjecture.
 *
 * @return t101_zfmisc_1
 */
public final Formula t101_zfmisc_1() {
    final Variable a = Variable.unary("A");
    final Variable b = Variable.unary("B");
    final Variable c = Variable.unary("C");
    final Variable d = Variable.unary("D");
    final Formula f0 = in(c.union(d), set_union2(a, b)).implies(c.eq(d).or(disjoint(c, c))).forAll(c.oneOf(UNIV).and(d.oneOf(UNIV)));
    final Formula f1 = union(set_intersection2(a, b)).eq(set_intersection2(union(a), union(b)));
    return f0.implies(f1).forAll(a.oneOf(UNIV).and(b.oneOf(UNIV)));
}
Also used : Formula(kodkod.ast.Formula) Variable(kodkod.ast.Variable)

Example 95 with Variable

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

the class SET948 method fc3_xboole_0.

/**
 * Returns fc3_xboole_0 axiom.
 *
 * @return fc3_xboole_0
 */
public final Formula fc3_xboole_0() {
    final Variable a = Variable.unary("A");
    final Variable b = Variable.unary("B");
    return empty(a).not().implies(empty(set_union2(b, a)).not()).forAll(a.oneOf(UNIV).and(b.oneOf(UNIV)));
}
Also used : Variable(kodkod.ast.Variable)

Aggregations

Variable (kodkod.ast.Variable)221 Formula (kodkod.ast.Formula)151 Expression (kodkod.ast.Expression)80 Decls (kodkod.ast.Decls)24 Solution (kodkod.engine.Solution)24 Relation (kodkod.ast.Relation)23 IntExpression (kodkod.ast.IntExpression)22 Bounds (kodkod.instance.Bounds)21 Universe (kodkod.instance.Universe)21 ArrayList (java.util.ArrayList)19 TupleFactory (kodkod.instance.TupleFactory)19 TupleSet (kodkod.instance.TupleSet)15 Solver (kodkod.engine.Solver)14 Decl (kodkod.ast.Decl)12 QuantifiedFormula (kodkod.ast.QuantifiedFormula)10 Test (org.junit.Test)10 Instance (kodkod.instance.Instance)8 BinaryExpression (kodkod.ast.BinaryExpression)5 SumExpression (kodkod.ast.SumExpression)3 Expr (edu.mit.csail.sdg.ast.Expr)2