def get_all_preconditions(action_set):
    """
    Returns a set of all preconditions for the actions in the given set
    """
    all_precons = set()
    for a in action_set:
        all_precons.update(a.precondition)
    return all_precons