Module

DivisorClasses.lean

Nyll.JacobianVarieties.Generalized.DivisorClasses
24 declarations indexed from sourceView source ↗

Divisor classes with a modulus

These are abstract divisor class groups, not a construction of a representing scheme. The congruence uses units of the local ring modulo the full power of its maximal ideal. The degree-zero quotient forgets the modulus to the existing AlgebraicCurve.Pic0.

Declarations

AlgebraicCurve.Modulus.divAway

Divisors supported away from the support of the modulus.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
def divAway (D : Modulus K F) : AddSubgroup (Divisor K F) where
  carrier := {E | ∀ v, D v ≠ 0 → E v = 0}
  zero_mem' := fun _ _ => rfl
  add_mem' := by
    intro E G hE hG v hv
    simp only [Finsupp.add_apply, hE v hv, hG v hv, add_zero]
  neg_mem' := by
    intro E hE v hv
    simp only [Finsupp.neg_apply, hE v hv, neg_zero]
AlgebraicCurve.Modulus.divAwayZero

Degree-zero divisors whose support avoids the modulus.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
def divAwayZero (D : Modulus K F) : AddSubgroup (Divisor K F)
AlgebraicCurve.Modulus.principal

Principal divisors of functions congruent to one along the modulus.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
def principal (D : Modulus K F) : AddSubgroup (Divisor K F) where
  carrier := {E | ∃ f : F, D.CongruentOne f ∧ ∀ v, E v = v.ord f}
  zero_mem' := ⟨1, CongruentOne.one D, fun v => v.ord_one.symm⟩
  add_mem' := by
    rintro E G ⟨f, hf, hE⟩ ⟨g, hg, hG⟩
    exact ⟨f * g, hf.mul hg, fun v => by
      simp only [Finsupp.add_apply, hE v, hG v, v.ord_mul hf.ne_zero hg.ne_zero]⟩
  neg_mem' := by
    rintro E ⟨f, hf, hE⟩
    exact ⟨f⁻¹, hf.inv, fun v => by simp only [Finsupp.neg_apply, hE v, v.ord_inv]⟩
AlgebraicCurve.Modulus.principal_le_divAway

A modulus-principal divisor avoids the modulus.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem principal_le_divAway (D : Modulus K F) : D.principal ≤ D.divAway
AlgebraicCurve.Modulus.principal_le_principal

Forgetting the congruence leaves an ordinary principal divisor.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem principal_le_principal (D : Modulus K F) : D.principal ≤ Divisor.principal
AlgebraicCurve.Modulus.principal_le_degZero

Degree zero follows from the existing principal-divisor theorem.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem principal_le_degZero [HasPrincipalDivisors K F] (D : Modulus K F) :
    D.principal ≤ Divisor.degZero
AlgebraicCurve.Modulus.ClassGroup

All divisor classes with modulus, with no degree restriction.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
abbrev ClassGroup (D : Modulus K F)
AlgebraicCurve.Modulus.ClassGroupZero

Degree-zero divisor classes with modulus.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
abbrev ClassGroupZero (D : Modulus K F)
AlgebraicCurve.Modulus.mkZero

The degree-zero quotient map.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
def mkZero (D : Modulus K F) : D.divAwayZero →+ D.ClassGroupZero
AlgebraicCurve.Modulus.toDegreeZero

The inclusion of degree-zero divisors avoiding the modulus into all degree-zero divisors.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
def toDegreeZero (D : Modulus K F) : D.divAwayZero →+ Divisor.degZero (K := K) (F := F) where
  toFun E := ⟨E.1, E.2.2⟩
  map_zero' := rfl
  map_add' _ _ := rfl
AlgebraicCurve.Modulus.toPic0

The forgetful homomorphism to the ordinary degree-zero divisor class group.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
def toPic0 (D : Modulus K F) : D.ClassGroupZero →+ Pic0 K F
AlgebraicCurve.Modulus.toPic0_mkZero
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem toPic0_mkZero (D : Modulus K F) (E : D.divAwayZero) :
    D.toPic0 (D.mkZero E) = Pic0.mk (D.toDegreeZero E)
AlgebraicCurve.Modulus.toPic0_surjective

Moving ordinary divisors away from the finite support proves surjectivity.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem toPic0_surjective [HasPrincipalDivisors K F] (D : Modulus K F) :
    Function.Surjective D.toPic0
AlgebraicCurve.Modulus.toPic0_mkZero_eq_zero_iff

Forgetting the modulus kills precisely representatives that are ordinary principal divisors.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem toPic0_mkZero_eq_zero_iff (D : Modulus K F) (E : D.divAwayZero) :
    D.toPic0 (D.mkZero E) = 0 ↔ (E : Divisor K F) ∈ Divisor.principal
AlgebraicCurve.Modulus.restrictDivisors

A smaller modulus imposes fewer support restrictions.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
def restrictDivisors {D E : Modulus K F} (h : E ≤ D) : D.divAwayZero →+ E.divAwayZero where
  toFun G := ⟨G.1, (by
    intro v hv
    apply G.2.1 v
    intro hd
    have := h v
    simp only [hd, Nat.le_zero] at this
    exact hv this), G.2.2⟩
  map_zero' := rfl
  map_add' _ _ := rfl
AlgebraicCurve.Modulus.transition

The canonical homomorphism induced by shrinking the modulus.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
def transition {D E : Modulus K F} (h : E ≤ D) : D.ClassGroupZero →+ E.ClassGroupZero
AlgebraicCurve.Modulus.transition_mkZero
Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem transition_mkZero {D E : Modulus K F} (h : E ≤ D) (G : D.divAwayZero) :
    transition h (D.mkZero G) = E.mkZero (restrictDivisors h G)
AlgebraicCurve.Modulus.transition_refl

Restriction to the same modulus is the identity.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem transition_refl (D : Modulus K F) (x : D.ClassGroupZero) :
    transition (le_refl D) x = x
AlgebraicCurve.Modulus.transition_trans

Shrinking twice agrees with shrinking directly.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem transition_trans {D E G : Modulus K F} (h : E ≤ D) (h' : G ≤ E)
    (x : D.ClassGroupZero) : transition h' (transition h x) = transition (h'.trans h) x
AlgebraicCurve.Modulus.toPic0_transition

Forgetting the modulus commutes with transition.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem toPic0_transition {D E : Modulus K F} (h : E ≤ D) (x : D.ClassGroupZero) :
    E.toPic0 (transition h x) = D.toPic0 x
AlgebraicCurve.Modulus.principal_zero

The zero modulus has exactly the ordinary principal subgroup.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem principal_zero : (0 : Modulus K F).principal = Divisor.principal
AlgebraicCurve.Modulus.toPic0_zero_injective

With zero modulus, the forgetful homomorphism is injective.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem toPic0_zero_injective : Function.Injective (toPic0 (0 : Modulus K F))
AlgebraicCurve.Modulus.toPic0_zero_surjective

Every ordinary degree-zero divisor is allowed for the zero modulus.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem toPic0_zero_surjective : Function.Surjective (toPic0 (0 : Modulus K F))
AlgebraicCurve.Modulus.zeroEquivPic0

The zero-modulus abstract degree-zero class group recovers the existing Pic0.

Source context 4 commands

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

@[expose] public section
noncomputable section
namespace AlgebraicCurve.Modulus
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
def zeroEquivPic0 : (0 : Modulus K F).ClassGroupZero ≃+ Pic0 K F