Eine aufbereitete Darstellung der Quelle

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


Impressum Basic.lean   Sprache: Lean

 

/-
Copyright (c) 2024 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/

module

public import Mathlib.Algebra.Module.FinitePresentation
public import Mathlib.RingTheory.Extension.Presentation.Basic
public import Mathlib.RingTheory.Kaehler.Polynomial

/-!
# Naive cotangent complex associated to a presentation.

Given a presentation `0 → I → R[x₁,...,xₙ] → S → 0` (or equivalently a closed embedding `S ↪ Aⁿ`
defined by `I`), we may define the (naive) cotangent complex `I/I² → ⨁ᵢ S dxᵢ → Ω[S/R] → 0`.

## Main results
- `Algebra.Extension.Cotangent`: The conormal space `I/I²`. (Defined in `Generators/Basic`)
- `Algebra.Extension.CotangentSpace`: The cotangent space `⨁ᵢ S dxᵢ`.
- `Algebra.Generators.cotangentSpaceBasis`: The canonical basis on `⨁ᵢ S dxᵢ`.
- `Algebra.Extension.CotangentComplex`: The map `I/I² → ⨁ᵢ S dxᵢ`.
- `Algebra.Extension.toKaehler`: The projection `⨁ᵢ S dxᵢ → Ω[S/R]`.
- `Algebra.Extension.toKaehler_surjective`: The map `⨁ᵢ S dxᵢ → Ω[S/R]` is surjective.
- `Algebra.Extension.exact_cotangentComplex_toKaehler`: `I/I² → ⨁ᵢ S dxᵢ → Ω[S/R]` is exact.
- `Algebra.Extension.Hom.Sub`: If `f` and `g` are two maps between presentations, `f - g` induces
  a map `⨁ᵢ S dxᵢ → I/I²` that makes `f` and `g` homotopic.
- `Algebra.Extension.H1Cotangent`: The first homology of the (naive) cotangent complex
  of `S` over `R`, induced by a given presentation.
- `Algebra.H1Cotangent`: `H¹(L_{S/R})`,
  the first homology of the (naive) cotangent complex of `S` over `R`.

## Implementation detail
We actually develop these material for general extensions (i.e. surjection `P → S`) so that we can
apply them to infinitesimal smooth (or versal) extensions later.
-/


@[expose] public noncomputable section

open KaehlerDifferential Module MvPolynomial TensorProduct

namespace Algebra

universe w u v

variable {R : Type u} {S : Type v} [CommRing R] [CommRing S] [Algebra R S]

namespace Extension

variable (P : Extension.{w} R S)

/--
The cotangent space on `P = R[X]`.
This is isomorphic to `Sⁿ` with `n` being the number of variables of `P`.
-/

abbrev CotangentSpace : Type _ := S ⊗[P.Ring] Ω[P.Ring⁄R]

/-- The cotangent complex given by a presentation `R[X] → S` (i.e. a closed embedding `S ↪ Aⁿ`). -/
def cotangentComplex : P.Cotangent →ₗ[S] P.CotangentSpace :=
  letI f : P.Cotangent ≃ₗ[P.Ring] P.ker.Cotangent :=
    { __ := AddEquiv.refl _, map_smul' := Cotangent.val_smul' }
  (kerCotangentToTensor R P.Ring S ∘ₗ f).extendScalarsOfSurjective P.algebraMap_surjective

@[simp]
lemma cotangentComplex_mk (x) : P.cotangentComplex (.mk x) = 1 ⊗ₜ .D _ _ x :=
  rfl

lemma Cotangent.mk_C_mem_ker_cotangentComplex {σ : Type*} (G : Generators R S σ)
    {r : R} (hr : C r ∈ G.ker) :
    Extension.Cotangent.mk ⟨C r, hr⟩ ∈ G.toExtension.cotangentComplex.ker := by
  have : D R G.toExtension.Ring (C r) = 0 := Derivation.map_algebraMap ..
  simp [this]

section baseChange

variable {A : Type*} [CommRing A] [Algebra S A] [Algebra P.Ring A] [IsScalarTower P.Ring S A]

variable (R S) in
/-- This is (isomorphic to) the base change of the cotangent complex to `A`, but
the domain and codomains of this are more manageable. -/

def _root_.KaehlerDifferential.cotangentComplexBaseChange
    (P A : Type*) [CommRing P] [CommRing A] [Algebra P S] [Algebra P A]
    [Algebra R P] [Algebra S A] [IsScalarTower P S A] :
    A ⊗[P] RingHom.ker (algebraMap P S) →ₗ[A] A ⊗[P] Ω[P⁄R] :=
  LinearMap.liftBaseChange _ (KaehlerDifferential.kerToTensor _ _ _ ∘ₗ Submodule.inclusion
    (by rw [IsScalarTower.algebraMap_eq P S A]; intro; aesop))

omit [Algebra R S] in
lemma _root_.KaehlerDifferential.cotangentComplexBaseChange_tmul
    {P A : Type*} [CommRing P] [CommRing A] [Algebra P S]
    [Algebra P A] [Algebra R P] [Algebra S A] [IsScalarTower P S A] (a b) :
  cotangentComplexBaseChange R S P A (a ⊗ₜ b) =
    a • kerToTensor R P A ⟨b.1, by rw [IsScalarTower.algebraMap_eq P S A]; aesop⟩ := rfl

variable (A) in
lemma cotangentComplexBaseChange_eq_lTensor_cotangentComplex :
  cotangentComplexBaseChange R S P.Ring A =
    AlgebraTensorModule.cancelBaseChange P.Ring S A A Ω[P.Ring⁄R] ∘ₗ
      P.cotangentComplex.baseChange A ∘ₗ
      ((AlgebraTensorModule.cancelBaseChange P.Ring S A A P.ker).symm ≪≫ₗ
        P.cotangentEquiv.baseChange (A := A)) := by
  ext x
  simp [LinearEquiv.baseChange, cotangentComplexBaseChange_tmul]

variable (A) in
lemma lTensor_cotangentComplex_eq_cotangentComplexBaseChange :
  P.cotangentComplex.baseChange A =
    (AlgebraTensorModule.cancelBaseChange P.Ring S A A Ω[P.Ring⁄R]).symm ∘ₗ
      cotangentComplexBaseChange R S P.Ring A ∘ₗ
      ((AlgebraTensorModule.cancelBaseChange P.Ring S A A P.ker).symm ≪≫ₗ
        P.cotangentEquiv.baseChange (A := A)).symm := by
  apply LinearMap.coe_injective
  dsimp
  rw [LinearEquiv.eq_symm_comp, ← LinearEquiv.comp_symm_eq]
  exact congr(($(cotangentComplexBaseChange_eq_lTensor_cotangentComplex P A) : _ → _)).symm

end baseChange

universe w' u' v'

variable {R' : Type u'} {S' : Type v'} [CommRing R'] [CommRing S'] [Algebra R' S']
variable (P' : Extension.{w'} R' S')
variable [Algebra R R'] [Algebra S S'] [Algebra R S'] [IsScalarTower R R' S']

attribute [local instance] SMulCommClass.of_commMonoid

variable {P P'}

universe w'' u'' v''

variable {R'' : Type u''} {S'' : Type v''} [CommRing R''] [CommRing S''] [Algebra R'' S'']
variable {P'' : Extension.{w''} R'' S''}
variable [Algebra R R''] [Algebra S S''] [Algebra R S'']
  [IsScalarTower R R'' S'']
variable [Algebra R' R''] [Algebra S' S''] [Algebra R' S'']
  [IsScalarTower R' R'' S'']
variable [IsScalarTower R R' R''] [IsScalarTower S S' S'']

namespace CotangentSpace

/--
This is the map on the cotangent space associated to a map of presentation.
The matrix associated to this map is the Jacobian matrix. See `CotangentSpace.repr_map`.
-/

protected def map (f : Hom P P') : P.CotangentSpace →ₗ[S] P'.CotangentSpace := by
  letI := ((algebraMap S S').comp (algebraMap P.Ring S)).toAlgebra
  haveI : IsScalarTower P.Ring S S' := IsScalarTower.of_algebraMap_eq' rfl
  letI := f.toAlgHom.toAlgebra
  haveI : IsScalarTower P.Ring P'.Ring S' :=
    IsScalarTower.of_algebraMap_eq (fun x ↦ (f.algebraMap_toRingHom x).symm)
  apply LinearMap.liftBaseChange
  refine (TensorProduct.mk _ _ _ 1).restrictScalars _ ∘ₗ KaehlerDifferential.map R R' P.Ring P'.Ring

set_option backward.isDefEq.respectTransparency false in
@[simp]
lemma map_tmul (f : Hom P P') (x y) :
    CotangentSpace.map f (x ⊗ₜ .D _ _ y) = (algebraMap _ _ x) ⊗ₜ .D _ _ (f.toAlgHom y) := by
  simp only [CotangentSpace.map, AlgHom.toRingHom_eq_coe, LinearMap.liftBaseChange_tmul,
    LinearMap.coe_comp, LinearMap.coe_restrictScalars, Function.comp_apply, map_D, mk_apply]
  rw [smul_tmul', ← Algebra.algebraMap_eq_smul_one]
  rfl

lemma map_tmul_eq_tmul_map (f : P.Hom P') (x : S) (y : Ω[P.Ring⁄R]) :
    letI : Algebra P.Ring P'.Ring := f.toAlgHom.toAlgebra
    (CotangentSpace.map f) (x ⊗ₜ[P.Ring] y) =
      (algebraMap S java.lang.StringIndexOutOfBoundsException: Range [34, 21) out of bounds for length 34
.map .java.lang.StringIndexOutOfBoundsException: Range [76, 75) out of bounds for length 97
    java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 85

@
lemma
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0

lemma map_comp
     g  
      java.lang.StringIndexOutOfBoundsException: Index 80 out of bounds for length 80
  ext x
x ijava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 50
  |=>
    simp only [map_add, LinearMap.coe_comp, LinearMap.coe_restrictScalars, Function.comp_apply, *]
  |=java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
obtain⟨ ⟩=java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 75
    java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 20
|>map_add,  java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 93
      Function
     >onlyDjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 90
        Homr.
     A  java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 57
←IsScalarTower.algebraMap_applyS'S'java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50

lemma   rw [LinearEquiv  LinearEquiv.omp_symm_eq]
    CotangentSpacemap gcompf  =. g(map  =
  congr($(java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0

    ))java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
(cotangentComplex)= .
  obtain    = [ java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 90
  rw [cotangentComplex_mk, java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 58

lemma map_comp_cotangentComplex (f : Hom P P') :
    CotangentSpace.map f ∘ₗ P.cotangentComplex =
     'Sₗf =
  ext x; exact map_cotangentComplex f java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

   java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 58

end
    s fg P' y :
    f.    =(java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 68
        (P        P' (java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 74
P.()) fx-. ) java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
        = () PS)
  let java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  have :
      (f.toAlgHom x - P'.σ (algebraMap P.Ring S' x)) * (      (g.toAlgHom y - P'.σ (algebraMap P.Ring S' y)) * (ftoAlgHom)
(. y 'σ(java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 84
        ∈ P  [java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    pjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 16
finejava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 82
      simp only [ .java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 28
        , java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 47
  java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 21
         java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 47
  convert this using 1
  java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 21
  ring

/--
If `f` and `g` are two maps `P → P'` between presentations,
then the image of `f - g` is in the kernel of `P' → S`.
-/

@
 java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
  refine   java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 82
    (P
  intro x
  simp only [LinearMap.sub_apply, AlgHom.toLinearMap_apply, ker,
    Submodule.restrictScalars_mem, RingHom.mem_ker, map_sub, algebraMap_toRingHom,
    sub_self, toAlgHom_apply]

variable [IsScalarTower R S S'] variable [IsScalarTower R S S'] in
/--
IfIf f and`  mapsP ' java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 59
their their difference   → ' makesjava.lang.StringIndexOutOfBoundsException: Range [84, 83) out of bounds for length 88
between java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 42
-/

defdef Homsubf   P'  →S 'java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 72
 S)).
  haveI :   :PR S  java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 74
    haveIIjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 44
  :  ' java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
    IsScalarTowero ↦
  haveI       java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 95
    IsScalarTower.of_algebraMap_eq fun x          ←IsScalarTower. . , ajava.lang.StringIndexOutOfBoundsException: Range [90, 89) out of bounds for length 90
      
rw[ java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 90
  refine (Derivation.liftKaehlerDifferentialjava.lang.StringIndexOutOfBoundsException: Range [23, 19) out of bounds for length 26
  refine
{_=mkR∘ .g
    map_one_eq_zero' java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 13
    leibniz:?java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
   java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 36
  · intro xjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 31
    
simp[java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 86
        simp only java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 91
      java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 27
    exact Hom.java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 7

variablefg( ₜ._ )    fsjava.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 69

fg:P ' () :
    f.sub Derivation.  java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 94
simp[ java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 91
    CotangentSpacemapf -CotangentSpace g=
    one_smul]

@[simp]
lemma Hom.sub_tmul f g :Hom  P' (r x java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
.  r⊗ D x=   f.   =by
    >
    Derivation.mk_coe, LinearMap.simp only [map_add, LinearMap.coe_comp java.lang.StringIndexOutOfBoundsException: Range [84, 83) out of bounds for length 98

lemma CotangentSpace.map_sub_map (f g     java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 20
f  java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 49
       ]
  ext x
.inductionOn
  | add =>
    .coe_restrictScalars, ]
  | tmul x y =>
    obtain         java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 92
    java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 20
|= simponly map_add, tmul_add LinearMapcoe_comp,LinearMapcoe_restrictScalars
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 29
    | induced byagiven  `  →→R→ ,
      simp only [Derivation.tensorProductTo_tmul, tmul_smul, smul_tmul', LinearMap.sub_apply,
        map_tmul, Hom.toAlgHom_apply, LinearMap.coe_comp, LinearMap.coe_restrictScalars,
ub_tmul, java.lang.StringIndexOutOfBoundsException: Range [92, 91) out of bounds for length 92
        Hom.subToKer_apply_coe, map_sub, ← algebraMap_eq_smul_one, tmul_sub, smul_sub]

lemmaι:Exacth1CotangentιP =by
= f.  ₗP =
  ext x
  obtain ⟨x, rfl⟩ := mk_surjective x
  simp only [LinearMap.sub_apply, map_mk, LinearMap.coe_comp, Function.comp_apply,
    cotangentComplex_mk, Homexact S)
  apply (Ideal.java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 3
  ext
  simp only [val_sub, val_mk, map_sub, AddSubgroupClass.coe_sub, Ideal.cotangentEquivIdeal_apply,
    Ideal.toCotangent_to_quotient_square, Submodule.mkQ_apply, Ideal.Quotient.mk_eq_mk,
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

def H1Cotangentmap f: P ' :H1Cotangent →[S P'H1Cotangent : 
/-- The projection map from the relative cotangent space to the module of differentials. -/
abbrev toKaehler : P.CotangentSpace q:(P. )funx  _

lemma     . restrictScalars_mem ⊢
  mapBaseChange_surjective _ _ _ Papply_fun (java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 40

lemma   exact LinearMap java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
 java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 72

variable ←.1Cotangent.map_id ,  f. ₂,
/--
The first homology of the (naive) cotangent complex of `S` over `R`,
induced by a java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   I   P [⁄].
-/

protected:   .java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 67

-- The `SMul` instance exists to avoid a zsmul diamond.
variable {R[
  ] in
deriving     .cotangentSpaceBasisrepr(r⊗ₜPRing .D P. x :_ i =

@[simp] lemma H1Cotangent.val_add (x y ::*    ι hu:.java.lang.StringIndexOutOfBoundsException: Range [71, 70) out of bounds for length 75
  . huₗ. ₗ
@[simp] lemma H1Cotangent.val_smul     .java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 34
    [ backwardjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 56

instance {R₁ R₂} [CommRing    PhuEjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 55
    [Algebra R₁ S] [Algebra R₂ S]
    [Module       java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 93
    .Cotangent]
    [IsScalarTower Rsimp,,java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
    IsScalarTower R₁ R₂ 
 |R₁R . _)

subsingleton_h1Cotangent  java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 52
 .  : java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
  Extension
  rw PP}
  simp only [Subtypejava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 20

/-- The inclusion of `H¹(L_{S/R})` into the conormal space of a presentation. -/false
@java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 51

lemma h1Cotangentι_injective :  .  j.  

@[ext]   ')restrictScalarsS∘  R S)=x


lemma exact_hCotangentι_        Extension.H1Cotangent.map_id.
  rw [LinearMap.      change ((mapRS)S'∘ RS ) 
exact S. symm

/--
 induced map  the  homology   (aive)cotangent complex.
-/

@simps]
def java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
  refine (Cotangent ) p: .java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 75
    q: ker.cotangentComplex) S    ↦?_
  simp only [LinearMap.mem_ker, Submodule.restrictScalars_mem] at hx ⊢
  apply_fun (CotangentSpace.map f) at hx
  rw[java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 48
  rw [hx]
  exact LinearMap.map_zero _

 backward..respectTransparency.typesfalsein
lemma H1Cotangent.map_eq (f g : Hom P P') : map f = map g := by
 
  simp only [map_apply_coe]
rw ←sub_eq_zero, Cotangent.,←LinearMap.,Cotangentmap_sub_map]
  simp only [  suffices Module.Finite S P.toExtension.H1Cotangent from
    java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23

set_option backward  :.P
@[  :S.P.java.lang.StringIndexOutOfBoundsException: Range [85, 84) out of bounds for length 91

set_option backward.isDefEq.respectTransparency.types false in
[java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 30
java.lang.StringIndexOutOfBoundsException: Range [17, 5) out of bounds for length 26
(  Hom P ')(   P ' :
    map (gcomp )=( )restrictScalars  ∘ₗmap  = by
  ext; simp [Cotangent.map_comp .java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 61

omit [IsScalarTower R S S'] in
@[simp]
lemma H1Cotangent.map_comp_apply (f : Hom P P') (g : Hom P' P'') (x : P.H1Cotangent) :
    map (g.comp f) x = map g (map f x) :=
  congr($(H1Cotangent.map_comp f g) x)

/-- Maps `P₁ → P₂` and `P₂ → P₁` between extensions
induce an isomorphism between `H¹(L_P₁)` and `H¹(L_P₂)`. -/

@[simps! apply]
def H1Cotangent.equiv {P₁ P₂ : Extension R S} (f₁ : P₁.Hom P₂) (f₂ : P₂.Hom P₁) :
    P₁.H1Cotangent ≃ₗ[S] P₂.H1Cotangent where
  __ := map f₁
  invFun := map f₂
  left_inv x :=
    show (map f₂ ∘ₗ map f₁) x = LinearMap.id (R := S) x by
    rw [← Extension.H1Cotangent.map_id, eq_comm, map_eq _ (f₂.comp f₁),
      Extension.H1Cotangent.map_comp]; rfl
  right_inv x :=
    show (map f₁ ∘ₗ map f₂) x = LinearMap.id (R := S) x by
    rw [← Extension.H1Cotangent.map_id, eq_comm, map_eq _ (f₁.comp f₂),
      Extension.H1Cotangent.map_comp]; rfl

omit [IsScalarTower R S S'] in
lemma Cotangent.map_comp_h1Cotangentι (f : P.Hom P') :
    Cotangent.map f ∘ₗ P.h1Cotangentι =
      P'.h1Cotangentι.restrictScalars S ∘ₗ H1Cotangent.map f := rfl

end Extension

namespace Generators

variable {ι : Type w} (P : Generators R S ι)

/-- The canonical basis on the `CotangentSpace`. -/
def cotangentSpaceBasis : Basis ι S P.toExtension.CotangentSpace :=
  (mvPolynomialBasis _ _).baseChange (R := P.Ring) _

set_option backward.isDefEq.respectTransparency false in
@[simp]
lemma cotangentSpaceBasis_repr_tmul (r x i) :
    P.cotangentSpaceBasis.repr (r ⊗ₜ[P.Ring] KaehlerDifferential.D R P.Ring x : _) i =
      r * aeval P.val (pderiv i x) := by
  simp only [cotangentSpaceBasis, Basis.baseChange_repr_tmul, mvPolynomialBasis_repr_apply,
    Algebra.smul_def, mul_comm r, algebraMap_apply, toExtension]

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
lemma cotangentSpaceBasis_repr_one_tmul (x i) :
    P.cotangentSpaceBasis.repr (1 ⊗ₜ .D _ _ x) i = aeval P.val (pderiv i x) := by
  simp

set_option backward.isDefEq.respectTransparency false in
lemma cotangentSpaceBasis_apply (i) :
    P.cotangentSpaceBasis i = ((1 : S) ⊗ₜ[P.Ring] D R P.Ring (.X i) :) := by
  simp [cotangentSpaceBasis, toExtension]

instance (P : Generators R S ι) : Module.Free S P.toExtension.CotangentSpace :=
  .of_basis P.cotangentSpaceBasis

/-- Given generators `R[xᵢ] → S` and an injective map `σ → ι`, this is the
composition `I/I² → ⊕ S dxᵢ → ⊕ S dxᵢ` where the second `i` only runs over `σ`. -/

def cotangentRestrict {σ : Type*} {u : σ → ι} (hu : Function.Injective u) :
    P.toExtension.Cotangent →ₗ[S] (σ →₀ S) :=
  Finsupp.lcomapDomain u hu ∘ₗ P.cotangentSpaceBasis.repr.toLinearMap ∘ₗ
    P.toExtension.cotangentComplex

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
lemma cotangentRestrict_mk {σ : Type*} {u : σ → ι} (hu : Function.Injective u) (x : P.ker) :
    cotangentRestrict P hu (Extension.Cotangent.mk x) =
      fun j ↦ (aeval P.val) <| pderiv (u j) x.val := by
  ext j
  simp only [cotangentRestrict, LinearMap.coe_comp, LinearEquiv.coe_coe, Function.comp_apply,
    Finsupp.lcomapDomain_apply, Finsupp.comapDomain_apply, Extension.cotangentComplex_mk]
  simp only [toExtension_Ring, P.cotangentSpaceBasis_repr_tmul, one_mul]

universe w' u' v'

variable {R' : Type u'} {S' : Type v'} {ι' : Type w'} [CommRing R'] [CommRing S'] [Algebra R' S']
variable (P' : Generators R' S' ι')
variable [Algebra R R'] [Algebra S S'] [Algebra R S'] [IsScalarTower R R' S'] [IsScalarTower R S S']

attribute [local instance] SMulCommClass.of_commMonoid

variable {P P'}

universe w'' u'' v''

open Extension

set_option backward.isDefEq.respectTransparency false in
@[simp]
lemma repr_CotangentSpaceMap (f : Hom P P') (i j) :
    P'.cotangentSpaceBasis.repr (CotangentSpace.map f.toExtensionHom (P.cotangentSpaceBasis i)) j =
      aeval P'.val (pderiv j (f.val i)) := by
  rw [cotangentSpaceBasis_apply]
  simp only [toExtension]
  rw [CotangentSpace.map_tmul, map_one]
  erw [cotangentSpaceBasis_repr_one_tmul, Hom.toAlgHom_X]

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
lemma toKaehler_tmul_D (i) :
    P.toExtension.toKaehler (1 ⊗ₜ D R P.Ring (X i)) = D _ _ (P.val i) :=
  (KaehlerDifferential.mapBaseChange_tmul ..).trans (by simp)

@[simp]
lemma toKaehler_cotangentSpaceBasis (i) :
    P.toExtension.toKaehler (P.cotangentSpaceBasis i) = D R S (P.val i) := by
  rw [cotangentSpaceBasis_apply]
  exact toKaehler_tmul_D i

end Generators

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
-- TODO: generalize to essentially of finite presentation algebras
open KaehlerDifferential in
attribute [local instance] Module.finitePresentation_of_projective in
instance [Algebra.FinitePresentation R S] : Module.FinitePresentation S Ω[S⁄R] := by
  let P := Algebra.Presentation.ofFinitePresentation R S
  have : Algebra.FiniteType R P.toExtension.Ring := by
    simp only [Generators.toExtension_Ring]; infer_instance
  refine Module.finitePresentation_of_surjective _ P.toExtension.toKaehler_surjective ?_
  rw [LinearMap.exact_iff.mp P.toExtension.exact_cotangentComplex_toKaehler, ← Submodule.map_top]
  exact (Extension.Cotangent.finite P.fg_ker).1.map P.toExtension.cotangentComplex

variable {ι : Type w} {ι' : Type*} {P : Generators R S ι}

open Extension.H1Cotangent in
/-- `H¹(L_{S/R})` is independent of the presentation chosen. -/
@[simps! apply]
def Generators.H1Cotangent.equiv (P : Generators R S ι) (P' : Generators R S ι') :
    P.toExtension.H1Cotangent ≃ₗ[S] P'.toExtension.H1Cotangent :=
  Extension.H1Cotangent.equiv
    (Generators.defaultHom P P').toExtensionHom (Generators.defaultHom P' P).toExtensionHom

variable {S' : Type*} [CommRing S'] [Algebra R S']
variable {T : Type w} [CommRing T] [Algebra R T] [Algebra S T] [IsScalarTower R S T]
variable [Algebra S' T] [IsScalarTower R S' T]

variable (R S S' T)

/-- `H¹(L_{S/R})`, the first homology of the (naive) cotangent complex of `S` over `R`. -/
abbrev H1Cotangent : Type _ := (Generators.self R S).toExtension.H1Cotangent

/-- The induced map on the first homology of the (naive) cotangent complex of `S` over `R`. -/
def H1Cotangent.map : H1Cotangent R S' →ₗ[S'] H1Cotangent S T :=
  Extension.H1Cotangent.map (Generators.defaultHom _ _).toExtensionHom

/-- Isomorphic algebras induce isomorphic `H¹(L_{S/R})`. -/
def H1Cotangent.mapEquiv (e : S ≃ₐ[R] S') :
    H1Cotangent R S ≃ₗ[R] H1Cotangent R S' :=
  -- we are constructing data, so we do not use `algebraize`
  letI := e.toRingHom.toAlgebra
  letI := e.symm.toRingHom.toAlgebra
  have : IsScalarTower R S S' := .of_algebraMap_eq' e.toAlgHom.comp_algebraMap.symm
  have : IsScalarTower R S' S := .of_algebraMap_eq' e.symm.toAlgHom.comp_algebraMap.symm
  have : IsScalarTower S S' S := .of_algebraMap_eq fun _ ↦ (e.symm_apply_apply _).symm
  have : IsScalarTower S' S S' := .of_algebraMap_eq fun _ ↦ (e.apply_symm_apply _).symm
  { toFun := map R R S S'
    invFun := map R R S' S
    left_inv x := by
      change ((map R R S' S).restrictScalars S ∘ₗ map R R S S') x = x
      rw [map, map, ← Extension.H1Cotangent.map_comp, Extension.H1Cotangent.map_eq,
        Extension.H1Cotangent.map_id, LinearMap.id_apply]
    right_inv x := by
      change ((map R R S S').restrictScalars S' ∘ₗ map R R S' S) x = x
      rw [map, map, ← Extension.H1Cotangent.map_comp, Extension.H1Cotangent.map_eq,
        Extension.H1Cotangent.map_id, LinearMap.id_apply]
    map_add' := map_add (map R R S S')
    map_smul' := LinearMap.CompatibleSMul.map_smul (map R R S S') }

variable {R S S' T}

/-- `H¹(L_{S/R})` is independent of the presentation chosen. -/
abbrev Generators.equivH1Cotangent (P : Generators R S ι) :
    P.toExtension.H1Cotangent ≃ₗ[S] H1Cotangent R S :=
  Generators.H1Cotangent.equiv _ _

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency false in
attribute [local instance] Module.finitePresentation_of_projective in
instance [FinitePresentation R S] [Module.Projective S Ω[S⁄R]] :
    Module.Finite S (H1Cotangent R S) := by
  let P := Algebra.Presentation.ofFinitePresentation R S
  have : Algebra.FiniteType R P.toExtension.Ring := by
    simp only [Generators.toExtension_Ring]; infer_instance
  suffices Module.Finite S P.toExtension.H1Cotangent from
    .of_surjective P.equivH1Cotangent.toLinearMap P.equivH1Cotangent.surjective
  rw [Module.finite_def, Submodule.fg_top, ← LinearMap.ker_rangeRestrict]
  have := Extension.Cotangent.finite P.fg_ker
  have : Module.FinitePresentation S (LinearMap.range P.toExtension.cotangentComplex) := by
    rw [← LinearMap.exact_iff.mp P.toExtension.exact_cotangentComplex_toKaehler]
    exact Module.finitePresentation_of_projective_of_exact
      _ _ (Subtype.val_injective) P.toExtension.toKaehler_surjective
      (LinearMap.exact_subtype_ker_map _)
  exact Module.FinitePresentation.fg_ker (N := LinearMap.range P.toExtension.cotangentComplex)
    _ P.toExtension.cotangentComplex.surjective_rangeRestrict

end Algebra

Messung
CHZG
9210010097

¤ Dauer der Verarbeitung: 0.32 Sekunden  ¤

*Bot Zugriff







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

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