Module

Units.lean

Nyll.SchemeTheory.Affine.WeilRestriction.Units
21 declarations indexed from sourceView source ↗

The units of a finite free algebra as a represented functor

The localization R[X, X⁻¹] is constructed first, together with its natural classification of units over every commutative test algebra. The existing finite-free Weil restriction then gives a concrete affine representer for C ↦ (C ⊗[R] A)ˣ. Neither A nor C is assumed reduced or étale.

The associated scheme represents maps from the base change of Spec A to the multiplicative-group carrier on arbitrary test schemes. The projective scalar quotient and its geometric properties are separate constructions.

Declarations

SchemeTheory.Affine.WeilRestrictionUnits.CoordinateRing

The coordinate algebra of the multiplicative group, constructed by inverting the polynomial variable.

Source context 7 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
abbrev CoordinateRing
SchemeTheory.Affine.WeilRestrictionUnits.coordinateRingFinitePresentation
Source context 7 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
instance coordinateRingFinitePresentation :
    Algebra.FinitePresentation R (CoordinateRing R)
SchemeTheory.Affine.WeilRestrictionUnits.coordinateUnit

The universal unit in the coordinate algebra.

Source context 7 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
def coordinateUnit : (CoordinateRing R)ˣ
SchemeTheory.Affine.WeilRestrictionUnits.coordinateUnit_val
Source context 7 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
theorem coordinateUnit_val :
    (coordinateUnit R : CoordinateRing R) =
      algebraMap R[X] (CoordinateRing R) Polynomial.X
SchemeTheory.Affine.WeilRestrictionUnits.unitToHom

Evaluation at a unit extends uniquely across the localization.

Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
def unitToHom (s : Sˣ) : CoordinateRing R →ₐ[R] S
SchemeTheory.Affine.WeilRestrictionUnits.unitToHom_algebraMap
Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
theorem unitToHom_algebraMap (s : Sˣ) (p : R[X]) :
    unitToHom s (algebraMap R[X] (CoordinateRing R) p) = Polynomial.aeval (s : S) p
SchemeTheory.Affine.WeilRestrictionUnits.homToUnit

A map out of the coordinate algebra supplies an actual unit.

Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
def homToUnit (f : CoordinateRing R →ₐ[R] S) : Sˣ
SchemeTheory.Affine.WeilRestrictionUnits.homToUnit_val
Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
theorem homToUnit_val (f : CoordinateRing R →ₐ[R] S) :
    (homToUnit f : S) = f (algebraMap R[X] (CoordinateRing R) Polynomial.X)
SchemeTheory.Affine.WeilRestrictionUnits.homToUnit_unitToHom
Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
theorem homToUnit_unitToHom (s : Sˣ) :
    homToUnit (unitToHom (R := R) s) = s
SchemeTheory.Affine.WeilRestrictionUnits.unitToHom_homToUnit
Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
theorem unitToHom_homToUnit (f : CoordinateRing R →ₐ[R] S) :
    unitToHom (homToUnit f) = f
SchemeTheory.Affine.WeilRestrictionUnits.homEquivUnits

The universal property of R[X, X⁻¹], for arbitrary test algebras.

Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
def homEquivUnits : (CoordinateRing R →ₐ[R] S) ≃ Sˣ where
  toFun := homToUnit
  invFun := unitToHom
  left_inv := unitToHom_homToUnit
  right_inv := homToUnit_unitToHom
SchemeTheory.Affine.WeilRestrictionUnits.homEquivUnits_comp

Unit classification commutes with every homomorphism of test algebras.

Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
theorem homEquivUnits_comp (f : CoordinateRing R →ₐ[R] S) (g : S →ₐ[R] T) :
    homEquivUnits (g.comp f) = Units.map g.toRingHom.toMonoidHom (homEquivUnits f)
SchemeTheory.Affine.WeilRestrictionUnits.unitsFunctor

The units functor on commutative R-algebras.

Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
def unitsFunctor (R : Type u) [CommRing R] : CommAlgCat.{u} R ⥤ Type u where
  obj C := Cˣ
  map f := ↾fun s => Units.map f.hom.toRingHom.toMonoidHom s
  map_id C := by
    apply ConcreteCategory.hom_ext
    intro s
    apply Units.ext
    rfl
  map_comp f g := by
    apply ConcreteCategory.hom_ext
    intro s
    apply Units.ext
    rfl
SchemeTheory.Affine.WeilRestrictionUnits.categoryHomEquivUnits

The coordinate algebra classifies units in the bundled algebra category.

Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
def categoryHomEquivUnits (C : CommAlgCat.{u} R) :
    (CommAlgCat.of R (CoordinateRing R) ⟶ C) ≃ Cˣ where
  toFun f := homEquivUnits f.hom
  invFun s := CommAlgCat.ofHom (unitToHom s)
  left_inv f := by
    apply CommAlgCat.hom_ext
    exact unitToHom_homToUnit f.hom
  right_inv s := homToUnit_unitToHom s
SchemeTheory.Affine.WeilRestrictionUnits.categoryHomEquivUnits_comp
Source context 8 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
theorem categoryHomEquivUnits_comp {C D : CommAlgCat.{u} R}
    (f : CommAlgCat.of R (CoordinateRing R) ⟶ C) (g : C ⟶ D) :
    categoryHomEquivUnits D (f ≫ g) =
      (unitsFunctor R).map g (categoryHomEquivUnits C f)
SchemeTheory.Affine.WeilRestrictionUnits.tensorUnitsFunctor

The units of the scalar extension of a fixed algebra.

Source context 9 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
variable (R) (A : Type u) [CommRing A] [Algebra R A]
abbrev tensorUnitsFunctor : CommAlgCat.{u} R ⥤ Type u
SchemeTheory.Affine.WeilRestrictionUnits.unitsRepresentingAlgebra

An actual algebra obtained from the finite-free affine Weil restriction.

Source context 10 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
variable (R) (A : Type u) [CommRing A] [Algebra R A]
variable [Module.Free R A] [Module.Finite R A]
abbrev unitsRepresentingAlgebra : CommAlgCat.{u} R
SchemeTheory.Affine.WeilRestrictionUnits.tensorUnitsCorepresentable

The finite-free algebra construction corepresents units on every commutative test algebra, with naturality included.

Source context 10 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
variable (R) (A : Type u) [CommRing A] [Algebra R A]
variable [Module.Free R A] [Module.Finite R A]
def tensorUnitsCorepresentable :
    (tensorUnitsFunctor R A).CorepresentableBy (unitsRepresentingAlgebra R A) where
  homEquiv {C} :=
    (algebraCorepresentableBy (R := R) (A := A) (B := CoordinateRing R)).homEquiv.trans
      (categoryHomEquivUnits ((tensorRightAlg (R := R) (A := A)).obj C))
  homEquiv_comp g f := by
    change categoryHomEquivUnits _
        ((algebraCorepresentableBy (R := R) (A := A) (B := CoordinateRing R)).homEquiv
          (f ≫ g)) = _
    rw [(algebraCorepresentableBy (R := R) (A := A)
      (B := CoordinateRing R)).homEquiv_comp]
    exact categoryHomEquivUnits_comp _ _
SchemeTheory.Affine.WeilRestrictionUnits.unitsScheme

The affine scheme carrying the finite-free restriction of the multiplicative group.

Source context 10 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
variable (R) (A : Type u) [CommRing A] [Algebra R A]
variable [Module.Free R A] [Module.Finite R A]
abbrev unitsScheme : Over (Spec (CommRingCat.of R))
SchemeTheory.Affine.WeilRestrictionUnits.unitsSchemeRepresentable

On arbitrary test schemes, the same carrier represents maps from the base change of Spec A to the multiplicative-group carrier.

Source context 10 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
variable (R) (A : Type u) [CommRing A] [Algebra R A]
variable [Module.Free R A] [Module.Finite R A]
def unitsSchemeRepresentable :
    (globalInternalHomFunctor (R := R) (A := A) (B := CoordinateRing R)).RepresentableBy
      (unitsScheme R A)
SchemeTheory.Affine.WeilRestrictionUnits.isUnit_norm_iff

The determinant of multiplication detects units, including for nonreduced finite free algebras. This is the criterion for the unit open.

Source context 10 commands

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

@[expose] public section
noncomputable section
open CategoryTheory AlgebraicGeometry
open scoped Polynomial TensorProduct
universe u
namespace SchemeTheory.Affine.WeilRestrictionUnits
variable (R : Type u) [CommRing R]
variable {R} {S T : Type u} [CommRing S] [CommRing T]
  [Algebra R S] [Algebra R T]
variable (R) (A : Type u) [CommRing A] [Algebra R A]
variable [Module.Free R A] [Module.Finite R A]
theorem isUnit_norm_iff (a : A) : IsUnit (Algebra.norm R a) ↔ IsUnit a