/-
Copyright (c) 2026 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
module
public import Mathlib.Analysis.Convex.Function
public import Mathlib.Topology.Algebra.ConstMulAction
public import Mathlib.Topology.Algebra.Monoid.Defs
import Mathlib.Topology.Algebra.Monoid
/-!
# Topological properties of the set of convex/concave functions
We prove the following facts:
* `isClosed_setOfPred_convexOn` : the set of convex functions on a set is closed
* `isClosed_setOfPred_concaveOn` : the set of concave functions on a set is closed
-/
open scoped Topology
open Set
variable { α β : Type*} [Semiring ] [PartialOrder ] [PartialOrder β]
[TopologicalSpace β] [OrderClosedTopology β]
[AddCommMonoid α] [AddCommMonoid β]
[SMul α] [SMul β]
[ContinuousConstSMul β] [ContinuousAdd β]
/-- The set of convex functions on a set `s` is closed. -/
public theorem isClosed_setOfPred_convexOn {s : Set α} :
IsClosed {f : α → β | ConvexOn s f} := by
simp only [ConvexOn, ofPred_and, ofPred_forall]
refine IsClosed.inter isClosed_const ?_
exact isClosed_iInter fun x => isClosed_iInter fun hx => isClosed_iInter fun y =>
isClosed_iInter fun hy => isClosed_iInter fun a => isClosed_iInter fun b =>
isClosed_iInter fun ha => isClosed_iInter fun hb => isClosed_iInter fun hab =>
isClosed_le (by fun_prop) (by fun_prop)
@[deprecated (since := "2026-07-09")]
public alias isClosed_setOf_convexOn := isClosed_setOfPred_convexOn
/-- The set of concave functions on a set `s` is closed. -/
public theorem isClosed_setOfPred_concaveOn {s : Set α} :
IsClosed {f : α → β | ConcaveOn s f} :=
isClosed_setOfPred_convexOn (α := α) (β := βᵒᵈ)
@[deprecated (since := "2026-07-09")]
public alias isClosed_setOf_concaveOn := isClosed_setOfPred_concaveOn
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland