Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  Module.lean   Sprache: Lean

 

/-
Copyright (c) 2026 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/

module

public import Mathlib.Algebra.GroupWithZero.Action.FunLike
public import Mathlib.Algebra.Module.FunLike
public import Mathlib.Geometry.Convex.AffineMap.Defs
public import Mathlib.Geometry.Convex.ConvexSpace.Module

/-!
# The module of affine maps from a convex space to a module

This file shows that the affine maps from a convex space `X` to a module `M` themselves form a
module, and that the convex space structure this induces is the pointwise one.

## Main declarations

* `Convexity.ConvexSpace.AffineMap.instModule`: The affine maps from a convex space to a module
  form a module.
* `Convexity.ConvexSpace.AffineMap.instIsModuleConvexSpace`: The pointwise convex space structure
  on the affine maps into a module is given by weighted sums.
-/


public noncomputable section

namespace Convexity
variable {R S X M : Type*} [Semiring R] [PartialOrder R] [IsStrictOrderedRing R]

namespace ConvexSpace.AffineMap
variable [ConvexSpace R X]

section AddCommMonoid
variable [AddCommMonoid M] [Module R M] [ConvexSpace R M] [IsModuleConvexSpace R M]

instance : Zero (ConvexSpace.AffineMap R X M) := ⟨.const 0⟩

instance : IsZeroApply (ConvexSpace.AffineMap R X M) where

instance : Add (ConvexSpace.AffineMap R X M) where
  add f g := ⟨f + g, f.isAffineMap.add g.isAffineMap⟩

instance : IsAddApply (ConvexSpace.AffineMap R X M) where

section SMul
variable [DistribSMul S M] [SMulCommClass S R M]

instance : SMul S (ConvexSpace.AffineMap R X M) where smul s f := ⟨s • f, by fun_prop⟩

instance : IsSMulApply S (ConvexSpace.AffineMap R X M) where

variable {T : Type*} [DistribSMul T M] [SMulCommClass T R M]

instance [SMulCommClass S T M] : SMulCommClass S T (ConvexSpace.AffineMap R X M) where
  smul_comm _ _ _ := ext <| funext fun _ ↦ smul_comm ..

instance [SMul S T] [IsScalarTower S T M] : IsScalarTower S T (ConvexSpace.AffineMap R X M) where
  smul_assoc _ _ _ := ext <| funext fun _ ↦ smul_assoc ..

instance [DistribSMul Sᵐᵒᵖ M] [IsCentralScalar S M] :
    IsCentralScalar S (ConvexSpace.AffineMap R X M) where
  op_smul_eq_smul _ _ := ext <| funext fun _ ↦ op_smul_eq_smul ..

end SMul

instance : AddCommMonoid (ConvexSpace.AffineMap R X M) :=
  fast_instance% FunLike.addCommMonoid

instance [Monoid S] [DistribMulAction S M] [SMulCommClass S R M] :
    DistribMulAction S (ConvexSpace.AffineMap R X M) := fast_instance% FunLike.distribMulAction

instance [Semiring S] [Module S M] [SMulCommClass S R M] :
    Module S (ConvexSpace.AffineMap R X M) := fast_instance% FunLike.module

end AddCommMonoid

section AddCommGroup
variable [AddCommGroup M] [Module R M] [ConvexSpace R M] [IsModuleConvexSpace R M]

instance : Neg (ConvexSpace.AffineMap R X M) where
  neg f := ⟨-f, f.isAffineMap.neg⟩

instance : IsNegApply (ConvexSpace.AffineMap R X M) where

instance : Sub (ConvexSpace.AffineMap R X M) where
  sub f g := ⟨f - g, f.isAffineMap.sub g.isAffineMap⟩

instance : IsSubApply (ConvexSpace.AffineMap R X M) where

instance : AddCommGroup (ConvexSpace.AffineMap R X M) :=
  fast_instance% FunLike.addCommGroup

end AddCommGroup
end ConvexSpace.AffineMap

/-! ### Compatibility with the pointwise convex space structure -/

section Pointwise
variable {R S : Type*} [Semiring R] [PartialOrder R] [IsStrictOrderedRing R] [Semiring S]
  [PartialOrder S] [IsStrictOrderedRing S] [ConvexSpace R X] [AddCommMonoid M] [Module R M]
  [Module S M] [SMulCommClass S R M] [ConvexSpace R M] [IsModuleConvexSpace R M] [ConvexSpace S M]
  [IsModuleConvexSpace S M]

instance ConvexSpace.AffineMap.instIsModuleConvexSpace :
    IsModuleConvexSpace S (ConvexSpace.AffineMap R X M) where
  sConvexComb_eq_sum w := by ext x; simp [Finsupp.sum]

end Pointwise
end Convexity

Messung
CHZG
9310010097

¤ Dauer der Verarbeitung: 0.1 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,151
#Domains=932,655