Least-cost bounds in ℕ∞ and ℕ #
A complexity measure defined as ⨅ w : {w // P w}, cost w.1 over a subtype of witnesses is at
most a finite budget k exactly when some witness costs at most k. This is the ℕ∞ case of
Mathlib's iInf_le_iff_of_not_isPredPrelimit: a finite k is covered by k + 1, so it is not a
predecessor prelimit. This module packages the upper/lower bound characterizations, attainment when
a witness exists, and monotonicity for ℕ∞-valued subtype infima, two-parameter indexed subtype
infima (used by private-coin communication models), and ℕ-valued sInf complexity measures (used
by decision-tree models).
Main results #
ENat.iInf_le_natCast_iff,ENat.iInf_natCast_le_natCast_iff:⨅ i, f i ≤ k ↔ ∃ i, f i ≤ kfor a finitek.ENat.iInf_subtype_le,ENat.le_iInf_subtype_iff,ENat.iInf_subtype_le_natCast_iff,ENat.iInf_subtype_natCast_le_natCast_iff,ENat.iInf_subtype_natCast_ne_top_iff,ENat.exists_eq_iInf_subtype_natCast,ENat.iInf_subtype_mono: shared least-cost API for⨅ w : {w // P w}, cost w.1.ENat.iInf₂_subtype_natCast_le,ENat.le_iInf₂_subtype_natCast_iff,ENat.iInf₂_subtype_natCast_le_natCast_iff,ENat.iInf₂_subtype_natCast_mono: the same for a two-parameter family of witness types.Nat.sInf_le_of_le,Nat.exists_eq_sInf_of_exists,Nat.sInf_le_iff_of_exists,Nat.le_sInf_iff_of_exists,Nat.sInf_mono_of_exists: shared least-cost API forsInf {d : ℕ | ∃ w, P w ∧ cost w ≤ d}when a witness exists.
An infimum in ℕ∞ is at most a finite k exactly when some term is: the ℕ∞ case of
iInf_le_iff_of_not_isPredPrelimit.
Mapping witnesses of P to witnesses of R without increasing cost bounds the least cost of
R by that of P.
iInf_subtype_natCast_le_natCast_iff transported along an equivalence of witness predicates.
Relaxing the witness predicate in a two-parameter family cannot increase the least cost.