Module

AdditiveModulus.lean

Nyll.AlgebraicCurves.Divisors.Modulus.AdditiveModulus
7 declarations indexed from sourceView source ↗

A modulus for additive rational functions

Over an algebraically closed field, a rational function with values in the additive group has a modulus supported at its poles, with multiplicity the pole order plus one. The proof uses the actual residue theorem for smooth function fields and the principal-unit differential estimate. It also gives the unique local symbols through the proved modulus construction.

Declarations

AlgebraicCurve.logarithmicDifferential

Logarithmic differentiation as a homomorphism on actual nonzero functions.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
def logarithmicDifferential : Additive Fˣ →+ Ω[F⁄K] where
  toFun g := dlog K ((Additive.toMul g : Fˣ) : F)
  map_zero' := dlog_one
  map_add' g h := dlog_mul (Additive.toMul g).ne_zero (Additive.toMul h).ne_zero
AlgebraicCurve.logarithmicDifferential_zpow

Integral powers act as integer multiples under logarithmic differentiation.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem logarithmicDifferential_zpow (g : Fˣ) (n : ℤ) :
    dlog K ((g : F) ^ n) = n • dlog K (g : F)
AlgebraicCurve.Place.trace_localResidue_mul_dlog_of_integral

Residue of f dlog(g) at a point where the additive rational function is regular. This identifies the residue expression with divisor evaluation.

Source context 7 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable [IsAlgClosed K] [Algebra.EssFiniteType K F] [IsCurveOver K F]
attribute [local instance] IsCurveOver.toHasPrincipalDivisors IsCurveOver.instNontrivialKaehler
  dCoordGenerates_of_isCurveOver _root_.AlgebraicCurve.instHasCanonicalLocalResidueKStar
namespace Place
theorem trace_localResidue_mul_dlog_of_integral (v : Place K F) {f : F}
    (hf : f ∈ v.toValuationSubring) (g : Fˣ) :
    Algebra.trace K v.ResidueField
      (v.localResidue (f * v.differentialCoeff (dlog K (g : F)))) =
        v.ord (g : F) • v.evalAt f
AlgebraicCurve.finsum_trace_localResidue_mul_dlog

The global residue theorem applied to the explicit additive-symbol formula.

Source context 9 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable [IsAlgClosed K] [Algebra.EssFiniteType K F] [IsCurveOver K F]
attribute [local instance] IsCurveOver.toHasPrincipalDivisors IsCurveOver.instNontrivialKaehler
  dCoordGenerates_of_isCurveOver _root_.AlgebraicCurve.instHasCanonicalLocalResidueKStar
attribute [local instance] hasCanonicalDivisor_of_isCurveOver
open AlgebraicCurves.Differentials.Residues.Proofs in
open ResidueTheorem_functionField_of_smoothOfRelativeDimension_one.FFP in
theorem finsum_trace_localResidue_mul_dlog (f : F) (g : Fˣ) :
    ∑ᶠ v : Place K F, Algebra.trace K v.ResidueField
      (v.localResidue (f * v.differentialCoeff (dlog K (g : F)))) = 0
AlgebraicCurve.Modulus.exists_additive_modulus_of_ne_zero

A nonzero additive rational function has the explicit modulus with pole-order-plus-one multiplicities. All values are actual residue evaluations.

Source context 8 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable [IsAlgClosed K] [Algebra.EssFiniteType K F] [IsCurveOver K F]
attribute [local instance] IsCurveOver.toHasPrincipalDivisors IsCurveOver.instNontrivialKaehler
  dCoordGenerates_of_isCurveOver _root_.AlgebraicCurve.instHasCanonicalLocalResidueKStar
attribute [local instance] hasCanonicalDivisor_of_isCurveOver
namespace Modulus
theorem exists_additive_modulus_of_ne_zero (f : F) (hf : f ≠ 0) :
    ∃ D : Modulus K F,
      (∀ v : Place K F, D v = if 0 ≤ v.ord f then 0 else (-v.ord f).toNat + 1) ∧
      D.HasModulus (fun v => v.evalAt f) := by
  classical
  obtain ⟨E, hE, _⟩ := HasPrincipalDivisors.exists_divisor (K := K) f hf
  let D : Modulus K F := E.mapRange
    (fun n : ℤ => if 0 ≤ n then 0 else (-n).toNat + 1)
    (by rw [ite_eq_left le_rfl])
  have hD (v : Place K F) :
      D v = if 0 ≤ v.ord f then 0 else (-v.ord f).toNat + 1 := by
    dsimp only [D]
    rw [Finsupp.mapRange_apply, hE v]
  refine ⟨D, hD, ?_⟩
  intro g hg
  have hterm (v : Place K F) : v.ord (g : F) • v.evalAt f =
      Algebra.trace K v.ResidueField
        (v.localResidue (f * v.differentialCoeff (dlog K (g : F)))) := by
    by_cases hv : 0 ≤ v.ord f
    · exact (v.trace_localResidue_mul_dlog_of_integral
        (v.mem_toValuationSubring_of_ord_nonneg hv) g).symm
    · have hDv : D v ≠ 0 := by rw [hD, ite_eq_right hv]; omega
      have hcong : v.CongruentOne ((-v.ord f).toNat + 1) (g : F) := by
        simpa only [hD, ite_eq_right hv] using hg.2 v hDv
      have hbound : -(((-v.ord f).toNat : ℕ) : ℤ) ≤ v.ord f := by
        rw [Int.toNat_of_nonneg (by omega)]
        omega
      rw [hg.ord_eq_zero v hDv, zero_zsmul,
        hcong.localResidue_mul_dlog_eq_zero hbound, map_zero]
  rw [finsum_congr hterm]
  exact finsum_trace_localResidue_mul_dlog f g
AlgebraicCurve.Modulus.exists_additive_modulus

Every additive rational function has a full modulus.

Source context 8 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable [IsAlgClosed K] [Algebra.EssFiniteType K F] [IsCurveOver K F]
attribute [local instance] IsCurveOver.toHasPrincipalDivisors IsCurveOver.instNontrivialKaehler
  dCoordGenerates_of_isCurveOver _root_.AlgebraicCurve.instHasCanonicalLocalResidueKStar
attribute [local instance] hasCanonicalDivisor_of_isCurveOver
namespace Modulus
theorem exists_additive_modulus (f : F) :
    ∃ D : Modulus K F,
      (∀ v : Place K F, D v = if 0 ≤ v.ord f then 0 else (-v.ord f).toNat + 1) ∧
      D.HasModulus (fun v => v.evalAt f) := by
  by_cases hf : f = 0
  · subst f
    refine ⟨0, ?_, ?_⟩
    · intro v
      rw [Finsupp.zero_apply, v.ord_zero, ite_eq_left le_rfl]
    · intro g _hg
      apply finsum_eq_zero_of_forall_eq_zero
      intro v
      have heval : v.evalAt (0 : F) = 0 := by
        rw [v.evalAt_of_mem (zero_mem _)]
        change v.residueInv (IsLocalRing.residue v.toValuationSubring 0) = 0
        rw [map_zero, ← map_zero (algebraMap K v.ResidueField), v.residueInv_algebraMap]
      change v.ord (g : F) • v.evalAt (0 : F) = 0
      rw [heval, zsmul_zero]
  · exact exists_additive_modulus_of_ne_zero f hf
AlgebraicCurve.Modulus.exists_additive_localSymbol

The additive rational map has unique local symbols, with an actual modulus supplied by its finite pole divisor.

Source context 8 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable [IsAlgClosed K] [Algebra.EssFiniteType K F] [IsCurveOver K F]
attribute [local instance] IsCurveOver.toHasPrincipalDivisors IsCurveOver.instNontrivialKaehler
  dCoordGenerates_of_isCurveOver _root_.AlgebraicCurve.instHasCanonicalLocalResidueKStar
attribute [local instance] hasCanonicalDivisor_of_isCurveOver
namespace Modulus
theorem exists_additive_localSymbol (f : F) :
    ∃ D : Modulus K F,
      (∀ v : Place K F, D v = if 0 ≤ v.ord f then 0 else (-v.ord f).toNat + 1) ∧
      ∃! σ : Place K F → Additive Fˣ →+ K,
        D.IsLocalSymbol (fun v => v.evalAt f) σ := by
  obtain ⟨D, hD, hm⟩ := exists_additive_modulus (K := K) f
  exact ⟨D, hD, (hasModulus_iff_existsUnique_localSymbol D _).mp hm⟩