Module

SquareZeroProjectiveModules.lean

Nyll.SchemeTheory.RingTheory.LinearAlgebra.SquareZeroProjectiveModules
6 declarations indexed from sourceView source ↗

Lifting projective modules across a square-zero quotient using base change.

Lift compatible projective-module identifications across a square-zero quotient.

Compare projective modules after base change across a square-zero quotient.

Preserve module rank under a square-zero quotient identification.

Imports17
  • Mathlib.RingTheory.Ideal.Quotient.Operations
  • Mathlib.Algebra.Module.Projective
  • Mathlib.Algebra.Polynomial.AlgebraMap
  • Mathlib.LinearAlgebra.StdBasis
  • Mathlib.LinearAlgebra.TensorProduct.Quotient
  • Mathlib.RingTheory.Finiteness.Cardinality
  • Mathlib.Tactic.Abel
  • Mathlib.Tactic.Choose
  • Mathlib.Tactic.Conv
  • Mathlib.Tactic.Ring.RingNF
  • Mathlib.RingTheory.FiniteType
  • Mathlib.RingTheory.Nakayama
  • Mathlib.RingTheory.Nilpotent.Basic
  • Mathlib.RingTheory.TensorProduct.Basic
  • Mathlib.RingTheory.KrullDimension.Basic
  • Mathlib.LinearAlgebra.Dimension.Finrank
  • Mathlib.LinearAlgebra.TensorProduct.Tower
Imported by3

Declarations

Module.Projective.exists_baseChange_quotient_iso_of_squareZero
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section Module_Projective_exists_baseChange_quotient_iso_of_squareZero
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Projective_exists_baseChange_quotient_iso_of_squareZero
universe u
open TensorProduct Polynomial
theorem _root_.Module.Projective.exists_baseChange_quotient_iso_of_squareZero
    {R : Type u} [CommRing R] (I : Ideal R) (hI : I ^ 2 = ⊥)
    (P : Type u) [AddCommGroup P] [Module (R ⧸ I) P]
    [Module.Projective (R ⧸ I) P] [Module.Finite (R ⧸ I) P] :
    ∃ (P' : Type u) (_ : AddCommGroup P') (_ : Module R P'),
      Module.Projective R P' ∧ Module.Finite R P' ∧
      Nonempty (((R ⧸ I) ⊗[R] P') ≃ₗ[R ⧸ I] P)
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Projective_exists_linearEquiv_of_baseChange_quotient_of_squareZero_of_compat.le_jacobson_bot_of_sq_eq_bot_aux
Source context 8 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section Module_Projective_exists_linearEquiv_of_baseChange_quotient_of_squareZero_of_compat
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Projective_exists_linearEquiv_of_baseChange_quotient_of_squareZero_of_compat
universe u
open TensorProduct
open scoped _root_.Module _root_.Module.Projective in
lemma le_jacobson_bot_of_sq_eq_bot_aux
    {R : Type u} [CommRing R] (I : Ideal R) (hI : I ^ 2 = ⊥) :
    I ≤ (⊥ : Ideal R).jacobson
AlgebraicCurves.Foundations.Algebra.Proofs.Module_Projective_exists_linearEquiv_of_baseChange_quotient_of_squareZero_of_compat.surjective_of_one_tmul_aux
Source context 8 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section Module_Projective_exists_linearEquiv_of_baseChange_quotient_of_squareZero_of_compat
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Projective_exists_linearEquiv_of_baseChange_quotient_of_squareZero_of_compat
universe u
open TensorProduct
open scoped _root_.Module _root_.Module.Projective in
lemma surjective_of_one_tmul_aux
    {R : Type u} [CommRing R] (I : Ideal R) (hI : I ≤ (⊥ : Ideal R).jacobson)
    {N M : Type u} [AddCommGroup N] [AddCommGroup M] [Module R N] [Module R M]
    [Module.Finite R M] (f : N →ₗ[R] M)
    (hf : ∀ m : M, ∃ n : N, (1 : R ⧸ I) ⊗ₜ[R] f n = (1 : R ⧸ I) ⊗ₜ[R] m) :
    Function.Surjective f
Module.Projective.exists_linearEquiv_of_baseChange_quotient_of_squareZero_of_compat
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section Module_Projective_exists_linearEquiv_of_baseChange_quotient_of_squareZero_of_compat
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Projective_exists_linearEquiv_of_baseChange_quotient_of_squareZero_of_compat
universe u
open TensorProduct
theorem _root_.Module.Projective.exists_linearEquiv_of_baseChange_quotient_of_squareZero_of_compat
    {R : Type u} [CommRing R] (I : Ideal R) (hI : I ^ 2 = ⊥)
    (P₁ P₂ : Type u) [AddCommGroup P₁] [AddCommGroup P₂] [Module R P₁] [Module R P₂]
    [Module.Projective R P₁] [Module.Finite R P₁]
    [Module.Projective R P₂] [Module.Finite R P₂]
    (e : ((R ⧸ I) ⊗[R] P₁) ≃ₗ[R ⧸ I] ((R ⧸ I) ⊗[R] P₂)) :
    ∃ σ' : P₁ ≃ₗ[R] P₂, ∀ p : P₁, (1 : R ⧸ I) ⊗ₜ[R] σ' p = e ((1 : R ⧸ I) ⊗ₜ[R] p)
Module.Projective.nonempty_linearEquiv_of_baseChange_quotient_of_squareZero
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section Module_Projective_nonempty_linearEquiv_of_baseChange_quotient_of_squareZero
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_Projective_nonempty_linearEquiv_of_baseChange_quotient_of_squareZero
universe u
open TensorProduct
theorem _root_.Module.Projective.nonempty_linearEquiv_of_baseChange_quotient_of_squareZero
    {R : Type u} [CommRing R] (I : Ideal R) (hI : I ^ 2 = ⊥)
    (P₁ P₂ : Type u) [AddCommGroup P₁] [AddCommGroup P₂] [Module R P₁] [Module R P₂]
    [Module.Projective R P₁] [Module.Finite R P₁]
    [Module.Projective R P₂] [Module.Finite R P₂]
    (e : ((R ⧸ I) ⊗[R] P₁) ≃ₗ[R ⧸ I] ((R ⧸ I) ⊗[R] P₂)) :
    Nonempty (P₁ ≃ₗ[R] P₂)
Module.finrank_baseChange_eq_of_quotient_squareZero_linearEquiv
Source context 7 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
section Module_finrank_baseChange_eq_of_quotient_squareZero_linearEquiv
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Module_finrank_baseChange_eq_of_quotient_squareZero_linearEquiv
universe u
open TensorProduct
theorem _root_.Module.finrank_baseChange_eq_of_quotient_squareZero_linearEquiv
    {R : Type u} [CommRing R] (J : Ideal R) (hJ : J ^ 2 = ⊥)
    {S : Type u} [CommRing S] (φ : R ⧸ J ≃+* S)
    (P : Type u) [AddCommGroup P] [Module S P]
    (P' : Type u) [AddCommGroup P'] [Module R P'] {n : ℕ}
    (hrk : ∀ (K : Type u) [Field K] [Algebra S K], Module.finrank K (K ⊗[S] P) = n) :
    let : Module (R ⧸ J) P := Module.compHom P φ.toRingHom
    ((R ⧸ J) ⊗[R] P' ≃ₗ[R ⧸ J] P) →
    ∀ (K : Type u) [Field K] [Algebra R K], Module.finrank K (K ⊗[R] P') = n := by
  intro quotientModule iso K _ _
  have hJK : ∀ x ∈ J, (algebraMap R K) x = 0 := fun x hx => by
    have h2 : (algebraMap R K x) ^ 2 = 0 := by
      rw [← map_pow]
      have : x ^ 2 = 0 := by
        have h := Ideal.pow_mem_pow hx 2; rw [hJ] at h; exact Ideal.mem_bot.mp h
      rw [this, map_zero]
    exact (pow_eq_zero_iff two_ne_zero).mp h2
  let : Algebra (R ⧸ J) K := (Ideal.Quotient.lift J (algebraMap R K) hJK).toAlgebra
  have : IsScalarTower R (R ⧸ J) K := IsScalarTower.of_algebraMap_eq'
    (RingHom.ext fun a => (Ideal.Quotient.lift_mk J (algebraMap R K) hJK).symm)
  have e1 : K ⊗[R] P' ≃ₗ[K] K ⊗[R ⧸ J] P :=
    (AlgebraTensorModule.cancelBaseChange R (R ⧸ J) K K P').symm.trans
      (LinearEquiv.baseChange (R ⧸ J) K ((R ⧸ J) ⊗[R] P') P iso)
  rw [e1.finrank_eq]
  let : Algebra S K := ((algebraMap (R ⧸ J) K).comp φ.symm.toRingHom).toAlgebra
  have keyeq : ∀ r : R ⧸ J, (algebraMap S K (φ r) : K) = algebraMap (R ⧸ J) K r := fun r => by
    change algebraMap (R ⧸ J) K (φ.symm (φ r)) = _; rw [φ.symm_apply_apply]
  let fwdAH : K ⊗[R ⧸ J] P →+ K ⊗[S] P := TensorProduct.liftAddHom
    (AddMonoidHom.mk' (fun k => AddMonoidHom.mk' (fun p => k ⊗ₜ[S] p)
        (fun _ _ => tmul_add k _ _))
      (fun _ _ => AddMonoidHom.ext fun _ => add_tmul _ _ _))
    (fun r k p => by
      change (algebraMap (R ⧸ J) K r * k) ⊗ₜ[S] p = k ⊗ₜ[S] ((φ r : S) • p)
      rw [← keyeq r]
      rw [show algebraMap S K (φ r) * k = (φ r : S) • k from (Algebra.smul_def (φ r) k).symm]
      exact smul_tmul (φ r) k p)
  let bwdAH : K ⊗[S] P →+ K ⊗[R ⧸ J] P := TensorProduct.liftAddHom
    (AddMonoidHom.mk' (fun k => AddMonoidHom.mk' (fun p => k ⊗ₜ[R ⧸ J] p)
        (fun _ _ => tmul_add k _ _))
      (fun _ _ => AddMonoidHom.ext fun _ => add_tmul _ _ _))
    (fun s k p => by
      change (algebraMap S K s * k) ⊗ₜ[R ⧸ J] p = k ⊗ₜ[R ⧸ J] (s • p)
      have hk : algebraMap S K s * k = (φ.symm s : R ⧸ J) • k := by
        rw [Algebra.smul_def]; rfl
      have hp : (s • p : P) = (φ.symm s : R ⧸ J) • p := by
        change s • p = (φ (φ.symm s) : S) • p; rw [φ.apply_symm_apply]
      rw [hk, hp]; exact smul_tmul (φ.symm s) k p)
  have fwdAH_tmul (k : K) (p : P) :
      fwdAH (k ⊗ₜ[R ⧸ J] p) = k ⊗ₜ[S] p := rfl
  have bwdAH_tmul (k : K) (p : P) :
      bwdAH (k ⊗ₜ[S] p) = k ⊗ₜ[R ⧸ J] p := rfl
  let e2AE : K ⊗[R ⧸ J] P ≃+ K ⊗[S] P :=
    { toFun := fwdAH
      invFun := bwdAH
      left_inv := fun x => by
        induction x using TensorProduct.inductionOn with
        | tmul k p => rw [fwdAH_tmul, bwdAH_tmul]
        | add x y hx hy => simp only [map_add, hx, hy]
      right_inv := fun x => by
        induction x using TensorProduct.inductionOn with
        | tmul k p => rw [bwdAH_tmul, fwdAH_tmul]
        | add x y hx hy => simp only [map_add, hx, hy]
      map_add' := map_add fwdAH }
  have e2 : K ⊗[R ⧸ J] P ≃ₗ[K] K ⊗[S] P := by
    refine AddEquiv.toLinearEquiv e2AE ?_
    intro c x
    induction x using TensorProduct.inductionOn with
    | tmul k p =>
        change fwdAH (c • (k ⊗ₜ[R ⧸ J] p)) = c • fwdAH (k ⊗ₜ[R ⧸ J] p)
        simp only [smul_tmul', fwdAH_tmul]
    | add x y hx hy => simp only [smul_add, map_add, hx, hy]
  rw [e2.finrank_eq]
  exact hrk K