Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/Mathlib/Order/Sum/     Datei vom 15.10.2026 mit Größe 28 kB image not shown  

Quelle  DerivationBundle.lean   Sprache: Lean

 

/-
Copyright (c) 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/

module

public import Mathlib.Geometry.Manifold.Algebra.SmoothFunctions
public import Mathlib.RingTheory.Derivation.Basic

/-!
# Derivation bundle

In this file we define the derivations at a point of a manifold on the algebra of smooth functions.
Moreover, we define the differential of a function in terms of derivations.

The content of this file is not meant to be regarded as an alternative definition to the current
tangent bundle but rather as a purely algebraic theory that provides a purely algebraic definition
of the Lie algebra for a Lie group. This theory coincides with the usual tangent bundle in the
case of finite-dimensional `C^∞` real manifolds, but not in the general case.
-/


@[expose] public section


variable (�� : Type*) [NontriviallyNormedField ��] {E : Type*} [NormedAddCommGroup E]
  [NormedSpace �� E] {H : Type*} [TopologicalSpace H] (I : ModelWithCorners �� E H) (M : Type*)
  [TopologicalSpace M] [ChartedSpace H M] (n : WithTop ℕ∞)

open scoped Manifold ContDiff

-- the following two instances prevent poorly understood typeclass inference timeout problems
instance smoothFunctionsAlgebra : Algebra �� C^∞⟮I, M; ��⟯ := by infer_instance

instance smooth_functions_tower : IsScalarTower �� C^∞⟮I, M; ��⟯ C^∞⟮I, M; ��⟯ := by infer_instance

/-- Type synonym, introduced to put a different `SMul` action on `C^n⟮I, M; ��⟯`
which is defined as `f • r = f(x) * r`.
Denoted as `C^n⟮I, M; ��⟯⟨x⟩` within the `Derivation` namespace. -/

@[nolint unusedArguments]
def PointedContMDiffMap (_ : M) :=
  C^n⟮I, M; ��⟯
deriving FunLike, CommRing, Algebra ��

@[inherit_doc]
scoped[Derivation] notation "C^" n "⟮" I ", " M "; " �� "⟯⟨" x "⟩" => PointedContMDiffMap �� I M n x

variable {�� M}

namespace PointedContMDiffMap

open scoped Derivation

instance {x : M} : Inhabited C^∞⟮I, M; ��⟯⟨x⟩ :=
  ⟨0⟩

instance {x : M} : Algebra C^∞⟮I, M; ��⟯⟨x⟩ C^∞⟮I, M; ��⟯ :=
  inferInstanceAs <| Algebra C^∞⟮I, M; ��⟯ C^∞⟮I, M; ��⟯

instance {x : M} : IsScalarTower �� C^∞⟮I, M; ��⟯⟨x⟩ C^∞⟮I, M; ��⟯ :=
  IsScalarTower.right

variable {I}

/-- `ContMDiffMap.evalRingHom` gives rise to an algebra structure of `C^∞⟮I, M; ��⟯` on `��`. -/
instance evalAlgebra {x : M} : Algebra C^∞⟮I, M; ��⟯⟨x⟩ �� :=
  fast_instance% (ContMDiffMap.evalRingHom x : C^∞⟮I, M; ��⟯⟨x⟩ →+* ��).toAlgebra

/-- With the `evalAlgebra` algebra structure evaluation is actually an algebra morphism. -/
def eval (x : M) : C^∞⟮I, M; ��⟯ →ₐ[C^∞⟮I, M; ��⟯⟨x⟩] �� :=
  Algebra.ofId C^∞⟮I, M; ��⟯⟨x⟩ ��

theorem smul_def (x : M) (f : C^∞⟮I, M; ��⟯⟨x⟩) (k : ��) : f • k = f x * k :=
  rfl

set_option backward.isDefEq.respectTransparency false in
instance (x : M) : IsScalarTower �� C^∞⟮I, M; ��⟯⟨x⟩ �� where
  smul_assoc k f h := by
    rw [smul_def, smul_def, ContMDiffMap.coe_smul, Pi.smul_apply, smul_eq_mul, smul_eq_mul,
      mul_assoc]

end PointedContMDiffMap

open scoped Derivation

/-- The derivations at a point of a manifold. Some regard this as a possible definition of the
tangent space, as this coincides with the usual tangent space for finite-dimensional `C^∞` real
manifolds. The identification is not true in general, though. -/

abbrev PointDerivation (x : M) :=
  Derivation �� C^∞⟮I, M; ��⟯⟨x⟩ ��

section

open scoped Derivation

variable (X : Derivation �� C^∞⟮I, M; ��⟯ C^∞⟮I, M; ��⟯) (f : C^∞⟮I, M; ��⟯)

/-- Evaluation at a point gives rise to a `C^∞⟮I, M; ��⟯`-linear map between `C^∞⟮I, M; ��⟯` and `��`.
-/

def ContMDiffFunction.evalAt (x : M) : C^∞⟮I, M; ��⟯ →ₗ[C^∞⟮I, M; ��⟯⟨x⟩] �� :=
  (PointedContMDiffMap.eval x).toLinearMap

namespace Derivation

variable {I}

set_option backward.isDefEq.respectTransparency false in
/-- The evaluation at a point as a linear map. -/
def evalAt (x : M) : Derivation �� C^∞⟮I, M; ��⟯ C^∞⟮I, M; ��⟯ →ₗ[C^∞⟮I, M; ��⟯⟨x⟩]
  PointDerivation I x := (ContMDiffFunction.evalAt I x).compDer

theorem evalAt_apply (x : M) : evalAt x X f = (X f) x :=
  rfl

end Derivation

variable {I} {E' : Type*} [NormedAddCommGroup E'] [NormedSpace �� E'] {H' : Type*}
  [TopologicalSpace H'] {I' : ModelWithCorners �� E' H'} {M' : Type*} [TopologicalSpace M']
  [ChartedSpace H' M']

set_option backward.isDefEq.respectTransparency false in
/-- The heterogeneous differential as a linear map, denoted as `��ₕ` within the `Manifold` namespace.
Instead of taking a function as an argument, this
differential takes `h : f x = y`. It is particularly handy for situations where the points
at which it has to be evaluated are equal but not definitionally equal. -/

def hfdifferential {f : C^∞⟮I, M; I', M'⟯} {x : M} {y : M'} (h : f x = y) :
    PointDerivation I x →ₗ[��] PointDerivation I' y where
  toFun v :=
    Derivation.mk'
      { toFun := fun g => v (g.comp f)
        map_add' := fun g g' => by rw [ContMDiffMap.add_comp, Derivation.map_add]
        map_smul' := fun k g => by
          dsimp; rw [ContMDiffMap.smul_comp, Derivation.map_smul, smul_eq_mul] }
      fun g g' => by
        dsimp
        rw [ContMDiffMap.mul_comp, Derivation.leibniz,
          PointedContMDiffMap.smul_def, ContMDiffMap.comp_apply,
          PointedContMDiffMap.smul_def, ContMDiffMap.comp_apply, h]
        norm_cast
  map_smul' _ _ := rfl
  map_add' _ _ := rfl

/-- The homogeneous differential as a linear map, denoted as `��` within the `Manifold` namespace. -/
def fdifferential (f : C^∞⟮I, M; I', M'⟯) (x : M) :
    PointDerivation I x →ₗ[��] PointDerivation I' (f x) :=
  hfdifferential (rfl : f x = f x)

-- Standard notation for the differential. The abbreviation is `MId`.
@[inherit_doc] scoped[Manifold] notation "��" => fdifferential

-- Standard notation for the differential. The abbreviation is `MId`.
@[inherit_doc] scoped[Manifold] notation "��ₕ" => hfdifferential

@[simp]
theorem fdifferential_apply (f : C^∞⟮I, M; I', M'⟯) {x : M} (v : PointDerivation I x)
    (g : C^∞⟮I', M'; ��⟯) : �� f x v g = v (g.comp f) :=
  rfl
@[simp]
theorem hfdifferential_apply {f : C^∞⟮I, M; I', M'⟯} {x : M} {y : M'} (h : f x = y)
    (v : PointDerivation I x) (g : C^∞⟮I', M'; ��⟯) : ��ₕ h v g = �� f x v g :=
  rfl
variable {E'' : Type*} [NormedAddCommGroup E''] [NormedSpace �� E''] {H'' : Type*}
  [TopologicalSpace H''] {I'' : ModelWithCorners �� E'' H''} {M'' : Type*} [TopologicalSpace M'']
  [ChartedSpace H'' M'']

@[simp]
theorem fdifferential_comp (g : C^∞⟮I', M'; I'', M''⟯) (f : C^∞⟮I, M; I', M'⟯) (x : M) :
    �� (g.comp f) x = (�� g (f x)).comp (�� f x) :=
  rfl

end

Messung
CHZG
9110010096

¤ Dauer der Verarbeitung: 0.13 Sekunden  ¤

*© Formatika GbR, Deutschland