Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/Mathlib/Analysis/LocallyConvex/     Datei vom 15.10.2026 mit Größe 4 kB image not shown  

Quelle  AbsConvexOpen.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.Convex.Gauge
public import Mathlib.Analysis.LocallyConvex.AbsConvex
public import Mathlib.Analysis.LocallyConvex.WithSeminorms

/-!
# Absolutely convex open sets

A set `s` in a commutative monoid `E` equipped with a topology is said to be an absolutely convex
open set if it is absolutely convex and open. When `E` is a topological additive group, the topology
coincides with the topology induced by the family of seminorms arising as gauges of absolutely
convex open neighborhoods of zero.

## Main definitions

* `AbsConvexOpenSets`: sets which are absolutely convex and open
* `gaugeSeminormFamily`: the seminorm family induced by all open absolutely convex neighborhoods
  of zero.

## Main statements

* `with_gaugeSeminormFamily`: the topology of a locally convex space is induced by the family
  `gaugeSeminormFamily`.
* `LocallyConvexSpace.toPolynormableSpace`: a locally convex space is polynormable
-/


@[expose] public section

open NormedField Set

open scoped Topology

variable {�� E : Type*}

section AbsolutelyConvexSets

variable [TopologicalSpace E] [AddCommMonoid E] [SeminormedRing ��]
variable [SMul �� E]
variable (�� E) [PartialOrder ��]

/-- The type of absolutely convex open sets. -/
def AbsConvexOpenSets :=
  { s : Set E // (0 : E) ∈ s ∧ IsOpen s ∧ AbsConvex �� s }

noncomputable instance AbsConvexOpenSets.instCoeOut : CoeOut (AbsConvexOpenSets �� E) (Set E) :=
  ⟨Subtype.val⟩

namespace AbsConvexOpenSets

variable {�� E}

theorem coe_zero_mem (s : AbsConvexOpenSets �� E) : (0 : E) ∈ (s : Set E) :=
  s.2.1

theorem coe_isOpen (s : AbsConvexOpenSets �� E) : IsOpen (s : Set E) :=
  s.2.2.1

theorem coe_nhds (s : AbsConvexOpenSets �� E) : (s : Set E) ∈ �� (0 : E) :=
  s.coe_isOpen.mem_nhds s.coe_zero_mem

theorem coe_balanced (s : AbsConvexOpenSets �� E) : Balanced �� (s : Set E) :=
  s.2.2.2.1

theorem coe_convex (s : AbsConvexOpenSets �� E) : Convex �� (s : Set E) :=
  s.2.2.2.2

end AbsConvexOpenSets

instance AbsConvexOpenSets.instNonempty : Nonempty (AbsConvexOpenSets �� E) := by
  rw [← exists_true_iff_nonempty]
  dsimp only [AbsConvexOpenSets]
  rw [Subtype.exists]
  exact ⟨Set.univ, ⟨mem_univ 0, isOpen_univ, balanced_univ, convex_univ⟩, trivial⟩

end AbsolutelyConvexSets

variable [RCLike ��]
variable [AddCommGroup E] [TopologicalSpace E]
variable [Module �� E] [Module ℝ E] [IsScalarTower ℝ �� E]
variable [ContinuousSMul ℝ E]
variable (�� E)

open scoped ComplexOrder

/-- The family of seminorms defined by the gauges of absolute convex open sets. -/
noncomputable def gaugeSeminormFamily : SeminormFamily �� E (AbsConvexOpenSets �� E) := fun s =>
  gaugeSeminorm s.coe_balanced (s.coe_convex.lift ℝ) (absorbent_nhds_zero s.coe_nhds)

variable {�� E}

theorem gaugeSeminormFamily_ball (s : AbsConvexOpenSets �� E) :
    (gaugeSeminormFamily �� E s).ball 0 1 = (s : Set E) := by
  dsimp only [gaugeSeminormFamily]
  rw [Seminorm.ball_zero_eq]
  simp_rw [gaugeSeminorm_toFun]
  exact setOfPred_gauge_lt_one_eq_self_of_isOpen (s.coe_convex.lift ℝ) s.coe_zero_mem s.coe_isOpen

variable [IsTopologicalAddGroup E] [ContinuousSMul �� E]
variable [LocallyConvexSpace �� E]

set_option backward.isDefEq.respectTransparency false in
/-- The topology of a locally convex space is induced by the gauge seminorm family. -/
theorem with_gaugeSeminormFamily : WithSeminorms (gaugeSeminormFamily �� E) := by
  refine SeminormFamily.withSeminorms_of_hasBasis _ ?_
  refine (nhds_hasBasis_absConvex_open �� E).to_hasBasis (fun s hs => ?_) fun s hs => ?_
  · refine ⟨s, ⟨?_, rfl.subset⟩⟩
    convert (gaugeSeminormFamily _ _).basisSets_singleton_mem ⟨s, hs⟩ one_pos
    rw [gaugeSeminormFamily_ball, Subtype.coe_mk]
  refine ⟨s, ⟨?_, rfl.subset⟩⟩
  rw [SeminormFamily.basisSets_iff] at hs
  rcases hs with ⟨t, r, hr, rfl⟩
  rw [Seminorm.ball_finset_sup_eq_iInter _ _ _ hr]
  -- We have to show that the intersection contains zero, is open, balanced, and convex
  refine
    ⟨mem_iInter₂.mpr fun _ _ => by simp [hr],
      isOpen_biInter_finset fun S _ => ?_,
      balanced_iInter₂ fun _ _ => Seminorm.balanced_ball_zero _ _,
      convex_iInter₂ fun _ _ => (convex_of_nonneg_surjective_algebraMap _
        (fun _ => RCLike.nonneg_iff_exists_ofReal.mp) (Seminorm.convex_ball _ _ _) ..)⟩
  -- The only nontrivial part is to show that the ball is open
  have hr' : r = ‖(r : ��)‖ * 1 := by simp [abs_of_pos hr]
  have hr'' : (r : ��) ≠ 0 := by simp [hr.ne']
  rw [hr', ← Seminorm.smul_ball_zero hr'', gaugeSeminormFamily_ball]
  exact S.coe_isOpen.smul₀ hr''

/-- Any locally convex real or complex vector space is polynormable. -/
instance LocallyConvexSpace.toPolynormableSpace : PolynormableSpace �� E :=
  with_gaugeSeminormFamily.toPolynormableSpace

Messung
CHZG
9210010097

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland