}
};
/** Converts an A4TupleSet into a SimTupleset object. */
private static SimTupleset convert(Object object) throws Err {
if (!(object instanceof A4TupleSet)) throw new ErrorFatal("Unexpected type error: expecting an A4TupleSet.");
A4TupleSet s = (A4TupleSet)object;
if (s.size()==0) return SimTupleset.EMPTY;
List<SimTuple> list = new ArrayList<SimTuple>(s.size());
int arity = s.arity();
for(A4Tuple t: s) {