Module

Evaluation.lean

Nyll.AlgebraicCurves.Places.Evaluation.Evaluation
37 declarations indexed from sourceView source ↗

Evaluation

Residues at rational places define evaluation of functions and products along divisors, together with the Weil reciprocity condition.

Place evalAt algebraMap

Residue evaluation at a place returns the original constant from the base field.

Place evalAt mul

Evaluation at a rational place preserves the product of two integral functions.

Place evalAt ne zero

A nonzero function of order zero has nonzero evaluation at a rational place.

A nonzero place evaluation has order zero

Place evalAt inv

Evaluation at a rational place preserves inversion for a nonzero function of order zero.

Place evalAt zpow

Evaluation at a rational place preserves integer powers of a nonzero function of order zero.

Place deg eq one iff surjective algebra Map residue Field

Evaluation Algebra

Place isRational iff deg eq one

A place is rational exactly when its residue degree is one.

Imports7
Imported by121

Declarations

AlgebraicCurve.Place.IsRational

The residue field of the place is generated by the base field.

Source context 9 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
def IsRational : Prop
AlgebraicCurve.Place.algebraMap_residueField_injective
Source context 9 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem algebraMap_residueField_injective :
    Function.Injective (algebraMap K v.ResidueField)
AlgebraicCurve.Place.residueInv

An inverse function for the map from the base field to the residue field.

Source context 9 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
def residueInv : v.ResidueField → K
AlgebraicCurve.Place.algebraMap_residueInv
Source context 9 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem algebraMap_residueInv (hv : v.IsRational) (x : v.ResidueField) :
    algebraMap K v.ResidueField (v.residueInv x) = x
AlgebraicCurve.Place.residueInv_algebraMap
Source context 9 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem residueInv_algebraMap (a : K) : v.residueInv (algebraMap K v.ResidueField a) = a
AlgebraicCurve.Place.evalAt

Residue evaluation at an integral function, with value zero outside the valuation subring.

Source context 10 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
open Classical in
def evalAt (f : F) : K
AlgebraicCurve.Place.evalAt_of_mem
Source context 9 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem evalAt_of_mem {f : F} (hf : f ∈ v.toValuationSubring) :
    v.evalAt f = v.residueInv (residue v.toValuationSubring ⟨f, hf⟩)
AlgebraicCurve.Place.algebraMap_evalAt
Source context 9 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem algebraMap_evalAt (hv : v.IsRational) {f : F} (hf : f ∈ v.toValuationSubring) :
    algebraMap K v.ResidueField (v.evalAt f)
      = residue v.toValuationSubring (⟨f, hf⟩ : v.toValuationSubring)
AlgebraicCurve.Place.evalAt_one
Source context 9 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem evalAt_one : v.evalAt (1 : F) = 1
AlgebraicCurve.Divisor.evalFun

The product of residue evaluations with exponents given by the divisor coefficients.

Source context 8 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Divisor
def evalFun (f : F) (D : Divisor K F) : K
AlgebraicCurve.Divisor.evalFun_def
Source context 8 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Divisor
theorem evalFun_def (f : F) (D : Divisor K F) :
    evalFun f D = ∏ v ∈ D.support, v.evalAt f ^ D v
AlgebraicCurve.Divisor.evalFun_zero
Source context 8 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Divisor
theorem evalFun_zero (f : F) : evalFun f (0 : Divisor K F) = 1
AlgebraicCurve.Divisor.evalFun_single
Source context 8 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Divisor
theorem evalFun_single (f : F) (v : Place K F) (n : ℤ) :
    evalFun f (Finsupp.single v n) = v.evalAt f ^ n
AlgebraicCurve.WeilReciprocity

The equality of divisor evaluations for two nonzero functions with disjoint divisors.

Source context 8 commands

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

@[expose] public section
section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable (K F) in
def WeilReciprocity : Prop
AlgebraicCurve.Place.evalAt_algebraMap
Source context 6 commands

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

@[expose] public section
section
section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_evalAt_algebraMap
open IsLocalRing AlgebraicCurve
theorem _root_.AlgebraicCurve.Place.evalAt_algebraMap {K F : Type*} [Field K] [Field F]
  [Algebra K F] (v : Place K F) (a : K) : v.evalAt (algebraMap K F a) = a
AlgebraicCurve.Place.evalAt_mul
Source context 6 commands

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

@[expose] public section
section
section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_evalAt_mul
open IsLocalRing AlgebraicCurve
theorem _root_.AlgebraicCurve.Place.evalAt_mul {K F : Type*} [Field K] [Field F] [Algebra K F]
  (v : Place K F) (hv : v.IsRational) {f g : F} (hf : f ∈ v.toValuationSubring) (hg :
  g ∈ v.toValuationSubring) : v.evalAt (f * g) = v.evalAt f * v.evalAt g
AlgebraicCurve.Place.evalAt_ne_zero
Source context 6 commands

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

@[expose] public section
section
section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_evalAt_ne_zero
open IsLocalRing AlgebraicCurve
theorem _root_.AlgebraicCurve.Place.evalAt_ne_zero {K F : Type*} [Field K] [Field F]
  [Algebra K F] (v : Place K F) (hv : v.IsRational) {f : F} (hf : f ≠ 0) (h : v.ord f = 0) :
  v.evalAt f ≠ 0
AlgebraicCurve.Place.ord_eq_zero_of_evalAt_ne_zero

Nonzero evaluation at a rational place detects an actual unit in its valuation ring, and hence a function of order zero.

Source context 5 commands

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

@[expose] public section
section
section
noncomputable section
namespace AlgebraicCurve.Place
theorem ord_eq_zero_of_evalAt_ne_zero
    {K F : Type*} [Field K] [Field F] [Algebra K F]
    (v : Place K F) (hv : v.IsRational) {f : F}
    (h : v.evalAt f ≠ 0) : v.ord f = 0
AlgebraicCurve.Place.evalAt_inv
Source context 6 commands

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

@[expose] public section
section
section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_evalAt_inv
open AlgebraicCurve
theorem _root_.AlgebraicCurve.Place.evalAt_inv {K F : Type*} [Field K] [Field F] [Algebra K F]
  (v : Place K F) (hv : v.IsRational) {f : F} (hf : f ≠ 0) (h : v.ord f = 0) : v.evalAt f⁻¹ =
  (v.evalAt f)⁻¹
AlgebraicCurve.Place.evalAt_zpow
Source context 6 commands

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

@[expose] public section
section
section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_evalAt_zpow
open AlgebraicCurve
theorem _root_.AlgebraicCurve.Place.evalAt_zpow {K F : Type*} [Field K] [Field F] [Algebra K F]
  (v : Place K F) (hv : v.IsRational) {f : F} (hf : f ≠ 0) (h : v.ord f = 0) (n : ℤ) : v.evalAt
  (f ^ n) = v.evalAt f ^ n
AlgebraicCurves.Places.Proofs.PlaceDegOneIffSurjectiveAlgebra.AlgebraicCurve.Place.deg_eq_one_iff_surjective_algebraMap_residueField_aux
Source context 6 commands

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

@[expose] public section
section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.PlaceDegOneIffSurjectiveAlgebra
open _root_.AlgebraicCurve
open scoped _root_.AlgebraicCurve _root_.AlgebraicCurve.Place in
theorem AlgebraicCurve.Place.deg_eq_one_iff_surjective_algebraMap_residueField_aux
    {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F) :
    v.deg = 1 ↔ Function.Surjective (algebraMap K v.ResidueField)
AlgebraicCurve.Place.deg_eq_one_iff_surjective_algebraMap_residueField
Source context 6 commands

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

@[expose] public section
section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.PlaceDegOneIffSurjectiveAlgebra
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
  _root_.AlgebraicCurves.Places.Proofs.PlaceDegOneIffSurjectiveAlgebra.AlgebraicCurve
  in
theorem _root_.AlgebraicCurve.Place.deg_eq_one_iff_surjective_algebraMap_residueField {K F :
  Type*} [Field K] [Field F] [Algebra K F] (v : Place K F) :
    v.deg = 1 ↔ Function.Surjective (algebraMap K v.ResidueField)
AlgebraicCurve.Place.evalAt_eq_zero_of_ord_pos
Source context 8 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem evalAt_eq_zero_of_ord_pos {g : F} (hg0 : g ≠ 0) (hpos : 0 < v.ord g) :
    v.evalAt g = 0
AlgebraicCurve.Place.isUnit_mk_of_ord_eq_zero
Source context 8 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem isUnit_mk_of_ord_eq_zero {f : F} (hf : f ≠ 0) (h : v.ord f = 0) :
    IsUnit (⟨f, v.mem_of_ord_nonneg hf h.ge⟩ : v.toValuationSubring)
AlgebraicCurve.Place.residue_ne_zero_of_ord_eq_zero
Source context 8 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem residue_ne_zero_of_ord_eq_zero {f : F} (hf : f ≠ 0) (h : v.ord f = 0) :
    residue v.toValuationSubring (⟨f, v.mem_of_ord_nonneg hf h.ge⟩ :
      v.toValuationSubring)
      ≠ 0
AlgebraicCurve.Place.evalAt_add_of_mem
Source context 8 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem evalAt_add_of_mem (hv : v.IsRational) {f g : F}
    (hf : f ∈ v.toValuationSubring) (hg : g ∈ v.toValuationSubring) :
    v.evalAt (f + g) = v.evalAt f + v.evalAt g
AlgebraicCurve.Place.evalAt_sub_of_mem
Source context 8 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem evalAt_sub_of_mem (hv : v.IsRational) {f g : F}
    (hf : f ∈ v.toValuationSubring) (hg : g ∈ v.toValuationSubring) :
    v.evalAt (f - g) = v.evalAt f - v.evalAt g
AlgebraicCurve.Place.evalAt_smul_of_mem
Source context 8 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem evalAt_smul_of_mem (hv : v.IsRational) (c : K) {f : F}
    (hf : f ∈ v.toValuationSubring) : v.evalAt (c • f) = c * v.evalAt f
AlgebraicCurve.Place.deg_eq_one_of_isRational
Source context 8 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
variable (v : Place K F)
theorem deg_eq_one_of_isRational {v : Place K F} (hv : v.IsRational) : v.deg = 1
AlgebraicCurve.Divisor.evalFun_ne_zero

A divisor evaluation is nonzero when every factor indexed by its support is nonzero.

Source context 7 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Divisor
theorem evalFun_ne_zero {f : F} {D : Divisor K F}
    (h : ∀ v ∈ D.support, Place.evalAt v f ≠ 0) :
    evalFun f D ≠ 0
AlgebraicCurve.Divisor.evalFun_add_of_forall_ne_zero
Source context 7 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Divisor
theorem evalFun_add_of_forall_ne_zero (f : F) {D E : Divisor K F}
    (hD : ∀ v ∈ D.support, Place.evalAt v f ≠ 0)
    (hE : ∀ v ∈ E.support, Place.evalAt v f ≠ 0) :
    evalFun f (D + E) = evalFun f D * evalFun f E
AlgebraicCurve.Divisor.evalFun_mul_of_forall_mem
Source context 7 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Divisor
theorem evalFun_mul_of_forall_mem {f g : F} {D : Divisor K F}
    (hrat : ∀ v ∈ D.support, Place.IsRational v)
    (hf : ∀ v ∈ D.support, f ∈ v.toValuationSubring)
    (hg : ∀ v ∈ D.support, g ∈ v.toValuationSubring) :
    evalFun (f * g) D = evalFun f D * evalFun g D
AlgebraicCurve.Divisor.support_smul_subset
Source context 7 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Divisor
theorem support_smul_subset (n : ℤ) (D : Divisor K F) :
    (n • D).support ⊆ D.support
AlgebraicCurve.Divisor.evalFun_natCast_smul_divisor
Source context 7 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Divisor
theorem evalFun_natCast_smul_divisor (f : F) (D : Divisor K F) (n : ℕ) :
    evalFun f ((n : ℤ) • D) = evalFun f D ^ n
AlgebraicCurve.Divisor.evalFun_zsmul_divisor
Source context 7 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Divisor
theorem evalFun_zsmul_divisor (f : F) (D : Divisor K F) (n : ℤ) :
    evalFun f (n • D) = evalFun f D ^ n
AlgebraicCurve.Divisor.evalFun_zpow_left_of_ord_eq_zero
Source context 7 commands

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

@[expose] public section
section
noncomputable section
open IsLocalRing
namespace AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Divisor
theorem evalFun_zpow_left_of_ord_eq_zero {f : F} (hf : f ≠ 0) {D : Divisor K F} (n : ℤ)
    (hrat : ∀ v ∈ D.support, Place.IsRational v)
    (hord : ∀ v ∈ D.support, Place.ord v f = 0) :
    evalFun (f ^ n) D = evalFun f D ^ n
AlgebraicCurve.Place.isRational_iff_deg_eq_one
Source context 5 commands

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

@[expose] public section
section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_isRational_iff_deg_eq_one
open AlgebraicCurve
theorem _root_.AlgebraicCurve.Place.isRational_iff_deg_eq_one {K F : Type*} [Field K] [Field F]
  [Algebra K F] (v : Place K F) : v.IsRational ↔ v.deg = 1