Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  BalancedCoreHull.lean   Sprache: Lean

 

/-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/

module

public import Mathlib.Analysis.LocallyConvex.Basic

import Mathlib.Tactic.Bound

/-!
# Balanced Core and Balanced Hull

## Main definitions

* `balancedCore`: The largest balanced subset of a set `s`.
* `balancedHull`: The smallest balanced superset of a set `s`.

## Main statements

* `balancedCore_eq_iInter`: Characterization of the balanced core as an intersection over subsets.
* `nhds_basis_closed_balanced`: The closed balanced sets form a basis of the neighborhood filter.

## Implementation details

The `balancedHull` is defined as the `ClosureOperator` associated to the predicate `Balanced ��`,
i.e., as the intersection over all balanced sets containing `s`. The `ClosureOperator` API then
provides most of the main results about the hull, e.g., `subset_balancedHull` and
`Balanced.balancedHull_subset_of_subset`.

On the other hand, `balancedCore �� s` is defined directly as the union of all balanced subsets
of `s`. This is exactly the `ClosureOperator` of `Balanced ��` on the order dual `(Set E)ᵒᵈ`, but
there's not much support for such objects at this time in Mathlib.

Under slightly stronger assumptions, the hull can be described as the union over `r • s`, for `r`
the scalars with `‖r‖ ≤ 1`; this is `balancedHull_eq_iUnion`. Likewise, the core can be
characterized as an intersection, this is `balancedCore_eq_iInter`.

## References

* [Bourbaki, *Topological Vector Spaces*][bourbaki1987]

## Tags

balanced
-/


@[expose] public section


open Set Pointwise Filter

open scoped Topology

variable {�� E ι : Type*}

section balancedHull

section SeminormedRing

variable [SeminormedRing ��]

section SMul

variable (��) [SMul �� E] {s t : Set E} {x : E}

/-- The largest balanced subset of `s`. -/
def balancedCore (s : Set E) : Set E :=
  ⋃₀ { t : Set E | Balanced �� t ∧ t ⊆ s }

/-- Helper definition to prove `balanced_core_eq_iInter` -/
@[deprecated "Use balancedCore directly instead" (since := "2026-09-16")]
def balancedCoreAux (s : Set E) :=
  ⋂ (r : ��) (_ : 1 ≤ ‖r‖), r • s

/-- The smallest balanced superset of `s`. -/
def balancedHull : ClosureOperator (Set E) :=
  .ofCompletePred (Balanced ��) fun _ ↦ .sInter

variable {��}

theorem balancedCore_subset (s : Set E) : balancedCore �� s ⊆ s :=
  sUnion_subset fun _ ht ↦ ht.2

theorem balancedCore.balanced (s : Set E) : Balanced �� (balancedCore �� s) :=
  .sUnion fun _ ht ↦ ht.1

@[deprecated (since := "2026-09-08")]
alias balancedCore_balanced := balancedCore.balanced

/-- The balanced core of `t` is maximal in the sense that it contains any balanced subset
`s` of `t`. -/

theorem Balanced.subset_balancedCore_of_subset (hs : Balanced �� s) (h : s ⊆ t) :
    s ⊆ balancedCore �� t :=
  subset_sUnion_of_mem ⟨hs, h⟩

@[mono, gcongr]
theorem balancedCore_mono (hst : s ⊆ t) : balancedCore �� s ⊆ balancedCore �� t :=
  (balancedCore.balanced s).subset_balancedCore_of_subset ((balancedCore_subset s).trans hst)

theorem balancedCore_empty : balancedCore �� (∅ : Set E) = ∅ :=
  eq_empty_of_subset_empty (balancedCore_subset _)

theorem mem_balancedCore_iff : x ∈ balancedCore �� s ↔ ∃ t, Balanced �� t ∧ t ⊆ s ∧ x ∈ t := by
  simp_rw [balancedCore, mem_sUnion, mem_ofPred_eq, and_assoc]

@[deprecated "Use mem_balancedCore_iff directly" (since := "2026-09-16")]
theorem mem_balancedCoreAux_iff : x ∈ balancedCoreAux �� s ↔ ∀ r : ��, 1 ≤ ‖r‖ → x ∈ r • s :=
  mem_iInter₂

theorem smul_balancedCore_subset (s : Set E) {a : ��} (ha : ‖a‖ ≤ 1) :
    a • balancedCore �� s ⊆ balancedCore �� s :=
  balancedCore.balanced s a ha

lemma Balanced.balancedCore_eq (h : Balanced �� s) : balancedCore �� s = s :=
  le_antisymm (balancedCore_subset _) (h.subset_balancedCore_of_subset subset_rfl)

theorem balancedHull.balanced (s : Set E) : Balanced �� (balancedHull �� s) :=
  (balancedHull ��).isClosed_closure s

variable (��) in
theorem subset_balancedHull : s ⊆ balancedHull �� s :=
  (balancedHull ��).le_closure s

/-- The balanced hull of `s` is minimal in the sense that it is contained in any balanced superset
`t` of `s`. -/

theorem Balanced.balancedHull_subset_of_subset (ht : Balanced �� t) (h : s ⊆ t) :
    balancedHull �� s ⊆ t :=
  ClosureOperator.closure_min h ht

@[mono, gcongr]
theorem balancedHull_mono (hst : s ⊆ t) : balancedHull �� s ⊆ balancedHull �� t :=
  (balancedHull ��).monotone hst

end SMul

section Module

variable [AddCommGroup E] [Module �� E] {s : Set E} {x : E}

theorem balancedCore_zero_mem (hs : (0 : E) ∈ s) : (0 : E) ∈ balancedCore �� s :=
  mem_balancedCore_iff.2 ⟨0, balanced_zero, zero_subset.2 hs, Set.zero_mem_zero⟩

theorem balancedCore_nonempty_iff : (balancedCore �� s).Nonempty ↔ (0 : E) ∈ s :=
  ⟨fun h => zero_subset.1 <| (zero_smul_set h).superset.trans <|
    (balancedCore.balanced s (0 : ��) <| norm_zero.trans_le zero_le_one).trans <|
      balancedCore_subset _,
    fun h => ⟨0, balancedCore_zero_mem h⟩⟩

lemma Balanced.zero_mem (hs : Balanced �� s) (hs_nonempty : s.Nonempty) : (0 : E) ∈ s := by
  rw [← hs.balancedCore_eq] at hs_nonempty
  exact balancedCore_nonempty_iff.mp hs_nonempty

/-- The balanced hull of `s` is the union of the sets `r • s`, for `r` a scalar with `‖r‖ ≤ 1`. -/
theorem balancedHull_eq_iUnion [NormOneClass ��] (s : Set E) :
    balancedHull �� s = ⋃ (r : ��) (_ : ‖r‖ ≤ 1), r • s := by
  refine subset_antisymm (Balanced.balancedHull_subset_of_subset ?_ ?_) ?_
  · intro a ha
    simp_rw [smul_set_iUnion₂, subset_def, mem_iUnion₂]
    rintro x ⟨r, hr, hx⟩
    rw [← smul_assoc] at hx
    exact ⟨a • r, (norm_mul_le _ _).trans ((mul_le_of_le_one_left (norm_nonneg r) ha).trans hr), hx⟩
  · exact fun x hx ↦ mem_iUnion₂.2 ⟨1, norm_one.le, x, hx, one_smul _ _⟩
  · exact iUnion₂_subset fun r hr ↦
      (smul_set_mono (subset_balancedHull ��)).trans (balancedHull.balanced s r hr)

theorem mem_balancedHull_iff [NormOneClass ��] :
    x ∈ balancedHull �� s ↔ ∃ r : ��, ‖r‖ ≤ 1 ∧ x ∈ r • s := by
  simp [balancedHull_eq_iUnion]

theorem balancedHull_add_subset {t : Set E} :
    balancedHull �� (s + t) ⊆ balancedHull �� s + balancedHull �� t :=
  (balancedHull ��).closure_binop_le (fun _ _ _ _ h h' ↦ add_subset_add h h')
    (fun _ _ hs ht ↦ hs.add ht) s t

end Module

end SeminormedRing

section NormedField

variable [NormedDivisionRing ��] [AddCommGroup E] [Module �� E] {s t : Set E}

@[deprecated "Use balancedCore_empty directly" (since := "2026-09-16")]
theorem balancedCoreAux_empty : balancedCoreAux �� (∅ : Set E) = ∅ := by
  simp_rw [balancedCoreAux, iInter₂_eq_empty_iff, smul_set_empty]
  exact fun _ => ⟨1, norm_one.ge, notMem_empty _⟩

@[deprecated "Use balancedCore_subset directly" (since := "2026-09-16")]
theorem balancedCoreAux_subset (s : Set E) : balancedCoreAux �� s ⊆ s := fun x hx => by
  simpa only [one_smul] using mem_balancedCoreAux_iff.1 hx 1 norm_one.ge

@[deprecated "Use balancedCore.balanced directly" (since := "2026-09-16")]
theorem balancedCoreAux_balanced (h0 : (0 : E) ∈ balancedCoreAux �� s) :
    Balanced �� (balancedCoreAux �� s) := by
  rintro a ha x ⟨y, hy, rfl⟩
  obtain rfl | h := eq_or_ne a 0
  · simp_rw [zero_smul, h0]
  rw [mem_balancedCoreAux_iff] at hy ⊢
  intro r hr
  have h'' : 1 ≤ ‖a⁻¹ • r‖ := by
    rw [norm_smul, norm_inv]
    exact one_le_mul_of_one_le_of_one_le ((one_le_inv₀ (norm_pos_iff.mpr h)).2 ha) hr
  have h' := hy (a⁻¹ • r) h''
  rwa [smul_assoc, mem_inv_smul_set_iff₀ h] at h'

@[deprecated "Use Balanced.subset_balancedCore_of_subset directly" (since := "2026-09-16")]
theorem balancedCoreAux_maximal (h : t ⊆ s) (ht : Balanced �� t) : t ⊆ balancedCoreAux �� s := by
  refine fun x hx => mem_balancedCoreAux_iff.2 fun r hr => ?_
  rw [mem_smul_set_iff_inv_smul_mem₀ (norm_pos_iff.mp <| zero_lt_one.trans_le hr)]
  refine h (ht.smul_mem ?_ hx)
  rw [norm_inv]
  exact inv_le_one_of_one_le₀ hr

@[deprecated "Use balancedCore directly instead of balancedCoreAux" (since := "2026-09-16")]
theorem balancedCore_subset_balancedCoreAux : balancedCore �� s ⊆ balancedCoreAux �� s :=
  balancedCoreAux_maximal (balancedCore_subset s) (balancedCore_balanced s)

theorem iInter_smul_subset (s : Set E) : (⋂ (r : ��) (_ : 1 ≤ ‖r‖), r • s) ⊆ s := fun x hx => by
  simpa only [one_smul] using mem_iInter₂.1 hx 1 norm_one.ge

/-- Any balanced subset of `s` is contained in `⋂ (r : ��) (_ : 1 ≤ ‖r‖), r • s`. -/
theorem Balanced.subset_iInter_smul (ht : Balanced �� t) (h : t ⊆ s) :
    t ⊆ ⋂ (r : ��) (_ : 1 ≤ ‖r‖), r • s := by
  refine fun x hx => mem_iInter₂.2 fun r hr => ?_
  rw [mem_smul_set_iff_inv_smul_mem₀ (norm_pos_iff.mp <| zero_lt_one.trans_le hr)]
  refine h (ht.smul_mem ?_ hx)
  rw [norm_inv]
  exact inv_le_one_of_one_le₀ hr

/-- If `s` contains the origin, then `⋂ (r : ��) (_ : 1 ≤ ‖r‖), r • s` is balanced; by
`balancedCore_eq_iInter` it is then the balanced core of `s`. -/

theorem balanced_iInter_smul (hs : (0 : E) ∈ s) :
    Balanced �� (⋂ (r : ��) (_ : 1 ≤ ‖r‖), r • s) := by
  have h0 : (0 : E) ∈ ⋂ (r : ��) (_ : 1 ≤ ‖r‖), r • s :=
    mem_iInter₂.2 fun r _ => ⟨0, hs, smul_zero r⟩
  rintro a ha x ⟨y, hy, rfl⟩
  obtain rfl | h := eq_or_ne a 0
  · simp_rw [zero_smul, h0]
  rw [mem_iInter₂] at hy ⊢
  intro r hr
  have h'' : 1 ≤ ‖a⁻¹ • r‖ := by
    rw [norm_smul, norm_inv]
    exact one_le_mul_of_one_le_of_one_le ((one_le_inv₀ (norm_pos_iff.mpr h)).2 ha) hr
  have h' := hy (a⁻¹ • r) h''
  rwa [smul_assoc, mem_inv_smul_set_iff₀ h] at h'

theorem balancedCore_eq_iInter (hs : (0 : E) ∈ s) :
    balancedCore �� s = ⋂ (r : ��) (_ : 1 ≤ ‖r‖), r • s :=
  ((balancedCore.balanced s).subset_iInter_smul (balancedCore_subset s)).antisymm
    ((balanced_iInter_smul hs).subset_balancedCore_of_subset (iInter_smul_subset s))

theorem subset_balancedCore (ht : (0 : E) ∈ t) (hst : ∀ a : ��, ‖a‖ ≤ 1 → a • s ⊆ t) :
    s ⊆ balancedCore �� t := by
  rw [balancedCore_eq_iInter ht]
  refine subset_iInter₂ fun a ha ↦ ?_
  rw [subset_smul_set_iff₀ (norm_pos_iff.mp <| zero_lt_one.trans_le ha)]
  apply hst
  rw [norm_inv]
  exact inv_le_one_of_one_le₀ ha

end NormedField

end balancedHull

/-! ### Topological properties -/

section Topology

variable [NormedDivisionRing ��] [AddCommGroup E] [Module �� E] [TopologicalSpace E] {U : Set E}

protected theorem IsOpen.balancedHull [ContinuousConstSMul �� E] {s : Set E} (hs : IsOpen s)
    (hzero : 0 ∈ s) : IsOpen (balancedHull �� s) := by
  have : (⋃ r : ��, ⋃ (_ : ‖r‖ ≤ 1), r • s) = (⋃ r : ��, ⋃ (_ : ‖r‖ ≤ 1 ∧ r ≠ 0), r • s) := by
    refine subset_antisymm (Set.iUnion₂_mono' fun r hr ↦ ?_) (Set.iUnion₂_mono' (by grind))
    obtain rfl | hr_ne := eq_or_ne r 0
    · exact ⟨1, by simp, by simpa [Set.zero_smul_set ⟨0, hzero⟩]⟩
    · use r
  rw [balancedHull_eq_iUnion, this]
  exact isOpen_biUnion (s := {r : �� | ‖r‖ ≤ 1 ∧ r ≠ 0}) fun r hr ↦ hs.smul₀ hr.2

variable [ContinuousSMul �� E]

protected theorem IsClosed.balancedCore (hU : IsClosed U) : IsClosed (balancedCore �� U) := by
  obtain h | h := eq_empty_or_nonempty (balancedCore �� U)
  · simp [h]
  · rw [balancedCore_eq_iInter (balancedCore_nonempty_iff.mp h)]
    refine isClosed_iInter fun a => ?_
    refine isClosed_iInter fun ha => ?_
    have ha' := lt_of_lt_of_le zero_lt_one ha
    rw [norm_pos_iff] at ha'
    exact isClosedMap_smul_of_ne_zero ha' U hU

-- We don't have a `NontriviallyNormedDivisionRing`, so we use a `NeBot` assumption instead
variable [NeBot (��[≠] (0 : ��))]

theorem balancedCore_mem_nhds_zero (hU : U ∈ �� (0 : E)) : balancedCore �� U ∈ �� (0 : E) := by
  -- Getting neighborhoods of the origin for `0 : ��` and `0 : E`
  obtain ⟨r, V, hr, hV, hrVU⟩ : ∃ (r : ℝ) (V : Set E),
      0 < r ∧ V ∈ �� (0 : E) ∧ ∀ (c : ��) (y : E), ‖c‖ < r → y ∈ V → c • y ∈ U := by
    have h : Filter.Tendsto (fun x : �� × E => x.fst • x.snd) (�� (0, 0)) (�� 0) :=
      continuous_smul.tendsto' (0, 0) _ (smul_zero _)
    simpa only [← Prod.exists', ← Prod.forall', ← and_imp, ← and_assoc, exists_prop] using!
      h.basis_left (NormedAddGroup.nhds_zero_basis_norm_lt.prod_nhds (�� _).basis_sets) U hU
  obtain ⟨y, hyr, hy₀⟩ : ∃ y : ��, ‖y‖ < r ∧ y ≠ 0 :=
    Filter.nonempty_of_mem <|
      (nhdsWithin_hasBasis NormedAddGroup.nhds_zero_basis_norm_lt {0}ᶜ).mem_of_mem hr
  have : y • V ∈ �� (0 : E) := (set_smul_mem_nhds_zero_iff hy₀).mpr hV
  -- It remains to show that `y • V ⊆ balancedCore �� U`
  refine Filter.mem_of_superset this (subset_balancedCore (mem_of_mem_nhds hU) fun a ha => ?_)
  rw [smul_smul]
  rintro _ ⟨z, hz, rfl⟩
  refine hrVU _ _ ?_ hz
  rw [norm_mul, ← one_mul r]
  exact mul_lt_mul' ha hyr (norm_nonneg y) one_pos

variable (�� E)

theorem nhds_basis_balanced :
    (�� (0 : E)).HasBasis (fun s : Set E => s ∈ �� (0 : E) ∧ Balanced �� s) id :=
  Filter.hasBasis_self.mpr fun s hs =>
    ⟨balancedCore �� s, balancedCore_mem_nhds_zero hs, balancedCore.balanced s,
      balancedCore_subset s⟩

/-- The open balanced sets form a basis of the neighborhood filter of the origin: the balanced hull
of an open neighborhood of `0` is again open. -/

theorem nhds_basis_open_balanced :
    (�� (0 : E)).HasBasis (fun s : Set E => s ∈ �� (0 : E) ∧ IsOpen s ∧ Balanced �� s) id :=
  (nhds_basis_opens' 0).and_isClosed (c := balancedHull ��) (nhds_basis_balanced �� E)
    fun _ hs hso ↦ hso.balancedHull (mem_of_mem_nhds hs)

/-- The closed balanced sets form a basis of the neighborhood filter of the origin: the closure of
a balanced neighborhood of `0` is again balanced. -/

theorem nhds_basis_closed_balanced [RegularSpace E] :
    (�� (0 : E)).HasBasis (fun s : Set E => s ∈ �� (0 : E) ∧ IsClosed s ∧ Balanced �� s) id :=
  ((nhds_basis_balanced �� E).and_isClosed (c := Topology.closureOperator E) (closed_nhds_basis 0)
    fun _ _ ht ↦ ht.closure).to_hasBasis
      (fun s hs ↦ ⟨s, ⟨hs.1, hs.2.2, hs.2.1⟩, Subset.rfl⟩)
      (fun s hs ↦ ⟨s, ⟨hs.1, hs.2.2, hs.2.1⟩, Subset.rfl⟩)

end Topology

Messung
CHZG
9110010096

¤ Dauer der Verarbeitung: 0.3 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,158
#Domains=932,832