Quelle Sion.lean
Sprache: Lean
|
|
/-
Copyright (c) 2025 Antoine Chambert-Loir. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Antoine Chambert-Loir, Anatole Dedecker
-/
module
public import Mathlib.Analysis.Convex.Quasiconvex
public import Mathlib.Order.SaddlePoint
public import Mathlib.Topology.Instances.EReal.Lemmas
/-! # Formalization of Sion's version of the von Neumann minimax theorem
## Statements
`Sion.exists_isSaddlePointOn` :
Let `X` and `Y` be convex subsets of topological vector spaces `E` and `F`,
`X` being moreover compact,
and let `f : X × Y → ℝ` be a function such that
- for all `x ∈ X`, `f(x, ⬝)` is upper semicontinuous and quasiconcave
- for all `y ∈ Y`, `f(⬝, y)` is lower semicontinuous and quasiconvex
Then `⊓ x, ⊔ y, f (x, y) = ⊔ y, ⊓ x f (x, y)`.
The classical case of the theorem assumes that `f` is continuous,
`f(x, ⬝)` is concave, `f(⬝, y)` is convex.
As a particular case, one get the von Neumann theorem where
`f` is bilinear and `E`, `F` are finite dimensional.
We follow the proof of [Komiya (1988)][Komiya-1988].
## Remark on implementation
* The essential part of the proof holds for a function
`f : X → Y → β`, where `β` is a complete dense linear order.
* We have written part of it for just a dense linear order,
* On the other hand, if the theorem holds for such `β`,
it must hold for any linear order, for the reason that
any linear order embeds into a complete dense linear order.
Although one can construct such an embedding using the Dedekind-Mac Neille completion,
this result does not seem to be known to Mathlib.
* When `β` is `ℝ`, one can use `Real.toEReal` and one gets a proof for `ℝ`.
## TODO
- Spell out the particular case of von Neumann theorem.
- Use the Dedekind MacNeille completion of a linear order to simplify
the statement of `DMCompletion.exists_isSaddlePointOn`.
## References
- [Neumann, John von (1928).
”Zur Theorie der Gesellschaftsspiele”. *Mathematische Annalen* 100 (1): 295‑320][vonNeumann-1928]
- [Sion, Maurice (1958).
”On general minimax theorems”. *Pacific Journal of Mathematics* 8 (1): 171‑76.][Sion-1958]
- [Komiya, Hidetoshi (1988).
“Elementary Proof for Sion’s Minimax Theorem”. *Kodai Mathematical Journal* 11 (1).][Komiya-1988]
-/
open Set Filter
namespace Sion
section LinearOrder
variable {E F : Type*} {β : Type*} [LinearOrder β]
(X : Set E) (Y : Set F) (f : E → F → β)
/-- The familywise sublevel sets of `f`, the first variable serving as a parameter -/
def sublevelLeft (b : β) (z : F) : Set X :=
(fun x => f x z) ∘ (fun x ↦ ↑x) ⁻¹' Iic b
variable {X Y f}
theorem mem_sublevelLeft_iff {b : β} {y : Y} {x : X} :
x ∈ sublevelLeft X f b y ↔ f x y ≤ b := by simp [sublevelLeft]
/-- `sublevelLeft` is parameterwise monotone -/
theorem monotone_sublevelLeft {u v : β} (y : Y) (h : u ≤ v) :
sublevelLeft X f u y ⊆ sublevelLeft X f v y :=
fun _ hxu ↦ le_trans hxu h
/-- Disjointness criterion for two `sublevelLeft` at different values of the parameter -/
theorem disjoint_sublevelLeft {a : E} {b : β} {y y' : Y}
(ha : ∀ x ∈ X, f a y ⊔ f a y' ≤ f x y ⊔ f x y')
(hb : b < f a y ⊔ f a y') :
Disjoint (sublevelLeft X f b y) (sublevelLeft X f b y') := by
rw [Set.disjoint_iff]
rintro ⟨x, hx⟩ ⟨hx1, hx2⟩
apply hb.not_ge
grw [ha x hx]
simpa using ⟨hx1, hx2⟩
/-- From lower semicontinuity of `f(·, y)` and compactness of `X`,
deduce that `sublevelLeft` sets are nonempty -/
theorem nonempty_sublevelLeft [TopologicalSpace E]
(ne_X : X.Nonempty) (kX : IsCompact X)
(hfy : ∀ y ∈ Y, LowerSemicontinuousOn (fun x : E => f x y) X)
(y : Y) {b : β} (h : ∀ y ∈ Y, ∃ x ∈ X, f x y ≤ b) :
(sublevelLeft X f b y).Nonempty := by
rcases y with ⟨y, hy⟩
obtain ⟨x, hx, hx_le⟩ := LowerSemicontinuousOn.exists_isMinOn ne_X kX (hfy y hy)
obtain ⟨x', hx', hx'b⟩ := h y hy
exact ⟨⟨x, hx⟩, le_trans (hx_le hx') hx'b⟩
/-- From lower semicontinuity of `f(·, y)`, deduce that `sublevelLeft` sets are closed -/
theorem isClosed_sublevelLeft [TopologicalSpace E]
(hfy : ∀ y ∈ Y, LowerSemicontinuousOn (fun x : E => f x y) X)
(b : β) (y : Y) :
IsClosed (sublevelLeft X f b y) := by
specialize hfy y.val y.prop
rw [← lowerSemicontinuous_restrict_iff, lowerSemicontinuous_iff_isClosed_preimage] at hfy
exact hfy b
/-- From the quasi-convexity of `f (·, y)`, deduce that `sublevelLeft` is connected -/
theorem isPreconnected_sublevelLeft [TopologicalSpace E]
[AddCommGroup E] [Module ℝ E] [IsTopologicalAddGroup E]
[ContinuousSMul ℝ E]
(hfy' : ∀ y ∈ Y, QuasiconvexOn ℝ X (fun x ↦ f x y))
(b : β) (y : Y) :
IsPreconnected (sublevelLeft X f b y) :=
(hfy' y.val y.prop).isPreconnected_preimage_subtype
/-- From the quasi-concavity of `f (x, ·)`, deduce an inclusion of `sublevelLeft` sets -/
theorem sublevelLeft_subset_union [AddCommGroup F] [Module ℝ F]
(hfx' : ∀ x ∈ X, QuasiconcaveOn ℝ Y fun y => f x y)
(b : β) (y y' : Y) (z : segment ℝ y.val y'.val) :
sublevelLeft X f b z ⊆ sublevelLeft X f b y ∪ sublevelLeft X f b y' := fun x hx ↦ by
simp only [Set.mem_union, mem_sublevelLeft_iff, ← inf_le_iff]
specialize hfx' x x.2 (f x y ⊓ f x y')
rw [convex_iff_segment_subset] at hfx'
specialize hfx' ⟨y.prop, inf_le_left⟩ ⟨y'.prop, inf_le_right⟩ z.prop
exact le_trans hfx'.2 hx
/-- `sublevelLeft X f b z` is contained in either
`sublevelLeft X f b y` or in `sublevelLeft X f b y'`.
The hypotheses imply that `sublevelLeft X f b z` is connected,
and that the two other are disjoint. -/
theorem sublevelLeft_subset_or [TopologicalSpace E] [AddCommGroup E]
[IsTopologicalAddGroup E] [Module ℝ E] [ContinuousSMul ℝ E]
[AddCommGroup F] [Module ℝ F]
(hfx' : ∀ x ∈ X, QuasiconcaveOn ℝ Y fun y => f x y)
(hfy : ∀ y ∈ Y, LowerSemicontinuousOn (fun x : E => f x y) X)
(hfy' : ∀ y ∈ Y, QuasiconvexOn ℝ X fun x => f x y)
(cY : Convex ℝ Y)
(a : E) (b : β) (y y' : Y)
(ha : ∀ x ∈ X, f a y ⊔ f a y' ≤ f x y ⊔ f x y')
(hb : b < f a y ⊔ f a y')
(z : segment ℝ y.val y'.val) :
sublevelLeft X f b z ⊆ sublevelLeft X f b y ∨
sublevelLeft X f b z ⊆ sublevelLeft X f b y' := by
apply isPreconnected_iff_subset_of_disjoint_closed.mp
(isPreconnected_sublevelLeft hfy' b ⟨z, cY.segment_subset y.prop y'.prop z.prop⟩)
_ _ (isClosed_sublevelLeft hfy b y) (isClosed_sublevelLeft hfy b y')
(sublevelLeft_subset_union hfx' b y y' z)
simp [(disjoint_sublevelLeft ha hb).inter_eq]
variable [TopologicalSpace E] [AddCommGroup E] [Module ℝ E]
[IsTopologicalAddGroup E] [ContinuousSMul ℝ E]
(ne_X : X.Nonempty) (kX : IsCompact X)
(hfy : ∀ y ∈ Y, LowerSemicontinuousOn (fun x : E => f x y) X)
(hfy' : ∀ y ∈ Y, QuasiconvexOn ℝ X fun x => f x y)
variable [TopologicalSpace F] [AddCommGroup F] [Module ℝ F]
(cY : Convex ℝ Y) (kY : IsCompact Y)
(hfx : ∀ x ∈ X, UpperSemicontinuousOn (fun y : F => f x y) Y)
(hfx' : ∀ x ∈ X, QuasiconcaveOn ℝ Y fun y => f x y)
variable (X Y f) in
/-- The set of parameters `z` in the segment `[y, y']` such that `f b z ≤ f b' y`. -/
def setOfPred_sublevelLeft_subset (b b' : β) (y y' : Y) : Set (segment ℝ y.val y'.val) :=
{z | sublevelLeft X f b z ⊆ sublevelLeft X f b' y}
@[deprecated (since := "2026-07-09")]
alias setOf_sublevelLeft_subset := setOfPred_sublevelLeft_subset
include ne_X kX hfx hfx' cY hfy hfy' in
/-- Under suitable inequalities, `setOfPred_sublevelLeft_subset` is closed -/
theorem isClosed_setOfPred_sublevelLeft_subset
(a : E) (b b' : β) (y y' : Y)
(ha : ∀ x ∈ X, f a y ⊔ f a y' ≤ f x y ⊔ f x y')
(hb : ∀ y ∈ Y, ∃ x ∈ X, f x y ≤ b)
(hb' : b' < f a y ⊔ f a y')
(hbb' : b < b') :
IsClosed (setOfPred_sublevelLeft_subset X Y f b b' y y') := by
set J := setOfPred_sublevelLeft_subset X Y f b b' y y'
-- Write `J` for `setOfPred_sublevelLeft_subset X Y f b b' y y'`.
rw [isClosed_iff_clusterPt]
/- Let `z in segment ℝ y y'` be a cluster point of `J`;
we have to show that `z ∈ J`, i.e `sublevelLeft t z ⊆ sublevelLeft t' y1`.
Let `x ∈ sublevelLeft t z` and let us prove that `x ∈ sublevelLeft X f b' y`. -/
intro z hz x hx
suffices ∃ z' ∈ setOfPred_sublevelLeft_subset X Y f b b' y y', x ∈ sublevelLeft X f b' (z' : F) by
obtain ⟨z', hz', hxz'⟩ := this
/- We need to prove `x ∈ sublevelLeft X f b' y`.
Assume that there is `z' ∈ J` such that `x ∈ sublevelLeft b' z'`.
It suffices to prove that `sublevelLeft X f b' z' ⊆ sublevelLeft X f b' y`.` -/
suffices sublevelLeft X f b' z' ⊆ sublevelLeft X f b' y from this hxz'
/- Otherwise, using `sublevelLeft_subset_or`, we see that
`sublevelLeft X f b' z' ⊆ sublevelLeft t' y'`
hence `x ∈ sublevelLeft t' y ∩ sublevelLeft t' y' = ∅`, a contradiction. -/
apply (sublevelLeft_subset_or hfx' hfy hfy' cY a b' y y' ha hb' z').resolve_right
intro hz'2
have hz'Y : (z' : F) ∈ Y := (convex_iff_segment_subset.mp cY) y.prop y'.prop z'.prop
apply (nonempty_sublevelLeft ne_X kX hfy ⟨z', hz'Y⟩ hb).not_subset_empty
rw [← (disjoint_sublevelLeft ha hb').inter_eq]
apply subset_inter hz'
grw [monotone_sublevelLeft _ hbb'.le, hz'2]
/- In sequential language, pretend that `z = lim z n`, with `z n ∈ J`.
Since `x ∈ sublevelLeft X f b z`, we have `f x z ≤ b < b'`.
Since `f x ·` is upper semicontinuous, we would have `f x (z n) < b'` for `n` large enough,
hence `x ∈ sublevelLeft X f b' (z n)` for `n` large enough. -/
-- The first step is to rewrite `hfy` (lower semicontinuity of `f (⬝, y)`) into an `∀ᶠ`-form
simp_rw [upperSemicontinuousOn_iff, upperSemicontinuousWithinAt_iff] at hfx
specialize hfx x.val x.prop z (cY.segment_subset y.prop y'.prop z.prop) b' (hx.trans_lt hbb')
-- We rewrite the assumption that `z` is a cluster point of `J` into an `∃ᶠ`-form
rw [clusterPt_principal_subtype_iff_frequently (cY.segment_subset y.prop y'.prop)] at hz
suffices ∀ᶠ z' : F in nhdsWithin z Y,
(∃ hz' : z' ∈ segment ℝ y.val y'.val,
(⟨z', hz'⟩ : segment ℝ y.val y'.val) ∈ setOfPred_sublevelLeft_subset X Y f b b' y y') →
∃ hz' : z' ∈ segment ℝ y.val y'.val, x ∈ sublevelLeft X f b' z'
∧ (⟨z', hz'⟩ : segment ℝ y.val y'.val) ∈ setOfPred_sublevelLeft_subset X Y f b b' y y' by
obtain ⟨z', hz', hxz'1, hxz'2⟩ := hz.mp this |>.exists
exact ⟨⟨z', hz'⟩, ⟨hxz'2, hxz'1⟩⟩
exact hfx.mp <| .of_forall fun z hzt' ⟨hz, hz'⟩ ↦ ⟨hz, ⟨hzt'.le, hz'⟩⟩
@[deprecated (since := "2026-07-09")]
alias isClosed_setOf_sublevelLeft_subset := isClosed_setOfPred_sublevelLeft_subset
variable [DenselyOrdered β]
variable [IsTopologicalAddGroup F] [ContinuousSMul ℝ F]
include ne_X kX hfx hfx' cY hfy hfy' in
public theorem exists_lt_iInf_of_lt_iInf_of_sup
{y1 : F} (hy1 : y1 ∈ Y) {y2 : F} (hy2 : y2 ∈ Y) {t : β}
(ht : ∀ x ∈ X, t < f x y1 ⊔ f x y2) :
∃ y0 ∈ Y, ∀ x ∈ X, t < f x y0 := by
by_contra! hinfi_le
obtain ⟨a, ha, ha'⟩ := (hfy y1 hy1).sup (hfy y2 hy2) |>.exists_isMinOn ne_X kX
obtain ⟨t', htt', ht'⟩ := exists_between (ht a ha)
lift y1 to Y using hy1
lift y2 to Y using hy2
let J1 := setOfPred_sublevelLeft_subset X Y f t t' y1 y2
have mem_J1_iff (z : segment ℝ (y1 : F) y2) :
z ∈ J1 ↔ sublevelLeft X f t z ⊆ sublevelLeft X f t' y1 := by
simp [J1, setOfPred_sublevelLeft_subset]
let φ : segment ℝ (y1 : F) y2 ≃ₜ segment ℝ (y2 : F) y1 := .setCongr (segment_symm ℝ (y1 : F) y2)
let J2 := φ ⁻¹' (setOfPred_sublevelLeft_subset X Y f t t' y2 y1)
have mem_J2_iff (z : segment ℝ (y1 : F) y2) :
z ∈ J2 ↔ sublevelLeft X f t z ⊆ sublevelLeft X f t' y2 := by
simp [J2, setOfPred_sublevelLeft_subset, φ, Homeomorph.setCongr]
have h_mem_Y (z : segment ℝ (y1 : F) y2) : (z : F) ∈ Y := cY.segment_subset y1.2 y2.2 z.prop
have hJ1J2 : J1 ∩ J2 = ∅ := by
rw [Set.eq_empty_iff_forall_notMem]
simp only [mem_inter_iff, mem_J1_iff, mem_J2_iff]
intro z ⟨hz1, hz2⟩
apply (nonempty_sublevelLeft ne_X kX hfy ⟨z, h_mem_Y z⟩ hinfi_le).not_subset_empty
simpa using Set.disjoint_of_subset hz1 hz2 (disjoint_sublevelLeft ha' ht')
have hJ1_union_J2 : J1 ∪ J2 = segment ℝ (y1 : F) y2 := by
refine subset_antisymm (by simp) fun z hz ↦ ?_
lift z to segment ℝ (y1 : F) y2 using hz
refine ⟨z, ?_, rfl⟩
apply sublevelLeft_subset_or hfx' hfy hfy' cY a t' y1 y2 ha' ht' z |>.imp
(fun h1 ↦ ?_) (fun h2 ↦ ?_)
· grw [mem_J1_iff, (monotone_sublevelLeft ⟨(z : F), h_mem_Y z⟩ htt'.le), h1]
· grw [mem_J2_iff, (monotone_sublevelLeft ⟨(z : F), h_mem_Y z⟩ htt'.le), h2]
have : IsPreconnected (Set.univ : Set (segment ℝ (y1 : F) y2)) := by
simpa [← Topology.IsInducing.subtypeVal.isPreconnected_image] using
(convex_segment (y1 : F) y2).isPreconnected
have hJ1 : IsClosed J1 := isClosed_setOfPred_sublevelLeft_subset ne_X kX hfy hfy'
cY hfx hfx' a t t' y1 y2 ha' hinfi_le ht' htt'
have hJ2 : IsClosed J2 := by
simp only [sup_comm (f _ y1)] at ha' ht'
simpa [J2, sup_comm] using isClosed_setOfPred_sublevelLeft_subset ne_X kX hfy hfy'
cY hfx hfx' a t t' y2 y1 ha' hinfi_le ht' htt'
have h_univ : univ ⊆ J1 ∪ J2 :=
image_subset_image_iff Subtype.val_injective |>.mp <| by simp [hJ1_union_J2]
have h_inter : univ ∩ (J1 ∩ J2) = ∅ := by simp [hJ1J2]
rw [isPreconnected_iff_subset_of_disjoint_closed] at this
rw [eq_empty_iff_forall_notMem] at hJ1J2
obtain (h1 | h2) := this J1 J2 hJ1 hJ2 h_univ h_inter
· refine hJ1J2 ⟨y2, right_mem_segment ℝ (y1 : F) y2⟩ ⟨h1 (Set.mem_univ _), ?_⟩
grw [mem_J2_iff, monotone_sublevelLeft y2 htt'.le]
· refine hJ1J2 ⟨y1, left_mem_segment ℝ (y1 : F) y2⟩ ⟨?_, h2 (Set.mem_univ _)⟩
grw [mem_J1_iff, monotone_sublevelLeft y1 htt'.le]
variable (cX : Convex ℝ X)
include ne_X cX cY kX hfx hfx' hfy hfy' in
public theorem exists_lt_iInf_of_lt_iInf_of_finite
{s : Set F} (hs : s.Finite) (hsY : s ⊆ Y)
{t : β} (ht : ∀ x ∈ X, ∃ y ∈ s, t < f x y) :
∃ y0 ∈ Y, ∀ x ∈ X, t < f x y0 := by
induction s, hs using Set.Finite.induction_on
generalizing X with
| empty => simpa using ht _ ne_X.choose_spec
| @insert b s _ hs hrec => -- insert case
have hb : (b ∈ Y) := hsY (mem_insert b s)
let X' := X ∩ (fun x ↦ f x b) ⁻¹' Iic t
rcases Set.eq_empty_or_nonempty X' with X'_e | X'_ne
· -- When `X'` is empty, we may set `y0 := b`
use b, hb
simpa [X', Set.eq_empty_iff_forall_notMem] using X'_e
-- the nonempty case
have hX'X : X' ⊆ X := inter_subset_left
have kX' : IsCompact X' := (hfy b hb).isCompact_inter_preimage_Iic kX t
have cX' : Convex ℝ X' := hfy' b hb t
specialize hrec X'_ne kX'
(fun y hy ↦ LowerSemicontinuousOn.mono (hfy y hy) hX'X)
(fun y hy ↦ cX'.quasiconvexOn_restrict (hfy' y hy) hX'X)
(fun x hx' ↦ hfx x (hX'X hx'))
(fun x hx' ↦ hfx' x (hX'X hx'))
cX'
have ht_lt : ∀ x ∈ X', ∃ y ∈ s, t < f x y := by
/- otherwise, if infi x ∈ X', supr y ∈ s f x y ≤ t
then for every t' > t, there is x ∈ X' such that supr y ∈ s f x y ≤ t',
since x ∈ X' and t ≤ t', we have supr y ∈ insert b s f x y ≤ t',
hence infi x ∈ X, supr y ∈ insert b s, f x y ≤ t',
so that infi x ∈ X, supr y ∈ insert b s, f x y ≤ t. -/
intro x hx
obtain ⟨y, hy, h⟩ := ht x hx.1
rcases hy with rfl | hy
· simp [h.not_ge hx.2]
· exact ⟨y, hy, h⟩
obtain ⟨y1, hy1, hty1⟩ := hrec (by grw [subset_insert b s, hsY]) ht_lt
refine exists_lt_iInf_of_lt_iInf_of_sup ne_X kX hfy hfy' cY hfx hfx' hb hy1 fun x hx ↦ ?_
by_cases hx' : x ∈ X'
· exact (hty1 x hx').trans_le (le_sup_right)
· apply lt_of_lt_of_le _ (le_sup_left)
rw [← not_le]
exact fun h ↦ hx' ⟨hx, h⟩
include ne_X cX cY kX hfx hfx' hfy hfy' in
/-- A minimax theorem without completeness, using `IsGLB` and `IsLUB`. -/
public theorem minimax
(sup_y : E → β) (hsup_y : ∀ x ∈ X, IsLUB {f x y | y ∈ Y} (sup_y x))
(inf_sup : β) (hinf_sup : IsGLB {sup_y x | x ∈ X} inf_sup)
(inf_x : F → β) (hinf_x : ∀ y ∈ Y, IsGLB {f x y | x ∈ X} (inf_x y))
(sup_inf : β) (hsup_inf : IsLUB {inf_x y | y ∈ Y} sup_inf) :
inf_sup = sup_inf := by
apply symm
apply le_antisymm
-- the obvious inequality
· rw [le_isGLB_iff hinf_sup, mem_lowerBounds]
rintro _ ⟨x, hx, rfl⟩
rw [isLUB_le_iff hsup_inf, mem_upperBounds]
rintro _ ⟨y, hy, rfl⟩
trans f x y
· exact (hinf_x y hy).1 ⟨x, hx, rfl⟩
· exact (hsup_y x hx).1 ⟨y, hy, rfl⟩
-- the delicate inequality
rcases eq_empty_or_nonempty Y with ⟨rfl⟩ | ne_Y
· -- the case when `Y` is empty is trivial
simp only [mem_empty_iff_false, IsEmpty.forall_iff, implies_true, false_and, exists_const,
ofPred_false, isLUB_empty_iff] at *
replace hsup_y : ∀ x ∈ X, sup_y x = sup_inf :=
fun x hx ↦ le_antisymm (hsup_y x hx sup_inf) (hsup_inf (sup_y x))
suffices {t | ∃ x ∈ X, sup_y x = t} = {sup_inf} from (this ▸ hinf_sup).unique (by simp) |>.le
ext t
simp only [mem_ofPred_eq, mem_singleton_iff]
constructor
· rintro ⟨x, hx, rfl⟩
exact hsup_y x hx
· rintro rfl
exact ⟨_, ne_X.choose_spec, hsup_y _ ne_X.choose_spec⟩
-- when `Y` is not empty
rw [← forall_lt_iff_le]
intro t ht
have : ∃ s : Finset Y, ∀ x ∈ X, ∃ i ∈ s, t < f x i := by
rw [← LowerSemicontinuousOn.disjoint_biInter_preimage_Iic_iff_exists_finset kX hfy,
Set.disjoint_iff_inter_eq_empty]
apply Set.eq_empty_of_forall_notMem
rintro x ⟨hx, hx'⟩
simp only [mem_iInter, mem_preimage, mem_Iic] at hx'
rw [lt_isGLB_iff hinf_sup] at ht
obtain ⟨c, hc, htc⟩ := ht
simp only [mem_lowerBounds, mem_ofPred_eq, forall_exists_index, and_imp,
forall_apply_eq_imp_iff₂] at hc
apply not_le.mpr htc (le_trans (hc x hx) _)
rw [isLUB_le_iff (hsup_y x hx), mem_upperBounds]
aesop
obtain ⟨s, hs⟩ := this
have hs' (x) (hx : x ∈ X) : ∃ y ∈ Subtype.val '' (s : Set Y), t < f x y := by
obtain ⟨i, hi, hi'⟩ := hs x hx
use i.val
simp [hi, hi']
choose y0 hy0 ht0 using exists_lt_iInf_of_lt_iInf_of_finite
ne_X kX hfy hfy' cY hfx hfx' cX
(t := t)
(toFinite _) (Subtype.coe_image_subset Y ↑s)
simp only [lt_isLUB_iff hsup_inf, mem_ofPred_eq, exists_exists_and_eq_and]
use y0 hs', hy0 hs'
specialize ht0 hs'
obtain ⟨a, ha, h⟩ := LowerSemicontinuousOn.exists_isMinOn ne_X kX (hfy (y0 hs') (hy0 hs'))
apply lt_of_lt_of_le (ht0 a ha)
simpa [le_isGLB_iff (hinf_x (y0 hs') (hy0 hs')), mem_lowerBounds]
variable (ne_Y : Y.Nonempty) (kY : IsCompact Y)
include ne_X ne_Y cX cY kX kY hfx hfx' hfy hfy' in
/-- The Sion-von Neumann minimax theorem (saddle point form) -/
public theorem exists_isSaddlePointOn' :
∃ a ∈ X, ∃ b ∈ Y, IsSaddlePointOn X Y f a b := by
have hmax_y (x) (hx : x ∈ X) : ∃ y ∈ Y, IsMaxOn (f x) Y y := (hfx x hx).exists_isMaxOn ne_Y kY
choose! η η_mem η_max using hmax_y
have hlsc : LowerSemicontinuousOn (fun x => f x (η x)) X :=
lowerSemicontinuousOn_of_forall_isMaxOn_and_mem hfy η_mem η_max
obtain ⟨a, ha, ha'⟩ : ∃ a ∈ X, IsMinOn (fun x ↦ f x (η x)) X a := hlsc.exists_isMinOn ne_X kX
use a, ha
have hmin_x (y) (hy : y ∈ Y) : ∃ x ∈ X, IsMinOn (f · y) X x := (hfy y hy).exists_isMinOn ne_X kX
choose! ξ ξ_mem ξ_min using hmin_x
have husc := upperSemicontinuousOn_of_forall_isMinOn_and_mem hfx ξ_mem ξ_min
obtain ⟨b, hb, hb'⟩ : ∃ b ∈ Y, IsMaxOn (fun y ↦ f (ξ y) y) Y b := husc.exists_isMaxOn ne_Y kY
use b, hb
intro x hx y hy
calc f a y ≤ f a (η a) := isMaxOn_iff.mp (η_max a ha) y hy
_ = f (ξ b) b :=
minimax ne_X kX hfy hfy' cY hfx hfx' cX
_ (fun x hx ↦ (η_max x hx).isLUB (η_mem x hx))
_ (ha'.isGLB ha)
_ (fun y hy ↦ (ξ_min y hy).isGLB (ξ_mem y hy))
_ (hb'.isLUB hb)
_ ≤ f x b := isMinOn_iff.mp (ξ_min b hb) x hx
end LinearOrder
section CompleteLinearOrder
variable {E F β : Type*} [CompleteLinearOrder β] [DenselyOrdered β]
variable {X : Set E} {Y : Set F} {f : E → F → β}
variable [TopologicalSpace E] [AddCommGroup E] [Module ℝ E]
[IsTopologicalAddGroup E] [ContinuousSMul ℝ E]
(ne_X : X.Nonempty) (cX : Convex ℝ X) (kX : IsCompact X)
(hfy : ∀ y ∈ Y, LowerSemicontinuousOn (fun x : E ↦ f x y) X)
(hfy' : ∀ y ∈ Y, QuasiconvexOn ℝ X fun x => f x y)
variable [TopologicalSpace F] [AddCommGroup F] [Module ℝ F]
[IsTopologicalAddGroup F] [ContinuousSMul ℝ F]
(cY : Convex ℝ Y) (ne_Y : Y.Nonempty) (kY : IsCompact Y)
(hfx : ∀ x ∈ X, UpperSemicontinuousOn (fun y : F => f x y) Y)
(hfx' : ∀ x ∈ X, QuasiconcaveOn ℝ Y fun y => f x y)
include ne_X cX cY kX hfx hfx' hfy hfy' in
/-- A minimax theorem in inf-sup form, for complete linear orders. -/
public theorem minimax' : (⨅ x ∈ X, ⨆ y ∈ Y, f x y) = ⨆ y ∈ Y, ⨅ x ∈ X, f x y :=
minimax ne_X kX hfy hfy' cY hfx hfx' cX
_ (fun _ _ ↦ isLUB_biSup) _ isGLB_biInf _ (fun _ _ ↦ isGLB_biInf) _ isLUB_biSup
include ne_X ne_Y cX cY kX kY hfx hfx' hfy hfy' in
/-- The Sion-von Neumann minimax theorem (saddle point form),
case of complete linear orders. -/
public theorem exists_saddlePointOn' :
∃ a ∈ X, ∃ b ∈ Y, IsSaddlePointOn X Y f a b := by
have hlsc : LowerSemicontinuousOn (fun x => ⨆ y ∈ Y, f x y) X := fun x hx ↦ by
apply lowerSemicontinuousWithinAt_iSup
intro i
exact lowerSemicontinuousWithinAt_iSup fun i_1 ↦ hfy i i_1 x hx
have husc : UpperSemicontinuousOn (fun y => ⨅ x ∈ X, f x y) Y := fun y hy ↦ by
apply upperSemicontinuousWithinAt_iInf
intro i
exact upperSemicontinuousWithinAt_iInf fun i_1 ↦ hfx i i_1 y hy
obtain ⟨a, ha, ha'⟩ := LowerSemicontinuousOn.exists_isMinOn
ne_X kX hlsc
obtain ⟨b, hb, hb'⟩ := UpperSemicontinuousOn.exists_isMaxOn ne_Y kY husc
use a, ha, b, hb
rw [isSaddlePointOn_iff' ha hb]
refine le_trans (le_iInf₂ ha') ?_
refine le_trans ?_ (iSup₂_le_iff.mpr hb')
rw [minimax' ne_X cX kX hfy hfy' cY hfx hfx']
end CompleteLinearOrder
section DedekindMacNeille
variable {E F β γ : Type*} [LinearOrder β]
variable {X : Set E} {Y : Set F} {f : E → F → β}
variable [TopologicalSpace E] [AddCommGroup E] [Module ℝ E]
[IsTopologicalAddGroup E] [ContinuousSMul ℝ E]
(ne_X : X.Nonempty) (cX : Convex ℝ X) (kX : IsCompact X)
(hfy : ∀ y ∈ Y, LowerSemicontinuousOn (fun x : E ↦ f x y) X)
(hfy' : ∀ y ∈ Y, QuasiconvexOn ℝ X fun x => f x y)
variable [TopologicalSpace F] [AddCommGroup F] [Module ℝ F]
[IsTopologicalAddGroup F] [ContinuousSMul ℝ F]
(cY : Convex ℝ Y) (ne_Y : Y.Nonempty) (kY : IsCompact Y)
(hfx : ∀ x ∈ X, UpperSemicontinuousOn (fun y : F => f x y) Y)
(hfx' : ∀ x ∈ X, QuasiconcaveOn ℝ Y fun y => f x y)
/- The following lines essentially assume that `β` has a densely ordered completion.
(The Dedekind MacNeille completion is not densely ordered unless `β` is.) -/
variable [TopologicalSpace β] [OrderTopology β]
variable {γ : Type*} [CompleteLinearOrder γ] [DenselyOrdered γ]
[TopologicalSpace γ] [OrderTopology γ]
{ι : β ↪o γ} (hι : Continuous ι)
include ne_X ne_Y cX cY kX kY hfx hfx' hfy hfy' hι in
/-- The minimax theorem, in the saddle point form,
when `β` is given a Dedekind-MacNeille completion `ι : β ↪o γ` -/
public theorem DMCompletion.exists_isSaddlePointOn :
∃ a ∈ X, ∃ b ∈ Y, IsSaddlePointOn X Y f a b := by
-- Reduce to the cae of EReal-valued functions
let φ : E → F → γ := fun x y ↦ ι (f x y)
-- suffices : ∃ a ∈ X, ∃ b ∈ Y, IsSaddlePointOn X Y φ a b
have hφx (x) (hx : x ∈ X) : UpperSemicontinuousOn (fun y ↦ φ x y) Y := by
convert! Continuous.comp_upperSemicontinuousOn hι (hfx x hx) ι.monotone
have hφx' (x) (hx : x ∈ X) : QuasiconcaveOn ℝ Y fun y ↦ φ x y := by
convert! (hfx' x hx).monotone_comp ι.monotone
have hφy (y) (hy : y ∈ Y) : LowerSemicontinuousOn (fun x ↦ φ x y) X := by
convert! Continuous.comp_lowerSemicontinuousOn hι (hfy y hy) ι.monotone
have hφy' (y) (hy : y ∈ Y) : QuasiconvexOn ℝ X fun x ↦ φ x y := by
convert! (hfy' y hy).monotone_comp ι.monotone
obtain ⟨a, ha, b, hb, hab⟩ :=
exists_isSaddlePointOn' ne_X kX hφy hφy' cY kY hφx hφx' cX ne_Y
use a, ha, b, hb
intro x hx y hy
simpa only [OrderEmbedding.le_iff_le, φ] using hab x hx y hy
end DedekindMacNeille
section Real
variable {E F : Type*}
variable {X : Set E} {Y : Set F} {f : E → F → ℝ}
variable [TopologicalSpace E] [AddCommGroup E] [Module ℝ E]
[IsTopologicalAddGroup E] [ContinuousSMul ℝ E]
(ne_X : X.Nonempty) (cX : Convex ℝ X) (kX : IsCompact X)
(hfy : ∀ y ∈ Y, LowerSemicontinuousOn (fun x : E ↦ f x y) X)
(hfy' : ∀ y ∈ Y, QuasiconvexOn ℝ X fun x => f x y)
variable [TopologicalSpace F] [AddCommGroup F] [Module ℝ F]
[IsTopologicalAddGroup F] [ContinuousSMul ℝ F]
(cY : Convex ℝ Y) (ne_Y : Y.Nonempty) (kY : IsCompact Y)
(hfx : ∀ x ∈ X, UpperSemicontinuousOn (fun y : F => f x y) Y)
(hfx' : ∀ x ∈ X, QuasiconcaveOn ℝ Y fun y => f x y)
include ne_X ne_Y cX cY kX kY hfx hfx' hfy hfy' in
/-- The minimax theorem, in the saddle point form -/
public theorem exists_isSaddlePointOn :
∃ a ∈ X, ∃ b ∈ Y, IsSaddlePointOn X Y f a b :=
DMCompletion.exists_isSaddlePointOn ne_X cX kX hfy hfy' cY ne_Y kY hfx hfx'
(ι := EReal.orderEmbedding) (hι := continuous_coe_real_ereal)
end Real
end Sion
¤ Dauer der Verarbeitung: 0.16 Sekunden
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|