Min–max interchange over selection functions (Lemma 1.6.1)
ProvedBertsekasDP.minimax_selection_interchangeLemma 1.6.1 (interchange of minimization and maximization). Let and be arbitrary sets and let take values in the extended reals. Assume that for every the pointwise infimum is not :
Then minimization over selection functions may be interchanged with maximization over :
Here ranges over all functions assigning a -value to each , with no restriction whatsoever.
The inequality is the trivial direction and holds always; the content is the reverse one, and it is what allows the minimax dynamic programming algorithm to be derived stage by stage — at each stage the controller's choice may be resolved before the adversary's, provided no stage value is . The hypothesis is not decorative: without it the two sides can differ.
Formalization Note Both sides are lattice extrema in , so they always exist but need not be attained; itself may take infinite values. The degenerate cases are included: with empty and nonempty both sides are , and with empty both sides are .
import Mathlib
namespace BertsekasDP
theorem minimax_selection_interchange {W U : Type} (G : W → U → EReal)
(h : ∀ w, ⨅ u, G w u ≠ ⊥) :
⨅ μ : W → U, ⨆ w, G w (μ w) = ⨆ w, ⨅ u, G w u := by sorry
end BertsekasDPRead-back
What the Lean code literally says, in plain math · claude-fable-5
For arbitrary types and — either or both possibly empty; no finiteness, no topology, no order structure on them — and for every function taking values in the extended reals (Lean's EReal, a complete lattice with bottom and top ), under the single hypothesis
the statement asserts the equality in
Here the outer infimum on the left ranges over all functions (arbitrary selections, with no measurability or other restriction), and all infima and suprema are taken in the complete lattice , so they always exist; over an empty index type an infimum equals and a supremum equals . In particular: if is empty, each inner infimum is , so the hypothesis is satisfied vacuously for each ; and if additionally is nonempty there is no function at all, making the left side an infimum over an empty collection, i.e. . If is empty the hypothesis is vacuous, the left side is over the unique function , i.e. , and the right side is the empty supremum . The hypothesis excludes only the case that some fixed has ; it does not require any infimum or supremum to be finite ( values are unrestricted, and may still be only if is empty). The equality is stated with , not or : both directions are asserted. The theorem's proof body is sorry, i.e. the statement is asserted without proof in this file.
Confirmed by the mission captain (proposal self-audit).