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.