Eine aufbereitete Darstellung der Quelle

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


SSL LocallyConvex.lean   Sprache: Lean

 

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

module

public import Mathlib.Analysis.Convex.Topology
public import Mathlib.Topology.Connected.LocallyPathConnected

import Mathlib.Analysis.Convex.PathConnected

/-!
# Locally convex topological modules

A `LocallyConvexSpace` is a topological semimodule over an ordered semiring in which any point
admits a neighborhood basis made of convex sets, or equivalently, in which convex neighborhoods of
a point form a neighborhood basis at that point.

In a module, this is equivalent to `0` satisfying such properties.

## Main results

- `locallyConvexSpace_iff_zero` : in a module, local convexity at zero gives
  local convexity everywhere
- `WithSeminorms.locallyConvexSpace` : a topology generated by a family of seminorms is locally
  convex (in `Analysis.LocallyConvex.WithSeminorms`)
- `NormedSpace.locallyConvexSpace` : a normed space is locally convex
  (in `Analysis.LocallyConvex.WithSeminorms`)

## TODO

- define a structure `LocallyConvexFilterBasis`, extending `ModuleFilterBasis`, for filter
  bases generating a locally convex topology
-/


public section

assert_not_exists NormedSpace

open TopologicalSpace Filter Set

open Topology Pointwise

section Semimodule

/-- A `LocallyConvexSpace` is a topological semimodule over an ordered semiring in which convex
neighborhoods of a point form a neighborhood basis at that point. -/

@[wikidata Q1572357]
class LocallyConvexSpace (�� E : Type*) [Semiring ��] [PartialOrder ��]
    [AddCommMonoid E] [Module �� E] [TopologicalSpace E] : Prop where
  convex_basis : ∀ x : E, (�� x).HasBasis (fun s : Set E => s ∈ �� x ∧ Convex �� s) id

variable (�� E : Type*) [Semiring ��] [PartialOrder ��]
  [AddCommMonoid E] [Module �� E] [TopologicalSpace E]

theorem locallyConvexSpace_iff :
    LocallyConvexSpace �� E ↔ ∀ x : E, (�� x).HasBasis (fun s : Set E => s ∈ �� x ∧ Convex �� s) id :=
  ⟨fun _ ↦ LocallyConvexSpace.convex_basis, LocallyConvexSpace.mk⟩

theorem LocallyConvexSpace.ofBases {ι : Type*} (b : E → ι → Set E) (p : E → ι → Prop)
    (hbasis : ∀ x : E, (�� x).HasBasis (p x) (b x)) (hconvex : ∀ x i, p x i → Convex �� (b x i)) :
    LocallyConvexSpace �� E :=
  ⟨fun x =>
    (hbasis x).to_hasBasis
      (fun i hi => ⟨b x i, ⟨⟨(hbasis x).mem_of_mem hi, hconvex x i hi⟩, le_refl (b x i)⟩⟩)
      fun s hs =>
      ⟨(hbasis x).index s hs.1, ⟨(hbasis x).property_index hs.1, (hbasis x).set_index_subset hs.1⟩⟩⟩

theorem LocallyConvexSpace.convex_basis_zero [LocallyConvexSpace �� E] :
    (�� 0 : Filter E).HasBasis (fun s => s ∈ (�� 0 : Filter E) ∧ Convex �� s) id :=
  LocallyConvexSpace.convex_basis 0

theorem locallyConvexSpace_iff_exists_convex_subset :
    LocallyConvexSpace �� E ↔ ∀ x : E, ∀ U ∈ �� x, ∃ S ∈ �� x, Convex �� S ∧ S ⊆ U :=
  (locallyConvexSpace_iff �� E).trans (forall_congr' fun _ => hasBasis_self)

end Semimodule

section Module

variable (�� E : Type*) [Semiring ��] [PartialOrder ��]
  [AddCommGroup E] [Module �� E] [TopologicalSpace E]
  [IsTopologicalAddGroup E]

theorem LocallyConvexSpace.ofBasisZero {ι : Type*} (b : ι → Set E) (p : ι → Prop)
    (hbasis : (�� 0).HasBasis p b) (hconvex : ∀ i, p i → Convex �� (b i)) :
    LocallyConvexSpace �� E := by
  refine LocallyConvexSpace.ofBases �� E (fun (x : E) (i : ι) => (x + ·) '' b i) (fun _ => p)
    (fun x => ?_) fun x i hi => (hconvex i hi).translate x
  rw [← map_add_left_nhds_zero]
  exact hbasis.map _

theorem locallyConvexSpace_iff_zero : LocallyConvexSpace �� E ↔
    (�� 0 : Filter E).HasBasis (fun s : Set E => s ∈ (�� 0 : Filter E) ∧ Convex �� s) id :=
  ⟨fun _ => LocallyConvexSpace.convex_basis 0, fun h =>
    LocallyConvexSpace.ofBasisZero �� E _ _ h fun _ => And.right⟩

theorem locallyConvexSpace_iff_exists_convex_subset_zero :
    LocallyConvexSpace �� E ↔ ∀ U ∈ (�� 0 : Filter E), ∃ S ∈ (�� 0 : Filter E), Convex �� S ∧ S ⊆ U :=
  (locallyConvexSpace_iff_zero �� E).trans hasBasis_self

-- see Note [lower instance priority]
instance (priority := 100) LocallyConvexSpace.toLocallyPathConnectedSpace [Module ℝ E]
    [ContinuousSMul ℝ E] [LocallyConvexSpace ℝ E] : LocallyPathConnectedSpace E :=
  .of_bases (fun x ↦ convex_basis (�� := ℝ) x)
    fun _ _ hs ↦ hs.2.isPathConnected <| nonempty_of_mem <| mem_of_mem_nhds hs.1

/-- Convex subsets of locally convex spaces are locally path-connected. -/
theorem Convex.locallyPathConnectedSpace [Module ℝ E] [ContinuousSMul ℝ E] [LocallyConvexSpace ℝ E]
    {S : Set E} (hS : Convex ℝ S) : LocallyPathConnectedSpace S := by
  refine ⟨fun x ↦ ⟨fun s ↦ ⟨fun hs ↦ ?_, fun ⟨t, ht⟩ ↦ mem_of_superset ht.1.1 ht.2⟩⟩⟩
  let ⟨t, ht⟩ := (mem_nhds_subtype S x s).mp hs
  let ⟨t', ht'⟩ := (LocallyConvexSpace.convex_basis (�� := ℝ) x.1).mem_iff.mp ht.1
  refine ⟨(↑) ⁻¹' t', ⟨?_, ?_⟩, (preimage_mono ht'.2).trans ht.2⟩
  · exact continuousAt_subtype_val.preimage_mem_nhds ht'.1.1
  · refine Subtype.preimage_coe_self_inter _ _ ▸ IsPathConnected.preimage_coe ?_ inter_subset_left
    exact (hS.inter ht'.1.2).isPathConnected ⟨x, x.2, mem_of_mem_nhds ht'.1.1⟩

@[deprecated (since := "2026-06-21")]
alias Convex.locPathConnectedSpace := Convex.locallyPathConnectedSpace

end Module

section LinearOrderedField

variable (�� E : Type*) [Field ��] [PartialOrder ��] [ZeroLEOneClass ��]
  [AddCommGroup E] [Module �� E] [TopologicalSpace E]
  [IsTopologicalAddGroup E] [ContinuousConstSMul �� E]

theorem LocallyConvexSpace.convex_open_basis_zero [LocallyConvexSpace �� E] :
    (�� 0 : Filter E).HasBasis (fun s => (0 : E) ∈ s ∧ IsOpen s ∧ Convex �� s) id :=
  (LocallyConvexSpace.convex_basis_zero �� E).to_hasBasis
    (fun s hs =>
      ⟨interior s, ⟨mem_interior_iff_mem_nhds.mpr hs.1, isOpen_interior, hs.2.interior⟩,
        interior_subset⟩)
    fun s hs => ⟨s, ⟨hs.2.1.mem_nhds hs.1, hs.2.2⟩, subset_rfl⟩

variable {�� E} [LocallyConvexSpace �� E] {s t : Set E} {x : E}

/-- In a locally convex space, every two disjoint convex sets such that one is compact and the other
is closed admit disjoint convex open neighborhoods. -/

theorem Disjoint.exists_open_convexes (disj : Disjoint s t)
    (hs₁ : Convex �� s) (hs₂ : IsCompact s) (ht₁ : Convex �� t) (ht₂ : IsClosed t) :
    ∃ u v, IsOpen u ∧ IsOpen v ∧ Convex �� u ∧ Convex �� v ∧ s ⊆ u ∧ t ⊆ v ∧ Disjoint u v := by
  let : UniformSpace E := IsTopologicalAddGroup.rightUniformSpace E
  have : IsUniformAddGroup E := isUniformAddGroup_of_addCommGroup
  have := (LocallyConvexSpace.convex_open_basis_zero �� E).comap fun x : E × E => x.1 - x.2
  rw [← uniformity_eq_comap_nhds_zero_swapped] at this
  rcases disj.exists_uniform_thickening_of_basis this hs₂ ht₂ with ⟨V, ⟨hV0, hVopen, hVconvex⟩, hV⟩
  refine ⟨s + V, t + V, hVopen.add_left, hVopen.add_left, hs₁.add hVconvex, ht₁.add hVconvex,
    subset_add_left _ hV0, subset_add_left _ hV0, ?_⟩
  simp_rw [← iUnion_add_left_image, image_add_left]
  simp_rw [show ∀ (W : SetRel E E) (y : E), W.ball y = (fun a ↦ (a, y)) ⁻¹' W from
    fun _ _ ↦ rfl, ← preimage_comp, sub_eq_neg_add] at hV
  exact hV

/-- In a locally convex space, every point `x` and closed convex set `s ∌ x` admit disjoint convex
open neighborhoods. -/

lemma exists_open_convex_of_notMem (hx : x ∉ s) (hsconv : Convex �� s) (hsclosed : IsClosed s) :
    ∃ U V : Set E,
      IsOpen U ∧ IsOpen V ∧ Convex �� U ∧ Convex �� V ∧ x ∈ U ∧ s ⊆ V ∧ Disjoint U V := by
  simpa [*] using Disjoint.exists_open_convexes (s := {x}) (t := s) (�� := ��)

end LinearOrderedField

section LatticeOps

variable {ι : Sort*} {�� E F : Type*} [Semiring ��] [PartialOrder ��]
  [AddCommMonoid E] [Module �� E]
  [AddCommMonoid F] [Module �� F]

protected theorem LocallyConvexSpace.sInf {ts : Set (TopologicalSpace E)}
    (h : ∀ t ∈ ts, @LocallyConvexSpace �� E _ _ _ _ t) :
    @LocallyConvexSpace �� E _ _ _ _ (sInf ts) := by
  let : TopologicalSpace E := sInf ts
  refine .ofBases �� E (fun _ => fun If : Set ts × (ts → Set E) => ⋂ i ∈ If.1, If.2 i)
      (fun x => fun If : Set ts × (ts → Set E) =>
        If.1.Finite ∧ ∀ i ∈ If.1, If.2 i ∈ @nhds _ (↑i) x ∧ Convex �� (If.2 i))
      (fun x => ?_) fun x If hif => convex_iInter fun i => convex_iInter fun hi => (hif.2 i hi).2
  rw [nhds_sInf, ← iInf_subtype'']
  exact .iInf' fun i : ts => (@locallyConvexSpace_iff �� E _ _ _ _ ↑i).mp (h (↑i) i.2) x

protected theorem LocallyConvexSpace.iInf {ts' : ι → TopologicalSpace E}
    (h' : ∀ i, @LocallyConvexSpace �� E _ _ _ _ (ts' i)) :
    @LocallyConvexSpace �� E _ _ _ _ (⨅ i, ts' i) :=
  .sInf <| by rwa [forall_mem_range]

protected theorem LocallyConvexSpace.inf {t₁ t₂ : TopologicalSpace E}
    (h₁ : @LocallyConvexSpace �� E _ _ _ _ t₁)
    (h₂ : @LocallyConvexSpace �� E _ _ _ _ t₂) : @LocallyConvexSpace �� E _ _ _ _ (t₁ ⊓ t₂) := by
  rw [inf_eq_iInf]
  refine .iInf fun b => ?_
  cases b <;> assumption

protected theorem LocallyConvexSpace.induced {t : TopologicalSpace F} [LocallyConvexSpace �� F]
    (f : E →ₗ[��] F) : @LocallyConvexSpace �� E _ _ _ _ (t.induced f) := by
  let : TopologicalSpace E := t.induced f
  refine LocallyConvexSpace.ofBases �� E (fun _ => preimage f)
    (fun x => fun s : Set F => s ∈ �� (f x) ∧ Convex �� s) (fun x => ?_) fun x s ⟨_, hs⟩ =>
    hs.linear_preimage f
  rw [nhds_induced]
  exact (LocallyConvexSpace.convex_basis <| f x).comap f

theorem Topology.IsInducing.locallyConvexSpace [TopologicalSpace F] [LocallyConvexSpace �� F]
    [TopologicalSpace E] {f : E →ₗ[��] F} (hf : IsInducing f) :
    LocallyConvexSpace �� E := by
  rw [hf.eq_induced]
  exact .induced f

instance [TopologicalSpace E] [LocallyConvexSpace �� E] {S : Submodule �� E} :
    LocallyConvexSpace �� S :=
  IsInducing.locallyConvexSpace (f := S.subtype) .subtypeVal

instance Pi.locallyConvexSpace {ι : Type*} {X : ι → Type*} [∀ i, AddCommMonoid (X i)]
    [∀ i, TopologicalSpace (X i)] [∀ i, Module �� (X i)] [∀ i, LocallyConvexSpace �� (X i)] :
    LocallyConvexSpace �� (∀ i, X i) :=
  .iInf fun i => .induced (LinearMap.proj i)

instance Prod.locallyConvexSpace [TopologicalSpace E] [TopologicalSpace F] [LocallyConvexSpace �� E]
    [LocallyConvexSpace �� F] : LocallyConvexSpace �� (E × F) :=
  .inf (.induced (LinearMap.fst _ _ _)) (.induced (LinearMap.snd _ _ _))

end LatticeOps

section LinearOrderedSemiring

/-- A linear ordered semiring is a locally convex space over itself. -/
instance LinearOrderedSemiring.toLocallyConvexSpace {R : Type*} [TopologicalSpace R]
    [Semiring R] [LinearOrder R] [IsStrictOrderedRing R] [OrderTopology R] :
    LocallyConvexSpace R R where
  convex_basis x := by
    obtain hl | hl := isBot_or_exists_lt x
    · refine hl.rec ?_ _
      intro
      refine nhds_bot_basis.to_hasBasis' ?_ ?_
      · intros
        refine ⟨Set.Iio _, ?_, .rfl⟩
        simp_all [Iio_mem_nhds, convex_Iio]
      · simp +contextual
    obtain hu | hu := isTop_or_exists_gt x
    · refine hu.rec ?_ _
      intro
      refine nhds_top_basis.to_hasBasis' ?_ ?_
      · intros
        refine ⟨Set.Ioi _, ?_, subset_rfl⟩
        simp_all
      · simp +contextual
    refine (nhds_basis_Ioo' hl hu).to_hasBasis' ?_ ?_
    · simp only [id_eq, and_imp, Prod.forall]
      exact fun _ _ h₁ h₂ ↦ ⟨_, by simp [h₁, h₂, Ioo_mem_nhds, convex_Ioo], subset_rfl⟩
    · simp +contextual

end LinearOrderedSemiring

lemma Convex.eventually_nhdsWithin_segment {E �� : Type*}
    [Semiring ��] [PartialOrder ��]
    [AddCommMonoid E] [Module �� E] [TopologicalSpace E] [LocallyConvexSpace �� E]
    {s : Set E} (hs : Convex �� s) {x₀ : E} (hx₀s : x₀ ∈ s)
    {p : E → Prop} (h : ∀ᶠ x in ��[s] x₀, p x) :
    ∀ᶠ x in ��[s] x₀, ∀ y ∈ segment �� x₀ x, p y := by
  rw [eventually_nhdsWithin_iff, (LocallyConvexSpace.convex_basis (�� := ��) x₀).eventually_iff]
    at h ⊢
  obtain ⟨u, ⟨hu_nhds, hu_convex⟩, h⟩ := h
  refine ⟨u, ⟨hu_nhds, hu_convex⟩, fun x hxu hxs y hy ↦ h ?_ (hs.segment_subset hx₀s hxs hy)⟩
  suffices segment �� x₀ x ⊆ u from this hy
  exact hu_convex.segment_subset (mem_of_mem_nhds hu_nhds) hxu

Messung
CHZG
9310010097

¤ Dauer der Verarbeitung: 0.9 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,113
#Domains=863,342