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.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

NameNew nameSince
Set.Finite.convexHull_eq_imageSet.convexHull_eq_range_iConvexComb2026-08-29
bounded_stdSimplexConvexity.StdSimplex.isBounded_range_toFun_comp_weights2026-08-29
convexHull_basis_eq_stdSimplex2026-08-29
convexHull_rangle_single_eq_stdSimplex2026-08-29
convex_stdSimplexConvexity.StdSimplex.instConvexSpace2026-08-29
diam_stdSimplexConvexity.StdSimplex.diam_range_toFun_comp_weights_subset_closedBall_eq_one2026-08-29
diam_stdSimplex_leConvexity.StdSimplex.diam_range_toFun_comp_weights_subset_closedBall2026-08-29
diam_stdSimplex_of_subsingletonConvexity.StdSimplex.diam_range_toFun_comp_weights_subset_closedBall_eq_zero2026-08-29
instPathConnectedSpaceElemForallRealStdSimplexOfNonemptyConvexity.StdSimplex.pathConnectedSpace2026-08-29
isClosed_stdSimplexConvexity.StdSimplex.isClosedEmbedding_toFun_comp_weights2026-08-29
isCompact_stdSimplexConvexity.StdSimplex.compactSpace2026-08-29
isPathConnected_stdSimplexConvexity.StdSimplex.pathConnectedSpace2026-08-29
ite_eq_mem_stdSimplex2026-08-29
mem_Icc_of_mem_stdSimplex2026-08-29
segment_single_subset_stdSimplex2026-08-29
single_mem_stdSimplexConvexity.StdSimplex.single2026-08-29
stdSimplexConvexity.StdSimplex2026-08-29
stdSimplex.add_eq_oneConvexity.StdSimplex.total_fin_two2026-08-29
stdSimplex.barycenterConvexity.StdSimplex.barycenter2026-08-29
stdSimplex.barycenter_applyConvexity.StdSimplex.weights_barycenter_apply2026-08-29
stdSimplex.barycenter_eq_centerMass2026-08-29
stdSimplex.continuous_mapConvexity.StdSimplex.continuous_map2026-08-29
stdSimplex.extConvexity.StdSimplex.ext2026-08-29
stdSimplex.image_linearMapConvexity.StdSimplex.map2026-08-29
stdSimplex.instCompactSpace_coeConvexity.StdSimplex.compactSpace2026-08-29
stdSimplex.instFunLikeElemForall2026-08-29
stdSimplex.instNonemptyElemForallConvexity.StdSimplex.instNonempty2026-08-29
stdSimplex.instNontrivialElemForallConvexity.StdSimplex.instNontrivial2026-08-29
stdSimplex.instSubsingletonElemForallConvexity.StdSimplex.instSubsingleton2026-08-29
stdSimplex.instUniqueElemForallConvexity.StdSimplex.instUnique2026-08-29
stdSimplex.le_oneConvexity.StdSimplex.weights_apply_le_one2026-08-29
stdSimplex.mapConvexity.StdSimplex.map2026-08-29
stdSimplex.map_coe2026-08-29
stdSimplex.map_comp_applyConvexity.StdSimplex.map_comp2026-08-29
stdSimplex.map_id_applyConvexity.StdSimplex.map_id2026-08-29
stdSimplex.map_vertexConvexity.StdSimplex.map_single2026-08-29
stdSimplex.sum_eq_oneConvexity.StdSimplex.total2026-08-29
stdSimplex.vertexConvexity.StdSimplex.single2026-08-29
stdSimplex.vertex_coe2026-08-29
stdSimplex.vertex_injectiveConvexity.StdSimplex.single_injective2026-08-29
stdSimplex.zero_leConvexity.StdSimplex.weights_nonneg2026-08-29
stdSimplexEquivIccConvexity.StdSimplex.equivIcc2026-08-29
stdSimplexEquivIcc_oneConvexity.StdSimplex.equivIcc_single_one2026-08-29
stdSimplexEquivIcc_zeroConvexity.StdSimplex.equivIcc_single_zero2026-08-29
stdSimplexHomeomorphUnitIntervalConvexity.StdSimplex.homeomorphI2026-08-29
stdSimplexHomeomorphUnitInterval_oneConvexity.StdSimplex.homeomorphI_single_one2026-08-29
stdSimplexHomeomorphUnitInterval_zeroConvexity.StdSimplex.homeomorphI_single_zero2026-08-29
stdSimplex_eq_interConvexity.StdSimplex.range_toFun_comp_weights2026-08-29
stdSimplex_fin_two2026-08-29
stdSimplex_of_isEmpty_index2026-08-29
stdSimplex_of_subsingleton2026-08-29
stdSimplex_subset_Icc2026-08-29
stdSimplex_subset_closedBallConvexity.StdSimplex.range_toFun_comp_weights_subset_closedBall2026-08-29
stdSimplex_uniqueConvexity.StdSimplex.instUnique2026-08-29