The areas / V22. Affine, Euclidean and convex geometry
Mathlib.Analysis.Convex.StdSimplex
10 declarations and 54 deprecated aliases. Mathlib docs ยท Source
The standard simplex
In this file, given an ordered semiring ๐ and a finite type ฮน,
we define stdSimplex : Set (ฮน โ ๐) as the set of vectors with non-negative
coordinates with total sum 1.
When f : X โ Y is a map between finite types, we define the map
stdSimplex.map f : stdSimplex ๐ X โ stdSimplex ๐ Y.
Diameter of a Standard Simplex (sup metric)
Barycenter of a Standard Simplex
theorem stdSimplex.barycenter.congr_simp E1 #
โ {X : Type u_2} [inst : Fintype X] {๐ : Type u_5} [inst_1 : Field ๐] [inst_2 : LinearOrder ๐]
[inst_3 : IsStrictOrderedRing ๐] [inst_4 : Nonempty X], stdSimplex.barycenter = stdSimplex.barycenter
theorem stdSimplex.map.congr_simp E1 #
โ {S : Type u_1} [inst : Semiring S] [inst_1 : PartialOrder S] {X : Type u_2} {Y : Type u_3} [inst_2 : Fintype X]
[inst_3 : Fintype Y] [inst_4 : IsOrderedRing S] (f f_1 : X โ Y),
f = f_1 โ โ (s s_1 : โ(stdSimplex S X)), s = s_1 โ stdSimplex.map f s = stdSimplex.map f_1 s_1
theorem stdSimplex.vertex.congr_simp E1 #
โ {S : Type u_1} [inst : Semiring S] [inst_1 : PartialOrder S] {X : Type u_2} [inst_2 : Fintype X]
[inst_3 : IsOrderedRing S] [inst_4 : DecidableEq X] (x x_1 : X), x = x_1 โ stdSimplex.vertex x = stdSimplex.vertex x_1
theorem stdSimplexEquivIcc_apply_coe E0 #
โ (๐ : Type u_1) [inst : Ring ๐] [inst_1 : PartialOrder ๐] [inst_2 : IsOrderedRing ๐] (f : โ(stdSimplex ๐ (Fin 2))),
โ((stdSimplexEquivIcc ๐) f) = โf 1
theorem stdSimplexEquivIcc_symm_apply_coe E0 #
โ (๐ : Type u_1) [inst : Ring ๐] [inst_1 : PartialOrder ๐] [inst_2 : IsOrderedRing ๐] (x : โ(Set.Icc 0 1)),
โ((stdSimplexEquivIcc ๐).symm x) = ![1 - โx, โx]
theorem Convexity.ConvexSpace.AffineMap.convex_range E1 #
โ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {X : Type u_3}
[inst_3 : Convexity.ConvexSpace R X] {E : Type u_4} [inst_4 : AddCommGroup E] [inst_5 : Module R E]
[inst_6 : Convexity.ConvexSpace R E] [Convexity.IsModuleConvexSpace R E] (f : Convexity.ConvexSpace.AffineMap R X E),
Convex R (Set.range โf)
theorem Set.convexHull_eq_range_iConvexComb E1 #
โ {R : Type u_1} [inst : Field R] [inst_1 : LinearOrder R] [inst_2 : IsStrictOrderedRing R] {E : Type u_3}
[inst_3 : AddCommGroup E] [inst_4 : Module R E] [inst_5 : Convexity.ConvexSpace R E]
[Convexity.IsModuleConvexSpace R E] (s : Set E),
(convexHull R) s = Set.range โ(Convexity.StdSimplex.affineMapMk fun x โฆ โx)
The convex hull of a set s is the range of the affine map
StdSimplex R s โ E which sends x : s to x : E.
theorem stdSimplexHomeomorphUnitInterval_symm_apply_coe E0 #
โ (x : โ(Set.Icc 0 1)), โ(stdSimplexHomeomorphUnitInterval.symm x) = ![1 - โx, โx]
theorem stdSimplexHomeomorphUnitInterval_apply_coe E0 #
โ (f : โ(stdSimplex โ (Fin 2))), โ(stdSimplexHomeomorphUnitInterval f) = โf 1
theorem stdSimplex.ext_iff E0 #
โ {S : Type u_1} [inst : Semiring S] [inst_1 : PartialOrder S] {X : Type u_2} [inst_2 : Fintype X]
{s t : โ(stdSimplex S X)}, s = t โ โs = โt
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Set.Finite.convexHull_eq_image | Set.convexHull_eq_range_iConvexComb | 2026-08-29 |
bounded_stdSimplex | Convexity.StdSimplex.isBounded_range_toFun_comp_weights | 2026-08-29 |
convexHull_basis_eq_stdSimplex | 2026-08-29 | |
convexHull_rangle_single_eq_stdSimplex | 2026-08-29 | |
convex_stdSimplex | Convexity.StdSimplex.instConvexSpace | 2026-08-29 |
diam_stdSimplex | Convexity.StdSimplex.diam_range_toFun_comp_weights_subset_closedBall_eq_one | 2026-08-29 |
diam_stdSimplex_le | Convexity.StdSimplex.diam_range_toFun_comp_weights_subset_closedBall | 2026-08-29 |
diam_stdSimplex_of_subsingleton | Convexity.StdSimplex.diam_range_toFun_comp_weights_subset_closedBall_eq_zero | 2026-08-29 |
instPathConnectedSpaceElemForallRealStdSimplexOfNonempty | Convexity.StdSimplex.pathConnectedSpace | 2026-08-29 |
isClosed_stdSimplex | Convexity.StdSimplex.isClosedEmbedding_toFun_comp_weights | 2026-08-29 |
isCompact_stdSimplex | Convexity.StdSimplex.compactSpace | 2026-08-29 |
isPathConnected_stdSimplex | Convexity.StdSimplex.pathConnectedSpace | 2026-08-29 |
ite_eq_mem_stdSimplex | 2026-08-29 | |
mem_Icc_of_mem_stdSimplex | 2026-08-29 | |
segment_single_subset_stdSimplex | 2026-08-29 | |
single_mem_stdSimplex | Convexity.StdSimplex.single | 2026-08-29 |
stdSimplex | Convexity.StdSimplex | 2026-08-29 |
stdSimplex.add_eq_one | Convexity.StdSimplex.total_fin_two | 2026-08-29 |
stdSimplex.barycenter | Convexity.StdSimplex.barycenter | 2026-08-29 |
stdSimplex.barycenter_apply | Convexity.StdSimplex.weights_barycenter_apply | 2026-08-29 |
stdSimplex.barycenter_eq_centerMass | 2026-08-29 | |
stdSimplex.continuous_map | Convexity.StdSimplex.continuous_map | 2026-08-29 |
stdSimplex.ext | Convexity.StdSimplex.ext | 2026-08-29 |
stdSimplex.image_linearMap | Convexity.StdSimplex.map | 2026-08-29 |
stdSimplex.instCompactSpace_coe | Convexity.StdSimplex.compactSpace | 2026-08-29 |
stdSimplex.instFunLikeElemForall | 2026-08-29 | |
stdSimplex.instNonemptyElemForall | Convexity.StdSimplex.instNonempty | 2026-08-29 |
stdSimplex.instNontrivialElemForall | Convexity.StdSimplex.instNontrivial | 2026-08-29 |
stdSimplex.instSubsingletonElemForall | Convexity.StdSimplex.instSubsingleton | 2026-08-29 |
stdSimplex.instUniqueElemForall | Convexity.StdSimplex.instUnique | 2026-08-29 |
stdSimplex.le_one | Convexity.StdSimplex.weights_apply_le_one | 2026-08-29 |
stdSimplex.map | Convexity.StdSimplex.map | 2026-08-29 |
stdSimplex.map_coe | 2026-08-29 | |
stdSimplex.map_comp_apply | Convexity.StdSimplex.map_comp | 2026-08-29 |
stdSimplex.map_id_apply | Convexity.StdSimplex.map_id | 2026-08-29 |
stdSimplex.map_vertex | Convexity.StdSimplex.map_single | 2026-08-29 |
stdSimplex.sum_eq_one | Convexity.StdSimplex.total | 2026-08-29 |
stdSimplex.vertex | Convexity.StdSimplex.single | 2026-08-29 |
stdSimplex.vertex_coe | 2026-08-29 | |
stdSimplex.vertex_injective | Convexity.StdSimplex.single_injective | 2026-08-29 |
stdSimplex.zero_le | Convexity.StdSimplex.weights_nonneg | 2026-08-29 |
stdSimplexEquivIcc | Convexity.StdSimplex.equivIcc | 2026-08-29 |
stdSimplexEquivIcc_one | Convexity.StdSimplex.equivIcc_single_one | 2026-08-29 |
stdSimplexEquivIcc_zero | Convexity.StdSimplex.equivIcc_single_zero | 2026-08-29 |
stdSimplexHomeomorphUnitInterval | Convexity.StdSimplex.homeomorphI | 2026-08-29 |
stdSimplexHomeomorphUnitInterval_one | Convexity.StdSimplex.homeomorphI_single_one | 2026-08-29 |
stdSimplexHomeomorphUnitInterval_zero | Convexity.StdSimplex.homeomorphI_single_zero | 2026-08-29 |
stdSimplex_eq_inter | Convexity.StdSimplex.range_toFun_comp_weights | 2026-08-29 |
stdSimplex_fin_two | 2026-08-29 | |
stdSimplex_of_isEmpty_index | 2026-08-29 | |
stdSimplex_of_subsingleton | 2026-08-29 | |
stdSimplex_subset_Icc | 2026-08-29 | |
stdSimplex_subset_closedBall | Convexity.StdSimplex.range_toFun_comp_weights_subset_closedBall | 2026-08-29 |
stdSimplex_unique | Convexity.StdSimplex.instUnique | 2026-08-29 |