Module

PrincipalHom.lean

Nyll.AlgebraicCurves.Divisors.Principal.PrincipalHom
19 declarations indexed from sourceView source ↗

The principal divisor homomorphism and its constant kernel

The actual orders of a nonzero function define an equivariant homomorphism. Its image is precisely the principal divisors; when constants are the base, its kernel consists precisely of the base-field units.

Declarations

AlgebraicCurve.Divisor.principalHom

The principal divisor of a unit, as an additive homomorphism.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
def principalHom : Additive Fˣ →+ Divisor K F where
  toFun x := (HasPrincipalDivisors.exists_divisor (K := K)
    (x.toMul : F) x.toMul.ne_zero).choose
  map_zero' := by
    ext v
    change (HasPrincipalDivisors.exists_divisor (K := K) (1 : F) one_ne_zero).choose v = 0
    rw [(HasPrincipalDivisors.exists_divisor (K := K) (1 : F) one_ne_zero).choose_spec.1]
    exact v.ord_one
  map_add' x y := by
    ext v
    change (HasPrincipalDivisors.exists_divisor (K := K)
      ((x.toMul * y.toMul : Fˣ) : F) (x.toMul * y.toMul).ne_zero).choose v = _
    rw [(HasPrincipalDivisors.exists_divisor (K := K)
      ((x.toMul * y.toMul : Fˣ) : F) (x.toMul * y.toMul).ne_zero).choose_spec.1,
      Finsupp.add_apply]
    change v.ord ((x.toMul : F) * (y.toMul : F)) = _
    rw [v.ord_mul x.toMul.ne_zero y.toMul.ne_zero]
    exact congrArg₂ (· + ·)
      ((HasPrincipalDivisors.exists_divisor (K := K)
        (x.toMul : F) x.toMul.ne_zero).choose_spec.1 v).symm
      ((HasPrincipalDivisors.exists_divisor (K := K)
        (y.toMul : F) y.toMul.ne_zero).choose_spec.1 v).symm
AlgebraicCurve.Divisor.principalHom_apply

The coefficient of a principal divisor is its actual valuation order.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem principalHom_apply (x : Additive Fˣ) (v : Place K F) :
    principalHom (K := K) x v = v.ord (x.toMul : F)
AlgebraicCurve.Divisor.degree_principalHom

Principal divisors have degree zero.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem degree_principalHom (x : Additive Fˣ) :
    degree (principalHom (K := K) x) = 0
AlgebraicCurve.Divisor.divOf

A principal divisor of a nonzero function, with the zero divisor assigned to zero.

Source context 5 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
open Classical in
def divOf (f : F) : Divisor K F
AlgebraicCurve.Divisor.divOf_apply
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem divOf_apply {f : F} (hf : f ≠ 0) (v : Place K F) :
    divOf f v = v.ord f
AlgebraicCurve.Divisor.divOf_zero
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem divOf_zero : divOf (K := K) (0 : F) = 0
AlgebraicCurve.Divisor.degree_divOf
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem degree_divOf (f : F) :
    Divisor.degree (divOf (K := K) f) = 0
AlgebraicCurve.Divisor.divOf_mem_principal
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem divOf_mem_principal {f : F} (hf : f ≠ 0) :
    divOf (K := K) f ∈ Divisor.principal
AlgebraicCurve.Divisor.isPrincipal_iff_eq_divOf
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem isPrincipal_iff_eq_divOf {D : Divisor K F} :
    D.IsPrincipal ↔ ∃ f : F, f ≠ 0 ∧ D = divOf f
AlgebraicCurve.Divisor.mem_principal_iff_eq_divOf
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem mem_principal_iff_eq_divOf {D : Divisor K F} :
    D ∈ Divisor.principal ↔ ∃ f : F, f ≠ 0 ∧ D = divOf f
AlgebraicCurve.Divisor.divOf_mul
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem divOf_mul {f g : F} (hf : f ≠ 0) (hg : g ≠ 0) :
    divOf (K := K) (f * g) = divOf f + divOf g
AlgebraicCurve.Divisor.divOf_inv
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem divOf_inv (f : F) :
    divOf (K := K) f⁻¹ = -divOf f
AlgebraicCurve.Divisor.divOf_pow
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem divOf_pow (f : F) (n : ℕ) :
    divOf (K := K) (f ^ n) = (n : ℤ) • divOf f
AlgebraicCurve.Divisor.divOf_smul_const
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem divOf_smul_const {c : K} (hc : c ≠ 0) (f : F) :
    divOf (K := K) (c • f) = divOf f
AlgebraicCurve.Divisor.divOf_algebraMap
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem divOf_algebraMap (c : K) :
    divOf (K := K) (algebraMap K F c) = 0
AlgebraicCurve.Divisor.range_principalHom

The range of the principal divisor homomorphism is the actual principal subgroup.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem range_principalHom : (principalHom (K := K) (F := F)).range = principal
AlgebraicCurve.Divisor.principalHom_algebraMap

Base-field units have zero principal divisor.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem principalHom_algebraMap (c : Kˣ) :
    principalHom (K := K) (Additive.ofMul (Units.map (algebraMap K F).toMonoidHom c)) = 0
AlgebraicCurve.Divisor.principalHom_eq_zero_iff

When constants are the base, zero principal divisor means a constant unit.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
theorem principalHom_eq_zero_iff (hC : ConstantsAreBase K F) (x : Additive Fˣ) :
    principalHom (K := K) x = 0 ↔
      ∃ c : Kˣ, Units.map (algebraMap K F).toMonoidHom c = x.toMul
AlgebraicCurve.Divisor.principalHom_smul

The principal divisor homomorphism respects actual semilinear automorphisms.

Source context 5 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Divisor
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
    [HasPrincipalDivisors K F]
attribute [local instance] Units.mulDistribMulActionRight
  SemilinearAut.instDistribMulActionSubtypeProdRingAutMemSubgroupDivisor
theorem principalHom_smul (g : SemilinearAut K F) (x : Additive Fˣ) :
    principalHom (K := K) (Additive.ofMul (g • x.toMul)) = g • principalHom x