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

Quelle  Closure.lean   Sprache: Lean

 

/-
Copyright (c) 2023 Apurva Nakade. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Apurva Nakade
-/

module

public import Mathlib.Geometry.Convex.Cone.Pointed
public import Mathlib.Topology.Algebra.ConstMulAction
public import Mathlib.Topology.Algebra.Monoid.Defs

/-!
# Closure of cones

We define the closures of convex and pointed cones. This construction is primarily needed for
defining maps between proper cones. The current API is basic and should be extended as necessary.
-/


@[expose] public section

namespace ConvexCone

variable {�� : Type*} [Semiring ��] [PartialOrder ��]
variable {E : Type*} [AddCommMonoid E] [TopologicalSpace E] [ContinuousAdd E] [SMul �� E]
  [ContinuousConstSMul �� E]

/-- The closure of a convex cone inside a topological space as a convex cone. This
construction is mainly used for defining maps between proper cones. -/

protected def closure (K : ConvexCone �� E) : ConvexCone �� E where
  carrier := closure ↑K
  smul_mem' c hc _ h₁ := map_mem_closure (by fun_prop) h₁ fun _ h₂ ↦ K.smul_mem hc h₂
  add_mem' _ h₁ _ h₂ := map_mem_closure₂ continuous_add h₁ h₂ K.add_mem

@[simp, norm_cast]
theorem coe_closure (K : ConvexCone �� E) : (K.closure : Set E) = closure K :=
  rfl

@[simp]
protected theorem mem_closure {K : ConvexCone �� E} {a : E} :
    a ∈ K.closure ↔ a ∈ closure (K : Set E) :=
  Iff.rfl

@[simp]
theorem closure_eq {K L : ConvexCone �� E} : K.closure = L ↔ closure (K : Set E) = L :=
  SetLike.ext'_iff

end ConvexCone



namespace PointedCone

variable {�� : Type*} [Semiring ��] [PartialOrder ��] [IsOrderedRing ��]
variable {E : Type*} [AddCommMonoid E] [TopologicalSpace E] [ContinuousAdd E] [Module �� E]
  [ContinuousConstSMul �� E]

lemma toConvexCone_closure_pointed (K : PointedCone �� E) : (K : ConvexCone �� E).closure.Pointed :=
  subset_closure <| PointedCone.pointed_toConvexCone _

/-- The closure of a pointed cone inside a topological space as a pointed cone. This
construction is mainly used for defining maps between proper cones. -/

protected def closure (K : PointedCone �� E) : PointedCone �� E where
  carrier := closure ↑K
  zero_mem' := subset_closure (zero_mem K)
  smul_mem' c _ h₁ := map_mem_closure (continuous_const_smul c.1) h₁ fun _ h₂ ↦ K.smul_mem c.2 h₂
  add_mem' h₁ h₂ := map_mem_closure₂ continuous_add h₁ h₂ (fun _ ha _ hb ↦ K.add_mem ha hb)

@[simp, norm_cast]
theorem coe_closure (K : PointedCone �� E) : (K.closure : Set E) = closure K :=
  rfl

@[simp]
protected theorem mem_closure {K : PointedCone �� E} {a : E} :
    a ∈ K.closure ↔ a ∈ closure (K : Set E) :=
  Iff.rfl

@[simp]
theorem closure_eq {K L : PointedCone �� E} : K.closure = L ↔ closure (K : Set E) = L :=
  SetLike.ext'_iff

end PointedCone

Messung
CHZG
9210010097

¤ Dauer der Verarbeitung: 0.5 Sekunden  ¤

*© Formatika GbR, Deutschland