Module

ClassGroup.lean

Nyll.AlgebraicCurves.Divisors.ClassGroup.ClassGroup
31 declarations indexed from sourceView source ↗

Divisors and divisor class groups of a field extension. The imported place orders define principal divisors and the degree-zero Picard group.

Imports12
  • Nyll.AlgebraicCurves.Places.Basic
  • Mathlib.RingTheory.DedekindDomain.AdicValuation.Completion
  • Mathlib.RingTheory.DedekindDomain.AdicValuation.Valuation
  • Mathlib.RingTheory.Valuation.Discrete.Basic
  • Mathlib.RingTheory.Valuation.Discrete.IsDiscreteValuationRing
  • Mathlib.RingTheory.LocalRing.ResidueField.Basic
  • Mathlib.Data.Finsupp.SMul
  • Mathlib.Algebra.BigOperators.Finsupp.Basic
  • Mathlib.Algebra.Module.Torsion.Basic
  • Mathlib.Algebra.Ring.Subring.Pointwise
  • Mathlib.LinearAlgebra.FiniteDimensional.Defs
  • Mathlib.RingTheory.Bezout
Imported by400

Declarations

AlgebraicCurve.Divisor

A divisor is a finitely supported integer-valued function on places.

Source context 5 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
abbrev Divisor : Type _
AlgebraicCurve.Divisor.degree

The degree homomorphism, weighting each coefficient by its residue-field degree.

Source context 7 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
variable {K F}
def degree : Divisor K F →+ ℤ
AlgebraicCurve.Divisor.degree_single
Source context 7 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
variable {K F}
theorem degree_single (v : Place K F) (n : ℤ) :
    degree (Finsupp.single v n) = n * v.deg
AlgebraicCurve.Divisor.degZero

The subgroup of divisors with degree zero.

Source context 7 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
variable {K F}
def degZero : AddSubgroup (Divisor K F)
AlgebraicCurve.Divisor.mem_degZero
Source context 7 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
variable {K F}
theorem mem_degZero {D : Divisor K F} : D ∈ degZero (K := K) (F := F) ↔ degree D = 0
AlgebraicCurve.Divisor.IsPrincipal

A divisor is principal if its coefficients are the orders of one nonzero function.

Source context 7 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
variable {K F}
def IsPrincipal (D : Divisor K F) : Prop
AlgebraicCurve.Divisor.principal

The additive subgroup of principal divisors.

Source context 7 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
variable {K F}
def principal : AddSubgroup (Divisor K F) where
  carrier := {D | IsPrincipal D}
  zero_mem' := ⟨1, one_ne_zero, fun v => v.ord_one.symm⟩
  add_mem' := by
    rintro D E ⟨f, hf, hD⟩ ⟨g, hg, hE⟩
    exact ⟨f * g, mul_ne_zero hf hg, fun v => by
      rw [Finsupp.add_apply, hD v, hE v, v.ord_mul hf hg]⟩
  neg_mem' := by
    rintro D ⟨f, hf, hD⟩
    exact ⟨f⁻¹, inv_ne_zero hf, fun v => by
      rw [Finsupp.neg_apply, hD v, v.ord_inv]⟩
AlgebraicCurve.Divisor.mem_principal
Source context 7 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
variable {K F}
theorem mem_principal {D : Divisor K F} :
    D ∈ principal (K := K) (F := F) ↔ IsPrincipal D
AlgebraicCurve.HasPrincipalDivisors

Nonzero functions have finitely supported principal divisors of degree zero.

Source context 5 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
class HasPrincipalDivisors : Prop where
  /-- A nonzero function admits a divisor with its valuation orders and with degree zero. -/
  exists_divisor : ∀ f : F, f ≠ 0 → ∃ D : Divisor K F,
    (∀ v : Place K F, D v = v.ord f) ∧ Divisor.degree D = 0
AlgebraicCurve.Pic

The divisor class group, obtained by quotienting divisors by principal divisors.

Source context 5 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
abbrev Pic : Type _
AlgebraicCurve.Pic0

Degree-zero divisors modulo the principal divisors lying in the degree-zero subgroup.

Source context 5 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
abbrev Pic0 : Type _
AlgebraicCurve.Pic0.mk

The quotient map from degree-zero divisors to their divisor classes.

Source context 7 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Pic0
variable {K F}
def mk (D : Divisor.degZero (K := K) (F := F)) : Pic0 K F
AlgebraicCurve.Pic0.mk_surjective
Source context 7 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Pic0
variable {K F}
theorem mk_surjective : Function.Surjective (mk (K := K) (F := F))
AlgebraicCurve.Pic0.mk_add
Source context 7 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Pic0
variable {K F}
theorem mk_add (D E : Divisor.degZero (K := K) (F := F)) : mk (D + E) = mk D + mk E
AlgebraicCurve.Pic0.mk_zero
Source context 7 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Pic0
variable {K F}
theorem mk_zero : mk (0 : Divisor.degZero (K := K) (F := F)) = 0
AlgebraicCurve.Pic0.torsion

The subgroup of degree-zero divisor classes annihilated by n.

Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Pic0
variable {K F}
variable (K F) in
def torsion (n : ℕ) : AddSubgroup (Pic0 K F)
AlgebraicCurve.Pic0.mem_torsion
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Pic0
variable {K F}
variable (K F) in
theorem mem_torsion {n : ℕ} {x : Pic0 K F} : x ∈ torsion K F n ↔ (n : ℤ) • x = 0
AlgebraicCurve.AbelJacobiCard

The prescribed cardinalities of the prime-power torsion subgroups of Pic0.

Source context 5 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
def AbelJacobiCard (p : ℕ) (g : ℕ) : Prop
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
open scoped Pointwise
variable {K F}
instance : DistribMulAction (F ≃ₐ[K] F) (Divisor K F)
AlgebraicCurve.Divisor.smul_def
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
open scoped Pointwise
variable {K F}
theorem smul_def (σ : F ≃ₐ[K] F) (D : Divisor K F) :
    σ • D = Finsupp.mapDomain (σ • ·) D
AlgebraicCurve.Divisor.smul_single
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
open scoped Pointwise
variable {K F}
theorem smul_single (σ : F ≃ₐ[K] F) (v : Place K F) (n : ℤ) :
    σ • Finsupp.single v n = Finsupp.single (σ • v) n
AlgebraicCurve.Divisor.smul_apply_smul
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
open scoped Pointwise
variable {K F}
theorem smul_apply_smul (σ : F ≃ₐ[K] F) (D : Divisor K F) (v : Place K F) :
    (σ • D) (σ • v) = D v
AlgebraicCurve.Divisor.smul_apply
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
open scoped Pointwise
variable {K F}
theorem smul_apply (σ : F ≃ₐ[K] F) (D : Divisor K F) (w : Place K F) :
    (σ • D) w = D (σ⁻¹ • w)
AlgebraicCurve.Divisor.degree_smul
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
open scoped Pointwise
variable {K F}
theorem degree_smul (σ : F ≃ₐ[K] F) (D : Divisor K F) : degree (σ • D) = degree D
AlgebraicCurve.Divisor.smul_mem_degZero
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
open scoped Pointwise
variable {K F}
theorem smul_mem_degZero (σ : F ≃ₐ[K] F) {D : Divisor K F}
    (hD : D ∈ degZero (K := K) (F := F)) : σ • D ∈ degZero (K := K) (F := F)
AlgebraicCurve.Divisor.smul_mem_principal
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Divisor
open scoped Pointwise
variable {K F}
theorem smul_mem_principal (σ : F ≃ₐ[K] F) {D : Divisor K F}
    (hD : D ∈ principal (K := K) (F := F)) : σ • D ∈ principal (K := K) (F := F)
AlgebraicCurve.Pic0.degZeroSMulHom

The additive action of a field automorphism restricted to degree-zero divisors.

Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Pic0
open scoped Pointwise
variable {K F}
def degZeroSMulHom (σ : F ≃ₐ[K] F) :
    Divisor.degZero (K := K) (F := F) →+ Divisor.degZero (K := K) (F := F)
AlgebraicCurve.Pic0.coe_degZeroSMulHom
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Pic0
open scoped Pointwise
variable {K F}
theorem coe_degZeroSMulHom (σ : F ≃ₐ[K] F) (D : Divisor.degZero (K := K) (F := F)) :
    (degZeroSMulHom σ D : Divisor K F) = σ • (D : Divisor K F)
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Pic0
open scoped Pointwise
variable {K F}
instance : SMul (F ≃ₐ[K] F) (Pic0 K F) where
  smul σ := QuotientAddGroup.map _ _ (degZeroSMulHom σ) (by
    rintro ⟨D, hD0⟩ hD
    simp only [AddSubgroup.mem_addSubgroupOf] at hD ⊢
    exact Divisor.smul_mem_principal σ hD)
AlgebraicCurve.Pic0.smul_mk
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Pic0
open scoped Pointwise
variable {K F}
theorem smul_mk (σ : F ≃ₐ[K] F) (D : Divisor.degZero (K := K) (F := F)) :
    σ • (mk D) = mk (degZeroSMulHom σ D)
Source context 8 commands

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

@[expose] public section
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
variable (K F : Type*) [Field K] [Field F] [Algebra K F]
namespace Pic0
open scoped Pointwise
variable {K F}
instance : DistribMulAction (F ≃ₐ[K] F) (Pic0 K F) where
  one_smul x := by
    obtain ⟨D, rfl⟩ := mk_surjective x
    rw [smul_mk]
    exact congrArg mk (Subtype.ext (by rw [coe_degZeroSMulHom, one_smul]))
  mul_smul σ τ x := by
    obtain ⟨D, rfl⟩ := mk_surjective x
    rw [smul_mk, smul_mk, smul_mk]
    exact congrArg mk (Subtype.ext (by simp only [coe_degZeroSMulHom]; rw [mul_smul]))
  smul_zero σ := by
    change σ • mk 0 = mk 0
    rw [smul_mk]
    exact congrArg mk (map_zero _)
  smul_add σ x y := by
    obtain ⟨D, rfl⟩ := mk_surjective x
    obtain ⟨E, rfl⟩ := mk_surjective y
    change σ • mk (D + E) = mk (degZeroSMulHom σ D) + mk (degZeroSMulHom σ E)
    rw [smul_mk]
    exact congrArg mk (map_add _ _ _)