Module

RatFuncOrdPlaceInftyEqOrdPlaceInftyAddSumOrdPlaceOfPoint.lean

Nyll.AlgebraicCurves.Places.Rational.RatFuncOrdPlaceInftyEqOrdPlaceInftyAddSumOrdPlaceOfPoint
34 declarations indexed from sourceView source ↗

Rational Function Field ord place Infty eq ord place Infty add sum ord place Of Point of

reduction

Declarations

AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.valuation_algebraMap_eq_one
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section RationalPlace
variable {K E : Type*} [Field K] [Field E] [Algebra K E]
  (A : ValuationSubring E) (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
include hKA in
theorem valuation_algebraMap_eq_one {k : K} (hk : k ≠ 0) :
    A.valuation (algebraMap K E k) = 1
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.valuation_algebraMap_le_one
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section RationalPlace
variable {K E : Type*} [Field K] [Field E] [Algebra K E]
  (A : ValuationSubring E) (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
include hKA in
theorem valuation_algebraMap_le_one (k : K) : A.valuation (algebraMap K E k) ≤ 1
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.const_unique
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section RationalPlace
variable {K E : Type*} [Field K] [Field E] [Algebra K E]
  (A : ValuationSubring E) (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
include hKA in
theorem const_unique {a : E} {k k' : K}
    (hk : A.valuation (a - algebraMap K E k) < 1) (hk' : A.valuation (a - algebraMap K E k') < 1) :
    k = k'
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.sigmaFun

The base-field representative of an element of A modulo its valuation maximal ideal.

Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section RationalPlace
variable {K E : Type*} [Field K] [Field E] [Algebra K E]
  (A : ValuationSubring E) (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
def sigmaFun (a : A) : K
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.sigmaFun_spec
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section RationalPlace
variable {K E : Type*} [Field K] [Field E] [Algebra K E]
  (A : ValuationSubring E) (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
theorem sigmaFun_spec (a : A) :
    A.valuation ((a : E) - algebraMap K E (sigmaFun A hArat a)) < 1
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.sigmaFun_eq_iff
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section RationalPlace
variable {K E : Type*} [Field K] [Field E] [Algebra K E]
  (A : ValuationSubring E) (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
include hKA in
theorem sigmaFun_eq_iff (a : A) (k : K) :
    sigmaFun A hArat a = k ↔ A.valuation ((a : E) - algebraMap K E k) < 1
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.sigma

The residue homomorphism from A to the base field supplied by rationality.

Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section RationalPlace
variable {K E : Type*} [Field K] [Field E] [Algebra K E]
  (A : ValuationSubring E) (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
def sigma : A →+* K where
  toFun := sigmaFun A hArat
  map_one' := by
    rw [sigmaFun_eq_iff A hKA hArat]
    change A.valuation ((1 : E) - algebraMap K E 1) < 1
    rw [map_one, sub_self, map_zero]
    exact zero_lt_one
  map_mul' a b := by
    rw [sigmaFun_eq_iff A hKA hArat]
    have ha := sigmaFun_spec A hArat a
    have hb := sigmaFun_spec A hArat b
    set k := sigmaFun A hArat a
    set k' := sigmaFun A hArat b
    have hid : ((a * b : A) : E) - algebraMap K E (k * k') =
        (a : E) * ((b : E) - algebraMap K E k') + algebraMap K E k' * ((a : E) - algebraMap K E k)
          := by
      simp only [MulMemClass.coe_mul, map_mul]; ring
    rw [hid]
    refine lt_of_le_of_lt (Valuation.map_add _ _ _) (max_lt ?_ ?_)
    · rw [map_mul]
      exact (mul_le_mul_left (A.valuation_le_one a) _).trans_lt (by rwa [one_mul])
    · rw [map_mul]
      exact (mul_le_mul_left (valuation_algebraMap_le_one A hKA k') _).trans_lt
        (by rwa [one_mul])
  map_zero' := by
    rw [sigmaFun_eq_iff A hKA hArat]
    change A.valuation ((0 : E) - algebraMap K E 0) < 1
    rw [map_zero, sub_self, map_zero]
    exact zero_lt_one
  map_add' a b := by
    rw [sigmaFun_eq_iff A hKA hArat]
    have ha := sigmaFun_spec A hArat a
    have hb := sigmaFun_spec A hArat b
    set k := sigmaFun A hArat a
    set k' := sigmaFun A hArat b
    have hid : ((a + b : A) : E) - algebraMap K E (k + k') =
        ((a : E) - algebraMap K E k) + ((b : E) - algebraMap K E k') := by
      simp only [AddMemClass.coe_add, map_add]; ring
    rw [hid]
    exact lt_of_le_of_lt (Valuation.map_add _ _ _) (max_lt ha hb)
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.sigma_spec
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section RationalPlace
variable {K E : Type*} [Field K] [Field E] [Algebra K E]
  (A : ValuationSubring E) (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
theorem sigma_spec (a : A) :
    A.valuation ((a : E) - algebraMap K E (sigma A hKA hArat a)) < 1
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.sigma_eq_iff
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section RationalPlace
variable {K E : Type*} [Field K] [Field E] [Algebra K E]
  (A : ValuationSubring E) (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
theorem sigma_eq_iff (a : A) (k : K) :
    sigma A hKA hArat a = k ↔ A.valuation ((a : E) - algebraMap K E k) < 1
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.ker_sigma
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section RationalPlace
variable {K E : Type*} [Field K] [Field E] [Algebra K E]
  (A : ValuationSubring E) (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
theorem ker_sigma : RingHom.ker (sigma A hKA hArat) = IsLocalRing.maximalIdeal A
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.isUnit_iff_inv_mem
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
theorem isUnit_iff_inv_mem {L : Type*} [Field L] (O : ValuationSubring L) (z : O) (hz : (z : L) ≠
  0) :
    IsUnit z ↔ (z : L)⁻¹ ∈ O
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.map_eq_zero_of_not_isUnit
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
theorem map_eq_zero_of_not_isUnit {L R : Type*} [Field L] [Semiring R] (O : ValuationSubring L)
    (ρ : O →+* R) (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O) {z : O} (hz : ¬ IsUnit z) :
    ρ z = 0
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.isUnit_of_map_ne_zero
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
theorem isUnit_of_map_ne_zero {L R : Type*} [Field L] [Semiring R] (O : ValuationSubring L)
    (ρ : O →+* R) (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O) {z : O} (hz : ρ z ≠ 0) :
    IsUnit z
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.coeff_C_inv_mul_mem
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
theorem coeff_C_inv_mul_mem {E : Type*} [Field E] (A : ValuationSubring E) (f : E[X]) (c₀ : E)
    (hmax : ∀ c ∈ f.coeffs, A.valuation c ≤ A.valuation c₀) (n : ℕ) :
    (Polynomial.C c₀⁻¹ * f).coeff n ∈ A
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.exists_normalization
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
theorem exists_normalization {E : Type*} [Field E] (A : ValuationSubring E) (f : E[X])
    (hf : f ≠ 0) :
    ∃ (c : E) (f₁ : A[X]), c ≠ 0 ∧ f = Polynomial.C c * f₁.map (algebraMap A E) ∧
      ∃ n, f₁.coeff n = 1
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.ord_placeInfty_eq_neg_intDegree
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section OrdLemmas
variable (k : Type*) [Field k]
theorem ord_placeInfty_eq_neg_intDegree [DecidableEq (RatFunc k)] {f : RatFunc k} (hf : f ≠ 0) :
    (placeInfty k).ord f = -f.intDegree
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.ord_placeInfty_algebraMap
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section OrdLemmas
variable (k : Type*) [Field k]
theorem ord_placeInfty_algebraMap [DecidableEq (RatFunc k)] {f : k[X]} (hf : f ≠ 0) :
    (placeInfty k).ord (algebraMap k[X] (RatFunc k) f) = -(f.natDegree : ℤ)
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.ord_placeOfPoint_div
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section OrdLemmas
variable (k : Type*) [Field k]
theorem ord_placeOfPoint_div (β : k) {p q : k[X]} (hp : p ≠ 0) (hq : q ≠ 0) :
    (placeOfPoint k β).ord (algebraMap k[X] (RatFunc k) p / algebraMap k[X] (RatFunc k) q) =
      (p.rootMultiplicity β : ℤ) - q.rootMultiplicity β
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.card_roots_map_eq
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Counting
variable {E : Type*} [Field E] (A : ValuationSubring E)
open Classical in
theorem card_roots_map_eq (f : A[X]) (hf : f ≠ 0) :
    Multiset.card (f.map (algebraMap A E)).roots =
      Multiset.card f.roots +
        Multiset.card ((f.map (algebraMap A E)).roots.filter (fun β => β ∉ A)) := by
  set R := (f.map (algebraMap A E)).roots with hR
  have hι : Function.Injective (algebraMap A E) := Subtype.val_injective
  have h1 : R.filter (fun β => β ∈ A) = f.roots.map (algebraMap A E) := by
    refine Multiset.ext.mpr fun x => ?_
    by_cases hx : x ∈ A
    · rw [Multiset.count_filter_of_pos hx]
      have : x = algebraMap A E ⟨x, hx⟩ := rfl
      rw [this, Multiset.count_map_eq_count' _ _ hι, Polynomial.count_roots,
        Polynomial.count_roots]
      exact (Polynomial.eq_rootMultiplicity_map hι _).symm
    · rw [Multiset.count_filter_of_neg hx, eq_comm, Multiset.count_eq_zero]
      intro hmem
      obtain ⟨a, -, ha⟩ := Multiset.mem_map.mp hmem
      exact hx (ha ▸ a.2)
  have _ := hf
  conv_lhs => rw [← Multiset.filter_add_not (fun β => β ∈ A) R]
  rw [Multiset.card_add, h1, Multiset.card_map]
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.sum_count_eq_card_filter
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Counting
variable {E : Type*} [Field E] (A : ValuationSubring E)
open Classical in
theorem sum_count_eq_card_filter (R : Multiset E) (T : Finset E)
    (hT : ∀ β ∈ R, β ∉ A → β ∈ T) (hTA : ∀ β ∈ T, β ∉ A) :
    ∑ β ∈ T, R.count β = Multiset.card (R.filter (fun β => β ∉ A)) := by
  set R' := R.filter (fun β => β ∉ A) with hR'
  have h1 : ∀ β ∈ T, R.count β = R'.count β :=
    fun β hβ => (Multiset.count_filter_of_pos (p := fun β => β ∉ A) (hTA β hβ)).symm
  rw [Finset.sum_congr rfl h1, ← Multiset.toFinset_sum_count_eq R']
  symm
  apply Finset.sum_subset
  · intro β hβ
    rw [Multiset.mem_toFinset, hR', Multiset.mem_filter] at hβ
    exact hT β hβ.1 hβ.2
  · intro β _ hβ
    rw [Multiset.mem_toFinset] at hβ
    exact Multiset.count_eq_zero.mpr hβ
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.polyK_mem
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
include hρ in
theorem polyK_mem (p : K[X]) : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.rho_polyK
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
include hρ in
theorem rho_polyK (p : K[X]) (h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O) :
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p)
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.X_mem
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
include hρ in
theorem X_mem : (RatFunc.X : RatFunc E) ∈ O
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.rho_X
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
include hρ in
theorem rho_X (h : (RatFunc.X : RatFunc E) ∈ O) :
    ρ ⟨RatFunc.X, h⟩ = algebraMap (RatFunc K) L RatFunc.X
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.constEmb

Embeds the valuation ring A as constant rational functions in O.

Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
def constEmb : A →+* O
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.coe_constEmb
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
theorem coe_constEmb (a : A) :
    ((constEmb A O hO a : O) : RatFunc E) = algebraMap E (RatFunc E) a
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.rho_constEmb
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
include hKA hker hρ in
theorem rho_constEmb (a : A) :
    ρ (constEmb A O hO a) =
      algebraMap (RatFunc K) L (algebraMap K (RatFunc K) (sigma A hKA hArat a))
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.polyEmb

Evaluates polynomials over A in O at the rational-function variable.

Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
def polyEmb : A[X] →+* O
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.coe_polyEmb
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
theorem coe_polyEmb (p₀ : A[X]) :
    ((polyEmb A O ρ hO hρ p₀ : O) : RatFunc E) =
      algebraMap E[X] (RatFunc E) (p₀.map (algebraMap A E))
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.rho_polyEmb
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
include hKA hArat hker in
theorem rho_polyEmb (p₀ : A[X]) :
    ρ (polyEmb A O ρ hO hρ p₀) =
      algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) (p₀.map (sigma A hKA hArat)))
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.map_sigma_ne_zero
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
theorem map_sigma_ne_zero (f₁ : A[X]) (h1 : ∃ n, f₁.coeff n = 1) :
    f₁.map (sigma A hKA hArat) ≠ 0
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.isUnit_polyEmb
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
include hKA hArat hker in
theorem isUnit_polyEmb (f₁ : A[X]) (h1 : ∃ n, f₁.coeff n = 1) :
    IsUnit (polyEmb A O ρ hO hρ f₁)
AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction.main
Source context 10 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
attribute [-instance]
  instNontrivialInftyValueGroup
open AlgebraicCurve AlgebraicCurve.RationalFunctionField
open scoped Polynomial
namespace DeuringRatFuncReduction
section Reduction
variable {K E L : Type*} [Field K] [Field E] [Field L] [Algebra K E] [Algebra (RatFunc K) L]
  (A : ValuationSubring E)
  (hKA : ∀ k : K, algebraMap K E k ∈ A)
  (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
  (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
  (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
  (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
  (hρ : ∀ p : K[X], ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
    ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
include hKA hArat hO hker hρ in
theorem main [IsAlgClosed E] [DecidableEq (RatFunc K)] [DecidableEq (RatFunc E)]
    (G : O) (N : RatFunc K) (hN : N ≠ 0) (hGN : ρ G = algebraMap (RatFunc K) L N)
    (S : Finset E) (hSA : ∀ β ∈ S, β ∉ A)
    (hS : ∀ β : E, β ∉ A → (placeOfPoint E β).ord (G : RatFunc E) ≠ 0 → β ∈ S) :
    (placeInfty K).ord N =
      (placeInfty E).ord (G : RatFunc E) + ∑ β ∈ S, (placeOfPoint E β).ord (G : RatFunc E)
AlgebraicCurve.RationalFunctionField.ord_placeInfty_eq_ord_placeInfty_add_sum_ord_placeOfPoint_of_reduction
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurve.RationalFunctionField
open _root_.AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction
open _root_.AlgebraicCurve _root_.AlgebraicCurve.RationalFunctionField
open scoped _root_.Polynomial
open
  _root_.AlgebraicCurves.Places.Rational.Proofs.RationalInfinityReduction.DeuringRatFuncReduction in
theorem ord_placeInfty_eq_ord_placeInfty_add_sum_ord_placeOfPoint_of_reduction
    (K E L : Type*) [Field K] [Field E] [Field L] [Algebra K E] [IsAlgClosed E]
    [DecidableEq (RatFunc K)] [DecidableEq (RatFunc E)] [Algebra (RatFunc K) L]
    (A : ValuationSubring E)
    (hKA : ∀ k : K, algebraMap K E k ∈ A)
    (hArat : ∀ a : E, a ∈ A → ∃ k : K, A.valuation (a - algebraMap K E k) < 1)
    (O : ValuationSubring (RatFunc E)) (ρ : O →+* L)
    (hO : ∀ c : E, algebraMap E (RatFunc E) c ∈ O ↔ c ∈ A)
    (hker : RingHom.ker ρ = IsLocalRing.maximalIdeal O)
    (hρ : ∀ p : K[X],
      ∃ h : algebraMap E[X] (RatFunc E) (p.map (algebraMap K E)) ∈ O,
        ρ ⟨_, h⟩ = algebraMap (RatFunc K) L (algebraMap K[X] (RatFunc K) p))
    (G : O) (N : RatFunc K) (hN : N ≠ 0) (hGN : ρ G = algebraMap (RatFunc K) L N)
    (S : Finset E) (hSA : ∀ β ∈ S, β ∉ A)
    (hS : ∀ β : E, β ∉ A → (placeOfPoint E β).ord (G : RatFunc E) ≠ 0 → β ∈ S) :
    (placeInfty K).ord N =
      (placeInfty E).ord (G : RatFunc E) + ∑ β ∈ S, (placeOfPoint E β).ord (G : RatFunc E)