Eine aufbereitete Darstellung der Quelle

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


Quelle  AlgHom.lean   Sprache: Lean

 

/-
Copyright (c) 2025 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/

module

public import Mathlib.RingTheory.GradedAlgebra.RingHom

set_option doc.verso true
set_option doc.verso.suggestions false

/-!
# `R`-linear homomorphisms of graded algebras

This file defines bundled `R`-linear homomorphisms of graded `R`-algebras.

## Main definitions

* `GradedAlgHom R �� ℬ`: the type of `R`-linear homomorphisms of `R`-graded algebras `��` to `ℬ`.

## Notation

* `�� →ₐᵍ[R] ℬ` : `R`-linear graded homomorphism from `��` to `ℬ`.
-/


@[expose] public section

/-- An `R`-linear homomorphism of graded algebras, denoted `�� →ₐᵍ[R] ℬ`. -/
structure GradedAlgHom (R : Type*) {A B ι : Type*}
    [CommSemiring R] [Semiring A] [Semiring B] [Algebra R A] [Algebra R B]
    [DecidableEq ι] [AddMonoid ι]
    (�� : ι → Submodule R A) (ℬ : ι → Submodule R B) [GradedAlgebra ��] [GradedAlgebra ℬ]
    extends A →ₐ[R] B, �� →+*ᵍ ℬ

/-- Reinterpret a graded algebra homomorphism as a graded ring homomorphism. -/
add_decl_doc GradedAlgHom.toGradedRingHom

@[inherit_doc]
notation:25 �� " →ₐᵍ[" R "] " ℬ => GradedAlgHom R �� ℬ

namespace GradedAlgHom

variable {R A B C D ι : Type*}
  [CommSemiring R] [Semiring A] [Semiring B] [Semiring C] [Semiring D]
  [Algebra R A] [Algebra R B] [Algebra R C] [Algebra R D]
  [DecidableEq ι] [AddMonoid ι]
  {�� : ι → Submodule R A} {ℬ : ι → Submodule R B} {�� : ι → Submodule R C} {�� : ι → Submodule R D}
  [GradedAlgebra ��] [GradedAlgebra ℬ] [GradedAlgebra ��] [GradedAlgebra ��]

section ofClass
variable {F : Type*} [FunLike F A B] [GradedFunLike F �� ℬ] [AlgHomClass F R A B]

/-- Turn an element of a type `F` satisfying
`[FunLike F A B] [GradedFunLike F �� ℬ] [AlgHomClass F R A B]` into an actual `GradedAlgHom`.

In future mathlib this will be deprioritised in favour of using structural projections. -/

def ofClass (f : F) : �� →ₐᵍ[R] ℬ :=
  { (AlgHom.ofClass f), (.ofClass f : �� →+*ᵍ ℬ) with }

end ofClass

@[macro_inline]
instance : FunLike (�� →ₐᵍ[R] ℬ) A B where
  coe f := f.toFun
  coe_injective f g h := by
    rcases f with ⟨⟨⟨⟨⟨_, _⟩, _⟩, _, _⟩, _⟩, _⟩
    rcases g with ⟨⟨⟨⟨⟨_, _⟩, _⟩, _, _⟩, _⟩, _⟩
    congr

instance : GradedFunLike (�� →ₐᵍ[R] ℬ) �� ℬ where
  map_mem f := f.map_mem

instance : AlgHomClass (�� →ₐᵍ[R] ℬ) R A B where
  map_add f := f.map_add
  map_zero f := f.map_zero
  map_mul f := f.map_mul
  map_one f := f.map_one
  commutes f := f.commutes

attribute [coe] GradedAlgHom.toAlgHom

instance : CoeOut (�� →ₐᵍ[R] ℬ) (A →ₐ[R] B) := ⟨toAlgHom⟩

@[simp] lemma toAlgHom_ofClass {F : Type*} [FunLike F A B] [GradedFunLike F �� ℬ]
    [AlgHomClass F R A B] (f : F) : (ofClass f : A →ₐ[R] B) = AlgHom.ofClass f := rfl

@[simp] lemma toGradedRingHom_ofClass {F : Type*} [FunLike F A B] [GradedFunLike F �� ℬ]
    [AlgHomClass F R A B] (f : F) :
    ((ofClass f).toGradedRingHom : �� →+*ᵍ ℬ) = GradedRingHom.ofClass f := rfl

initialize_simps_projections GradedAlgHom (toFun → apply)

@[simp] theorem coe_ofClass {F : Type*} [FunLike F A B] [GradedFunLike F �� ℬ]
    [AlgHomClass F R A B] (f : F) : ⇑(.ofClass f : �� →ₐᵍ[R] ℬ) = f := rfl

@[simp] theorem coe_toAlgHom (f : �� →ₐᵍ[R] ℬ) : ⇑f.toAlgHom = f := rfl

@[simp] theorem coe_mk {f : A →ₐ[R] B} (h) : ((⟨f, h⟩ : �� →ₐᵍ[R] ℬ) : A → B) = f := rfl

@[norm_cast]
theorem coe_mks {f : A → B} (h₁ h₂ h₃ h₄ h₅ h₆) :
    ⇑(⟨⟨⟨⟨⟨f, h₁⟩, h₂⟩, h₃, h₄⟩, h₅⟩, h₆⟩ : �� →ₐᵍ[R] ℬ) = f := rfl

theorem coe_toAlgHom_mk {f : A →ₐ[R] B} (h) : ((⟨f, h⟩ : �� →ₐᵍ[R] ℬ) : A →ₐ[R] B) = f := by
  dsimp only

@[deprecated (since := "2026-05-05")] alias coe_algHom_mk := coe_toAlgHom_mk

variable (f : �� →ₐᵍ[R] ℬ)

theorem coe_fn_injective : Function.Injective ((↑) : (�� →ₐᵍ[R] ℬ) → (A → B)) :=
  DFunLike.coe_injective

theorem coe_fn_inj {f₁ f₂ : �� →ₐᵍ[R] ℬ} : (f₁ : A → B) = f₂ ↔ f₁ = f₂ :=
  DFunLike.coe_fn_eq

theorem coe_toAlgHom_injective : Function.Injective ((↑) : (�� →ₐᵍ[R] ℬ) → A →ₐ[R] B) :=
  fun _ _ h ↦ coe_fn_injective congr($h)

@[deprecated (since := "2026-05-05")] alias coe_algHom_injective := coe_toAlgHom_injective

theorem toGradedRingHom_injective : Function.Injective (toGradedRingHom (�� := ��) (ℬ := ℬ)) :=
  fun _ _ h ↦ coe_fn_injective congr($h)

theorem coe_linearMap_injective : Function.Injective ((↑) : (�� →ₐᵍ[R] ℬ) → A →ₗ[R] B) :=
  AlgHom.toLinearMap_injective.comp coe_toAlgHom_injective

theorem coe_ringHom_injective : Function.Injective ((↑) : (�� →ₐᵍ[R] ℬ) → A →+* B) :=
  AlgHom.toRingHom_injective.comp coe_toAlgHom_injective

theorem toMonoidHom_injective : Function.Injective ((↑) : (�� →ₐᵍ[R] ℬ) → A →* B) :=
  AlgHom.toMonoidHom_injective.comp coe_toAlgHom_injective

@[deprecated (since := "2026-09-15")]
alias coe_monoidHom_injective := toMonoidHom_injective

theorem toAddMonoidHom_injective : Function.Injective ((↑) : (�� →ₐᵍ[R] ℬ) → A →+ B) :=
  AlgHom.toAddMonoidHom_injective.comp coe_toAlgHom_injective

@[deprecated (since := "2026-09-15")]
alias coe_addMonoidHom_injective := toAddMonoidHom_injective

/-- Consider using `congr($H x)` instead. -/
protected theorem congr_fun {f₁ f₂ : �� →ₐᵍ[R] ℬ} (H : f₁ = f₂) (x : A) : f₁ x = f₂ x :=
  congr($H x)

/-- Consider using `congr(f $h)` instead. -/
protected theorem congr_arg (f : �� →ₐᵍ[R] ℬ) {x y : A} (h : x = y) : f x = f y :=
  congr(f $h)

@[ext]
theorem ext {f₁ f₂ : �� →ₐᵍ[R] ℬ} (H : ∀ x, f₁ x = f₂ x) : f₁ = f₂ :=
  DFunLike.ext _ _ H

@[simp]
theorem mk_coe {f : �� →ₐᵍ[R] ℬ} (h₁ h₂ h₃ h₄ h₅ h₆) :
    (⟨⟨⟨⟨⟨f, h₁⟩, h₂⟩, h₃, h₄⟩, h₅⟩, h₆⟩ : �� →ₐᵍ[R] ℬ) = f :=
  rfl

@[simp]
theorem commutes (r : R) : f (algebraMap R A r) = algebraMap R B r :=
  f.commutes' r

theorem comp_ofId : (f : A →ₐ[R] B).comp (Algebra.ofId R A) = Algebra.ofId R B :=
  AlgHom.ext f.commutes

/-- If a `GradedRingHom` is `R`-linear, then it is a `GradedAlgHom`. -/
def mk' (f : �� →+*ᵍ ℬ) (h : ∀ (c : R) (x), f (c • x) = c • f x) : �� →ₐᵍ[R] ℬ :=
  { AlgHom.mk' _ h, f with }

@[simp]
theorem coe_mk' (f : �� →+*ᵍ ℬ) (h : ∀ (c : R) (x), f (c • x) = c • f x) : ⇑(mk' f h) = f := rfl

section id
variable (R ��)

/-- Identity map as a `GradedAlgHom`. -/
@[simps!] protected def id : �� →ₐᵍ[R] �� :=
  { AlgHom.id R A, GradedRingHom.id �� with }

@[simp, norm_cast]
theorem coe_id : ⇑(GradedAlgHom.id R ��) = id := rfl

@[simp]
theorem id_toAlgHom : (GradedAlgHom.id R �� : A →ₐ[R] A) = AlgHom.id R A := rfl

end id

/-- If `g` and `f` are `R`-linear graded algebra homomorphisms with the domain of `g` equal to
the codomain of `f`, then `g.comp f` is the graded algebra homomorphism `x ↦ g (f x)`.
-/

@[simps!] def comp (g : ℬ →ₐᵍ[R] ��) (f : �� →ₐᵍ[R] ℬ) : �� →ₐᵍ[R] �� :=
  { (g : B →ₐ[R] C).comp (f : A →ₐ[R] B),
    (g.toGradedRingHom : ℬ →+*ᵍ ��).comp (f.toGradedRingHom : �� →+*ᵍ ℬ) with }

@[simp]
theorem coe_comp (g : B →ₐ[R] C) (f : �� →ₐᵍ[R] ℬ) : ⇑(g.comp f) = g ∘ f := rfl

theorem comp_toGradedRingHom (g : ℬ →ₐᵍ[R] ��) (f : �� →ₐᵍ[R] ℬ) :
    (g.comp f).toGradedRingHom = g.toGradedRingHom.comp f.toGradedRingHom := rfl

theorem comp_toAlgHom (g : ℬ →ₐᵍ[R] ��) (f : �� →ₐᵍ[R] ℬ) :
    (g.comp f : A →ₐ[R] C) = (g : B →ₐ[R] C).comp f := rfl

@[simp]
theorem comp_id : f.comp (.id R ��) = f := rfl

@[simp]
theorem id_comp : (GradedAlgHom.id R ℬ).comp f = f := rfl

theorem comp_assoc (fCD : �� →ₐᵍ[R] ��) (fBC : ℬ →ₐᵍ[R] ��) (fAB : �� →ₐᵍ[R] ℬ) :
    (fCD.comp fBC).comp fAB = fCD.comp (fBC.comp fAB) := rfl

@[simps -isSimp toMul_mul toOne_one]
instance : Monoid (�� →ₐᵍ[R] ��) where
  mul := comp
  one := .id R ��
  mul_assoc _ _ _ := rfl
  one_mul _ := rfl
  mul_one _ := rfl

@[simp] theorem coe_one : ⇑(1 : �� →ₐᵍ[R] ��) = id := rfl

@[simp] theorem coe_mul (f g : �� →ₐᵍ[R] ��) : ⇑(f * g) = f ∘ g := rfl

@[simp] theorem coe_pow (f : �� →ₐᵍ[R] ��) (n : ℕ) : ⇑(f ^ n) = f^[n] :=
  n.rec (by ext; simp) fun _ ih ↦ by ext; simp [pow_succ, ih]

lemma cancel_right {g₁ g₂ : ℬ →ₐᵍ[R] ��} {f : �� →ₐᵍ[R] ℬ} (hf : Function.Surjective f) :
    g₁.comp f = g₂.comp f ↔ g₁ = g₂ :=
  ⟨fun h ↦ coe_toAlgHom_injective <| (AlgHom.cancel_right hf).1 congr($h), fun h ↦ h ▸ rfl⟩

lemma cancel_left {g₁ g₂ : �� →ₐᵍ[R] ℬ} {f : ℬ →ₐᵍ[R] ��} (hf : Function.Injective f) :
    f.comp g₁ = f.comp g₂ ↔ g₁ = g₂ :=
  ⟨fun h ↦ coe_toAlgHom_injective <| (AlgHom.cancel_left hf).1 congr($h), fun h ↦ h ▸ rfl⟩

/-- We enrich the existing function `toAlgHom` with the structure of a `MonoidHom`, to produce a
bundled function that we now call `toEnd`. -/

@[simps] def toEnd : (�� →ₐᵍ[R] ��) →* (A →ₐ[R] A) where
  toFun := toAlgHom
  map_one' := rfl
  map_mul' _ _ := rfl

section

variable [Subsingleton B]

instance : Unique (�� →ₐᵍ[R] ℬ) where
  default := { (default : A →ₐ[R] B) with map_mem hx := by aesop }
  uniq _ := ext fun _ ↦ Subsingleton.elim _ _

@[simp]
lemma default_apply (x : A) : (default : �� →ₐᵍ[R] ℬ) x = 0 :=
  rfl

end

section restrictScalars

/-- Restrict the base ring to a "smaller" ring. -/
@[coe, simps!] def restrictScalars (R₀ : Type*) [CommSemiring R₀] [Algebra R₀ R]
    [Algebra R₀ A] [Algebra R₀ B] [IsScalarTower R₀ R A] [IsScalarTower R₀ R B]
    (f : �� →ₐᵍ[R] ℬ) : (�� · |>.restrictScalars R₀) →ₐᵍ[R₀] (ℬ · |>.restrictScalars R₀) :=
  { f.toAlgHom.restrictScalars R₀, f with }

variable (R₀ : Type*) [CommSemiring R₀] [Algebra R₀ R]
    [Algebra R₀ A] [Algebra R₀ B] [IsScalarTower R₀ R A] [IsScalarTower R₀ R B]
    (f : �� →ₐᵍ[R] ℬ)

@[simp] lemma coe_restrictScalars : ⇑(f.restrictScalars R₀) = f := rfl

@[simp] lemma restrictScalars_toAlgHom :
    (f : A →ₐ[R] B).restrictScalars R₀ = f.restrictScalars R₀ := rfl

@[deprecated (since := "2026-05-05")]
alias restrictScalars_coe_algHom := restrictScalars_toAlgHom

@[simp] lemma restrictScalars_coe_linearMap :
    (f : A →ₗ[R] B).restrictScalars R₀ = f.restrictScalars R₀ := rfl

lemma restrictScalars_injective :
    Function.Injective (restrictScalars R₀ : (�� →ₐᵍ[R] ℬ) → _) :=
  fun _ _ h ↦ coe_fn_injective congr($h)

end restrictScalars

end GradedAlgHom

Messung
CHZG
9110010096

¤ Dauer der Verarbeitung: 0.9 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,097
#Domains=862,629