Module

CanonicalLocalResidueDataKResDifferentialCoeffDMulPowInvEqZero.lean

Nyll.AlgebraicCurves.Places.Differentials.CanonicalLocalResidueDataKResDifferentialCoeffDMulPowInvEqZero
36 declarations indexed from sourceView source ↗

Place Canonical Local Residue Data K res differential Coeff D mul pow inv eq zero of

surjective algebra Map

Declarations

AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.Place.mem_iff_ord_nonneg
Source context 20 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
open _root_.AlgebraicCurve.Place
open _root_.AlgebraicCurve.Place
variable (v : Place K F)
open _root_.AlgebraicCurve.Place
theorem mem_iff_ord_nonneg {f : F} (hf : f ≠ 0) :
    f ∈ v.toValuationSubring ↔ 0 ≤ v.ord f
AlgebraicCurve.Place.ord_add_eq_min
Source context 20 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
open _root_.AlgebraicCurve.Place
open _root_.AlgebraicCurve.Place
variable (v : Place K F)
open _root_.AlgebraicCurve.Place
theorem _root_.AlgebraicCurve.Place.ord_add_eq_min {f g : F} (hf : f ≠ 0) (hg : g ≠ 0) (h
  : v.ord f ≠ v.ord g) :
    v.ord (f + g) = min (v.ord f) (v.ord g)
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.D_pow_succ_inv
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem D_pow_succ_inv (f : F) (m : ℕ) :
    KaehlerDifferential.D K F ((f ^ (m + 1))⁻¹)
      = (-((m + 1 : ℕ) : F) * (f ^ (m + 2))⁻¹) • KaehlerDifferential.D K F f
AlgebraicCurve.Place.differentialCoeff_add''
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
open _root_.AlgebraicCurve.Place
open _root_.AlgebraicCurve.Place
variable (v : Place K F)
theorem _root_.AlgebraicCurve.Place.differentialCoeff_add'' [v.DCoordGenerates]
  [Nontrivial Ω[F⁄K]] (ω₁ ω₂ : Ω[F⁄K]) :
    v.differentialCoeff (ω₁ + ω₂) = v.differentialCoeff ω₁ + v.differentialCoeff ω₂
AlgebraicCurve.Place.differentialCoeff_D_uniformizer_pow_inv
Source context 20 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
open _root_.AlgebraicCurve.Place
open _root_.AlgebraicCurve.Place
variable (v : Place K F)
open _root_.AlgebraicCurve.Place
theorem _root_.AlgebraicCurve.Place.differentialCoeff_D_uniformizer_pow_inv
  [v.DCoordGenerates] [Nontrivial Ω[F⁄K]]
    (m : ℕ) :
    v.differentialCoeff (KaehlerDifferential.D K F ((v.uniformizer ^ (m + 1))⁻¹))
      = -((m + 1 : ℕ) : F) * (v.uniformizer ^ (m + 2))⁻¹
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.Place.CanonicalLocalResidueDataK.res_differentialCoeff_D_of_mem_poleSubmodule
Source context 20 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
open _root_.AlgebraicCurve.Place
open _root_.AlgebraicCurve.Place
variable (v : Place K F) [v.DCoordGenerates] [Nontrivial Ω[F⁄K]]
open scoped _root_.AlgebraicCurve.Place.CanonicalLocalResidueDataK in
theorem CanonicalLocalResidueDataK.res_differentialCoeff_D_of_mem_poleSubmodule
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    (hint : ∀ h : F, h ∈ v.toValuationSubring →
      v.differentialCoeff (KaehlerDifferential.D K F h) ∈ v.toValuationSubring)
    (R : v.CanonicalLocalResidueDataK) (N : ℕ) {g : F} (hg : g ∈ v.poleSubmodule N) :
    R.res (v.differentialCoeff (KaehlerDifferential.D K F g)) = 0
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.Place.CanonicalLocalResidueDataK.res_differentialCoeff_D_of_surj
Source context 20 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
namespace Place
open _root_.AlgebraicCurve.Place
open _root_.AlgebraicCurve.Place
variable (v : Place K F) [v.DCoordGenerates] [Nontrivial Ω[F⁄K]]
open scoped _root_.AlgebraicCurve.Place.CanonicalLocalResidueDataK in
theorem CanonicalLocalResidueDataK.res_differentialCoeff_D_of_surj
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    (hint : ∀ h : F, h ∈ v.toValuationSubring →
      v.differentialCoeff (KaehlerDifferential.D K F h) ∈ v.toValuationSubring)
    (R : v.CanonicalLocalResidueDataK) (g : F) :
    R.res (v.differentialCoeff (KaehlerDifferential.D K F g)) = 0
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3.res_differentialCoeff_D_mul_pow_inv_of_surj_of_natCast_ne_zero
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace ModularCurve
open _root_.ModularCurve
namespace MilneAvAg9bRd13T2CoordIndepChar3
open _root_.AlgebraicCurve
theorem res_differentialCoeff_D_mul_pow_inv_of_surj_of_natCast_ne_zero
    {K F : Type*} [Field K] [Field F] [Algebra K F]
    (v : Place K F) [v.DCoordGenerates] [Nontrivial Ω[F⁄K]]
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    (hint : ∀ h : F, h ∈ v.toValuationSubring →
      v.differentialCoeff (KaehlerDifferential.D K F h) ∈ v.toValuationSubring)
    (R : v.CanonicalLocalResidueDataK) (π' : F) {n : ℕ} (hn : 1 ≤ n)
    (hnK : (n : K) ≠ 0) :
    R.res (v.differentialCoeff (KaehlerDifferential.D K F π') * ((π') ^ (n + 1))⁻¹) = 0
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve.MilneAvAg9bRd15UnitNormalFormLaurentSeed.eq_zero_or_one_le_ord_of_residue_eq_zero
Source context 16 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace ModularCurve
open _root_.ModularCurve
namespace MilneAvAg9bRd15UnitNormalFormLaurentSeed
open _root_.AlgebraicCurve
open scoped Polynomial
theorem eq_zero_or_one_le_ord_of_residue_eq_zero
    {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
    {g : F} (hg : g ∈ v.toValuationSubring)
    (h0 : IsLocalRing.residue _ (⟨g, hg⟩ : v.toValuationSubring) = 0) :
    g = 0 ∨ 1 ≤ v.ord g
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve.MilneAvAg9bRd15UnitNormalFormLaurentSeed.exists_unit_normal_form_of_surj
Source context 17 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace ModularCurve
open _root_.ModularCurve
namespace MilneAvAg9bRd15UnitNormalFormLaurentSeed
open _root_.AlgebraicCurve
open scoped Polynomial
open MilneAvAg9bRd15UnitNormalFormLaurentSeed
theorem exists_unit_normal_form_of_surj
    {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    {w : F} (hw0 : w ≠ 0) (hw : v.ord w = 0) :
    ∃ (c : K) (s : F), c ≠ 0 ∧ (s = 0 ∨ 1 ≤ v.ord s) ∧
      w = algebraMap K F c * (1 + s)
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve.MilneAvAg9bRd15UnitNormalFormLaurentSeed.exists_K_truncation_of_mem_poleSubmodule
Source context 18 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace ModularCurve
open _root_.ModularCurve
namespace MilneAvAg9bRd15UnitNormalFormLaurentSeed
open _root_.AlgebraicCurve
open scoped Polynomial
open MilneAvAg9bRd15UnitNormalFormLaurentSeed
open MilneAvAg9bRd15UnitNormalFormLaurentSeed
theorem exists_K_truncation_of_mem_poleSubmodule
    {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    (n : ℕ) {f : F} (hf : f ∈ v.poleSubmodule n) :
    ∃ c : ℕ → K,
      f - ∑ j ∈ Finset.range n, algebraMap K F (c j) * (v.uniformizer ^ (j + 1))⁻¹
        ∈ v.toValuationSubring
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve.MilneAvAg9bRd15UnitNormalFormLaurentSeed.differentialCoeff_D_unit_mul_uniformizer
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace ModularCurve
open _root_.ModularCurve
namespace MilneAvAg9bRd15UnitNormalFormLaurentSeed
open _root_.AlgebraicCurve
open scoped Polynomial
open MilneAvAg9bRd15UnitNormalFormLaurentSeed
open MilneAvAg9bRd15UnitNormalFormLaurentSeed
open MilneAvAg9bRd15UnitNormalFormLaurentSeed
theorem differentialCoeff_D_unit_mul_uniformizer
    {K F : Type*} [Field K] [Field F] [Algebra K F]
    (v : Place K F) [v.DCoordGenerates] [Nontrivial Ω[F⁄K]] (w : F) :
    v.differentialCoeff (KaehlerDifferential.D K F (w * v.uniformizer))
      = w + v.uniformizer * v.differentialCoeff (KaehlerDifferential.D K F w)
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart.res_uniformizer_zpow_eq_zero_of_ne_neg_one
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
namespace ModularCurve
open _root_.ModularCurve
namespace MilneAvAg9bRd14CubeRowCartierSliceStart
open _root_.AlgebraicCurve
theorem res_uniformizer_zpow_eq_zero_of_ne_neg_one
    {K F : Type*} [Field K] [Field F] [Algebra K F]
    (v : Place K F) (R : v.CanonicalLocalResidueDataK)
    {j : ℤ} (hj : j ≠ -1) :
    R.res (v.uniformizer ^ j) = 0
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.gate_canonicalLocalResidueDataK_uniformizer_inv
Source context 17 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
theorem gate_canonicalLocalResidueDataK_uniformizer_inv {K F : Type*} [Field K] [Field F] [Algebra
  K F]
    (v : Place K F) (R : v.CanonicalLocalResidueDataK) : R.res v.uniformizer⁻¹ = 1
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.uniformizer_pow_mul_mem_cases
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem uniformizer_pow_mul_mem_cases
    (v : Place K F)
    {σ : F} (hσ : σ ∈ v.toValuationSubring) {k : ℕ} (hk : 1 ≤ k) :
    v.uniformizer ^ k * σ = 0 ∨ 1 ≤ v.ord (v.uniformizer ^ k * σ)
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.one_add_ne_zero
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem one_add_ne_zero
    (v : Place K F)
    {g : F} (hg : g = 0 ∨ 1 ≤ v.ord g) :
    (1 : F) + g ≠ 0
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.ord_one_add_eq_zero
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem ord_one_add_eq_zero
    (v : Place K F)
    {g : F} (hg : g = 0 ∨ 1 ≤ v.ord g) :
    v.ord ((1 : F) + g) = 0
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.one_add_inv_mem
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem one_add_inv_mem
    (v : Place K F)
    {g : F} (hg : g = 0 ∨ 1 ≤ v.ord g) :
    ((1 : F) + g)⁻¹ ∈ v.toValuationSubring
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.logDeriv_mul
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem logDeriv_mul
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]]
    {w₁ w₂ : F} (h1 : w₁ ≠ 0) (h2 : w₂ ≠ 0) :
    v.differentialCoeff (KaehlerDifferential.D K F (w₁ * w₂))
        * (w₁ * w₂)⁻¹
      = v.differentialCoeff (KaehlerDifferential.D K F w₁) * w₁⁻¹
        + v.differentialCoeff (KaehlerDifferential.D K F w₂)
            * w₂⁻¹
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.logDeriv_mem
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem logDeriv_mem
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]]
    (hint : ∀ h : F, h ∈ v.toValuationSubring →
      v.differentialCoeff (KaehlerDifferential.D K F h) ∈ v.toValuationSubring)
    {w : F} (hw0 : w ≠ 0) (hword : v.ord w = 0) :
    v.differentialCoeff (KaehlerDifferential.D K F w) * w⁻¹
      ∈ v.toValuationSubring
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.differentialCoeff_D_one_add_algebraMap_mul_pow
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem differentialCoeff_D_one_add_algebraMap_mul_pow
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]] (a : K) (k : ℕ) :
    v.differentialCoeff (KaehlerDifferential.D K F
        ((1 : F)
          + algebraMap K F a * v.uniformizer ^ k))
      = algebraMap K F a
        * (((k : ℕ) : F) * v.uniformizer ^ (k - 1))
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.differentialCoeff_D_one_add_pow_mul
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem differentialCoeff_D_one_add_pow_mul
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]] (σ : F) (k : ℕ) :
    v.differentialCoeff (KaehlerDifferential.D K F
        ((1 : F) + v.uniformizer ^ k * σ))
      = v.uniformizer ^ k
          * v.differentialCoeff (KaehlerDifferential.D K F σ)
        + σ * (((k : ℕ) : F) * v.uniformizer ^ (k - 1))
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.exists_residue_lift_decomp
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem exists_residue_lift_decomp
    (v : Place K F)
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    {r : F} (hr : r ∈ v.toValuationSubring) :
    ∃ (d : K) (r' : F), r' ∈ v.toValuationSubring ∧
      r = algebraMap K F d + v.uniformizer * r'
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.exists_elementary_peel
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem exists_elementary_peel
    (v : Place K F)
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    {k : ℕ} (hk : 1 ≤ k) {σ : F} (hσ : σ ∈ v.toValuationSubring) :
    ∃ (a : K) (τ : F), τ ∈ v.toValuationSubring ∧
      (1 : F) + v.uniformizer ^ k * σ
        = ((1 : F)
              + algebraMap K F a * v.uniformizer ^ k)
          * ((1 : F) + v.uniformizer ^ (k + 1) * τ)
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.exists_laurent_expansion_one
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem exists_laurent_expansion_one
    (v : Place K F)
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    (f : F) :
    ∃ (s : Finset ℤ) (c : ℤ → K) (r : F),
      r ∈ v.toValuationSubring ∧
      f = (∑ j ∈ s, c j • v.uniformizer ^ j) + v.uniformizer * r
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.residue_geometric_series_term
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem residue_geometric_series_term
    (v : Place K F) (R : v.CanonicalLocalResidueDataK)
    (a : K) {k q : ℕ} (hk : 1 ≤ k) (hq : 1 ≤ q) :
    R.res (algebraMap K F a * v.uniformizer ^ (k - 1)
        * ((1 : F)
            + algebraMap K F a * v.uniformizer ^ k)⁻¹
        * (v.uniformizer ^ q)⁻¹)
      = if k ∣ q
        then algebraMap K v.ResidueField (a * (-a) ^ (q / k - 1))
        else 0 := by
  have hπ0 : (v.uniformizer : F) ≠ 0 := v.uniformizer_ne_zero
  have hgcase : algebraMap K F a * v.uniformizer ^ k = 0
      ∨ 1 ≤ v.ord (algebraMap K F a * v.uniformizer ^ k) := by
    rw [mul_comm]
    exact uniformizer_pow_mul_mem_cases v (v.algebraMap_mem' a) hk
  have hu0 : (1 : F)
      + algebraMap K F a * v.uniformizer ^ k ≠ 0 :=
    one_add_ne_zero v hgcase
  have huinv : ((1 : F)
      + algebraMap K F a * v.uniformizer ^ k)⁻¹
      ∈ v.toValuationSubring :=
    one_add_inv_mem v hgcase
  have hgeom : ((1 : F)
      + algebraMap K F a * v.uniformizer ^ k)⁻¹
      = (∑ t ∈ Finset.range q,
          (-(algebraMap K F a * v.uniformizer ^ k)) ^ t)
        + (-(algebraMap K F a * v.uniformizer ^ k)) ^ q
          * ((1 : F)
              + algebraMap K F a * v.uniformizer ^ k)⁻¹ := by
    refine (eq_inv_of_mul_eq_one_left ?_).symm
    rw [add_mul, mul_assoc, inv_mul_cancel₀ hu0, mul_one]
    have hgs := geom_sum_mul
      (-(algebraMap K F a * v.uniformizer ^ k)) q
    linear_combination -hgs
  rw [hgeom, mul_add, add_mul, map_add]
  have htail : R.res ((algebraMap K F a * v.uniformizer ^ (k - 1)
      * ((-(algebraMap K F a * v.uniformizer ^ k)) ^ q
          * ((1 : F)
              + algebraMap K F a * v.uniformizer ^ k)⁻¹))
      * (v.uniformizer ^ q)⁻¹) = 0 := by
    apply R.res_of_mem
    have hqle : q ≤ k * q := Nat.le_of_dvd (Nat.mul_pos hk hq) (dvd_mul_left q k)
    have hpowsplit : (v.uniformizer : F) ^ (k * q)
        = v.uniformizer ^ (k * q - q) * v.uniformizer ^ q := by
      rw [← pow_add, Nat.sub_add_cancel hqle]
    have hxq : (-(algebraMap K F a * v.uniformizer ^ k)) ^ q
        = algebraMap K F ((-a) ^ q)
          * (v.uniformizer ^ (k * q - q) * v.uniformizer ^ q) := by
      rw [map_pow, _root_.map_neg,
        show -(algebraMap K F a * v.uniformizer ^ k)
            = -algebraMap K F a * v.uniformizer ^ k from
          (neg_mul _ _).symm,
        mul_pow, ← pow_mul, hpowsplit]
    have hcc : (v.uniformizer : F) ^ q
        * ((v.uniformizer : F) ^ q)⁻¹ = 1 :=
      mul_inv_cancel₀ (pow_ne_zero _ hπ0)
    have heq : (algebraMap K F a * v.uniformizer ^ (k - 1)
        * ((-(algebraMap K F a * v.uniformizer ^ k)) ^ q
            * ((1 : F)
                + algebraMap K F a * v.uniformizer ^ k)⁻¹))
        * (v.uniformizer ^ q)⁻¹
        = algebraMap K F a * v.uniformizer ^ (k - 1)
          * (algebraMap K F ((-a) ^ q)
              * v.uniformizer ^ (k * q - q)
              * ((1 : F)
                  + algebraMap K F a * v.uniformizer ^ k)⁻¹) := by
      rw [hxq]
      linear_combination (algebraMap K F a
        * v.uniformizer ^ (k - 1)
        * (algebraMap K F ((-a) ^ q)
            * v.uniformizer ^ (k * q - q)
            * ((1 : F)
                + algebraMap K F a * v.uniformizer ^ k)⁻¹)) * hcc
    rw [heq]
    exact mul_mem (mul_mem (v.algebraMap_mem' a) (pow_mem v.uniformizer_mem _))
      (mul_mem (mul_mem (v.algebraMap_mem' _) (pow_mem v.uniformizer_mem _)) huinv)
  have hterm : (algebraMap K F a * v.uniformizer ^ (k - 1)
      * (∑ t ∈ Finset.range q,
          (-(algebraMap K F a * v.uniformizer ^ k)) ^ t))
      * (v.uniformizer ^ q)⁻¹
      = ∑ t ∈ Finset.range q, (a * (-a) ^ t)
          • v.uniformizer ^ ((k : ℤ) * ((t : ℤ) + 1) - 1 - (q : ℤ)) := by
    rw [Finset.mul_sum, Finset.sum_mul]
    refine Finset.sum_congr rfl fun t _ => ?_
    have hxt : (-(algebraMap K F a * v.uniformizer ^ k)) ^ t
        = algebraMap K F ((-a) ^ t)
          * v.uniformizer ^ (k * t) := by
      rw [map_pow, _root_.map_neg,
        show -(algebraMap K F a * v.uniformizer ^ k)
            = -algebraMap K F a * v.uniformizer ^ k from
          (neg_mul _ _).symm,
        mul_pow, ← pow_mul]
    rw [hxt, Algebra.smul_def, map_mul, map_pow, _root_.map_neg,
      show (k : ℤ) * ((t : ℤ) + 1) - 1 - (q : ℤ)
          = ((k - 1 : ℕ) : ℤ) + ((k * t : ℕ) : ℤ) + -((q : ℕ) : ℤ) from by
        push_cast [Nat.cast_sub hk]
        ring,
      zpow_add₀ hπ0, zpow_add₀ hπ0, zpow_natCast, zpow_natCast, _root_.zpow_neg, zpow_natCast]
    ring
  rw [hterm, map_sum]
  simp only [map_smul]
  by_cases hdvd : k ∣ q
  · rw [ite_eq_left hdvd, htail, add_zero]
    obtain ⟨e, rfl⟩ := hdvd
    rcases Nat.eq_zero_or_pos e with rfl | he1
    · rw [mul_zero] at hq
      omega
    · rw [Nat.mul_div_cancel_left e hk]
      have he_lt : e - 1 < k * e := by
        have h1 : e ≤ k * e := Nat.le_of_dvd (Nat.mul_pos hk he1) (dvd_mul_left e k)
        omega
      have hother : ∀ t ∈ Finset.range (k * e), t ≠ e - 1 →
          (a * (-a) ^ t) • R.res ((v.uniformizer : F)
            ^ ((k : ℤ) * ((t : ℤ) + 1) - 1 - ((k * e : ℕ) : ℤ))) = 0 := by
        intro t _ htne
        have hne : (k : ℤ) * ((t : ℤ) + 1) - 1 - ((k * e : ℕ) : ℤ) ≠ -1 := by
          intro hcontra
          have h2 : (k : ℤ) * ((t : ℤ) + 1) = (k : ℤ) * (e : ℤ) := by
            push_cast at hcontra
            linarith
          have hk0 : (k : ℤ) ≠ 0 := by omega
          have h3 : (t : ℤ) + 1 = (e : ℤ) := mul_left_cancel₀ hk0 h2
          omega
        rw [res_uniformizer_zpow_eq_zero_of_ne_neg_one
          v R hne, smul_zero]
      rw [Finset.sum_eq_single_of_mem (e - 1) (Finset.mem_range.mpr he_lt) hother,
        show (k : ℤ) * (((e - 1 : ℕ) : ℤ) + 1) - 1 - ((k * e : ℕ) : ℤ) = -1 from by
          push_cast [Nat.cast_sub he1]
          ring,
        _root_.zpow_neg, zpow_one, gate_canonicalLocalResidueDataK_uniformizer_inv v R,
        ← Algebra.algebraMap_eq_smul_one]
  · rw [ite_eq_right hdvd, htail, add_zero]
    refine Finset.sum_eq_zero fun t _ => ?_
    have hne : (k : ℤ) * ((t : ℤ) + 1) - 1 - (q : ℤ) ≠ -1 := by
      intro hcontra
      have h2 : (k : ℤ) * ((t : ℤ) + 1) = (q : ℤ) := by linarith
      have h3 : k * (t + 1) = q := by exact_mod_cast h2
      exact hdvd ⟨t + 1, h3.symm⟩
    rw [res_uniformizer_zpow_eq_zero_of_ne_neg_one
      v R hne, smul_zero]
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.res_logDeriv_elementary
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem res_logDeriv_elementary
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]]
    (R : v.CanonicalLocalResidueDataK) (a : K) {k q : ℕ} (hk : 1 ≤ k) (hq : 1 ≤ q) :
    R.res (v.differentialCoeff (KaehlerDifferential.D K F
          ((1 : F)
            + algebraMap K F a * v.uniformizer ^ k))
        * ((1 : F)
            + algebraMap K F a * v.uniformizer ^ k)⁻¹
        * (v.uniformizer ^ q)⁻¹)
      = ((k : ℕ) : K) • (if k ∣ q
          then algebraMap K v.ResidueField (a * (-a) ^ (q / k - 1))
          else 0) := by
  rw [differentialCoeff_D_one_add_algebraMap_mul_pow v a k]
  have hsplit : algebraMap K F a
        * (((k : ℕ) : F) * v.uniformizer ^ (k - 1))
        * ((1 : F)
            + algebraMap K F a * v.uniformizer ^ k)⁻¹
        * (v.uniformizer ^ q)⁻¹
      = ((k : ℕ) : K) • (algebraMap K F a
          * v.uniformizer ^ (k - 1)
          * ((1 : F)
              + algebraMap K F a * v.uniformizer ^ k)⁻¹
          * (v.uniformizer ^ q)⁻¹) := by
    rw [Algebra.smul_def, map_natCast]
    ring
  rw [hsplit, map_smul, residue_geometric_series_term v R a hk hq]
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.residue_logDerivative_eq_zero_of_high_order
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem residue_logDerivative_eq_zero_of_high_order
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]]
    (hint : ∀ h : F, h ∈ v.toValuationSubring →
      v.differentialCoeff (KaehlerDifferential.D K F h) ∈ v.toValuationSubring)
    (R : v.CanonicalLocalResidueDataK)
    {σ : F} (hσ : σ ∈ v.toValuationSubring)
    {k q : ℕ} (hbig : q + 1 ≤ k) :
    R.res (v.differentialCoeff (KaehlerDifferential.D K F
          ((1 : F) + v.uniformizer ^ k * σ))
        * ((1 : F) + v.uniformizer ^ k * σ)⁻¹
        * (v.uniformizer ^ q)⁻¹) = 0
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.differential_integrand_eq_power_mul_logDerivative
Source context 19 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharFreeToolkit
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
theorem differential_integrand_eq_power_mul_logDerivative
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]]
    {w : F} (hw0 : w ≠ 0) (k : ℕ) :
    v.differentialCoeff (KaehlerDifferential.D K F
        (w * v.uniformizer))
        * ((w * v.uniformizer) ^ (k + 1))⁻¹
      = (w ^ k * v.uniformizer ^ k)⁻¹
        * ((v.uniformizer)⁻¹
            + v.differentialCoeff (KaehlerDifferential.D K F w)
                * w⁻¹)
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.res_logDeriv_elementary_cartier
Source context 20 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharPCartier
variable {p : ℕ} [hp : Fact p.Prime]
variable {K F : Type*} [Field K] [Field F] [Algebra K F] [hKp : CharP K p]
theorem res_logDeriv_elementary_cartier
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]]
    (R : v.CanonicalLocalResidueDataK) (a : K) {k n : ℕ} (hk : 1 ≤ k) (hn : 1 ≤ n) :
    R.res (v.differentialCoeff (KaehlerDifferential.D K F
          ((1 : F)
            + algebraMap K F a * v.uniformizer ^ k))
        * ((1 : F)
            + algebraMap K F a * v.uniformizer ^ k)⁻¹
        * (v.uniformizer ^ (p * n))⁻¹)
      = (R.res (v.differentialCoeff (KaehlerDifferential.D K F
          ((1 : F)
            + algebraMap K F a * v.uniformizer ^ k))
        * ((1 : F)
            + algebraMap K F a * v.uniformizer ^ k)⁻¹
        * (v.uniformizer ^ n)⁻¹)) ^ p
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.res_logDeriv_principalUnit_cartier_aux
Source context 20 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharPCartier
variable {p : ℕ} [hp : Fact p.Prime]
variable {K F : Type*} [Field K] [Field F] [Algebra K F] [hKp : CharP K p]
theorem res_logDeriv_principalUnit_cartier_aux
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]]
    (hint : ∀ h : F, h ∈ v.toValuationSubring →
      v.differentialCoeff (KaehlerDifferential.D K F h) ∈ v.toValuationSubring)
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    (R : v.CanonicalLocalResidueDataK) {n : ℕ} (hn : 1 ≤ n) :
    ∀ d k : ℕ, 1 ≤ k → p * n + 1 ≤ k + d →
      ∀ σ : F, σ ∈ v.toValuationSubring →
        R.res (v.differentialCoeff (KaehlerDifferential.D K F
              ((1 : F) + v.uniformizer ^ k * σ))
            * ((1 : F) + v.uniformizer ^ k * σ)⁻¹
            * (v.uniformizer ^ (p * n))⁻¹)
          = (R.res (v.differentialCoeff (KaehlerDifferential.D K F
              ((1 : F) + v.uniformizer ^ k * σ))
            * ((1 : F) + v.uniformizer ^ k * σ)⁻¹
            * (v.uniformizer ^ n)⁻¹)) ^ p
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.res_zpow_mul_logDeriv_cartier
Source context 20 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharPCartier
variable {p : ℕ} [hp : Fact p.Prime]
variable {K F : Type*} [Field K] [Field F] [Algebra K F] [hKp : CharP K p]
theorem res_zpow_mul_logDeriv_cartier
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]]
    (hint : ∀ h : F, h ∈ v.toValuationSubring →
      v.differentialCoeff (KaehlerDifferential.D K F h) ∈ v.toValuationSubring)
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    (R : v.CanonicalLocalResidueDataK)
    {w : F} (hw0 : w ≠ 0) (hword : v.ord w = 0) (j : ℤ) :
    R.res (v.uniformizer ^ ((p : ℤ) * j)
        * (v.differentialCoeff (KaehlerDifferential.D K F w)
            * w⁻¹))
      = (R.res (v.uniformizer ^ j
        * (v.differentialCoeff (KaehlerDifferential.D K F w)
            * w⁻¹))) ^ p
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.res_pow_mul_dlog_unit
Source context 20 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharPCartier
variable {p : ℕ} [hp : Fact p.Prime]
variable {K F : Type*} [Field K] [Field F] [Algebra K F] [hKp : CharP K p]
theorem res_pow_mul_dlog_unit
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]]
    (hint : ∀ h : F, h ∈ v.toValuationSubring →
      v.differentialCoeff (KaehlerDifferential.D K F h) ∈ v.toValuationSubring)
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    (R : v.CanonicalLocalResidueDataK)
    {w : F} (hw0 : w ≠ 0) (hword : v.ord w = 0) (f : F) :
    R.res (f ^ p * ((v.uniformizer)⁻¹
        + v.differentialCoeff (KaehlerDifferential.D K F w)
            * w⁻¹))
      = (R.res (f * ((v.uniformizer)⁻¹
        + v.differentialCoeff (KaehlerDifferential.D K F w)
            * w⁻¹))) ^ p
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.residue_power_logDerivative_unit_mul_uniformizer
Source context 21 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharPCartier
variable {p : ℕ} [hp : Fact p.Prime]
variable {K F : Type*} [Field K] [Field F] [Algebra K F] [hKp : CharP K p]
include hp hKp in
theorem residue_power_logDerivative_unit_mul_uniformizer
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]]
    (hint : ∀ h : F, h ∈ v.toValuationSubring →
      v.differentialCoeff (KaehlerDifferential.D K F h) ∈ v.toValuationSubring)
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    (R : v.CanonicalLocalResidueDataK)
    {w : F} (hw0 : w ≠ 0) (hword : v.ord w = 0) :
    ∀ n : ℕ, 1 ≤ n →
      R.res (v.differentialCoeff (KaehlerDifferential.D K F
          (w * v.uniformizer))
        * ((w * v.uniformizer) ^ (n + 1))⁻¹) = 0
AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve.res_differentialCoeff_D_mul_pow_inv_of_surj
Source context 21 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs
noncomputable section
open _root_.IsDedekindDomain
open _root_.WithZero
open _root_.Module
open _root_.IsLocalRing
open _root_.Module.IsLocalRing
open _root_.KaehlerDifferential
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve
open _root_.AlgebraicCurve
open _root_.AlgebraicCurve
section CharPCartier
variable {p : ℕ} [hp : Fact p.Prime]
variable {K F : Type*} [Field K] [Field F] [Algebra K F] [hKp : CharP K p]
include hp hKp in
theorem res_differentialCoeff_D_mul_pow_inv_of_surj
    (v : Place K F) [v.DCoordGenerates]
    [Nontrivial Ω[F⁄K]]
    (hint : ∀ h : F, h ∈ v.toValuationSubring →
      v.differentialCoeff (KaehlerDifferential.D K F h) ∈ v.toValuationSubring)
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    (π' : F) (hπ' : v.ord π' = 1)
    (R : v.CanonicalLocalResidueDataK) {n : ℕ} (hn : 1 ≤ n) :
    R.res (v.differentialCoeff (KaehlerDifferential.D K F π')
      * ((π') ^ (n + 1))⁻¹) = 0
AlgebraicCurve.Place.CanonicalLocalResidueDataK.res_differentialCoeff_D_mul_pow_inv_eq_zero_of_surjective_algebraMap
Source context 9 commands

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

@[expose] public section
section ProofImplementation
section PublicStatement
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole
open _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.ModularCurve
open ModularCurve.MilneAvAg9bRd13T2CoordIndepChar3
open ModularCurve.MilneAvAg9bRd14CubeRowCartierSliceStart
namespace AlgebraicCurve.Place.CanonicalLocalResidueDataK
open
  _root_.AlgebraicCurve
  _root_.AlgebraicCurves.Places.Proofs.LocalResidueHigherPole.AlgebraicCurve
  in
theorem res_differentialCoeff_D_mul_pow_inv_eq_zero_of_surjective_algebraMap
    {K F : Type*} [Field K] [Field F] [Algebra K F]
    (v : AlgebraicCurve.Place K F) [v.DCoordGenerates] [Nontrivial Ω[F⁄K]]
    (hsurj : Function.Surjective (algebraMap K v.ResidueField))
    (hint : ∀ h : F, h ∈ v.toValuationSubring →
      v.differentialCoeff (KaehlerDifferential.D K F h) ∈ v.toValuationSubring)
    (R : v.CanonicalLocalResidueDataK) {t : F} (ht : v.ord t = 1) {n : ℕ} (hn : 1 ≤ n) :
    R.res (v.differentialCoeff (KaehlerDifferential.D K F t) * (t ^ (n + 1))⁻¹) = 0