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 / V16. Normed spaces and functional analysis

Mathlib.Analysis.Convex.Segment

82 declarations. Mathlib docs Β· Source

Segments in vector spaces

In a π•œ-vector space, we define the following objects and properties.

  • segment π•œ x y: Closed segment joining x and y.
  • openSegment π•œ x y: Open segment joining x and y.

Notation

We provide the following notation:

  • [x -[π•œ] y] = segment π•œ x y in scope Convex

TODO

Generalize all this file to affine spaces.

Should we rename segment and openSegment to convex.Icc and convex.Ioo? Should we also define clopenSegment/convex.Ico/convex.Ioc?

Segments in an ordered space

Relates segment, openSegment and Set.Icc, Set.Ico, Set.Ioc, Set.Ioo

def segment E1 #

(π•œ : Type u_1) β†’ {E : Type u_2} β†’ [Semiring π•œ] β†’ [PartialOrder π•œ] β†’ [AddCommMonoid E] β†’ [SMul π•œ E] β†’ E β†’ E β†’ Set E

Segments in a vector space. Denoted as [x -[π•œ] y] within the Convex namespace.

def openSegment E1 #

(π•œ : Type u_1) β†’ {E : Type u_2} β†’ [Semiring π•œ] β†’ [PartialOrder π•œ] β†’ [AddCommMonoid E] β†’ [SMul π•œ E] β†’ E β†’ E β†’ Set E

Open segment in a vector space. Note that openSegment π•œ x x = {x} instead of being βˆ… when the base semiring has some element between 0 and 1.

def Convex.Β«term[_-[_]_]Β» E1 #

Lean.ParserDescr

Segments in a vector space. Denoted as [x -[π•œ] y] within the Convex namespace.

theorem segment_eq_imageβ‚‚ E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : SMul π•œ E] (x y : E), segment π•œ x y = (fun p ↦ p.1 β€’ x + p.2 β€’ y) '' {p | 0 ≀ p.1 ∧ 0 ≀ p.2 ∧ p.1 + p.2 = 1}

theorem openSegment_eq_imageβ‚‚ E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : SMul π•œ E] (x y : E),
  openSegment π•œ x y = (fun p ↦ p.1 β€’ x + p.2 β€’ y) '' {p | 0 < p.1 ∧ 0 < p.2 ∧ p.1 + p.2 = 1}

theorem segment_symm E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : SMul π•œ E] (x y : E), segment π•œ x y = segment π•œ y x

theorem openSegment_symm E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : SMul π•œ E] (x y : E), openSegment π•œ x y = openSegment π•œ y x

theorem openSegment_subset_segment E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : SMul π•œ E] (x y : E), openSegment π•œ x y βŠ† segment π•œ x y

theorem segment_subset_iff E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : SMul π•œ E] {s : Set E} {x y : E},
  segment π•œ x y βŠ† s ↔ βˆ€ (a b : π•œ), 0 ≀ a β†’ 0 ≀ b β†’ a + b = 1 β†’ a β€’ x + b β€’ y ∈ s

theorem openSegment_subset_iff E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : SMul π•œ E] {s : Set E} {x y : E},
  openSegment π•œ x y βŠ† s ↔ βˆ€ (a b : π•œ), 0 < a β†’ 0 < b β†’ a + b = 1 β†’ a β€’ x + b β€’ y ∈ s

theorem left_mem_segment E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [ZeroLEOneClass π•œ] [inst_4 : MulActionWithZero π•œ E] (x y : E), x ∈ segment π•œ x y

theorem right_mem_segment E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [ZeroLEOneClass π•œ] [inst_4 : MulActionWithZero π•œ E] (x y : E), y ∈ segment π•œ x y

theorem segment_same E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [ZeroLEOneClass π•œ] [inst_4 : Module π•œ E] (x : E), segment π•œ x x = {x}

theorem insert_endpoints_openSegment E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [ZeroLEOneClass π•œ] [inst_4 : Module π•œ E] (x y : E), insert x (insert y (openSegment π•œ x y)) = segment π•œ x y

theorem mem_openSegment_of_ne_left_right E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [ZeroLEOneClass π•œ] [inst_4 : Module π•œ E] {x y z : E}, x β‰  z β†’ y β‰  z β†’ z ∈ segment π•œ x y β†’ z ∈ openSegment π•œ x y

theorem openSegment_subset_iff_segment_subset E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [ZeroLEOneClass π•œ] [inst_4 : Module π•œ E] {s : Set E} {x y : E},
  x ∈ s β†’ y ∈ s β†’ (openSegment π•œ x y βŠ† s ↔ segment π•œ x y βŠ† s)

theorem segment.lift E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [ZeroLEOneClass π•œ] [inst_4 : Module π•œ E] (R : Type u_7) [inst_5 : Semiring R] [inst_6 : PartialOrder R]
  [inst_7 : Module R E] [inst_8 : Module R π•œ] [IsScalarTower R π•œ E] [SMulPosMono R π•œ] (x y : E),
  segment R x y βŠ† segment π•œ x y

theorem openSegment.lift E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [ZeroLEOneClass π•œ] [inst_4 : Module π•œ E] (R : Type u_7) [inst_5 : Semiring R] [inst_6 : PartialOrder R]
  [inst_7 : Module R E] [inst_8 : Module R π•œ] [IsScalarTower R π•œ E] [Nontrivial π•œ] [SMulPosStrictMono R π•œ] (x y : E),
  openSegment R x y βŠ† openSegment π•œ x y

theorem openSegment_same E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] [ZeroLEOneClass π•œ] [Nontrivial π•œ] [DenselyOrdered π•œ] (x : E), openSegment π•œ x x = {x}

theorem segment_eq_image E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (x y : E), segment π•œ x y = (fun ΞΈ ↦ (1 - ΞΈ) β€’ x + ΞΈ β€’ y) '' Set.Icc 0 1

theorem openSegment_eq_image E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (x y : E), openSegment π•œ x y = (fun ΞΈ ↦ (1 - ΞΈ) β€’ x + ΞΈ β€’ y) '' Set.Ioo 0 1

theorem segment_eq_image' E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (x y : E), segment π•œ x y = (fun ΞΈ ↦ x + ΞΈ β€’ (y - x)) '' Set.Icc 0 1

theorem openSegment_eq_image' E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (x y : E), openSegment π•œ x y = (fun ΞΈ ↦ x + ΞΈ β€’ (y - x)) '' Set.Ioo 0 1

theorem segment_eq_image_lineMap E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (x y : E), segment π•œ x y = ⇑(AffineMap.lineMap x y) '' Set.Icc 0 1

theorem openSegment_eq_image_lineMap E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (x y : E), openSegment π•œ x y = ⇑(AffineMap.lineMap x y) '' Set.Ioo 0 1

theorem lineMap_mem_openSegment E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (a b : E) {t : π•œ}, t ∈ Set.Ioo 0 1 β†’ (AffineMap.lineMap a b) t ∈ openSegment π•œ a b

theorem lineMap_mem_segment E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (a b : E) {t : π•œ}, t ∈ Set.Icc 0 1 β†’ (AffineMap.lineMap a b) t ∈ segment π•œ a b

theorem image_segment E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} {F : Type u_3} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : AddCommGroup F] [inst_5 : Module π•œ E] [inst_6 : Module π•œ F] (f : E →ᡃ[π•œ] F)
  (a b : E), ⇑f '' segment π•œ a b = segment π•œ (f a) (f b)

theorem image_openSegment E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} {F : Type u_3} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : AddCommGroup F] [inst_5 : Module π•œ E] [inst_6 : Module π•œ F] (f : E →ᡃ[π•œ] F)
  (a b : E), ⇑f '' openSegment π•œ a b = openSegment π•œ (f a) (f b)

theorem vadd_segment E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} {G : Type u_4} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : AddCommGroup G] [inst_5 : Module π•œ E] [inst_6 : AddTorsor G E]
  [VAddCommClass G E E] (a : G) (b c : E), a +α΅₯ segment π•œ b c = segment π•œ (a +α΅₯ b) (a +α΅₯ c)

theorem vadd_openSegment E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} {G : Type u_4} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : AddCommGroup G] [inst_5 : Module π•œ E] [inst_6 : AddTorsor G E]
  [VAddCommClass G E E] (a : G) (b c : E), a +α΅₯ openSegment π•œ b c = openSegment π•œ (a +α΅₯ b) (a +α΅₯ c)

theorem mem_segment_translate E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (a : E) {x b c : E}, a + x ∈ segment π•œ (a + b) (a + c) ↔ x ∈ segment π•œ b c

theorem mem_openSegment_translate E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (a : E) {x b c : E}, a + x ∈ openSegment π•œ (a + b) (a + c) ↔ x ∈ openSegment π•œ b c

theorem segment_translate_preimage E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (a b c : E), (fun x ↦ a + x) ⁻¹' segment π•œ (a + b) (a + c) = segment π•œ b c

theorem openSegment_translate_preimage E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (a b c : E), (fun x ↦ a + x) ⁻¹' openSegment π•œ (a + b) (a + c) = openSegment π•œ b c

theorem segment_translate_image E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (a b c : E), (fun x ↦ a + x) '' segment π•œ b c = segment π•œ (a + b) (a + c)

theorem openSegment_translate_image E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] (a b c : E), (fun x ↦ a + x) '' openSegment π•œ b c = openSegment π•œ (a + b) (a + c)

theorem segment_inter_subset_endpoint_of_linearIndependent_sub E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] {c x y : E}, LinearIndependent π•œ ![x - c, y - c] β†’ segment π•œ c x ∩ segment π•œ c y βŠ† {c}

theorem segment_inter_eq_endpoint_of_linearIndependent_sub E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : Ring π•œ] [inst_1 : PartialOrder π•œ] [AddRightMono π•œ] [inst_3 : AddCommGroup E]
  [inst_4 : Module π•œ E] [ZeroLEOneClass π•œ] {c x y : E},
  LinearIndependent π•œ ![x - c, y - c] β†’ segment π•œ c x ∩ segment π•œ c y = {c}

theorem sameRay_of_mem_segment E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : CommRing π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] {x y z : E}, x ∈ segment π•œ y z β†’ SameRay π•œ (x - y) (z - x)

theorem segment_inter_eq_endpoint_of_linearIndependent_of_ne E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : CommRing π•œ] [inst_1 : PartialOrder π•œ] [IsOrderedRing π•œ] [IsDomain π•œ]
  [inst_4 : AddCommGroup E] [inst_5 : Module π•œ E] {x y : E},
  LinearIndependent π•œ ![x, y] β†’
    βˆ€ {s t : π•œ}, s β‰  t β†’ βˆ€ (c : E), segment π•œ (c + x) (c + t β€’ y) ∩ segment π•œ (c + x) (c + s β€’ y) = {c + x}

theorem midpoint_mem_openSegment E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Ring π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] [inst_5 : Invertible 2] (x y : E), midpoint π•œ x y ∈ openSegment π•œ x y

theorem midpoint_mem_segment E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Ring π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] [inst_5 : Invertible 2] (x y : E), midpoint π•œ x y ∈ segment π•œ x y

theorem mem_openSegment_sub_add E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Ring π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] [Invertible 2] (x y : E), x ∈ openSegment π•œ (x - y) (x + y)

theorem mem_segment_sub_add E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Ring π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] [Invertible 2] (x y : E), x ∈ segment π•œ (x - y) (x + y)

theorem mem_openSegment_add_sub E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Ring π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] [Invertible 2] (x y : E), x ∈ openSegment π•œ (x + y) (x - y)

theorem mem_segment_add_sub E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Ring π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] [Invertible 2] (x y : E), x ∈ segment π•œ (x + y) (x - y)

theorem left_mem_openSegment_iff E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Ring π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] {x y : E} [DenselyOrdered π•œ] [Module.IsTorsionFree π•œ E],
  x ∈ openSegment π•œ x y ↔ x = y

theorem right_mem_openSegment_iff E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Ring π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] {x y : E} [DenselyOrdered π•œ] [Module.IsTorsionFree π•œ E],
  y ∈ openSegment π•œ x y ↔ x = y

theorem mem_segment_iff_div E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Semifield π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] {x y z : E},
  x ∈ segment π•œ y z ↔ βˆƒ a b, 0 ≀ a ∧ 0 ≀ b ∧ 0 < a + b ∧ (a / (a + b)) β€’ y + (b / (a + b)) β€’ z = x

theorem mem_openSegment_iff_div E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Semifield π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] {x y z : E},
  x ∈ openSegment π•œ y z ↔ βˆƒ a b, 0 < a ∧ 0 < b ∧ (a / (a + b)) β€’ y + (b / (a + b)) β€’ z = x

theorem mem_segment_iff_sameRay E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [inst_2 : IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] {x y z : E}, x ∈ segment π•œ y z ↔ SameRay π•œ (x - y) (z - x)

theorem openSegment_subset_union E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ]
  [inst_3 : AddCommGroup E] [inst_4 : Module π•œ E] (x y : E) {z : E},
  z ∈ Set.range ⇑(AffineMap.lineMap x y) β†’ openSegment π•œ x y βŠ† insert z (openSegment π•œ x z βˆͺ openSegment π•œ z y)

If z = lineMap x y c is a point on the line passing through x and y, then the open segment openSegment π•œ x y is included in the union of the open segments openSegment π•œ x z, openSegment π•œ z y, and the point z. Informally, (x, y) βŠ† {z} βˆͺ (x, z) βˆͺ (z, y).

theorem segment_subset_Icc E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : PartialOrder E] [IsOrderedAddMonoid E] [inst_5 : Module π•œ E] [PosSMulMono π•œ E] {x y : E},
  x ≀ y β†’ segment π•œ x y βŠ† Set.Icc x y

theorem openSegment_subset_Ioo E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : PartialOrder E] [IsOrderedCancelAddMonoid E] [inst_5 : Module π•œ E] [PosSMulStrictMono π•œ E] {x y : E},
  x < y β†’ openSegment π•œ x y βŠ† Set.Ioo x y

theorem segment_subset_uIcc E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : LinearOrder E] [IsOrderedAddMonoid E] [inst_5 : Module π•œ E] [PosSMulMono π•œ E] (x y : E),
  segment π•œ x y βŠ† Set.uIcc x y

theorem Convex.min_le_combo E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : LinearOrder E] [IsOrderedAddMonoid E] [inst_5 : Module π•œ E] [PosSMulMono π•œ E] {a b : π•œ} (x y : E),
  0 ≀ a β†’ 0 ≀ b β†’ a + b = 1 β†’ min x y ≀ a β€’ x + b β€’ y

theorem Convex.combo_le_max E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : LinearOrder E] [IsOrderedAddMonoid E] [inst_5 : Module π•œ E] [PosSMulMono π•œ E] {a b : π•œ} (x y : E),
  0 ≀ a β†’ 0 ≀ b β†’ a + b = 1 β†’ a β€’ x + b β€’ y ≀ max x y

theorem Icc_subset_segment E1 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ] {x y : π•œ},
  Set.Icc x y βŠ† segment π•œ x y

theorem segment_eq_Icc E0 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ] {x y : π•œ},
  x ≀ y β†’ segment π•œ x y = Set.Icc x y

theorem Ioo_subset_openSegment E1 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ] {x y : π•œ},
  Set.Ioo x y βŠ† openSegment π•œ x y

theorem openSegment_eq_Ioo E0 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ] {x y : π•œ},
  x < y β†’ openSegment π•œ x y = Set.Ioo x y

theorem segment_eq_Icc' E1 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ] (x y : π•œ),
  segment π•œ x y = Set.Icc (min x y) (max x y)

theorem openSegment_eq_Ioo' E1 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ] {x y : π•œ},
  x β‰  y β†’ openSegment π•œ x y = Set.Ioo (min x y) (max x y)

theorem segment_eq_uIcc E1 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ] (x y : π•œ),
  segment π•œ x y = Set.uIcc x y

theorem Convex.mem_Icc E0 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ] {x y z : π•œ},
  x ≀ y β†’ (z ∈ Set.Icc x y ↔ βˆƒ a b, 0 ≀ a ∧ 0 ≀ b ∧ a + b = 1 ∧ a * x + b * y = z)

A point is in an Icc iff it can be expressed as a convex combination of the endpoints.

theorem Convex.mem_Ioo E0 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ] {x y z : π•œ},
  x < y β†’ (z ∈ Set.Ioo x y ↔ βˆƒ a b, 0 < a ∧ 0 < b ∧ a + b = 1 ∧ a * x + b * y = z)

A point is in an Ioo iff it can be expressed as a strict convex combination of the endpoints.

theorem Convex.mem_Ioc E0 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ] {x y z : π•œ},
  x < y β†’ (z ∈ Set.Ioc x y ↔ βˆƒ a b, 0 ≀ a ∧ 0 < b ∧ a + b = 1 ∧ a * x + b * y = z)

A point is in an Ioc iff it can be expressed as a semistrict convex combination of the endpoints.

theorem Convex.mem_Ico E0 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [IsStrictOrderedRing π•œ] {x y z : π•œ},
  x < y β†’ (z ∈ Set.Ico x y ↔ βˆƒ a b, 0 < a ∧ 0 ≀ b ∧ a + b = 1 ∧ a * x + b * y = z)

A point is in an Ico iff it can be expressed as a semistrict convex combination of the endpoints.

theorem Nonneg.Icc_subset_segment E1 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [inst_2 : IsStrictOrderedRing π•œ] {x y : Nonneg π•œ},
  Set.Icc x y βŠ† segment (Nonneg π•œ) x y

theorem Nonneg.segment_eq_Icc E1 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [inst_2 : IsStrictOrderedRing π•œ] {x y : Nonneg π•œ},
  x ≀ y β†’ segment (Nonneg π•œ) x y = Set.Icc x y

theorem Nonneg.segment_eq_uIcc E1 #

βˆ€ {π•œ : Type u_1} [inst : Field π•œ] [inst_1 : LinearOrder π•œ] [inst_2 : IsStrictOrderedRing π•œ] {x y : Nonneg π•œ},
  segment (Nonneg π•œ) x y = Set.uIcc x y

theorem Prod.segment_subset E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : AddCommMonoid F] [inst_4 : Module π•œ E] [inst_5 : Module π•œ F] (x y : E Γ— F),
  segment π•œ x y βŠ† segment π•œ x.1 y.1 Γ—Λ’ segment π•œ x.2 y.2

theorem Prod.openSegment_subset E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : AddCommMonoid F] [inst_4 : Module π•œ E] [inst_5 : Module π•œ F] (x y : E Γ— F),
  openSegment π•œ x y βŠ† openSegment π•œ x.1 y.1 Γ—Λ’ openSegment π•œ x.2 y.2

theorem Prod.image_mk_segment_left E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : AddCommMonoid F] [inst_4 : Module π•œ E] [inst_5 : Module π•œ F] (x₁ xβ‚‚ : E) (y : F),
  (fun x ↦ (x, y)) '' segment π•œ x₁ xβ‚‚ = segment π•œ (x₁, y) (xβ‚‚, y)

theorem Prod.image_mk_segment_right E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : AddCommMonoid F] [inst_4 : Module π•œ E] [inst_5 : Module π•œ F] (x : E) (y₁ yβ‚‚ : F),
  (fun y ↦ (x, y)) '' segment π•œ y₁ yβ‚‚ = segment π•œ (x, y₁) (x, yβ‚‚)

theorem Prod.image_mk_openSegment_left E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : AddCommMonoid F] [inst_4 : Module π•œ E] [inst_5 : Module π•œ F] (x₁ xβ‚‚ : E) (y : F),
  (fun x ↦ (x, y)) '' openSegment π•œ x₁ xβ‚‚ = openSegment π•œ (x₁, y) (xβ‚‚, y)

theorem Prod.image_mk_openSegment_right E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} {F : Type u_3} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ] [inst_2 : AddCommMonoid E]
  [inst_3 : AddCommMonoid F] [inst_4 : Module π•œ E] [inst_5 : Module π•œ F] (x : E) (y₁ yβ‚‚ : F),
  (fun y ↦ (x, y)) '' openSegment π•œ y₁ yβ‚‚ = openSegment π•œ (x, y₁) (x, yβ‚‚)

theorem Pi.segment_subset E1 #

βˆ€ {π•œ : Type u_1} {ΞΉ : Type u_5} {M : ΞΉ β†’ Type u_6} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ]
  [inst_2 : (i : ΞΉ) β†’ AddCommMonoid (M i)] [inst_3 : (i : ΞΉ) β†’ Module π•œ (M i)] {s : Set ΞΉ} (x y : (i : ΞΉ) β†’ M i),
  segment π•œ x y βŠ† s.pi fun i ↦ segment π•œ (x i) (y i)

theorem Pi.openSegment_subset E1 #

βˆ€ {π•œ : Type u_1} {ΞΉ : Type u_5} {M : ΞΉ β†’ Type u_6} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ]
  [inst_2 : (i : ΞΉ) β†’ AddCommMonoid (M i)] [inst_3 : (i : ΞΉ) β†’ Module π•œ (M i)] {s : Set ΞΉ} (x y : (i : ΞΉ) β†’ M i),
  openSegment π•œ x y βŠ† s.pi fun i ↦ openSegment π•œ (x i) (y i)

theorem Pi.image_update_segment E1 #

βˆ€ {π•œ : Type u_1} {ΞΉ : Type u_5} {M : ΞΉ β†’ Type u_6} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ]
  [inst_2 : (i : ΞΉ) β†’ AddCommMonoid (M i)] [inst_3 : (i : ΞΉ) β†’ Module π•œ (M i)] [inst_4 : DecidableEq ΞΉ] (i : ΞΉ)
  (x₁ xβ‚‚ : M i) (y : (i : ΞΉ) β†’ M i),
  Function.update y i '' segment π•œ x₁ xβ‚‚ = segment π•œ (Function.update y i x₁) (Function.update y i xβ‚‚)

theorem Pi.image_update_openSegment E1 #

βˆ€ {π•œ : Type u_1} {ΞΉ : Type u_5} {M : ΞΉ β†’ Type u_6} [inst : Semiring π•œ] [inst_1 : PartialOrder π•œ]
  [inst_2 : (i : ΞΉ) β†’ AddCommMonoid (M i)] [inst_3 : (i : ΞΉ) β†’ Module π•œ (M i)] [inst_4 : DecidableEq ΞΉ] (i : ΞΉ)
  (x₁ xβ‚‚ : M i) (y : (i : ΞΉ) β†’ M i),
  Function.update y i '' openSegment π•œ x₁ xβ‚‚ = openSegment π•œ (Function.update y i x₁) (Function.update y i xβ‚‚)