NLA-lib Explorer

Finset.exists_le_lt_of_forall_lt

Library · theorem

A finite family strictly below s has a common bound \mathbf{M} with a \le \mathbf{M} < s, for any a < s: take \mathbf{M} = \max(\{a\} \cup f(S)).

Finset.exists_le_lt_of_forall_lt.{u_1, u_2} {ι : Type u_1} {α : Type u_2} [LinearOrder α]
  (S : Finset ι) (f : ι → α) {a s : α} (hs : a < s) (h : ∀ i ∈ S, f i < s) :
  ∃ M, a ≤ M ∧ M < s ∧ ∀ i ∈ S, f i ≤ M

Full source on GitHub

Import NLAlib.ForMathlib.Data.Finset.Max.