Module

DegreeArithmetic.lean

Nyll.AlgebraicCurves.Divisors.Degree.DegreeArithmetic
8 declarations indexed from sourceView source ↗

Degree Arithmetic

Compute the degree of a divisor as a sum of weighted coefficients.

An effective divisor has nonnegative degree.

Divisor degree map Domain filter add degree map Domain filter eq degree of deg eq one

Declarations

AlgebraicCurve.Divisor.degree_eq_sum
Source context 6 commands

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

@[expose] public section
section
section ProofImplementation
namespace AlgebraicCurves.Divisors.Proofs.Divisor_degree_eq_sum
open IsDedekindDomain WithZero IsLocalRing
open AlgebraicCurve in
theorem _root_.AlgebraicCurve.Divisor.degree_eq_sum {K F : Type*} [Field K] [Field F] [Algebra K
    F] (D : Divisor K F) :
    Divisor.degree D = ∑ v ∈ D.support, D v * (v.deg : ℤ)
AlgebraicCurve.Divisor.degree_eq_sum_support
Source context 4 commands

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

@[expose] public section
section
namespace AlgebraicCurves.Divisors.Proofs.Divisor_degree_eq_sum_support
open AlgebraicCurve
theorem _root_.AlgebraicCurve.Divisor.degree_eq_sum_support {K F : Type*} [Field K] [Field F]
    [Algebra K F] (D : Divisor K F) :
    Divisor.degree D = ∑ v ∈ D.support, D v * (v.deg : ℤ)
AlgebraicCurve.Divisor.degree_nonneg_of_nonneg
Source context 3 commands

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

@[expose] public section
section
open AlgebraicCurve Module
theorem _root_.AlgebraicCurve.Divisor.degree_nonneg_of_nonneg {K F : Type*} [Field K] [Field F]
  [Algebra K F] [IsCurveOver K F]
    {D : Divisor K F} (hD : ∀ v, 0 ≤ D v) : 0 ≤ Divisor.degree D
AlgebraicCurves.Divisors.Proofs.Divisor_degree_mapDomain_filter_add_degree_mapDomain_filter_eq_degree_of_deg_eq_one.FibreDegree.tmass

The unweighted sum of the coefficients of a finitely supported integer-valued function.

Source context 7 commands

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

@[expose] public section
section
section ProofImplementation
namespace AlgebraicCurves.Divisors.Proofs
namespace Divisor_degree_mapDomain_filter_add_degree_mapDomain_filter_eq_degree_of_deg_eq_one
open AlgebraicCurve
namespace FibreDegree
def tmass {X : Type*} (D : X →₀ ℤ) : ℤ
AlgebraicCurves.Divisors.Proofs.Divisor_degree_mapDomain_filter_add_degree_mapDomain_filter_eq_degree_of_deg_eq_one.FibreDegree.tmass_add
Source context 7 commands

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

@[expose] public section
section
section ProofImplementation
namespace AlgebraicCurves.Divisors.Proofs
namespace Divisor_degree_mapDomain_filter_add_degree_mapDomain_filter_eq_degree_of_deg_eq_one
open AlgebraicCurve
namespace FibreDegree
theorem tmass_add {X : Type*} (D₁ D₂ : X →₀ ℤ) : tmass (D₁ + D₂) = tmass D₁ + tmass D₂
AlgebraicCurves.Divisors.Proofs.Divisor_degree_mapDomain_filter_add_degree_mapDomain_filter_eq_degree_of_deg_eq_one.FibreDegree.tmass_mapDomain
Source context 7 commands

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

@[expose] public section
section
section ProofImplementation
namespace AlgebraicCurves.Divisors.Proofs
namespace Divisor_degree_mapDomain_filter_add_degree_mapDomain_filter_eq_degree_of_deg_eq_one
open AlgebraicCurve
namespace FibreDegree
theorem tmass_mapDomain {X Y : Type*} (r : X → Y) (D : X →₀ ℤ) :
    tmass (Finsupp.mapDomain r D) = tmass D
AlgebraicCurves.Divisors.Proofs.Divisor_degree_mapDomain_filter_add_degree_mapDomain_filter_eq_degree_of_deg_eq_one.FibreDegree.degree_eq_tmass
Source context 7 commands

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

@[expose] public section
section
section ProofImplementation
namespace AlgebraicCurves.Divisors.Proofs
namespace Divisor_degree_mapDomain_filter_add_degree_mapDomain_filter_eq_degree_of_deg_eq_one
open AlgebraicCurve
namespace FibreDegree
theorem degree_eq_tmass {K₀ F₀ : Type*} [Field K₀] [Field F₀] [Algebra K₀ F₀]
    (h : ∀ v : Place K₀ F₀, v.deg = 1) (D : Divisor K₀ F₀) : D.degree = tmass D
AlgebraicCurve.Divisor.degree_mapDomain_filter_add_degree_mapDomain_filter_eq_degree_of_deg_eq_one
Source context 7 commands

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

@[expose] public section
section
section ProofImplementation
namespace AlgebraicCurve.Divisor
open _root_.AlgebraicCurves.Divisors.Proofs in
open Divisor_degree_mapDomain_filter_add_degree_mapDomain_filter_eq_degree_of_deg_eq_one in
open AlgebraicCurve in
theorem degree_mapDomain_filter_add_degree_mapDomain_filter_eq_degree_of_deg_eq_one
    {K F K' F' : Type*} [Field K] [Field F] [Algebra K F] [Field K'] [Field F'] [Algebra K' F']
    (hdeg : ∀ v : Place K F, v.deg = 1) (hdeg' : ∀ w : Place K' F', w.deg = 1)
    (r₁ r₂ : Place K F → Place K' F') (p₁ p₂ : Place K F → Prop) [DecidablePred p₁] [DecidablePred
      p₂]
    (hdisj : ∀ V, p₁ V → ¬ p₂ V)
    (E : Divisor K F) (hE : ∀ V ∈ E.support, p₁ V ∨ p₂ V) :
    Divisor.degree (Finsupp.mapDomain r₁ (E.filter p₁)) + Divisor.degree (Finsupp.mapDomain r₂
      (E.filter p₂)) = E.degree