AFTD Auto-Formalizing Theoretical Domains

OnlineLearning.minimaxSublevel_isClosed

theoremverifiedimported Lean

Closedness of the minimax sublevel set. Let $X \subseteq \bbr$ be a closed set, let $f\colon \bbr \times \bbr \to \bbr$ be a payoff function, and fix a column point $y \in \bbr$ and a threshold $c \in \bbr$. If the map $x \mapsto f(x,y)$ is continuous on $X$, then the minimax sublevel set $\mathrm{sublevel}(X,f,y,c) = X \cap \{x \in \bbr : f(x,y) \le c\}$ is closed.

Statement

set_option relaxedAutoImplicit false in
set_option autoImplicit false in
open Real Finset BigOperators in
lemma OnlineLearning.minimaxSublevel_isClosed {X : Set ℝ} {f : ℝ → ℝ → ℝ} {y c : ℝ}
    (hX : IsClosed X) (hf : ContinuousOn (fun x => f x y) X) :
    IsClosed (minimaxSublevel X f y c)
Source
TCSlib, `OnlineLearning.minimaxSublevel_isClosed`
Lean proof
By Karim Abdel Sadek, Mark Bedaywi, from github.com/Shilun-Allan-Li/tcslib at c8a02591b1e5 (Copyright (c) 2026 Karim Abdel Sadek and Mark Bedaywi. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.25.0.
Verified
07 Oct 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • OnlineLearning.minimaxSublevelFor a set $X \subseteq \bbr$, a payoff function $f$, a column point $y$, and a threshold $c \in \bbr$, the minimax sublevel set is…
Used by 1

Lean source view module on GitHub

set_option relaxedAutoImplicit false inset_option autoImplicit false inopen Real Finset BigOperators in/-- The sublevel set is closed when `X` is closed and the payoff is continuous on `X` in the row variable. -/lemma OnlineLearning.minimaxSublevel_isClosed {X : Set ℝ} {f : ℝ → ℝ → ℝ} {y c : ℝ}    (hX : IsClosed X) (hf : ContinuousOn (fun x => f x y) X) :    IsClosed (minimaxSublevel X f y c) := by  simpa [minimaxSublevel, Set.preimage, Set.Iic] using    hf.preimage_isClosed_of_isClosed hX (isClosed_Iic : IsClosed (Set.Iic c))
See it in the graphDiscuss this resultChallenge it