public static boolean isValidProduction(Production production, Set set) {
		String lhs = production.getLHS();
		for (int k = 0; k < lhs.length(); k++) {
			if (!isInUsefulVariableSet(lhs.charAt(k), set))
				return false;
		}
		return isUsefulProduction(production, set);
	}