Module

NormalizedPolynomial.lean

Nyll.ValuedFieldTheory.Valuation.Subring.Integral.NormalizedPolynomial
40 declarations indexed from sourceView source ↗

Integral coefficients and normalized polynomials over valuation rings

Imports12
  • Nyll.SchemeTheory.RingTheory.Polynomial.MultisetLinearFactorNormalization
  • Mathlib.Algebra.BigOperators.Group.Multiset.Basic
  • Mathlib.Algebra.Polynomial.Coeff
  • Mathlib.Algebra.Polynomial.Inductions
  • Mathlib.Algebra.Polynomial.Roots
  • Mathlib.FieldTheory.IsAlgClosed.Basic
  • Mathlib.RingTheory.Algebraic.Basic
  • Mathlib.RingTheory.Valuation.ValuationSubring
  • Mathlib.Tactic.FieldSimp
  • Mathlib.Tactic.GCongr.Core
  • Mathlib.Tactic.LinearCombination
  • Mathlib.Tactic.Push
Imported by5

Declarations

ValuationSubring.NormalizedPolynomial.ACoeff

The condition that all coefficients of a polynomial belong to the valuation ring.

Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
def ACoeff (p : L[X]) : Prop
ValuationSubring.NormalizedPolynomial.ACoeff.zero
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.zero : ACoeff A (0 : L[X])
theorem

one

L48 ↗
ValuationSubring.NormalizedPolynomial.ACoeff.one
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.one : ACoeff A (1 : L[X])
theorem

C

L54 ↗
ValuationSubring.NormalizedPolynomial.ACoeff.C
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.C {a : L} (ha : a ∈ A) : ACoeff A (C a)
theorem

X

L60 ↗
ValuationSubring.NormalizedPolynomial.ACoeff.X
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.X : ACoeff A (X : L[X])
theorem

add

L66 ↗
ValuationSubring.NormalizedPolynomial.ACoeff.add
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.add {p q : L[X]} (hp : ACoeff A p) (hq : ACoeff A q) : ACoeff A (p + q)
theorem

neg

L69 ↗
ValuationSubring.NormalizedPolynomial.ACoeff.neg
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.neg {p : L[X]} (hp : ACoeff A p) : ACoeff A (-p)
theorem

sub

L72 ↗
ValuationSubring.NormalizedPolynomial.ACoeff.sub
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.sub {p q : L[X]} (hp : ACoeff A p) (hq : ACoeff A q) : ACoeff A (p - q)
theorem

mul

L75 ↗
ValuationSubring.NormalizedPolynomial.ACoeff.mul
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.mul {p q : L[X]} (hp : ACoeff A p) (hq : ACoeff A q) : ACoeff A (p * q)
ValuationSubring.NormalizedPolynomial.ACoeff.multiset_prod
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.multiset_prod {ι : Type*} (s : Multiset ι) (g : ι → L[X])
    (hg : ∀ i ∈ s, ACoeff A (g i)) : ACoeff A (s.map g).prod
ValuationSubring.NormalizedPolynomial.ACoeff.divX
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.divX {p : L[X]} (hp : ACoeff A p) : ACoeff A (divX p)
ValuationSubring.NormalizedPolynomial.ACoeff.valuation_le
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.valuation_le {p : L[X]} (hp : ACoeff A p) (j : ℕ) :
    A.valuation (p.coeff j) ≤ 1
ValuationSubring.NormalizedPolynomial.acoeff_of_valuation_le
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem acoeff_of_valuation_le {p : L[X]} (hp : ∀ j, A.valuation (p.coeff j) ≤ 1) :
    ACoeff A p
ValuationSubring.NormalizedPolynomial.ACoeff.X_pow
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.X_pow (n : ℕ) : ACoeff A ((Polynomial.X : L[X]) ^ n)
ValuationSubring.NormalizedPolynomial.ACoeff.prod
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem ACoeff.prod {ι : Type*} (s : Finset ι) (g : ι → L[X]) (hg : ∀ i ∈ s, ACoeff A (g i)) :
    ACoeff A (∏ i ∈ s, g i)
ValuationSubring.NormalizedPolynomial.IsGood

A polynomial with unit-valued constant coefficient and strictly smaller other coefficients.

Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
def IsGood (t : L[X]) : Prop
ValuationSubring.NormalizedPolynomial.IsGood.valuation_le
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem IsGood.valuation_le {t : L[X]} (ht : IsGood A t) (j : ℕ) :
    A.valuation (t.coeff j) ≤ 1
ValuationSubring.NormalizedPolynomial.IsGood.acoeff
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem IsGood.acoeff {t : L[X]} (ht : IsGood A t) : ACoeff A t
ValuationSubring.NormalizedPolynomial.IsGood.coeff_zero_ne
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem IsGood.coeff_zero_ne {t : L[X]} (ht : IsGood A t) : t.coeff 0 ≠ 0
ValuationSubring.NormalizedPolynomial.IsGood.ne_zero
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem IsGood.ne_zero {t : L[X]} (ht : IsGood A t) : t ≠ 0
ValuationSubring.NormalizedPolynomial.IsGood.one
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem IsGood.one : IsGood A (1 : L[X])
ValuationSubring.NormalizedPolynomial.IsGood.one_sub
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem IsGood.one_sub {c : L} (hc : A.valuation c < 1) :
    IsGood A (1 - Polynomial.C c * Polynomial.X : L[X])
ValuationSubring.NormalizedPolynomial.IsGood.mul
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem IsGood.mul {t s : L[X]} (ht : IsGood A t) (hs : IsGood A s) : IsGood A (t * s)
ValuationSubring.NormalizedPolynomial.IsGood.multiset_prod_one_sub
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem IsGood.multiset_prod_one_sub (rs : Multiset L) (hrs : ∀ r ∈ rs, A.valuation r < 1) :
    IsGood A (rs.map fun r => (1 - Polynomial.C r * Polynomial.X : L[X])).prod := by
  induction rs using Multiset.induction_on with
  | empty => simpa only [Multiset.map_zero, Multiset.prod_zero] using IsGood.one A
  | cons a s ih =>
    rw [Multiset.map_cons, Multiset.prod_cons]
    exact IsGood.mul A (IsGood.one_sub A (hrs a (Multiset.mem_cons_self _ _)))
      (ih fun r hr => hrs r (Multiset.mem_cons_of_mem hr))
ValuationSubring.NormalizedPolynomial.coeff_zero_multiset_prod_one_sub
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem coeff_zero_multiset_prod_one_sub (rs : Multiset L) :
    ((rs.map fun r => (1 - Polynomial.C r * Polynomial.X : L[X])).prod).coeff 0 = 1 := by
  induction rs using Multiset.induction_on with
  | empty => rw [Multiset.map_zero, Multiset.prod_zero, AddMonoidAlgebra.coeff_one_zero]
  | cons a s ih =>
    rw [Multiset.map_cons, Multiset.prod_cons, mul_coeff_zero, ih, mul_one,
      coeff_sub, AddMonoidAlgebra.coeff_one_zero, coeff_C_mul, coeff_X_zero, mul_zero, sub_zero]
ValuationSubring.NormalizedPolynomial.IsGood.valuation_eval_eq_one
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem IsGood.valuation_eval_eq_one {t : L[X]} (ht : IsGood A t) {c : L}
    (hc : A.valuation c < 1) : A.valuation (t.eval c) = 1
ValuationSubring.NormalizedPolynomial.IsGood.one_lt_valuation_of_isRoot
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem IsGood.one_lt_valuation_of_isRoot {t : L[X]} (ht : IsGood A t) {ρ : L}
    (hρ : t.IsRoot ρ) : 1 < A.valuation ρ
ValuationSubring.NormalizedPolynomial.IsGood.coeff_mem
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem IsGood.coeff_mem {t : L[X]} (ht : IsGood A t) (j : ℕ) : t.coeff j ∈ A
ValuationSubring.NormalizedPolynomial.IsGood.exists_eq_C_mul_prod
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem IsGood.exists_eq_C_mul_prod [IsAlgClosed L] {s : L[X]} (hs : IsGood A s) :
    ∃ rs : Multiset L, (∀ r ∈ rs, A.valuation r < 1) ∧
      s = C (s.coeff 0) * (rs.map fun r => (1 - C r * X : L[X])).prod := by
  classical
  have hs0 := hs.ne_zero A
  have hsplit : C s.leadingCoeff * (s.roots.map fun a => X - C a).prod = s :=
    C_leadingCoeff_mul_prod_multiset_X_sub_C IsAlgClosed.card_roots_eq_natDegree
  have hroots : ∀ ρ ∈ s.roots, 1 < A.valuation ρ := fun ρ hρ =>
    hs.one_lt_valuation_of_isRoot A ((mem_roots hs0).mp hρ)
  have hroots0 : ∀ ρ ∈ s.roots, ρ ≠ 0 := by
    intro ρ hρ h
    have hval := hroots ρ hρ
    rw [h, map_zero] at hval
    exact absurd hval (not_lt.mpr zero_le)
  refine ⟨s.roots.map fun ρ => ρ⁻¹, ?_, ?_⟩
  · intro r hr
    rw [Multiset.mem_map] at hr
    obtain ⟨ρ, hρ, rfl⟩ := hr
    have h1 := hroots ρ hρ
    rw [map_inv₀]
    exact inv_lt_one_of_one_lt₀ h1
  · set P := ((s.roots.map fun ρ => ρ⁻¹).map fun r => (1 - C r * X : L[X])).prod with hP
    have hfac : s = C (s.leadingCoeff * (s.roots.map fun ρ => -ρ).prod) * P := by
      conv_lhs => rw [← hsplit]
      rw [Polynomial.prod_X_sub_C_eq_C_mul_prod_one_sub s.roots hroots0, ← mul_assoc, ← C_mul]
    have hc0 : s.coeff 0 = s.leadingCoeff * (s.roots.map fun ρ => -ρ).prod := by
      conv_lhs => rw [hfac]
      rw [coeff_C_mul, hP, coeff_zero_multiset_prod_one_sub, mul_one]
    rw [hc0]
    exact hfac
ValuationSubring.NormalizedPolynomial.aeval_ne_zero_of_isGood
Source context 4 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem aeval_ne_zero_of_isGood {F : Type*} [Field F] [Algebra L F] {g : F}
    (hg : Transcendental L g) {t : L[X]} (ht : IsGood A t) : aeval g t ≠ 0
ValuationSubring.NormalizedPolynomial.IsLam

The condition of admitting a polynomial fraction with a good denominator at the given element.

Source context 5 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable {F : Type*} [Field F] [Algebra L F]
def IsLam (g x : F) : Prop
ValuationSubring.NormalizedPolynomial.isLam_aeval
Source context 5 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable {F : Type*} [Field F] [Algebra L F]
theorem isLam_aeval (g : F) {p : L[X]} (hp : ACoeff A p) : IsLam A g (aeval g p)
ValuationSubring.NormalizedPolynomial.isLam_algebraMap
Source context 5 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable {F : Type*} [Field F] [Algebra L F]
theorem isLam_algebraMap (g : F) {a : L} (ha : a ∈ A) : IsLam A g (algebraMap L F a)
ValuationSubring.NormalizedPolynomial.isLam_zero
Source context 5 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable {F : Type*} [Field F] [Algebra L F]
theorem isLam_zero (g : F) : IsLam A g 0
ValuationSubring.NormalizedPolynomial.isLam_one
Source context 5 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable {F : Type*} [Field F] [Algebra L F]
theorem isLam_one (g : F) : IsLam A g 1
ValuationSubring.NormalizedPolynomial.IsLam.add
Source context 5 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable {F : Type*} [Field F] [Algebra L F]
theorem IsLam.add {g x y : F} (hx : IsLam A g x) (hy : IsLam A g y) : IsLam A g (x + y)
ValuationSubring.NormalizedPolynomial.IsLam.mul
Source context 5 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable {F : Type*} [Field F] [Algebra L F]
theorem IsLam.mul {g x y : F} (hx : IsLam A g x) (hy : IsLam A g y) : IsLam A g (x * y)
ValuationSubring.NormalizedPolynomial.IsLam.mul_self
Source context 5 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable {F : Type*} [Field F] [Algebra L F]
theorem IsLam.mul_self {g x : F} (hx : IsLam A g x) : IsLam A g (g * x)
ValuationSubring.NormalizedPolynomial.IsLam.exists_eq_add_mul
Source context 5 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable {F : Type*} [Field F] [Algebra L F]
theorem IsLam.exists_eq_add_mul {g x : F} (hg : Transcendental L g) (hx : IsLam A g x) :
    ∃ a ∈ A, ∃ x', IsLam A g x' ∧ x = algebraMap L F a + g * x'
ValuationSubring.NormalizedPolynomial.IsLam.exists_mul_one_sub_eq
Source context 5 commands

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

@[expose] public section
open Polynomial
namespace ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable {F : Type*} [Field F] [Algebra L F]
theorem IsLam.exists_mul_one_sub_eq {g x : F} (hg : Transcendental L g) (hx : IsLam A g x)
    {c : L} (hc : A.valuation c < 1) :
    ∃ x', IsLam A g x' ∧ x' * (1 - algebraMap L F c * g) = x