A result of Balas and Yu states that the number of maximal independent sets of a graph G is at most δp + 1, where δ is the number of pairs of vertices in G at distance 2, and p is the cardinality of a maximum induced matching in G. In this paper, we give an analogue of this result for hypergraphs and, more generally, for subsets of vectors ℬ in the product of n lattices ℒ = ℒ1 × … × ℒn, where the notion of an induced matching in G is replaced by a certain binary tree each internal node of which is mapped into ℬ. We show that our bounds may be nearly sharp for arbitrarily large hypergraphs and lattices. As an application, we prove that the number of maximal infeasible vectors x ∈ ℒ = ℒ1 × … × ℒn for a system of polymatroid inequalities f1(x) ≥ t1,…, fr(x) ≥ tr does not exceed {Q, βlog t/c (2Q,β)}, where β is the number of minimal feasible vectors for the system, Q = |ℒ1|+…+|ℒn|, t = max {t1,…, tr}, and c(ρ, β) is the unique positive root of the equation 2c(ρc/log β − 1) = 1. This bound is nearly sharp for the Boolean case ℒ = {0, 1}n, and it allows for the efficient generation of all minimal feasible sets to a given system of polymatroid inequalities with quasi-polynomially bounded right-hand sides t1, …, tr.