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.Analysis.Convex.Visible

11 declarations. Mathlib docs ยท Source

def IsVisible E1 #

(๐•œ : Type u_1) โ†’
  {V : Type u_2} โ†’
    {P : Type u_3} โ†’
      [inst : Field ๐•œ] โ†’
        [LinearOrder ๐•œ] โ†’ [inst_2 : AddCommGroup V] โ†’ [Module ๐•œ V] โ†’ [AddTorsor V P] โ†’ Set P โ†’ P โ†’ P โ†’ Prop

Two points are visible to each other through a set if no point of that set lies strictly between them.

By convention, a point x sees itself through any set s, even when x โˆˆ s.

theorem IsVisible.rfl E0 #

โˆ€ {๐•œ : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Field ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsOrderedRing ๐•œ]
  [inst_3 : AddCommGroup V] [inst_4 : Module ๐•œ V] [inst_5 : AddTorsor V P] {s : Set P} {x : P}, IsVisible ๐•œ s x x

theorem isVisible_comm E1 #

โˆ€ {๐•œ : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Field ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsOrderedRing ๐•œ]
  [inst_3 : AddCommGroup V] [inst_4 : Module ๐•œ V] [inst_5 : AddTorsor V P] {s : Set P} {x y : P},
  IsVisible ๐•œ s x y โ†” IsVisible ๐•œ s y x

theorem IsVisible.symm E1 #

โˆ€ {๐•œ : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Field ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsOrderedRing ๐•œ]
  [inst_3 : AddCommGroup V] [inst_4 : Module ๐•œ V] [inst_5 : AddTorsor V P] {s : Set P} {x y : P},
  IsVisible ๐•œ s x y โ†’ IsVisible ๐•œ s y x

Alias of the forward direction of isVisible_comm.

theorem IsVisible.mono E1 #

โˆ€ {๐•œ : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Field ๐•œ] [inst_1 : LinearOrder ๐•œ] [inst_2 : AddCommGroup V]
  [inst_3 : Module ๐•œ V] [inst_4 : AddTorsor V P] {s t : Set P} {x y : P}, s โІ t โ†’ IsVisible ๐•œ t x y โ†’ IsVisible ๐•œ s x y

theorem isVisible_iff_lineMap E1 #

โˆ€ {๐•œ : Type u_1} {V : Type u_2} {P : Type u_3} [inst : Field ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsOrderedRing ๐•œ]
  [inst_3 : AddCommGroup V] [inst_4 : Module ๐•œ V] [inst_5 : AddTorsor V P] {s : Set P} {x y : P},
  x โ‰  y โ†’ (IsVisible ๐•œ s x y โ†” โˆ€ ฮด โˆˆ Set.Ioo 0 1, (AffineMap.lineMap x y) ฮด โˆ‰ s)

theorem IsVisible.of_convexHull_of_pos E1 #

โˆ€ {๐•œ : Type u_1} {V : Type u_2} [inst : Field ๐•œ] [inst_1 : LinearOrder ๐•œ] [IsStrictOrderedRing ๐•œ]
  [inst_3 : AddCommGroup V] [inst_4 : Module ๐•œ V] {s : Set V} {x : V} {ฮน : Type u_4} {t : Finset ฮน} {a : ฮน โ†’ V}
  {w : ฮน โ†’ ๐•œ},
  (โˆ€ i โˆˆ t, 0 โ‰ค w i) โ†’
    โˆ‘ i โˆˆ t, w i = 1 โ†’
      (โˆ€ i โˆˆ t, a i โˆˆ s) โ†’
        x โˆ‰ (convexHull ๐•œ) s โ†’
          IsVisible ๐•œ ((convexHull ๐•œ) s) x (โˆ‘ i โˆˆ t, w i โ€ข a i) โ†’
            โˆ€ {i : ฮน}, i โˆˆ t โ†’ 0 < w i โ†’ IsVisible ๐•œ ((convexHull ๐•œ) s) x (a i)

If a point x sees a convex combination of points of a set s through convexHull โ„ s โˆŒ x, then it sees all terms of that combination.

Note that the converse does not hold.

theorem IsVisible.mem_convexHull_isVisible E0 #

โˆ€ {V : Type u_2} [inst : AddCommGroup V] [inst_1 : Module โ„ V] {s : Set V} {x y : V},
  x โˆ‰ (convexHull โ„) s โ†’
    y โˆˆ (convexHull โ„) s โ†’
      IsVisible โ„ ((convexHull โ„) s) x y โ†’ y โˆˆ (convexHull โ„) {z | z โˆˆ s โˆง IsVisible โ„ ((convexHull โ„) s) x z}

All points of the convex hull of a set s visible from a point x โˆ‰ convexHull โ„ s lie in the convex hull of such points that actually lie in s.

Note that the converse does not hold.

theorem IsClosed.exists_wbtw_isVisible E1 #

โˆ€ {V : Type u_2} [inst : AddCommGroup V] [inst_1 : Module โ„ V] {s : Set V} {y : V} [inst_2 : TopologicalSpace V]
  [IsTopologicalAddGroup V] [ContinuousSMul โ„ V],
  IsClosed s โ†’ y โˆˆ s โ†’ โˆ€ (x : V), โˆƒ z โˆˆ s, Wbtw โ„ x z y โˆง IsVisible โ„ s x z

If s is a closed set, then any point x sees some point of s in any direction where there is something to see.

theorem IsClosed.convexHull_subset_affineSpan_isVisible E1 #

โˆ€ {V : Type u_2} [inst : AddCommGroup V] [inst_1 : Module โ„ V] {s : Set V} {x : V} [inst_2 : TopologicalSpace V]
  [IsTopologicalAddGroup V] [ContinuousSMul โ„ V],
  IsClosed ((convexHull โ„) s) โ†’
    x โˆ‰ (convexHull โ„) s โ†’ (convexHull โ„) s โІ โ†‘(affineSpan โ„ ({x} โˆช {y | y โˆˆ s โˆง IsVisible โ„ ((convexHull โ„) s) x y}))

A set whose convex hull is closed lies in the cone based at a point x generated by its points visible from x through its convex hull.

theorem rank_le_card_isVisible E1 #

โˆ€ {V : Type u_2} [inst : AddCommGroup V] [inst_1 : Module โ„ V] {s : Set V} {x : V} [inst_2 : TopologicalSpace V]
  [IsTopologicalAddGroup V] [ContinuousSMul โ„ V],
  IsClosed ((convexHull โ„) s) โ†’
    x โˆ‰ (convexHull โ„) s โ†’
      Module.rank โ„ โ†ฅ(Submodule.span โ„ (-x +แตฅ s)) โ‰ค Cardinal.mk โ†‘{y | y โˆˆ s โˆง IsVisible โ„ ((convexHull โ„) s) x y}

If s is a closed set of dimension d and x is a point outside of its convex hull, then x sees at least d points of the convex hull of s that actually lie in s.