The areas / V16. Normed spaces and functional analysis
Mathlib.Analysis.Convex.Cone.Basic
32 declarations. Mathlib docs ยท Source
Proper cones
We define a proper cone as a closed, pointed cone. Proper cones are used in defining conic programs which generalize linear programs. A linear program is a conic program for the positive cone. We then prove Farkas' lemma for conic programs following the proof in the reference below. Farkas' lemma is equivalent to strong duality. So, once we have the definitions of conic and linear programs, the results from this file can be used to prove duality theorems.
One can turn C : PointedCone R E + hC : IsClosed C into C : ProperCone R E in a tactic block
by doing lift C to ProperCone R E using hC.
One can also turn C : ConvexCone ๐ E + hC : Set.Nonempty C โง IsClosed C into
C : ProperCone ๐ E in a tactic block by doing lift C to ProperCone ๐ E using hC,
assuming ๐ is a dense topological field.
TODO
The next steps are:
- Add
ConvexConeClassthat extendsSetLikeand replace the below instance - Define primal and dual cone programs and prove weak duality.
- Prove regular and strong duality for cone programs using Farkas' lemma (see reference).
- Define linear programs and prove LP duality as a special case of cone duality.
- Find a better reference (textbook instead of lecture notes).
References
- [B. Gartner and J. Matousek, Cone Programming][gartnerMatousek]
Topological properties of convex cones
This section proves topological results about convex cones.
abbrev ProperCone E1 #
(R : Type u_2) โ
(E : Type u_3) โ
[inst : Semiring R] โ
[inst_1 : PartialOrder R] โ
[IsOrderedRing R] โ [inst_3 : AddCommMonoid E] โ [TopologicalSpace E] โ [Module R E] โ Type u_3
A proper cone is a pointed cone C that is closed. Proper cones have the nice property that
they are equal to their double dual, see ProperCone.dual_dual.
This makes them useful for defining cone programs and proving duality theorems.
abbrev ProperCone.toPointedCone E1 #
{R : Type u_2} โ
{E : Type u_3} โ
[inst : Semiring R] โ
[inst_1 : PartialOrder R] โ
[inst_2 : IsOrderedRing R] โ
[inst_3 : AddCommMonoid E] โ
[inst_4 : TopologicalSpace E] โ [inst_5 : Module R E] โ ProperCone R E โ PointedCone R E
Any proper cone can be seen as a pointed cone.
This is an alias of ClosedSubmodule.toSubmodule for convenience and discoverability.
instance ProperCone.instCoePointedCone E0 #
{R : Type u_2} โ
{E : Type u_3} โ
[inst : Semiring R] โ
[inst_1 : PartialOrder R] โ
[inst_2 : IsOrderedRing R] โ
[inst_3 : AddCommMonoid E] โ
[inst_4 : TopologicalSpace E] โ [inst_5 : Module R E] โ Coe (ProperCone R E) (PointedCone R E)
theorem ProperCone.toPointedCone_injective E1 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E],
Function.Injective ProperCone.toPointedCone
instance ProperCone.instSetLike E0 #
{R : Type u_2} โ
{E : Type u_3} โ
[inst : Semiring R] โ
[inst_1 : PartialOrder R] โ
[inst_2 : IsOrderedRing R] โ
[inst_3 : AddCommMonoid E] โ
[inst_4 : TopologicalSpace E] โ [inst_5 : Module R E] โ SetLike (ProperCone R E) E
instance ProperCone.instPartialOrder E0 #
{R : Type u_2} โ
{E : Type u_3} โ
[inst : Semiring R] โ
[inst_1 : PartialOrder R] โ
[inst_2 : IsOrderedRing R] โ
[inst_3 : AddCommMonoid E] โ
[inst_4 : TopologicalSpace E] โ [inst_5 : Module R E] โ PartialOrder (ProperCone R E)
theorem ProperCone.ext_iff E0 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] {Cโ Cโ : ProperCone R E},
Cโ = Cโ โ โ (x : E), x โ Cโ โ x โ Cโ
theorem ProperCone.ext E1 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] {Cโ Cโ : ProperCone R E},
(โ (x : E), x โ Cโ โ x โ Cโ) โ Cโ = Cโ
theorem ProperCone.mem_toPointedCone E0 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] {C : ProperCone R E} {x : E},
x โ โC โ x โ C
theorem ProperCone.pointed_toConvexCone E1 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] (C : ProperCone R E), (โโC).Pointed
theorem ProperCone.nonempty E1 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] (C : ProperCone R E), (โC).Nonempty
theorem ProperCone.isClosed E1 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] (C : ProperCone R E), IsClosed โC
theorem ProperCone.convex E1 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] (C : ProperCone R E), Convex R โC
theorem ProperCone.smul_mem E1 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] {r : R} {x : E} (C : ProperCone R E),
x โ C โ 0 โค r โ r โข x โ C
theorem ProperCone.mem_bot E0 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] {x : E} [inst_6 : T1Space E],
x โ โฅ โ x = 0
theorem ProperCone.coe_bot E0 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] [inst_6 : T1Space E], โโฅ = {0}
theorem ProperCone.toPointedCone_bot E0 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] [inst_6 : T1Space E], โโฅ = โฅ
abbrev ProperCone.comap E1 #
{R : Type u_2} โ
{E : Type u_3} โ
{F : Type u_4} โ
[inst : Semiring R] โ
[inst_1 : PartialOrder R] โ
[inst_2 : IsOrderedRing R] โ
[inst_3 : AddCommMonoid E] โ
[inst_4 : TopologicalSpace E] โ
[inst_5 : Module R E] โ
[inst_6 : AddCommMonoid F] โ
[inst_7 : TopologicalSpace F] โ
[inst_8 : Module R F] โ (E โL[R] F) โ ProperCone R F โ ProperCone R E
The closure of image of a proper cone under an R-linear map is a proper cone. We
use continuous maps here so that the comap of f is also a map between proper cones.
theorem ProperCone.comap_id E0 #
โ {R : Type u_2} {F : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid F] [inst_4 : TopologicalSpace F] [inst_5 : Module R F] (C : ProperCone R F),
ProperCone.comap (ContinuousLinearMap.id R F) C = C
theorem ProperCone.coe_comap E0 #
โ {R : Type u_2} {E : Type u_3} {F : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] [inst_6 : AddCommMonoid F]
[inst_7 : TopologicalSpace F] [inst_8 : Module R F] (f : E โL[R] F) (C : ProperCone R F),
โ(ProperCone.comap f C) = โf โปยน' โC
theorem ProperCone.comap_comap E1 #
โ {R : Type u_2} {E : Type u_3} {F : Type u_4} {G : Type u_5} [inst : Semiring R] [inst_1 : PartialOrder R]
[inst_2 : IsOrderedRing R] [inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E]
[inst_6 : AddCommMonoid F] [inst_7 : TopologicalSpace F] [inst_8 : Module R F] [inst_9 : AddCommMonoid G]
[inst_10 : TopologicalSpace G] [inst_11 : Module R G] (g : F โL[R] G) (f : E โL[R] F) (C : ProperCone R G),
ProperCone.comap f (ProperCone.comap g C) = ProperCone.comap (g โSL f) C
theorem ProperCone.mem_comap E0 #
โ {R : Type u_2} {E : Type u_3} {F : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] [inst_6 : AddCommMonoid F]
[inst_7 : TopologicalSpace F] [inst_8 : Module R F] {x : E} {C : ProperCone R F} {f : E โL[R] F},
x โ ProperCone.comap f C โ f x โ C
abbrev ProperCone.map E1 #
{R : Type u_2} โ
{E : Type u_3} โ
{F : Type u_4} โ
[inst : Semiring R] โ
[inst_1 : PartialOrder R] โ
[inst_2 : IsOrderedRing R] โ
[inst_3 : AddCommMonoid E] โ
[inst_4 : TopologicalSpace E] โ
[inst_5 : Module R E] โ
[inst_6 : AddCommMonoid F] โ
[inst_7 : TopologicalSpace F] โ
[inst_8 : Module R F] โ
[ContinuousAdd F] โ [ContinuousConstSMul R F] โ (E โL[R] F) โ ProperCone R E โ ProperCone R F
The closure of image of a proper cone under a linear map is a proper cone.
We use continuous maps here to match ProperCone.comap.
theorem ProperCone.map_id E0 #
โ {R : Type u_2} {F : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid F] [inst_4 : TopologicalSpace F] [inst_5 : Module R F] [inst_6 : ContinuousAdd F]
[inst_7 : ContinuousConstSMul R F] (C : ProperCone R F), ProperCone.map (ContinuousLinearMap.id R F) C = C
theorem ProperCone.coe_map E0 #
โ {R : Type u_2} {E : Type u_3} {F : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] [inst_6 : AddCommMonoid F]
[inst_7 : TopologicalSpace F] [inst_8 : Module R F] [inst_9 : ContinuousAdd F] [inst_10 : ContinuousConstSMul R F]
(f : E โL[R] F) (C : ProperCone R E), โ(ProperCone.map f C) = (PointedCone.map โf โC).closure
theorem ProperCone.mem_map E0 #
โ {R : Type u_2} {E : Type u_3} {F : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] [inst_6 : AddCommMonoid F]
[inst_7 : TopologicalSpace F] [inst_8 : Module R F] [inst_9 : ContinuousAdd F] [inst_10 : ContinuousConstSMul R F]
{f : E โL[R] F} {C : ProperCone R E} {y : F}, y โ ProperCone.map f C โ y โ (PointedCone.map โf โC).closure
def ProperCone.positive E1 #
(R : Type u_2) โ
(E : Type u_3) โ
[inst : Semiring R] โ
[inst_1 : PartialOrder R] โ
[inst_2 : IsOrderedRing R] โ
[inst_3 : AddCommMonoid E] โ
[inst_4 : TopologicalSpace E] โ
[inst_5 : Module R E] โ
[inst_6 : PartialOrder E] โ
[IsOrderedAddMonoid E] โ [PosSMulMono R E] โ [OrderClosedTopology E] โ ProperCone R E
The positive cone is the proper cone formed by the set of nonnegative elements in an ordered module.
theorem ProperCone.coe_positive E0 #
โ (R : Type u_2) (E : Type u_3) [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] [inst_6 : PartialOrder E]
[inst_7 : IsOrderedAddMonoid E] [inst_8 : PosSMulMono R E] [inst_9 : OrderClosedTopology E],
โ(ProperCone.positive R E) = Set.Ici 0
theorem ProperCone.mem_positive E0 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] [inst_6 : PartialOrder E]
[inst_7 : IsOrderedAddMonoid E] [inst_8 : PosSMulMono R E] [inst_9 : OrderClosedTopology E] {x : E},
x โ ProperCone.positive R E โ 0 โค x
theorem ProperCone.toPointedCone_positive E0 #
โ {R : Type u_2} {E : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : IsOrderedRing R]
[inst_3 : AddCommMonoid E] [inst_4 : TopologicalSpace E] [inst_5 : Module R E] [inst_6 : PartialOrder E]
[inst_7 : IsOrderedAddMonoid E] [inst_8 : PosSMulMono R E] [inst_9 : OrderClosedTopology E],
โ(ProperCone.positive R E) = PointedCone.positive R E
theorem ConvexCone.Pointed.of_nonempty_of_isClosed E1 #
โ {๐ : Type u_1} {E : Type u_3} [inst : AddCommMonoid E] [inst_1 : TopologicalSpace E] [inst_2 : Semifield ๐]
[inst_3 : LinearOrder ๐] [inst_4 : Module ๐ E] [inst_5 : TopologicalSpace ๐] [OrderTopology ๐] [DenselyOrdered ๐]
[NoMaxOrder ๐] [ContinuousSMul ๐ E] {C : ConvexCone ๐ E}, (โC).Nonempty โ IsClosed โC โ C.Pointed
instance ConvexCone.canLift E0 #
โ {๐ : Type u_1} {E : Type u_3} [inst : AddCommMonoid E] [inst_1 : TopologicalSpace E] [inst_2 : Semifield ๐]
[inst_3 : LinearOrder ๐] [inst_4 : Module ๐ E] [inst_5 : TopologicalSpace ๐] [OrderTopology ๐] [DenselyOrdered ๐]
[NoMaxOrder ๐] [ContinuousSMul ๐ E] [inst_10 : IsOrderedRing ๐],
CanLift (ConvexCone ๐ E) (ProperCone ๐ E) (fun x โฆ โโx) fun C โฆ (โC).Nonempty โง IsClosed โC