The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V22. Affine, Euclidean and convex geometry

Mathlib.Geometry.Convex.Cone.Basic

109 declarations. Mathlib docs · Source

Convex cones

In an R-module M, we define a convex cone as a set s such that a • x + b • y ∈ s whenever x, y ∈ s and a, b > 0. We prove that convex cones form a CompleteLattice, and define their images (ConvexCone.map) and preimages (ConvexCone.comap) under linear maps.

We define pointed, blunt, flat and salient cones, and prove the correspondence between convex cones and ordered modules.

We define Convex.toCone to be the minimal cone that includes a given convex set.

Main statements

In Mathlib/Analysis/Convex/Cone/Extension.lean we prove the M. Riesz extension theorem and a form of the Hahn-Banach theorem.

In Mathlib/Analysis/Convex/Cone/Dual.lean we prove a variant of the hyperplane separation theorem.

Implementation notes

While Convex R is a predicate on sets, ConvexCone R M is a bundled convex cone.

References

  • https://en.wikipedia.org/wiki/Convex_cone
  • [Stephen P. Boyd and Lieven Vandenberghe, Convex Optimization][boydVandenberghe2004]
  • [Emo Welzl and Bernd Gärtner, Cone Programming][welzl_garter]

Definition of ConvexCone and basic properties

Convex cones with extra properties

Submodules are cones

Positive cone of an ordered module

def ConvexCone.ctorIdx E1 #

{R : Type u_2} →
  {M : Type u_4} →
    {inst : Semiring R} →
      {inst_1 : PartialOrder R} → {inst_2 : AddCommMonoid M} → {inst_3 : SMul R M} → ConvexCone R M → ℕ

theorem ConvexCone.mk.injEq E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] (carrier : Set M) (smul_mem' : ∀ ⦃c : R⦄, 0 < c → ∀ ⦃x : M⦄, x ∈ carrier → c • x ∈ carrier)
  (add_mem' : ∀ ⦃x : M⦄, x ∈ carrier → ∀ ⦃y : M⦄, y ∈ carrier → x + y ∈ carrier) (carrier_1 : Set M)
  (smul_mem'_1 : ∀ ⦃c : R⦄, 0 < c → ∀ ⦃x : M⦄, x ∈ carrier_1 → c • x ∈ carrier_1)
  (add_mem'_1 : ∀ ⦃x : M⦄, x ∈ carrier_1 → ∀ ⦃y : M⦄, y ∈ carrier_1 → x + y ∈ carrier_1),
  ({ carrier := carrier, smul_mem' := smul_mem', add_mem' := add_mem' } =
      { carrier := carrier_1, smul_mem' := smul_mem'_1, add_mem' := add_mem'_1 }) =
    (carrier = carrier_1)

theorem ConvexCone.mk.inj E1 #

∀ {R : Type u_2} {M : Type u_4} {inst : Semiring R} {inst_1 : PartialOrder R} {inst_2 : AddCommMonoid M}
  {inst_3 : SMul R M} {carrier : Set M} {smul_mem' : ∀ ⦃c : R⦄, 0 < c → ∀ ⦃x : M⦄, x ∈ carrier → c • x ∈ carrier}
  {add_mem' : ∀ ⦃x : M⦄, x ∈ carrier → ∀ ⦃y : M⦄, y ∈ carrier → x + y ∈ carrier} {carrier_1 : Set M}
  {smul_mem'_1 : ∀ ⦃c : R⦄, 0 < c → ∀ ⦃x : M⦄, x ∈ carrier_1 → c • x ∈ carrier_1}
  {add_mem'_1 : ∀ ⦃x : M⦄, x ∈ carrier_1 → ∀ ⦃y : M⦄, y ∈ carrier_1 → x + y ∈ carrier_1},
  { carrier := carrier, smul_mem' := smul_mem', add_mem' := add_mem' } =
      { carrier := carrier_1, smul_mem' := smul_mem'_1, add_mem' := add_mem'_1 } →
    carrier = carrier_1

structure ConvexCone E3 #

(R : Type u_2) → (M : Type u_4) → [Semiring R] → [PartialOrder R] → [AddCommMonoid M] → [SMul R M] → Type u_4

A convex cone is a subset s of an R-module such that a • x + b • y ∈ s whenever a, b > 0 and x, y ∈ s.

ctor ConvexCone.mk E0 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] →
        [inst_2 : AddCommMonoid M] →
          [inst_3 : SMul R M] →
            (carrier : Set M) →
              (∀ ⦃c : R⦄, 0 < c → ∀ ⦃x : M⦄, x ∈ carrier → c • x ∈ carrier) →
                (∀ ⦃x : M⦄, x ∈ carrier → ∀ ⦃y : M⦄, y ∈ carrier → x + y ∈ carrier) → ConvexCone R M

abbrev ConvexCone.carrier E1 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → ConvexCone R M → Set M

The carrier set underlying this cone: the set of points contained in it

theorem ConvexCone.smul_mem' E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] (self : ConvexCone R M) ⦃c : R⦄, 0 < c → ∀ ⦃x : M⦄, x ∈ self.carrier → c • x ∈ self.carrier

theorem ConvexCone.add_mem' E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] (self : ConvexCone R M) ⦃x : M⦄,
  x ∈ self.carrier → ∀ ⦃y : M⦄, y ∈ self.carrier → x + y ∈ self.carrier

instance ConvexCone.instSetLike E0 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → SetLike (ConvexCone R M) M

instance ConvexCone.instPartialOrder E0 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → PartialOrder (ConvexCone R M)

theorem ConvexCone.coe_mk E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] (s : Set M) (h₁ : ∀ ⦃c : R⦄, 0 < c → ∀ ⦃x : M⦄, x ∈ s → c • x ∈ s)
  (h₂ : ∀ ⦃x : M⦄, x ∈ s → ∀ ⦃y : M⦄, y ∈ s → x + y ∈ s), ↑{ carrier := s, smul_mem' := h₁, add_mem' := h₂ } = s

theorem ConvexCone.mem_mk E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {s : Set M} {x : M} {h₁ : ∀ ⦃c : R⦄, 0 < c → ∀ ⦃x : M⦄, x ∈ s → c • x ∈ s}
  {h₂ : ∀ ⦃x : M⦄, x ∈ s → ∀ ⦃y : M⦄, y ∈ s → x + y ∈ s}, x ∈ { carrier := s, smul_mem' := h₁, add_mem' := h₂ } ↔ x ∈ s

theorem ConvexCone.ext E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {C₁ C₂ : ConvexCone R M}, (∀ (x : M), x ∈ C₁ ↔ x ∈ C₂) → C₁ = C₂

Two ConvexCones are equal if they have the same elements.

theorem ConvexCone.ext_iff E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {C₁ C₂ : ConvexCone R M}, C₁ = C₂ ↔ ∀ (x : M), x ∈ C₁ ↔ x ∈ C₂

theorem ConvexCone.smul_mem E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] (C : ConvexCone R M) {c : R} {x : M}, 0 < c → x ∈ C → c • x ∈ C

theorem ConvexCone.add_mem E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] (C : ConvexCone R M) ⦃x : M⦄, x ∈ C → ∀ ⦃y : M⦄, y ∈ C → x + y ∈ C

instance ConvexCone.instAddMemClass E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M], AddMemClass (ConvexCone R M) M

def ConvexCone.copy E1 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] →
        [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → (C : ConvexCone R M) → (s : Set M) → s = ↑C → ConvexCone R M

Copy of a convex cone with a new carrier equal to the old one. Useful to fix definitional equalities.

theorem ConvexCone.copy_carrier E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] (C : ConvexCone R M) (s : Set M) (hs : s = ↑C), ↑(C.copy s hs) = s

theorem ConvexCone.copy_eq E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] (C : ConvexCone R M) (s : Set M) (hs : s = ↑C), C.copy s hs = C

instance ConvexCone.instInfSet E0 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → InfSet (ConvexCone R M)

theorem ConvexCone.coe_sInf E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] (S : Set (ConvexCone R M)), ↑(sInf S) = ⋂ C ∈ S, ↑C

theorem ConvexCone.mem_sInf E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {x : M} {S : Set (ConvexCone R M)}, x ∈ sInf S ↔ ∀ C ∈ S, x ∈ C

theorem ConvexCone.coe_iInf E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {ι : Sort u_7} (f : ι → ConvexCone R M), ↑(iInf f) = ⋂ i, ↑(f i)

theorem ConvexCone.mem_iInf E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {x : M} {ι : Sort u_7} {f : ι → ConvexCone R M}, x ∈ iInf f ↔ ∀ (i : ι), x ∈ f i

instance ConvexCone.instCompleteSemilatticeInf E0 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] →
        [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → CompleteSemilatticeInf (ConvexCone R M)

def ConvexCone.hull E1 #

(R : Type u_2) →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → Set M → ConvexCone R M

The cone hull of a set. The smallest convex cone containing that set.

theorem ConvexCone.subset_hull E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {s : Set M}, s ⊆ ↑(ConvexCone.hull R s)

theorem ConvexCone.hull_min E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {C : ConvexCone R M} {s : Set M}, s ⊆ ↑C → ConvexCone.hull R s ≤ C

theorem ConvexCone.hull_le_iff E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {C : ConvexCone R M} {s : Set M}, ConvexCone.hull R s ≤ C ↔ s ⊆ ↑C

theorem ConvexCone.gc_hull_coe E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M], GaloisConnection (ConvexCone.hull R) SetLike.coe

def ConvexCone.gi E1 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] →
        [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → GaloisInsertion (ConvexCone.hull R) SetLike.coe

Galois insertion between ConvexCone and SetLike.coe.

instance ConvexCone.instBot E0 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → Bot (ConvexCone R M)

theorem ConvexCone.notMem_bot E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {x : M}, x ∉ ⊥

theorem ConvexCone.coe_bot E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M], ↑⊥ = ∅

theorem ConvexCone.coe_eq_empty E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {C : ConvexCone R M}, ↑C = ∅ ↔ C = ⊥

instance ConvexCone.instCompleteLattice E0 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → CompleteLattice (ConvexCone R M)

theorem ConvexCone.coe_inf E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] (C₁ C₂ : ConvexCone R M), ↑(C₁ ⊓ C₂) = ↑C₁ ∩ ↑C₂

theorem ConvexCone.mem_inf E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {C₁ C₂ : ConvexCone R M} {x : M}, x ∈ C₁ ⊓ C₂ ↔ x ∈ C₁ ∧ x ∈ C₂

theorem ConvexCone.mem_top E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {x : M}, x ∈ ⊤

theorem ConvexCone.coe_top E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M], ↑⊤ = Set.univ

theorem ConvexCone.disjoint_coe E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {C₁ C₂ : ConvexCone R M}, Disjoint ↑C₁ ↑C₂ ↔ Disjoint C₁ C₂

instance ConvexCone.instInhabited E0 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → Inhabited (ConvexCone R M)

theorem ConvexCone.convex E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] (C : ConvexCone R M), Convex R ↑C

def ConvexCone.map E1 #

{R : Type u_2} →
  {M : Type u_4} →
    {N : Type u_5} →
      [inst : Semiring R] →
        [inst_1 : PartialOrder R] →
          [inst_2 : AddCommMonoid M] →
            [inst_3 : AddCommMonoid N] →
              [inst_4 : Module R M] → [inst_5 : Module R N] → (M →ₗ[R] N) → ConvexCone R M → ConvexCone R N

The image of a convex cone under an R-linear map is a convex cone.

theorem ConvexCone.coe_map E0 #

∀ {R : Type u_2} {M : Type u_4} {N : Type u_5} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : AddCommMonoid N] [inst_4 : Module R M] [inst_5 : Module R N] (C : ConvexCone R M) (f : M →ₗ[R] N),
  ↑(ConvexCone.map f C) = ⇑f '' ↑C

theorem ConvexCone.mem_map E0 #

∀ {R : Type u_2} {M : Type u_4} {N : Type u_5} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : AddCommMonoid N] [inst_4 : Module R M] [inst_5 : Module R N] {f : M →ₗ[R] N} {C : ConvexCone R M} {y : N},
  y ∈ ConvexCone.map f C ↔ ∃ x ∈ C, f x = y

theorem ConvexCone.map_map E0 #

∀ {R : Type u_2} {M : Type u_4} {N : Type u_5} {O : Type u_6} [inst : Semiring R] [inst_1 : PartialOrder R]
  [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid O] [inst_5 : Module R M]
  [inst_6 : Module R N] [inst_7 : Module R O] (g : N →ₗ[R] O) (f : M →ₗ[R] N) (C : ConvexCone R M),
  ConvexCone.map g (ConvexCone.map f C) = ConvexCone.map (g ∘ₗ f) C

theorem ConvexCone.map_id E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] (C : ConvexCone R M), ConvexCone.map LinearMap.id C = C

def ConvexCone.comap E1 #

{R : Type u_2} →
  {M : Type u_4} →
    {N : Type u_5} →
      [inst : Semiring R] →
        [inst_1 : PartialOrder R] →
          [inst_2 : AddCommMonoid M] →
            [inst_3 : AddCommMonoid N] →
              [inst_4 : Module R M] → [inst_5 : Module R N] → (M →ₗ[R] N) → ConvexCone R N → ConvexCone R M

The preimage of a convex cone under an R-linear map is a convex cone.

theorem ConvexCone.coe_comap E0 #

∀ {R : Type u_2} {M : Type u_4} {N : Type u_5} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : AddCommMonoid N] [inst_4 : Module R M] [inst_5 : Module R N] (f : M →ₗ[R] N) (C : ConvexCone R N),
  ↑(ConvexCone.comap f C) = ⇑f ⁻¹' ↑C

theorem ConvexCone.comap_id E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] (C : ConvexCone R M), ConvexCone.comap LinearMap.id C = C

theorem ConvexCone.comap_comap E1 #

∀ {R : Type u_2} {M : Type u_4} {N : Type u_5} {O : Type u_6} [inst : Semiring R] [inst_1 : PartialOrder R]
  [inst_2 : AddCommMonoid M] [inst_3 : AddCommMonoid N] [inst_4 : AddCommMonoid O] [inst_5 : Module R M]
  [inst_6 : Module R N] [inst_7 : Module R O] (g : N →ₗ[R] O) (f : M →ₗ[R] N) (C : ConvexCone R O),
  ConvexCone.comap f (ConvexCone.comap g C) = ConvexCone.comap (g ∘ₗ f) C

theorem ConvexCone.mem_comap E0 #

∀ {R : Type u_2} {M : Type u_4} {N : Type u_5} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : AddCommMonoid N] [inst_4 : Module R M] [inst_5 : Module R N] {f : M →ₗ[R] N} {C : ConvexCone R N} {x : M},
  x ∈ ConvexCone.comap f C ↔ f x ∈ C

theorem ConvexCone.smul_mem_iff E0 #

∀ {𝕜 : Type u_1} {M : Type u_4} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : AddCommMonoid M] [inst_4 : MulAction 𝕜 M] (C : ConvexCone 𝕜 M) {c : 𝕜}, 0 < c → ∀ {x : M}, c • x ∈ C ↔ x ∈ C

def ConvexCone.Pointed E1 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → ConvexCone R M → Prop

A convex cone is pointed if it includes 0.

def ConvexCone.Blunt E1 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : SMul R M] → ConvexCone R M → Prop

A convex cone is blunt if it doesn't include 0.

theorem ConvexCone.blunt_iff_not_pointed E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {C : ConvexCone R M}, C.Blunt ↔ ¬C.Pointed

theorem ConvexCone.pointed_iff_not_blunt E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {C : ConvexCone R M}, C.Pointed ↔ ¬C.Blunt

theorem ConvexCone.Pointed.mono E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {C₁ C₂ : ConvexCone R M}, C₁ ≤ C₂ → C₁.Pointed → C₂.Pointed

theorem ConvexCone.Blunt.anti E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : SMul R M] {C₁ C₂ : ConvexCone R M}, C₂ ≤ C₁ → C₁.Blunt → C₂.Blunt

def ConvexCone.Flat E1 #

{R : Type u_2} →
  {G : Type u_3} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommGroup G] → [inst_3 : SMul R G] → ConvexCone R G → Prop

A convex cone is flat if it contains some nonzero vector x and its opposite -x.

def ConvexCone.Salient E3 #

{R : Type u_2} →
  {G : Type u_3} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommGroup G] → [inst_3 : SMul R G] → ConvexCone R G → Prop

A convex cone is salient if it doesn't include x and -x for any nonzero x.

theorem ConvexCone.salient_iff_not_flat E1 #

∀ {R : Type u_2} {G : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup G]
  [inst_3 : SMul R G] {C : ConvexCone R G}, C.Salient ↔ ¬C.Flat

theorem ConvexCone.Flat.mono E1 #

∀ {R : Type u_2} {G : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup G]
  [inst_3 : SMul R G] {C₁ C₂ : ConvexCone R G}, C₁ ≤ C₂ → C₁.Flat → C₂.Flat

theorem ConvexCone.Salient.anti E1 #

∀ {R : Type u_2} {G : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup G]
  [inst_3 : SMul R G] {C₁ C₂ : ConvexCone R G}, C₂ ≤ C₁ → C₁.Salient → C₂.Salient

theorem ConvexCone.Flat.pointed E1 #

∀ {R : Type u_2} {G : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup G]
  [inst_3 : SMul R G] {C : ConvexCone R G}, C.Flat → C.Pointed

A flat cone is always pointed (contains 0).

theorem ConvexCone.Blunt.salient E1 #

∀ {R : Type u_2} {G : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup G]
  [inst_3 : SMul R G] {C : ConvexCone R G}, C.Blunt → C.Salient

A blunt cone (one not containing 0) is always salient.

def ConvexCone.toPreorder E1 #

{R : Type u_2} →
  {G : Type u_3} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] →
        [inst_2 : AddCommGroup G] → [inst_3 : SMul R G] → (C : ConvexCone R G) → C.Pointed → Preorder G

A pointed convex cone defines a preorder.

def ConvexCone.toPartialOrder E1 #

{R : Type u_2} →
  {G : Type u_3} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] →
        [inst_2 : AddCommGroup G] → [inst_3 : SMul R G] → (C : ConvexCone R G) → C.Pointed → C.Salient → PartialOrder G

A pointed and salient cone defines a partial order.

theorem ConvexCone.to_isOrderedAddMonoid E1 #

∀ {R : Type u_2} {G : Type u_3} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup G]
  [inst_3 : SMul R G] (C : ConvexCone R G) (h₁ : C.Pointed) (h₂ : C.Salient),
  have x := C.toPartialOrder h₁ h₂;
  IsOrderedAddMonoid G

A pointed and salient cone defines an IsOrderedAddMonoid.

instance ConvexCone.instZero E0 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : Module R M] → Zero (ConvexCone R M)

theorem ConvexCone.mem_zero E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] {x : M}, x ∈ 0 ↔ x = 0

theorem ConvexCone.coe_zero E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M], ↑0 = 0

theorem ConvexCone.pointed_zero E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M], ConvexCone.Pointed 0

instance ConvexCone.instAdd E0 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : Module R M] → Add (ConvexCone R M)

theorem ConvexCone.coe_add E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] (C₁ C₂ : ConvexCone R M), ↑(C₁ + C₂) = ↑C₁ + ↑C₂

theorem ConvexCone.mem_add E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] {C₁ C₂ : ConvexCone R M} {x : M}, x ∈ C₁ + C₂ ↔ ∃ y ∈ C₁, ∃ z ∈ C₂, y + z = x

instance ConvexCone.instAddZeroClass E0 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : Module R M] → AddZeroClass (ConvexCone R M)

instance ConvexCone.instAddCommSemigroup E0 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : Module R M] → AddCommSemigroup (ConvexCone R M)

def ConvexCone.IsReproducing E1 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommGroup M] → [inst_3 : Module R M] → ConvexCone R M → Prop

A convex cone is reproducing if its set of element differences equals the entire module, i.e., every element of M can be written as a difference of two elements of C.

theorem ConvexCone.IsReproducing.of_univ_subset E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup M]
  [inst_3 : Module R M] {C : ConvexCone R M}, Set.univ ⊆ ↑C - ↑C → C.IsReproducing

A sufficient criterion for a convex cone C to be reproducing is that Set.univ is a subset of C - C.

theorem ConvexCone.IsReproducing.sub_eq_univ E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup M]
  [inst_3 : Module R M] {C : ConvexCone R M}, C.IsReproducing → ↑C - ↑C = Set.univ

The set difference of a reproducing cone with itself equals Set.univ.

theorem ConvexCone.IsReproducing.span_eq_top E1 #

∀ {R : Type u_7} {M : Type u_8} [inst : Ring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup M]
  [inst_3 : Module R M] {C : ConvexCone R M}, C.IsReproducing → Submodule.span R ↑C = ⊤

theorem ConvexCone.IsReproducing.of_span_eq_top E1 #

∀ {R : Type u_7} {M : Type u_8} [inst : Ring R] [inst_1 : LinearOrder R] [AddLeftStrictMono R] [inst_3 : AddCommGroup M]
  [Nontrivial M] [inst_5 : Module R M] {C : ConvexCone R M}, Submodule.span R ↑C = ⊤ → C.IsReproducing

theorem ConvexCone.span_eq_top_iff_isReproducing E1 #

∀ {R : Type u_7} {M : Type u_8} [inst : Ring R] [inst_1 : LinearOrder R] [AddLeftStrictMono R] [inst_3 : AddCommGroup M]
  [Nontrivial M] [inst_5 : Module R M] {C : ConvexCone R M}, Submodule.span R ↑C = ⊤ ↔ C.IsReproducing

theorem ConvexCone.mem_hull_of_convex E0 #

∀ {𝕜 : Type u_1} {M : Type u_4} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : AddCommGroup M] [inst_4 : Module 𝕜 M] {s : Set M} {x : M},
  Convex 𝕜 s → (x ∈ ConvexCone.hull 𝕜 s ↔ ∃ r, 0 < r ∧ x ∈ r • s)

The cone hull of a convex set is simply the union of the open halflines through that set.

theorem ConvexCone.coe_hull_of_convex E0 #

∀ {𝕜 : Type u_1} {M : Type u_4} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : AddCommGroup M] [inst_4 : Module 𝕜 M] {s : Set M},
  Convex 𝕜 s → ↑(ConvexCone.hull 𝕜 s) = {x | ∃ r, 0 < r ∧ x ∈ r • s}

The cone hull of a convex set is simply the union of the open halflines through that set.

theorem ConvexCone.disjoint_hull_left_of_convex E1 #

∀ {𝕜 : Type u_1} {M : Type u_4} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : AddCommGroup M] [inst_4 : Module 𝕜 M] {C : ConvexCone 𝕜 M} {s : Set M},
  Convex 𝕜 s → (Disjoint (ConvexCone.hull 𝕜 s) C ↔ Disjoint s ↑C)

theorem ConvexCone.disjoint_hull_right_of_convex E1 #

∀ {𝕜 : Type u_1} {M : Type u_4} [inst : Field 𝕜] [inst_1 : LinearOrder 𝕜] [IsStrictOrderedRing 𝕜]
  [inst_3 : AddCommGroup M] [inst_4 : Module 𝕜 M] {C : ConvexCone 𝕜 M} {s : Set M},
  Convex 𝕜 s → (Disjoint C (ConvexCone.hull 𝕜 s) ↔ Disjoint (↑C) s)

def Submodule.toConvexCone E1 #

{R : Type u_2} →
  {M : Type u_4} →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] → [inst_2 : AddCommMonoid M] → [inst_3 : Module R M] → Submodule R M → ConvexCone R M

Every submodule is trivially a convex cone.

theorem Submodule.coe_toConvexCone E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] (C : Submodule R M), ↑C.toConvexCone = ↑C

theorem Submodule.mem_toConvexCone E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] {C : Submodule R M} {x : M}, x ∈ C.toConvexCone ↔ x ∈ C

theorem Submodule.toConvexCone_le_toConvexCone E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] {C₁ C₂ : Submodule R M}, C₁.toConvexCone ≤ C₂.toConvexCone ↔ C₁ ≤ C₂

theorem Submodule.toConvexCone_bot E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M], ⊥.toConvexCone = 0

theorem Submodule.toConvexCone_top E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M], ⊤.toConvexCone = ⊤

theorem Submodule.toConvexCone_inf E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] (C₁ C₂ : Submodule R M), (C₁ ⊓ C₂).toConvexCone = C₁.toConvexCone ⊓ C₂.toConvexCone

theorem Submodule.pointed_toConvexCone E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M] (C : Submodule R M), C.toConvexCone.Pointed

def ConvexCone.positive E3 #

(R : Type u_2) →
  (M : Type u_4) →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] →
        [inst_2 : AddCommMonoid M] →
          [inst_3 : PartialOrder M] →
            [IsOrderedAddMonoid M] → [inst_5 : Module R M] → [PosSMulMono R M] → ConvexCone R M

The positive cone is the convex cone formed by the set of nonnegative elements in an ordered module.

theorem ConvexCone.mem_positive E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : PartialOrder M] [inst_4 : IsOrderedAddMonoid M] [inst_5 : Module R M] [inst_6 : PosSMulMono R M] {x : M},
  x ∈ ConvexCone.positive R M ↔ 0 ≤ x

theorem ConvexCone.coe_positive E0 #

∀ (R : Type u_2) (M : Type u_4) [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : PartialOrder M] [inst_4 : IsOrderedAddMonoid M] [inst_5 : Module R M] [inst_6 : PosSMulMono R M],
  ↑(ConvexCone.positive R M) = Set.Ici 0

theorem ConvexCone.salient_positive E1 #

∀ {R : Type u_2} [inst : Semiring R] [inst_1 : PartialOrder R] {G : Type u_7} [inst_2 : AddCommGroup G]
  [inst_3 : PartialOrder G] [inst_4 : IsOrderedAddMonoid G] [inst_5 : Module R G] [inst_6 : PosSMulMono R G],
  (ConvexCone.positive R G).Salient

The positive cone of an ordered module is always salient.

theorem ConvexCone.pointed_positive E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommMonoid M]
  [inst_3 : PartialOrder M] [inst_4 : IsOrderedAddMonoid M] [inst_5 : Module R M] [inst_6 : PosSMulMono R M],
  (ConvexCone.positive R M).Pointed

The positive cone of an ordered module is always pointed.

def ConvexCone.strictlyPositive E1 #

(R : Type u_2) →
  (M : Type u_4) →
    [inst : Semiring R] →
      [inst_1 : PartialOrder R] →
        [inst_2 : AddCommGroup M] →
          [inst_3 : PartialOrder M] →
            [IsOrderedAddMonoid M] → [inst_5 : Module R M] → [PosSMulStrictMono R M] → ConvexCone R M

The cone of strictly positive elements.

Note that this naming diverges from the mathlib convention of pos and nonneg due to "positive cone" (ConvexCone.positive) being established terminology for the non-negative elements.

theorem ConvexCone.mem_strictlyPositive E0 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup M]
  [inst_3 : PartialOrder M] [inst_4 : IsOrderedAddMonoid M] [inst_5 : Module R M] [inst_6 : PosSMulStrictMono R M]
  {x : M}, x ∈ ConvexCone.strictlyPositive R M ↔ 0 < x

theorem ConvexCone.coe_strictlyPositive E0 #

∀ (R : Type u_2) (M : Type u_4) [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup M]
  [inst_3 : PartialOrder M] [inst_4 : IsOrderedAddMonoid M] [inst_5 : Module R M] [inst_6 : PosSMulStrictMono R M],
  ↑(ConvexCone.strictlyPositive R M) = Set.Ioi 0

theorem ConvexCone.strictlyPositive_le_positive E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup M]
  [inst_3 : PartialOrder M] [inst_4 : IsOrderedAddMonoid M] [inst_5 : Module R M] [inst_6 : PosSMulStrictMono R M],
  ConvexCone.strictlyPositive R M ≤ ConvexCone.positive R M

theorem ConvexCone.salient_strictlyPositive E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup M]
  [inst_3 : PartialOrder M] [inst_4 : IsOrderedAddMonoid M] [inst_5 : Module R M] [inst_6 : PosSMulStrictMono R M],
  (ConvexCone.strictlyPositive R M).Salient

The strictly positive cone of an ordered module is always salient.

theorem ConvexCone.blunt_strictlyPositive E1 #

∀ {R : Type u_2} {M : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R] [inst_2 : AddCommGroup M]
  [inst_3 : PartialOrder M] [inst_4 : IsOrderedAddMonoid M] [inst_5 : Module R M] [inst_6 : PosSMulStrictMono R M],
  (ConvexCone.strictlyPositive R M).Blunt

The strictly positive cone of an ordered module is always blunt.