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.Geometry.Convex.AffineMap.Defs

8 declarations. Mathlib docs · Source

theorem Convexity.IsAffineMap.iConvexComb E1 #

∀ {R : Type u_1} {S : Type u_2} {X : Type u_3} {Y : Type u_4} {I : Type u_6} [inst : Semiring R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : Semiring S] [inst_4 : PartialOrder S]
  [inst_5 : IsStrictOrderedRing S] [inst_6 : Convexity.ConvexSpace R X] [inst_7 : Convexity.ConvexSpace R Y]
  [inst_8 : Convexity.ConvexSpace S Y] [Convexity.IsConvexCombComm S R Y] {f : I → X → Y},
  (∀ (i : I), Convexity.IsAffineMap R (f i)) →
    ∀ (w : Convexity.StdSimplex S I), Convexity.IsAffineMap R fun x ↦ Convexity.iConvexComb w fun x_1 ↦ f x_1 x

A pointwise S-convex combination of R-affine maps is R-affine.

This requires the R-convex space and S-convex space structures on the codomain to commute, as it essentially swaps around two combinations.

instance Convexity.ConvexSpace.AffineMap.instConvexSpace E0 #

{R : Type u_1} →
  {S : Type u_2} →
    {X : Type u_3} →
      {Y : Type u_4} →
        [inst : Semiring R] →
          [inst_1 : PartialOrder R] →
            [inst_2 : IsStrictOrderedRing R] →
              [inst_3 : Semiring S] →
                [inst_4 : PartialOrder S] →
                  [inst_5 : IsStrictOrderedRing S] →
                    [inst_6 : Convexity.ConvexSpace R X] →
                      [inst_7 : Convexity.ConvexSpace R Y] →
                        [inst_8 : Convexity.ConvexSpace S Y] →
                          [Convexity.IsConvexCombComm S R Y] →
                            Convexity.ConvexSpace S (Convexity.ConvexSpace.AffineMap R X Y)

theorem Convexity.ConvexSpace.AffineMap.sConvexComb_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {X : Type u_3} {Y : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : Semiring S] [inst_4 : PartialOrder S] [inst_5 : IsStrictOrderedRing S]
  [inst_6 : Convexity.ConvexSpace R X] [inst_7 : Convexity.ConvexSpace R Y] [inst_8 : Convexity.ConvexSpace S Y]
  [inst_9 : Convexity.IsConvexCombComm S R Y] (w : Convexity.StdSimplex S (Convexity.ConvexSpace.AffineMap R X Y))
  (x : X), (Convexity.sConvexComb w) x = Convexity.iConvexComb w fun x_1 ↦ x_1 x

theorem Convexity.ConvexSpace.AffineMap.isAffineMap_eval E1 #

∀ {R : Type u_1} {S : Type u_2} {X : Type u_3} {Y : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : Semiring S] [inst_4 : PartialOrder S] [inst_5 : IsStrictOrderedRing S]
  [inst_6 : Convexity.ConvexSpace R X] [inst_7 : Convexity.ConvexSpace R Y] [inst_8 : Convexity.ConvexSpace S Y]
  [inst_9 : Convexity.IsConvexCombComm S R Y] (x : X), Convexity.IsAffineMap S fun f ↦ f x

Evaluation at a point is affine in the affine map.

theorem Convexity.ConvexSpace.AffineMap.iConvexComb_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {X : Type u_3} {Y : Type u_4} {I : Type u_6} [inst : Semiring R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : Semiring S] [inst_4 : PartialOrder S]
  [inst_5 : IsStrictOrderedRing S] [inst_6 : Convexity.ConvexSpace R X] [inst_7 : Convexity.ConvexSpace R Y]
  [inst_8 : Convexity.ConvexSpace S Y] [inst_9 : Convexity.IsConvexCombComm S R Y] (w : Convexity.StdSimplex S I)
  (f : I → Convexity.ConvexSpace.AffineMap R X Y) (x : X),
  (Convexity.iConvexComb w f) x = Convexity.iConvexComb w fun i ↦ (f i) x

theorem Convexity.ConvexSpace.AffineMap.convexCombPair_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {X : Type u_3} {Y : Type u_4} [inst : Semiring R] [inst_1 : PartialOrder R]
  [inst_2 : IsStrictOrderedRing R] [inst_3 : Semiring S] [inst_4 : PartialOrder S] [inst_5 : IsStrictOrderedRing S]
  [inst_6 : Convexity.ConvexSpace R X] [inst_7 : Convexity.ConvexSpace R Y] [inst_8 : Convexity.ConvexSpace S Y]
  [inst_9 : Convexity.IsConvexCombComm S R Y] (a b : S) (ha : 0 ≤ a) (hb : 0 ≤ b) (hab : a + b = 1)
  (f g : Convexity.ConvexSpace.AffineMap R X Y) (x : X),
  (Convexity.convexCombPair a b ha hb hab f g) x = Convexity.convexCombPair a b ha hb hab (f x) (g x)

theorem Convexity.ConvexSpace.AffineMap.isAffineMap_const_comp E1 #

∀ {R : Type u_1} {S : Type u_2} {X : Type u_3} {Y : Type u_4} {Z : Type u_5} [inst : Semiring R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : Semiring S] [inst_4 : PartialOrder S]
  [inst_5 : IsStrictOrderedRing S] [inst_6 : Convexity.ConvexSpace R X] [inst_7 : Convexity.ConvexSpace R Y]
  [inst_8 : Convexity.ConvexSpace S Y] [inst_9 : Convexity.ConvexSpace R Z] [inst_10 : Convexity.ConvexSpace S Z]
  [inst_11 : Convexity.IsConvexCombComm S R Y] [inst_12 : Convexity.IsConvexCombComm S R Z]
  (g : Convexity.ConvexSpace.AffineMap R Y Z), Convexity.IsAffineMap S ⇑g → Convexity.IsAffineMap S g.comp

theorem Convexity.ConvexSpace.AffineMap.isAffineMap_comp_const E1 #

∀ {R : Type u_1} {S : Type u_2} {X : Type u_3} {Y : Type u_4} {Z : Type u_5} [inst : Semiring R]
  [inst_1 : PartialOrder R] [inst_2 : IsStrictOrderedRing R] [inst_3 : Semiring S] [inst_4 : PartialOrder S]
  [inst_5 : IsStrictOrderedRing S] [inst_6 : Convexity.ConvexSpace R X] [inst_7 : Convexity.ConvexSpace R Y]
  [inst_8 : Convexity.ConvexSpace R Z] [inst_9 : Convexity.ConvexSpace S Z] [inst_10 : Convexity.IsConvexCombComm S R Z]
  (f : Convexity.ConvexSpace.AffineMap R X Y), Convexity.IsAffineMap S fun g ↦ g.comp f