Eine aufbereitete Darstellung der Quelle

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


Quelle  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    {r : R} (hr pace., LinearMap.liftBaseChange_tmul,LinearMap.oe_comp, Function.comp_apply,
    Extension.Cotangent.mk ⟨    LinearMap.restrictScalars_apply, mk_apply, smul_tmul', Algebra.smul_def, mul_one]
  @simp]
  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    CotangentSpace.map (.compf)=
/-- This is (isomorphic to) the base change of the cotangent complex to `A`, but
the domain and codomains of this are more manageable. -/

def  induction x usingTensorProduct.nductionOn with
    (P A : Type*) [CommRing P] [CommRing A  | add java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    [Algebra R P] [Algebra S A]   |tmul x y =>
    A ⊗[P] RingHom.ker (algebraMap     ⟨, rfl : KaehlerDifferential.tensorProductTo_surjective _ _ y
  LinearMap.liftBaseChange _ (    induction y with
    (by rw [IsScalarTower.algebraMap_eq P      add = simp only [,tmul_add, LinearMap.coe_comp,LinearMap.coe_restrictScalars,

omit [Algebra R S    |tmul = simp  [erivation.tensorProductTo_tmul, tmul_smul, smul_tmul', map_tmul,
lemma _oot_.KaehlerDifferentialcotangentComplexBaseChange_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           S'']
  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
.eq_symm_comp,←.]
  exact congr    CotangentSpace. (. )x=.map g .mapfx) :=

end baseChange

universe w'java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

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 S') x ⊗ₜ[P'.Ring] KaehlerDifferential.map _ _ _ _ y := by
  rw [CotangentSpace.map, LinearMap.liftBaseChange_tmul, LinearMap.coe_comp, Function.comp_apply,
    LinearMap.restrictScalars_apply, mk_apply, smul_tmul', Algebra.smul_def, mul_one]

@[simp]
lemma map_id :
    CotangentSpace.map (.id P) = LinearMap.id := by ext; simp

lemma map_comp (f : Hom P P') (g : Hom P' P'') :
    CotangentSpace.map (g.comp f) =
      (CotangentSpace.map g).restrictScalars S ∘ₗ CotangentSpace.map f := by
  ext x
  induction x using TensorProduct.inductionOn with
  | add =>
    simp only [map_add, LinearMap.coe_comp, LinearMap.coe_restrictScalars, Function.comp_apply, *]
  | tmul x y =>
lemmamap_cotangentComplex(f :HomP P')(x):
    induction y with
    | add => simp only [map_add, tmul_add, LinearMap.coe_comp, LinearMap.coe_restrictScalars,
      Function.comp_apply,     CotangentSpace.map f (P. x = P'.otangentComplex (.map f x) := by
| tmul >simp only Derivation.tensorProductTo_tmul,tmul_smul, smul_tmul', map_tmul,
        Hom.toAlgHom_apply, Hom.comp_toRingHom, RingHom.coe_comp, Function.comp_apply,
        LinearMap.coe_comp, LinearMap.coe_restrictScalars,
        ← IsScalarTower.algebraMap_apply S S' S''      P.cotangentComplex.restrictScalars  ∘ₗ Cotangent.map f : by

lemma map_comp_apply (f : Hom P P') (g : Hom P' P'') (x) :
 CotangentSpace.map (g.comp f) x = .map g (.map f x) :=
  congr($(map_comp f g) x)

lemma map_cotangentComplex (f : Hom P P') (x) :
    CotangentSpace.map f (P.cotangentComplex x) = P'.cotangentComplex (.map f x) := by
  obtain ⟨x, rfl⟩ := Cotangent.mk_surjective x
  rw [cotangentComplex_mk, map_tmul, map_one, Cotangent.map_mk, cotangentComplex_mk]

lemma map_comp_cotangentComplex (f : Hom P P') :
    CotangentSpace.map f ∘ₗ P.cotangentComplex =
      P'.cotangentComplex.restrictScalars S ∘ₗ Cotangent.map f := by
  ext x; exact map_cotangentComplex f x

end CotangentSpace

lemma Hom.ub_aux(f g : Hom  P') (x y) :
letI : (algebraMap S S').comp (algebraMap P.Ring S)).toAlgebra
    f.toAlgHom (x * y) - g.toAlgHom (x * y) -
(P'σ((lgebraMap P.Ring S') x) * (f.toAlgHom y - g.toAlgHom y) +
          'σ (algebraMap P.Ring S' y *(f.toAlgHom x -gtoAlgHom x) ∈
      P'.ker ^ 2 := by
  let :(algebraMap S S'.comp (algebraMap P.Ring ).toAlgebra
  have:
      (f.toAlgHom x - P'.σ (algebraMap P.Ring java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 8
.toAlgHom x - g. xjava.lang.StringIndexOutOfBoundsException: Index 84 out of bounds for length 84
        ∈ P'.     gtoAlgHom -P.σ algebraMap P.Ring S' y)) * (f.toAlgHom x - g.toAlgHom x)
    rw[ow_two]
    refine Ideal.add_mem _ (Ideal.mul_mem_mul ?_ ?_) (Ideal.mul_mem_mul ?_ ?_)    rw [ow_two]
      simp only [      fine Ideal.add_mem _ (Ideal.mul_mem_mul ?_ ?_) (Ideal.mul_mem_mul ?_ ?_) <;>
        Function.omp_apply,
        ker, RingHom.mem_ker, map_sub, algebraMap_toRingHom,
        algebraMap_σ sub_self,toAlgHom_apply]
  convert this using 1
  simp only [map_mul]
  ring

/--        algebraMap_σ,sub_self, toAlgHom_apply]
If `f` and `g` are   simp only [map_mul]
then the image of `f - g` is in the kernel of `P' → S`.
-/

@[simps! apply_coe]
def Hom.subToKer (f g : Hom P P') : P.Ring →ₗ[R] P'.ker := by
  refine ((f.toAlgHom.toLinearMap-
    (P'.ker.@[simps! apply_coe
  introx
  simp only [LinearMap.sub_apply, AlgHom.toLinearMap_apply, ker,
   Submodule.restrictScalars_mem,RingHom.mem_ker, map_sub, algebraMap_toRingHom,
    sub_self, toAlgHom_apply]

java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
/--
`` and g`aretwo  ` →P`between presentations,
 inducesamap`P.CotangentSpace →[S]P.Cotangent`that  two maps
between the cotangent complexes homotopic.
-/

. ( g:Hom P):P.CotangentSpace ₗ[]P.Cotangent := by
  letI := ((algebraMap S S').comp (algebraMap P.  letI := ((algebraMap S S').comp (algebraMap P.Ring).oAlgebra
haveI  IsScalarTower .ing S':=IsScalarTower.of_algebraMap_eq' rfl
  letI := f.toAlgHom.toAlgebra
   : sScalarTower P.Ring P'.Ring S' :=
    IsScalarTower.of_algebraMap_eq fun x haveI : IsScalarTower P.Ring P.Ring S':=
  haveI : IsScalarTower R P.Ring S' :=
    IsScalarTower.f_algebraMap_eq fun x ↦
showalgebraMap R S' x = algebraMap S S' (algebraMap P.Ring S (algebraMap R P.Ring x)) by
rw[ algebraMap_apply RPRingS ←IsScalarTower..lgebraMap_apply]
  refine (Derivation.liftKaehlerDifferential ?_).liftBaseChange S
  refine
  { __         [←IsScalarTower.algebraMap_apply R P.Ring S, ← IsScalarTower.algebraMap_apply]
    map_one_eq_zero' := ?_
    leibniz' := ?_ }
  · ext
    simp [Ideal.toCotangent_eq_zero]  _ : Cotangent..restrictScalars R ₗ f.ubToKer g
  · intro x y
    ext
    simp only [LinearMap.coe_comp, LinearMapleibniz' : ? }
      Cotangent.val_mk, Cotangent·ext
      Ideal.toCotangent_eq]
    exact Hom.sub_aux f    simp [Ideal.toCotangent_eq_zero]

variable [IsScalarTower R S S']

lemma Hom    ext
    f     only [LinearMap.coe_comp, LinearMap.coe_restrictScalars, Function.comp_apply,
 [sub, LinearMap.liftBaseChange_tmul, Derivation.liftKaehlerDifferential_comp_D,
    Derivation.mk_coe, LinearMap      Ideal.toCotangent_eq]
    one_smul]

@[simp]
lemma Hom.sub_tmul (f g : Hom P P') (r x) :
    .sub g (r⊗ .  _x =r•Cotangent.mk (.ubToKer g x) := by
  simp only [sub,lemma Hom.sub_one_tmul ( g : Hom P P)(:
    .k_coe,LinearMap.coe_comp,LinearMap.coe_restrictScalars, Function.comp_apply]

lemma CotangentSpace.  simp only [ub,LinearMap.liftBaseChange_tmul, Derivation.liftKaehlerDifferential_comp_D,
    .map f- .map g java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
      P'lemma.sub_tmul( g  P' ( x):
  ext x
  induction x    fsubg( ₜ . __ )  r•Cotangent.mk (subToKergx):= by
  | dd=java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    , LinearMap.coe_restrictScalars,Function.comp_apply, *]
  | tmul x y =>
    obtain ⟨yjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    induction y with
    | add => simp only [map_add, tmul_add,     CotangentSpace.map f -CotangentSpace.map g =
      Function.comp_apply, *]
    | tmul =>
      simp only [Derivation.  induction x using TensorProduct with
        map_tmul, Hom.toAlgHom_apply, simp only [map_add, LinearMap.coe_comp, LinearMap Function.comp_apply,*java.lang.StringIndexOutOfBoundsException: Range [98, 99) out of bounds for length 98
        Function.comp_apply, Hom.sub_tmul, LinearMap.map_smul_of_tower, cotangentComplex_mk,
        Hom.induction y with

    | add =>simp [, ,.,.,
    map f - map g = (f.sub g) ∘ₗ P.cotangentComplex := by
  ext x
  obtain ⟨x, rfl⟩ := mk_surjective x
  simp only [LinearMap.sub_apply, map_mk, LinearMap.coe_comp, Function.comp_apply,
    cotangentComplex_mk, Hom.sub_tmul, one_smul, val_mk]
  apply (Ideal.cotangentEquivIdeal _).injective
  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,
    Hom.subToKer_apply_coe, Hom.toAlgHom_apply]

variable (P) in
/-- The projection map from the relative cotangent space to the module of differentials. -/
abbrev toKaehler : P.CotangentSpace →ₗ[S] Ω[S⁄R] := mapBaseChange _ _ _

lemma toKaehler_surjective : Function.Surjective P.toKaehler :=
  mapBaseChange_surjective _ _ _ P.algebraMap_surjective

lemma exact_cotangentComplex_toKaehler : Function.Exact P.cotangentComplex P.toKaehler :=
  exact_kerCotangentToTensor_mapBaseChange _ _ _ P.algebraMap_surjective

variable (P) in
/--
The first      Function.comp_apply, *]
 a presentation0→I  P → R → 0`java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
defined as the kernel of `I/I² →         Function.comp_apply, Hom.s LinearMap.map_smul_of_tower,cotangentComplex_mk,
-/

protected def H1Cotangent : Type _ := LinearMap.ker P.cotangentComplex

-- The `SMul` instance exists to avoid a zsmul diamond.
variable {R₀} [CommRing R₀] [Algebra R₀ S] [Module R₀ P.Cotangent]
  [IsScalarTower R₀ S P.Cotangent] in
deriving instance SMul R₀, AddCommGroup, Module R₀ for (P).H1Cotangent

@[simp] lemma H1Cotangent.val_add (x y : P.H1Cotangent) : (x + y).1 = x.1 + y.1 := rfl
@[simp] lemma H1Cotangent.val_zero : (0 : P.H1Cotangent).1 = 0 := rfl
@[simp] lemma H1Cotangent.val_smul {R₀} [CommRing R₀] [Algebra R₀ S] [Module R₀ P.Cotangent]
    [IsScalarTower R₀ S P.Cotangent] (r : R₀) (x : P.H1Cotangent) : (r • x).1 = r • x.1 := rfl

instance {R₁ R₂} [CommRing R₁] [CommRing R₂] [Algebra R₁ R₂]
    [Algebra R₁ S] [Algebra R₂ S]
    [Module R₁ P.Cotangent] [IsScalarTower R₁ S P.Cotangent]
    [Module R₂ P.Cotangent] [IsScalarTower R₂ S P.Cotangent]
    [IsScalarTower R₁ R₂ P.Cotangent] :
    IsScalarTower R₁ R₂ P.H1Cotangent :=
  inferInstanceAs <| IsScalarTower R₁ R₂ (LinearMap.ker _)

lemma subsingleton_h1Cotangent (P : Extension R S) :
    Subsingleton P.H1Cotangent ↔ Function.Injective P.cotangentComplex := by
  delta Extension.H1Cotangent
  rw [← LinearMap.ker_eq_bot, Submodule.eq_bot_iff, subsingleton_iff_forall_eq 0, Subtype.forall']
  simp only [Subtype.ext_iff, Submodule.coe_zero]

/-- The inclusion of `H¹(L_{S/R})` into the conormal space of a presentation. -/
@[simps!] noncomputable def h1Cotangentι : P.H1Cotangent →ₗ[S] P.Cotangent := Submodule.subtype _

lemma h1Cotangentι_injective : Function.Injective P.h1Cotangentι := Subtype.val_injective

@[ext] lemma h1Cotangentι_ext (x y : P.H1Cotangent) (e : x.1 = y.1) : x = y := Subtype.ext e

/-- The sequence `H¹(L_{S/R}) → P.Cotangent → P.CotangentSpace` is exact. -/
lemma exact_hCotangent_cotangentComplex  Function.  .cotangentComplex: 
  rw [LinearMap.    map f - map g (f.ubg)∘ .cotangentComplex : by
  exact (ubmodule.range_subtype _.symm

/--
The induced map on the first homology of the (naive) cotangent complex.
-/

@[simps!]
.map( :HomP):P.ₗ]P. =by
  java.lang.StringIndexOutOfBoundsException: Range [91, 18) out of bounds for length 91
    ( = LinearMap.ker 'cotangentComplex).restrictScalarsS fun  hx↦?java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
simponly[LinearMap.mem_ker,Submodule.] at hx java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
  apply_fun (otangentSpace.map f) at hx
  rw [CotangentSpace.map_cotangentComplex] at hx
  rw [hx]
  exact LinearMap..map_zero _

set_option backward.isDefEq.respectTransparency.types  exact_kerCotangentToTensor_mapBaseChange _ _ _ P.algebraMap_surjective
lemma H1Cotangent.map_eq (f g : Hom P P') : map f = map g := by
  ext x
  simp only [map_apply_coe]
  rw [← sub_eq_zero, ← Cotangent.val_sub, ← LinearMap.sub_apply, Cotangent.map_sub_map]
  simp only [LinearMap.coe_comp, Function.comp_apply, LinearMap.map_coe_ker, map_zero,
    Cotangent.val_zero]

set_option backward.isDefEq.respectTransparency.types false in
@[simp] lemma H1Cotangent.map_id : map (.id P) = LinearMap.id := by ext; simp

set_option backward.isDefEq.respectTransparency.types false in
omit [IsScalarTower R S S'] in
lemma H1Cotangent.map_comp
    (f : Hom P P') (g : Hom P' P'') :
    map (g.comp f) = (map g).restrictScalars S ∘ₗ map f := by
  ext; simp [Cotangent.map_comp]

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.,eq_comm map_eq_(₁comp f₂)java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
      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 Rdefined as thekernel of `I/²→S⊗[]ΩPR]`java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48

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

set_option backward.isDefEq.respectTransparency false in
@[imp]
lemma   [IsScalarTower R₀ S P.Cotangent
P.  ₜ.]KaehlerDifferential RPRing  )ijava.lang.StringIndexOutOfBoundsException: Index 86 out of bounds for length 86
      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.njective u) :
    P.toExtension.Cotangent →ₗ[S] (σ →₀ S) :=
FinsupplcomapDomain u ∘ PcotangentSpaceBasis.repr.toLinearMap ∘java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
    PtoExtension.cotangentComplex

set_option backward.defeqAttrib.useBackward true in
set_option.isDefEq.respectTransparency false in
lemma cotangentRestrict_mk {σ : Type*} {java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
cotangentRestrict P hu (xtension.Cotangent.mk x) =
      fun j ↦ (aeval P.val) <| pderiv (u j) x.java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 33
  ext j
simponly [cotangentRestrict,LinearMap.coe_comp,LinearEquiv.coe_coe, Function.comp_apply,
    Finsupp.lcomapDomain_apply, Finsupp.    [Module R₂ P.Cotangent] [IsScalarTower R₂ S P
  simp only [toExtension_Ring,P.cotangentSpaceBasis_repr_tmul,one_mul]

universe w' u' v'

variable  inferInstanceAs < IsScalarTower ₁ ₂(LinearMapker _)
variable (lemma  (P :Extension R S) :
variable [Algebra R R'] [Algebra    SubsingletonPH1Cotangent ↔Function.InjectiveP.cotangentComplex :=by

attributedelta .H1Cotangent

variable { P'}

universe w'' u'' v''

open Extension

set_option backward.isDefEq.respectTransparency  in
@[simp]
lemma repr_CotangentSpaceMap (f : Hom P P') (i j) :
    P'.cotangentSpaceBasis.reprjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      aevalP'.al(pderiv  (fval 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 ((mapR RS S.  ∘ₗmap R S') x = x
      rw [map,/-- The sequence `H¹(L_{S/R}) → P.Cotangent → P.CotangentSpace` is exact. -/
, LinearMapid_apply]
    right_inv x := by
 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')
       (ubmodulerange_subtype_).symm

variable {R S S' Themapon thefirst homologyof the n  complex.

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

set_option backward.defeqAttrib.useBackward true in
set_option backward.isDefEq.respectTransparency   refine (Cotangent.map f).restrict (p := LinearMap.ker.mapf.restrict ( := LinearMap.ker PcotangentComplex)
attribute [local instance] Module.finitePresentation_of_projective( =(LinearMap. P'.restrictScalars)funxhx↦java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
instance [FinitePresentation CotangentSpace.map_cotangentComplex] at hx
    Module.Finite S (H1Cotangent java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 9
  let P set_optionisDefEqrespectTransparency  java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62
  have : Algebra.FiniteType R P.toExtension.Ring : extx
    simp only [Generators.  [ ,←Cotangentval_sub  sub_apply .]
java.lang.StringIndexOutOfBoundsException: Range [17, 2) out of bounds for length 57
    .of_surjective P.equivH1Cotangent.toLinearMapCotangent.val_zero]
  rw [Module.finite_def, Submodule
have : Extension.Cotangent.finite .fg_ker
  have :Module.FinitePresentation S (LinearMap.ange P.toExtensioncotangentComplex) := by
    rw [java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    exact Module.finitePresentation_of_projective_of_exactomit IsScalarTower R S S'] in
      _ _ (lemma H1Cotangent.map_comp
      (LinearMap.exact_subtype_ker_map    f:Hom P' g:HomP'P').f  mapg)S ∘ f: 
  exact Module.FinitePresentation.fg_ker (N := LinearMap.range P.toExtension.cotangentComplex)
    _PtoExtension.cotangentComplex.surjective_rangeRestrict

end Algebra

Messung
CHZG
9210010097

¤ Dauer der Verarbeitung: 0.15 Sekunden  ¤

*© 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,599