The least natural number satisfying a predicate, in ℕ∞ #
For a predicate P : ℕ → Prop, TauCeti.leastENatBound P is the infimum in ℕ∞ of the natural
numbers satisfying P. It is ⊤ exactly when no natural number satisfies P, so an invariant
defined as the least n for which some bound holds takes the value ⊤ rather than being
undefined when no bound holds at all. Invariants of this shape are cohomological dimensions,
where P n says that cohomology vanishes above degree n.
When P is monotone (a bound at m gives a bound at every n ≥ m), the characterization
leastENatBound P ≤ n ↔ P n recovers the predicate from the invariant.
Main results #
TauCeti.leastENatBound: the infimum inℕ∞of the natural numbers satisfying a predicate.TauCeti.leastENatBound_le_iff: for a monotone predicate,leastENatBound P ≤ n ↔ P n.TauCeti.leastENatBound_eq_top_iff: the value is⊤exactly when the predicate never holds.TauCeti.leastENatBound_eq_zero_iff: the value is0exactly when the predicate holds at0.TauCeti.leastENatBound_antitone: a weaker predicate has a smaller least bound.
A lower bound for the least bound is a lower bound for every natural number satisfying the predicate.
The least bound is at most any natural number satisfying the predicate.
The least bound is ⊤ exactly when no natural number satisfies the predicate.
The least bound is 0 exactly when 0 satisfies the predicate. Unlike
leastENatBound_le_iff, this needs no monotonicity.
The least bound is attained: when some natural number satisfies P, the least one does.
For a monotone predicate, the least bound is at most n exactly when n satisfies the
predicate.
A weaker predicate has a smaller least bound.