Module

Modulus.lean

Nyll.AlgebraicCurves.Divisors.Modulus.Modulus
29 declarations indexed from sourceView source ↗

Function-field moduli and local congruence

A modulus retains the natural-number multiplicity at each place. Congruence to one is expressed in powers of the maximal ideal of the actual valuation ring, and includes a local unit. In particular, it never uses the convention ord 0 = 0 to assert that zero is a unit. The global condition explicitly excludes zero, including when the modulus is zero.

The mathematical convention is Serre, Algebraic Groups and Class Fields, Chapter V, §1, no. 1–2. The places and valuation orders are supplied by Divisors.ClassGroup; no uniformizer is chosen in the definition.

Declarations

AlgebraicCurve.Modulus

A function-field modulus: finitely supported nonnegative multiplicities.

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]
abbrev Modulus
AlgebraicCurve.Place.CongruentOne

Congruence to one modulo the n-th power of the maximal ideal, with an actual valuation-ring unit representing the rational function.

Source context 6 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]
namespace Place
variable {K F}
def CongruentOne (v : Place K F) (n : ℕ) (f : F) : Prop
AlgebraicCurve.Place.CongruentOne.ne_zero

A local congruence witness is necessarily a nonzero rational function.

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]
namespace Place
variable {K F}
namespace CongruentOne
variable {v : Place K F} {n m : ℕ} {f g : F}
theorem ne_zero (hf : v.CongruentOne n f) : f ≠ 0
theorem

one

L60 ↗
AlgebraicCurve.Place.CongruentOne.one

The identity is congruent to one at every multiplicity.

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]
namespace Place
variable {K F}
namespace CongruentOne
variable {v : Place K F} {n m : ℕ} {f g : F}
theorem one (v : Place K F) (n : ℕ) : v.CongruentOne n 1
theorem

mul

L68 ↗
AlgebraicCurve.Place.CongruentOne.mul

Local congruence to one is closed under products.

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]
namespace Place
variable {K F}
namespace CongruentOne
variable {v : Place K F} {n m : ℕ} {f g : F}
theorem mul (hf : v.CongruentOne n f) (hg : v.CongruentOne n g) :
    v.CongruentOne n (f * g)
theorem

inv

L81 ↗
AlgebraicCurve.Place.CongruentOne.inv

Local congruence to one is closed under inverses.

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]
namespace Place
variable {K F}
namespace CongruentOne
variable {v : Place K F} {n m : ℕ} {f g : F}
theorem inv (hf : v.CongruentOne n f) : v.CongruentOne n f⁻¹
AlgebraicCurve.Place.CongruentOne.mono

A congruence at a larger multiplicity implies every weaker congruence.

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]
namespace Place
variable {K F}
namespace CongruentOne
variable {v : Place K F} {n m : ℕ} {f g : F}
theorem mono (hf : v.CongruentOne n f) (hmn : m ≤ n) : v.CongruentOne m f
AlgebraicCurve.Place.CongruentOne.ord_eq_zero

A rational function congruent to one has no zero or pole at this place.

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]
namespace Place
variable {K F}
namespace CongruentOne
variable {v : Place K F} {n m : ℕ} {f g : F}
theorem ord_eq_zero (hf : v.CongruentOne n f) : v.ord f = 0
AlgebraicCurve.Place.congruentOne_zero_iff

Local congruence at exponent zero is exactly representation by a local unit.

Source context 6 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]
namespace Place
variable {K F}
theorem congruentOne_zero_iff (v : Place K F) (f : F) :
    v.CongruentOne 0 f ↔
      ∃ u : v.toValuationSubringˣ, ((u : v.toValuationSubring) : F) = f
AlgebraicCurve.Modulus.toDivisor

The effective integer divisor associated with a modulus.

Source context 6 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]
namespace Modulus
variable {K F}
def toDivisor (D : Modulus K F) : Divisor K F
AlgebraicCurve.Modulus.toDivisor_apply
Source context 6 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]
namespace Modulus
variable {K F}
theorem toDivisor_apply (D : Modulus K F) (v : Place K F) :
    D.toDivisor v = (D v : ℤ)
AlgebraicCurve.Modulus.toDivisor_zero
Source context 6 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]
namespace Modulus
variable {K F}
theorem toDivisor_zero : (0 : Modulus K F).toDivisor = 0
AlgebraicCurve.Modulus.toDivisor_add
Source context 6 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]
namespace Modulus
variable {K F}
theorem toDivisor_add (D E : Modulus K F) :
    (D + E).toDivisor = D.toDivisor + E.toDivisor
AlgebraicCurve.Modulus.degree

The degree includes residue-field degrees over an arbitrary base field.

Source context 6 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]
namespace Modulus
variable {K F}
def degree (D : Modulus K F) : ℤ
AlgebraicCurve.Modulus.degree_zero
Source context 6 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]
namespace Modulus
variable {K F}
theorem degree_zero : (0 : Modulus K F).degree = 0
AlgebraicCurve.Modulus.degree_add
Source context 6 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]
namespace Modulus
variable {K F}
theorem degree_add (D E : Modulus K F) : (D + E).degree = D.degree + E.degree
AlgebraicCurve.Modulus.CongruentOne

A globally nonzero rational function congruent to one at every place in the support, with the full multiplicity at that place.

Source context 6 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]
namespace Modulus
variable {K F}
def CongruentOne (D : Modulus K F) (f : F) : Prop
AlgebraicCurve.Modulus.CongruentOne.ne_zero
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]
namespace Modulus
variable {K F}
namespace CongruentOne
variable {D E : Modulus K F} {f g : F}
theorem ne_zero (hf : D.CongruentOne f) : f ≠ 0
AlgebraicCurve.Modulus.CongruentOne.one

Global modulus congruence is satisfied by one.

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]
namespace Modulus
variable {K F}
namespace CongruentOne
variable {D E : Modulus K F} {f g : F}
theorem one (D : Modulus K F) : D.CongruentOne 1
AlgebraicCurve.Modulus.CongruentOne.mul

Global modulus congruence is closed under products.

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]
namespace Modulus
variable {K F}
namespace CongruentOne
variable {D E : Modulus K F} {f g : F}
theorem mul (hf : D.CongruentOne f) (hg : D.CongruentOne g) :
    D.CongruentOne (f * g)
AlgebraicCurve.Modulus.CongruentOne.inv

Global modulus congruence is closed under inverses.

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]
namespace Modulus
variable {K F}
namespace CongruentOne
variable {D E : Modulus K F} {f g : F}
theorem inv (hf : D.CongruentOne f) : D.CongruentOne f⁻¹
AlgebraicCurve.Modulus.CongruentOne.div

Global modulus congruence is closed under quotients.

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]
namespace Modulus
variable {K F}
namespace CongruentOne
variable {D E : Modulus K F} {f g : F}
theorem div (hf : D.CongruentOne f) (hg : D.CongruentOne g) :
    D.CongruentOne (f / g)
AlgebraicCurve.Modulus.CongruentOne.mono

Restrict a modulus congruence to a smaller effective 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]
namespace Modulus
variable {K F}
namespace CongruentOne
variable {D E : Modulus K F} {f g : F}
theorem mono (hf : D.CongruentOne f) (hED : E ≤ D) : E.CongruentOne f
AlgebraicCurve.Modulus.CongruentOne.ord_eq_zero

The principal divisor of a congruent function avoids the modulus support.

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]
namespace Modulus
variable {K F}
namespace CongruentOne
variable {D E : Modulus K F} {f g : F}
theorem ord_eq_zero (hf : D.CongruentOne f) (v : Place K F) (hv : D v ≠ 0) :
    v.ord f = 0
AlgebraicCurve.Modulus.congruentOne_zero

At zero modulus the only condition is that the rational function be nonzero.

Source context 6 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]
namespace Modulus
variable {K F}
theorem congruentOne_zero (f : F) :
    (0 : Modulus K F).CongruentOne f ↔ f ≠ 0
AlgebraicCurve.Modulus.not_congruentOne_zero

Zero is never an admissible rational function, even for zero modulus.

Source context 6 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]
namespace Modulus
variable {K F}
theorem not_congruentOne_zero (D : Modulus K F) : ¬ D.CongruentOne (0 : F)
AlgebraicCurve.Modulus.congruentOne_single

Congruence at a one-point modulus keeps its specified multiplicity.

Source context 6 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]
namespace Modulus
variable {K F}
theorem congruentOne_single (v : Place K F) (n : ℕ) (f : F) :
    CongruentOne (Finsupp.single v n : Modulus K F) f ↔
      f ≠ 0 ∧ (n ≠ 0 → v.CongruentOne n f)
AlgebraicCurve.Modulus.congruentOneSubgroup

Congruence-one rational functions form an actual subgroup of Fˣ.

Source context 6 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]
namespace Modulus
variable {K F}
def congruentOneSubgroup (D : Modulus K F) : Subgroup Fˣ where
  carrier := {u | D.CongruentOne (u : F)}
  one_mem' := CongruentOne.one D
  mul_mem' := fun hf hg => hf.mul hg
  inv_mem' := by
    intro u hf
    change D.CongruentOne ((u⁻¹ : Fˣ) : F)
    simpa only [Units.val_inv_eq_inv_val] using hf.inv
AlgebraicCurve.Modulus.mem_congruentOneSubgroup
Source context 6 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]
namespace Modulus
variable {K F}
theorem mem_congruentOneSubgroup (D : Modulus K F) (u : Fˣ) :
    u ∈ D.congruentOneSubgroup ↔ D.CongruentOne (u : F)