Module

RatFuncTraceLocalResidueFinitePlaceDivPowEqZero.lean

Nyll.AlgebraicCurves.Places.Rational.RatFuncTraceLocalResidueFinitePlaceDivPowEqZero
71 declarations indexed from sourceView source ↗

Rational Function Field trace local Residue finite Place div pow eq zero

Imports36
Imported by2

Declarations

AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.FLT.EulerDualBasis.coeff_minpolyDiv_dim_sub_one
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
section
section
open _root_.Polynomial
open _root_.Module
open _root_.Algebra
namespace FLT
namespace EulerDualBasis
variable {K L : Type*} [Field K] [Field L] [Algebra K L]
  [FiniteDimensional K L] [Algebra.IsSeparable K L]
omit [FiniteDimensional K L] [Algebra.IsSeparable K L] in
theorem coeff_minpolyDiv_dim_sub_one (pb : PowerBasis K L) :
    (minpolyDiv K pb.gen).coeff (pb.dim - 1) = 1
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.FLT.EulerDualBasis.traceDual_eq_one_div_of_val_eq
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
section
section
open _root_.Polynomial
open _root_.Module
open _root_.Algebra
namespace FLT
namespace EulerDualBasis
variable {K L : Type*} [Field K] [Field L] [Algebra K L]
  [FiniteDimensional K L] [Algebra.IsSeparable K L]
theorem traceDual_eq_one_div_of_val_eq (pb : PowerBasis K L) {j : Fin pb.dim}
    (hj : (j : ℕ) = pb.dim - 1) :
    pb.basis.traceDual j = 1 / aeval pb.gen (derivative (minpoly K pb.gen))
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.FLT.EulerDualBasis.trace_pow_div_aeval_derivative_minpoly_of_lt
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
section
section
open _root_.Polynomial
open _root_.Module
open _root_.Algebra
namespace FLT
namespace EulerDualBasis
variable {K L : Type*} [Field K] [Field L] [Algebra K L]
  [FiniteDimensional K L] [Algebra.IsSeparable K L]
theorem trace_pow_div_aeval_derivative_minpoly_of_lt (pb : PowerBasis K L) {k : ℕ}
    (hk : k < pb.dim - 1) :
    Algebra.trace K L
      (pb.gen ^ k / aeval pb.gen (derivative (minpoly K pb.gen))) = 0
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.FLT.EulerDualBasis.trace_pow_div_aeval_derivative_minpoly_self
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
section
section
open _root_.Polynomial
open _root_.Module
open _root_.Algebra
namespace FLT
namespace EulerDualBasis
variable {K L : Type*} [Field K] [Field L] [Algebra K L]
  [FiniteDimensional K L] [Algebra.IsSeparable K L]
theorem trace_pow_div_aeval_derivative_minpoly_self (pb : PowerBasis K L)
    (hd : 0 < pb.dim) :
    Algebra.trace K L
      (pb.gen ^ (pb.dim - 1) / aeval pb.gen (derivative (minpoly K pb.gen))) = 1
AlgebraicCurve.Place.ord_neg'
Source context 11 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace Place
open _root_.AlgebraicCurve.Place
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (v : Place K F)
theorem _root_.AlgebraicCurve.Place.ord_neg' (f : F) : v.ord (-f) = v.ord f
AlgebraicCurve.Place.ord_add_eq_min
Source context 12 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace Place
open _root_.AlgebraicCurve.Place
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (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.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.substPoly

Polynomial substitution into the rational function field by the selected polynomial.

Source context 12 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
def substPoly : K[X] →ₐ[K] RatFunc K
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.substPoly_apply
Source context 12 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
theorem substPoly_apply (q : K[X]) :
    substPoly K p q = algebraMap K[X] (RatFunc K) (q.comp p)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.substPoly_ne_zero
Source context 13 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
theorem substPoly_ne_zero (hp : 0 < p.natDegree) {q : K[X]} (hq : q ≠ 0) : substPoly K p q ≠ 0
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.subst

The rational-function substitution induced by a polynomial of positive degree.

Source context 13 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
def subst (hp : 0 < p.natDegree) : RatFunc K →ₐ[K] RatFunc K
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.subst_algebraMap
Source context 13 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
theorem subst_algebraMap (hp : 0 < p.natDegree) (q : K[X]) :
    subst K p hp (algebraMap K[X] (RatFunc K) q) = algebraMap K[X] (RatFunc K) (q.comp p)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.Kx

The rational function field used as the target of the polynomial-substitution tower.

Source context 13 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
def Kx (_hp : 0 < p.natDegree) : Type _
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
instance : Field (Kx K p hp)
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
instance : Algebra K (Kx K p hp)
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
instance : DecidableEq (Kx K p hp)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.toKx

The identity equivalence to the target copy of the rational function field.

Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
def toKx : RatFunc K ≃ₐ[K] Kx K p hp
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.algebraKx
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
instance algebraKx : Algebra (RatFunc K) (Kx K p hp)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.algebraMap_Kx_apply
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem algebraMap_Kx_apply (f : RatFunc K) :
    algebraMap (RatFunc K) (Kx K p hp) f = toKx K p hp (subst K p hp f)
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
instance : IsScalarTower K (RatFunc K) (Kx K p hp)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.subst_X
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem subst_X : subst K p hp (RatFunc.X : RatFunc K) = algebraMap K[X] (RatFunc K) p
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.aeval_ratFuncX
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem aeval_ratFuncX (q : K[X]) : aeval (RatFunc.X : RatFunc K) q = algebraMap K[X] (RatFunc K) q
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.gen

The variable generating the polynomial-substitution function-field extension.

Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
def gen : Kx K p hp
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.minP

The polynomial relation obtained by subtracting the base variable from the substituted polynomial.

Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
def minP : (RatFunc K)[X]
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.natDegree_minP
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
include hp in
theorem natDegree_minP : (minP K p).natDegree = p.natDegree
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.toKx_apply
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem toKx_apply (f : RatFunc K) : toKx K p hp f = (f : RatFunc K)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.aeval_gen_map
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem aeval_gen_map (q : K[X]) :
    aeval (gen K p hp) (q.map (algebraMap K (RatFunc K))) = toKx K p hp (algebraMap K[X] (RatFunc
      K) q)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.aeval_gen_minP
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem aeval_gen_minP : aeval (gen K p hp) (minP K p) = 0
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.monic_minP
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
include hp in
theorem monic_minP (hmon : p.Monic) : (minP K p).Monic
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.isIntegral_gen
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem isIntegral_gen (hmon : p.Monic) : IsIntegral (RatFunc K) (gen K p hp)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.minP_ne_zero
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
include hp in
theorem minP_ne_zero (hmon : p.Monic) : minP K p ≠ 0
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.toKx_algebraMap_mem_adjoin
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem toKx_algebraMap_mem_adjoin (q : K[X]) :
    toKx K p hp (algebraMap K[X] (RatFunc K) q) ∈ IntermediateField.adjoin (RatFunc K) {gen K p hp}
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.adjoin_gen_eq_top
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem adjoin_gen_eq_top : IntermediateField.adjoin (RatFunc K) {gen K p hp} = ⊤
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.finiteDimensional_Kx
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem finiteDimensional_Kx (hmon : p.Monic) : FiniteDimensional (RatFunc K) (Kx K p hp)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.isIntegral_Kx
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem isIntegral_Kx (hmon : p.Monic) : Algebra.IsIntegral (RatFunc K) (Kx K p hp)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.derivative_minP
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem derivative_minP : derivative (minP K p) = (derivative p).map (algebraMap K (RatFunc K))
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.transcendental_ratFuncX
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem transcendental_ratFuncX : Transcendental K (RatFunc.X : RatFunc K)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.separable_minP
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
include hp in
theorem separable_minP (hsep : p.Separable) : (minP K p).Separable
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.isSeparable_gen
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem isSeparable_gen (hsep : p.Separable) : IsSeparable (RatFunc K) (gen K p hp)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.isSeparable_Kx
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
noncomputable section
open _root_.Polynomial
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
variable (K : Type*) [Field K] (p : K[X])
variable {p} in
variable (hp : 0 < p.natDegree)
theorem isSeparable_Kx (hmon : p.Monic) (hsep : p.Separable) :
    Algebra.IsSeparable (RatFunc K) (Kx K p hp)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.hasPrincipalDivisors_Kx
Source context 12 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
instance hasPrincipalDivisors_Kx : HasPrincipalDivisors K (Kx K p hp)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.ord_finitePlace_pos_iff_dvd
Source context 13 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
theorem ord_finitePlace_pos_iff_dvd {q : K[X]} (hirr : Irreducible q) {a : K[X]} (ha : a ≠ 0) :
    0 < (finitePlace K hirr).ord (algebraMap K[X] (RatFunc K) a) ↔ q ∣ a
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.ord_finitePlace_eq_zero_iff_not_dvd
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
theorem ord_finitePlace_eq_zero_iff_not_dvd {q : K[X]} (hirr : Irreducible q) {a : K[X]} (ha : a ≠
  0) :
    (finitePlace K hirr).ord (algebraMap K[X] (RatFunc K) a) = 0 ↔ ¬ q ∣ a
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.not_dvd_comp_of_eval_zero_ne_zero
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
theorem not_dvd_comp_of_eval_zero_ne_zero {u : K[X]} (hu : u.eval 0 ≠ 0) (hpu : ¬ IsUnit p) :
    ¬ p ∣ u.comp p
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.not_isUnit_p
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
include hp in
theorem not_isUnit_p : ¬ IsUnit p
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.ord_finitePlace_subst_algebraMap
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
theorem ord_finitePlace_subst_algebraMap (hirr : Irreducible p) {q : K[X]} (hq : q ≠ 0) :
    (finitePlace K hirr).ord (subst K p hp (algebraMap K[X] (RatFunc K) q))
      = (Polynomial.rootMultiplicity 0 q : ℤ)
        * (finitePlace K hirr).ord (algebraMap K[X] (RatFunc K) p)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.ord_finitePlace_subst
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
theorem ord_finitePlace_subst (hirr : Irreducible p) (f : RatFunc K) :
    (finitePlace K hirr).ord (subst K p hp f)
      = (placeOfPoint K 0).ord f * (finitePlace K hirr).ord (algebraMap K[X] (RatFunc K) p)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.restrict_finitePlace
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
theorem restrict_finitePlace (hirr : Irreducible p) [Algebra.IsIntegral (RatFunc K) (Kx K p hp)] :
    Place.restrict (RatFunc K) (show Place K (Kx K p hp) from finitePlace K hirr) = placeOfPoint K
      0 := by
  refine Place.ext (SetLike.ext fun f => ?_)
  rw [Place.mem_restrict_iff]
  change subst K p hp f ∈ (finitePlace K hirr).toValuationSubring ↔ _
  rcases eq_or_ne f 0 with rfl | hf
  · simp only [map_zero, zero_mem]
  have hsf : subst K p hp f ≠ 0 := (map_ne_zero_iff _ (subst K p hp).toRingHom.injective).mpr hf
  have hpos : 0 < (finitePlace K hirr).ord (algebraMap K[X] (RatFunc K) p) := by
    rw [ord_finitePlace_pos_iff_dvd K hirr hirr.ne_zero]
  rw [Place.mem_iff_ord_nonneg _ hsf, Place.mem_iff_ord_nonneg _ hf, ord_finitePlace_subst K p hp
    hirr]
  constructor
  · intro h; by_contra hneg; push Not at hneg
    have : (placeOfPoint K 0).ord f * (finitePlace K hirr).ord (algebraMap K[X] (RatFunc K) p) < 0
      :=
      mul_neg_of_neg_of_pos hneg hpos
    omega
  · intro h; exact mul_nonneg h hpos.le
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.instFiniteResiduePlaceKx
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
instance instFiniteResiduePlaceKx (w : Place K (Kx K p hp)) :
    w.FiniteResidue
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.eq_finitePlace_of_ord_pos
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
variable {p} in
theorem eq_finitePlace_of_ord_pos (hirr : Irreducible p)
    {w' : Place K (RatFunc K)} (h : 0 < w'.ord (algebraMap K[X] (RatFunc K) p)) :
    w' = finitePlace K hirr
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.finitePlace_mem_fiber
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
variable {p} in
theorem finitePlace_mem_fiber (hirr : Irreducible p) [Algebra.IsIntegral (RatFunc K) (Kx K p hp)] :
    (show Place K (Kx K p hp) from finitePlace K hirr) ∈ (placeOfPoint K 0).fiber (Kx K p hp) :=
  Place.mem_fiber.mpr (restrict_finitePlace K p hp hirr)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.fiber_placeOfPoint_zero
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
variable {p} in
theorem fiber_placeOfPoint_zero (hirr : Irreducible p)
    [Algebra.IsIntegral (RatFunc K) (Kx K p hp)] :
    (placeOfPoint K 0).fiber (Kx K p hp) = {(show Place K (Kx K p hp) from finitePlace K hirr)} :=
      by
  classical
  ext w'
  rw [Finset.mem_singleton, Place.mem_fiber]
  constructor
  · intro hw'
    have hX : (placeOfPoint K 0).ord (RatFunc.X : RatFunc K) = 1 := by
      classical
      rw [← RatFunc.algebraMap_X, ord_placeOfPoint_algebraMap 0 Polynomial.X_ne_zero]
      have h := (Polynomial.rootMultiplicity_X_sub_C : Polynomial.rootMultiplicity (0 : K) (X - C
        0) = _)
      rw [map_zero, sub_zero, ite_eq_left rfl] at h
      exact_mod_cast h
    have hord : w'.ord (algebraMap (RatFunc K) (Kx K p hp) RatFunc.X)
        = (Place.ramificationIndex (F := RatFunc K) w' : ℤ) * 1 := by
      rw [Place.ord_restrict, hw', hX]
    have hpos : 0 < w'.ord (algebraMap (RatFunc K) (Kx K p hp) RatFunc.X) := by
      rw [hord, mul_one]; exact_mod_cast Place.ramificationIndex_pos (F := RatFunc K) w'
    rw [algebraMap_Kx_apply, subst_X] at hpos
    exact eq_finitePlace_of_ord_pos K hirr hpos
  · rintro rfl
    exact restrict_finitePlace K p hp hirr
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.ord_placeInfty_subst_algebraMap
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
variable {p} in
theorem ord_placeInfty_subst_algebraMap [DecidableEq (RatFunc K)] {q : K[X]} (hq : q ≠ 0) :
    (placeInfty K).ord (subst K p hp (algebraMap K[X] (RatFunc K) q))
      = (p.natDegree : ℤ) * (placeInfty K).ord (algebraMap K[X] (RatFunc K) q)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.ord_placeInfty_subst
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
variable {p} in
theorem ord_placeInfty_subst [DecidableEq (RatFunc K)] (f : RatFunc K) :
    (placeInfty K).ord (subst K p hp f) = (p.natDegree : ℤ) * (placeInfty K).ord f
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.ord_sum_of_injOn
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
variable {p} in
theorem ord_sum_of_injOn {F : Type*} [Field F] [Algebra K F] (v : Place K F) {ι : Type*} (s :
  Finset ι)
    (f : ι → F) (hf : ∀ i ∈ s, f i ≠ 0) (hinj : Set.InjOn (fun i => v.ord (f i)) s) (hs :
      s.Nonempty) :
    (∑ i ∈ s, f i) ≠ 0 ∧ v.ord (∑ i ∈ s, f i) = s.inf' hs (fun i => v.ord (f i)) := by
  classical
  induction s using Finset.induction_on with
  | empty => exact absurd hs (Finset.not_nonempty_empty)
  | @insert a s ha ih =>
    rcases s.eq_empty_or_nonempty with rfl | hsne
    · refine ⟨?_, ?_⟩
      · simpa only [Finset.insert_empty, Finset.sum_singleton] using
          hf a (Finset.mem_insert_self a ∅)
      · simp only [Finset.insert_empty, Finset.sum_singleton, Finset.inf'_singleton]
    have hf' : ∀ i ∈ s, f i ≠ 0 := fun i hi => hf i (Finset.mem_insert_of_mem hi)
    have hinj' : Set.InjOn (fun i => v.ord (f i)) s := hinj.mono (Finset.subset_insert a s)
    obtain ⟨hne, hord⟩ := ih hf' hinj' hsne
    have hfa : f a ≠ 0 := hf a (Finset.mem_insert_self a s)
    obtain ⟨j, hj, hjmin⟩ := Finset.exists_mem_eq_inf' hsne (fun i => v.ord (f i))
    have hdiff : v.ord (f a) ≠ v.ord (∑ i ∈ s, f i) := by
      rw [hord, hjmin]
      intro heq
      have := hinj (Finset.mem_insert_self a s) (Finset.mem_insert_of_mem hj) heq
      exact ha (this ▸ hj)
    rw [Finset.sum_insert ha, Finset.inf'_insert hsne]
    refine ⟨?_, ?_⟩
    · intro h0
      have : ∑ i ∈ s, f i = -f a := eq_neg_of_add_eq_zero_right h0
      rw [this, v.ord_neg'] at hdiff
      exact hdiff rfl
    · rw [v.ord_add_eq_min hfa hne hdiff, hord]
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.linearIndependent_pow_gen
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
variable {p} in
theorem linearIndependent_pow_gen :
    LinearIndependent (RatFunc K) (fun i : Fin p.natDegree => gen K p hp ^ (i : ℕ)) := by
  classical
  rw [Fintype.linearIndependent_iff]
  intro g hg
  have hsum : ∑ i : Fin p.natDegree, subst K p hp (g i) * (RatFunc.X : RatFunc K) ^ (i : ℕ) = 0 :=
    by
    have : ∀ i : Fin p.natDegree, g i • gen K p hp ^ (i : ℕ)
        = toKx K p hp (subst K p hp (g i) * (RatFunc.X : RatFunc K) ^ (i : ℕ)) := fun i => by
      rw [Algebra.smul_def, algebraMap_Kx_apply]; rfl
    simp_rw [this] at hg
    rw [← map_sum] at hg
    exact (map_eq_zero_iff _ (toKx K p hp).injective).mp hg
  by_contra hne
  push Not at hne
  obtain ⟨i0, hi0⟩ := hne
  let S : Finset (Fin p.natDegree) := Finset.univ.filter (fun i => g i ≠ 0)
  have hS : S.Nonempty := ⟨i0, Finset.mem_filter.mpr ⟨Finset.mem_univ i0, hi0⟩⟩
  have hterm : ∀ i ∈ S, subst K p hp (g i) * (RatFunc.X : RatFunc K) ^ (i : ℕ) ≠ 0 := by
    intro i hi
    have hgi : g i ≠ 0 := (Finset.mem_filter.mp hi).2
    exact mul_ne_zero ((_root_.map_ne_zero (subst K p hp)).mpr hgi)
      (pow_ne_zero _ RatFunc.X_ne_zero)
  have hordt : ∀ i ∈ S, (placeInfty K).ord (subst K p hp (g i) * (RatFunc.X : RatFunc K) ^ (i : ℕ))
      = (p.natDegree : ℤ) * (placeInfty K).ord (g i) - (i : ℕ) := by
    intro i hi
    have hgi : g i ≠ 0 := (Finset.mem_filter.mp hi).2
    rw [(placeInfty K).ord_mul ((_root_.map_ne_zero (subst K p hp)).mpr hgi)
      (pow_ne_zero _ RatFunc.X_ne_zero), ← zpow_natCast, (placeInfty K).ord_zpow,
      ord_placeInfty_subst, ord_placeInfty RatFunc.X_ne_zero, RatFunc.intDegree_X]
    ring
  have hinj : Set.InjOn (fun i => (placeInfty K).ord (subst K p hp (g i) * (RatFunc.X : RatFunc K)
    ^ (i : ℕ))) S := by
    intro i hi j hj heq
    simp only at heq
    rw [hordt i hi, hordt j hj] at heq
    have hd : ((p.natDegree : ℤ)) ∣ ((i : ℕ) : ℤ) - ((j : ℕ) : ℤ) := by
      refine ⟨(placeInfty K).ord (g i) - (placeInfty K).ord (g j), ?_⟩
      linear_combination (-1 : ℤ) * heq
    have hlt : (((i : ℕ) : ℤ) - ((j : ℕ) : ℤ)).natAbs < ((p.natDegree : ℤ)).natAbs := by
      have hi' := i.isLt; have hj' := j.isLt
      omega
    have := Int.eq_zero_of_dvd_of_natAbs_lt_natAbs hd hlt
    exact Fin.ext (by omega)
  have key := (ord_sum_of_injOn K (placeInfty K) S _ hterm hinj hS).1
  apply key
  rw [← hsum]
  refine Finset.sum_filter_of_ne (fun i _ hne => ?_)
  intro hgi
  apply hne
  rw [hgi, map_zero, zero_mul]
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.natDegree_le_finrank
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
variable {p} in
theorem natDegree_le_finrank (hmon : p.Monic) :
    p.natDegree ≤ Module.finrank (RatFunc K) (Kx K p hp)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.minpoly_gen
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
variable {p} in
variable {p} in
variable {p} in
theorem minpoly_gen (hmon : p.Monic) :
    minpoly (RatFunc K) (gen K p hp) = minP K p
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.pbGen

The power basis of the substitution extension generated by the rational function variable.

Source context 12 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
def pbGen [DecidableEq (RatFunc K)] (hmon : p.Monic) : PowerBasis (RatFunc K) (Kx K p
  hp)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.pbGen_gen
Source context 12 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
theorem pbGen_gen [DecidableEq (RatFunc K)] (hmon : p.Monic) : (pbGen K p hp hmon).gen = gen K p hp
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.pbGen_dim
Source context 12 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
theorem pbGen_dim [DecidableEq (RatFunc K)] (hmon : p.Monic) : (pbGen K p hp hmon).dim =
  p.natDegree
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.aeval_gen_derivative_minpoly
Source context 12 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
theorem aeval_gen_derivative_minpoly (hmon : p.Monic) :
    aeval (gen K p hp) (derivative (minpoly (RatFunc K) (gen K p hp)))
      = toKx K p hp (algebraMap K[X] (RatFunc K) (derivative p))
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.toKx_algebraMap_eq_sum
Source context 12 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
theorem toKx_algebraMap_eq_sum {c : K[X]} (hc : c.natDegree < p.natDegree) :
    toKx K p hp (algebraMap K[X] (RatFunc K) c)
      = ∑ k ∈ Finset.range p.natDegree, algebraMap K (RatFunc K) (c.coeff k) • gen K p hp ^ k
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.trace_mul_inv_derivative
Source context 12 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
variable (K : Type*) [Field K] (p : K[X]) (hp : 0 < p.natDegree)
theorem trace_mul_inv_derivative (hmon : p.Monic) (hsep : p.Separable)
    {c : K[X]} (hc : c.natDegree < p.natDegree) :
    Algebra.trace (RatFunc K) (Kx K p hp)
      (toKx K p hp (algebraMap K[X] (RatFunc K) c)
        * (toKx K p hp (algebraMap K[X] (RatFunc K) (derivative p)))⁻¹)
      = algebraMap K (RatFunc K) (c.coeff (p.natDegree - 1))
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.completionResidue_eq_of_sub_mem_integers
Source context 10 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
section LocalResidueCompletionC4
variable {K E : Type*} [Field K] [Field E] [Algebra K E] [HasCanonicalLocalResidueKStar K E]
theorem completionResidue_eq_of_sub_mem_integers (v : Place K E) (xh : v.adicCompletion)
    {x : E} (hx : algebraMap E v.adicCompletion x - xh ∈ v.adicCompletionIntegers) :
    kwHgfV352_localResidueCompletion v xh = v.localResidue x
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.completionResidue_algebraMap
Source context 10 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
section LocalResidueCompletionC4
variable {K E : Type*} [Field K] [Field E] [Algebra K E] [HasCanonicalLocalResidueKStar K E]
theorem completionResidue_algebraMap (v : Place K E) (x : E) :
    kwHgfV352_localResidueCompletion v (algebraMap E v.adicCompletion x)
      = v.localResidue x
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.isCurveOver_Kx
Source context 13 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
open _root_.KaehlerDifferential
variable (K : Type*) [Field K] [PerfectField K] [DecidableEq (RatFunc K)]
  [IsCurveOver K (RatFunc K)]
  [∀ v : Place K (RatFunc K), v.DCoordGenerates] [Nontrivial Ω[(RatFunc K)⁄K]]
  (p : K[X]) (hp : 0 < p.natDegree)
instance isCurveOver_Kx : IsCurveOver K (Kx K p hp)
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.nontrivialKaehler_Kx
Source context 13 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
open _root_.KaehlerDifferential
variable (K : Type*) [Field K] [PerfectField K] [DecidableEq (RatFunc K)]
  [IsCurveOver K (RatFunc K)]
  [∀ v : Place K (RatFunc K), v.DCoordGenerates] [Nontrivial Ω[(RatFunc K)⁄K]]
  (p : K[X]) (hp : 0 < p.natDegree)
instance nontrivialKaehler_Kx : Nontrivial Ω[(Kx K p hp)⁄K]
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.dCoordGenerates_Kx
Source context 13 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
open _root_.KaehlerDifferential
variable (K : Type*) [Field K] [PerfectField K] [DecidableEq (RatFunc K)]
  [IsCurveOver K (RatFunc K)]
  [∀ v : Place K (RatFunc K), v.DCoordGenerates] [Nontrivial Ω[(RatFunc K)⁄K]]
  (p : K[X]) (hp : 0 < p.natDegree)
instance dCoordGenerates_Kx (w : Place K (Kx K p hp)) : w.DCoordGenerates
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.D_ratFuncX_ne_zero
Source context 14 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
open _root_.KaehlerDifferential
variable (K : Type*) [Field K] [PerfectField K] [DecidableEq (RatFunc K)]
  [IsCurveOver K (RatFunc K)]
  [∀ v : Place K (RatFunc K), v.DCoordGenerates] [Nontrivial Ω[(RatFunc K)⁄K]]
  (p : K[X]) (hp : 0 < p.natDegree)
omit [PerfectField K] [DecidableEq (RatFunc K)] [IsCurveOver K (RatFunc K)] [∀ (v : Place K
  (RatFunc K)), v.DCoordGenerates] in
theorem D_ratFuncX_ne_zero : KaehlerDifferential.D K (RatFunc K) (RatFunc.X : RatFunc K) ≠ 0
AlgebraicCurves.Places.Rational.Proofs.FinitePlaceResidueTrace.AlgebraicCurve.P1Tower.trace_localResidue_finitePlace_div_pow_eq_zero
Source context 15 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace P1Tower
open _root_.Polynomial
open _root_.AlgebraicCurve.RationalFunctionField
open _root_.KaehlerDifferential
variable (K : Type*) [Field K] [PerfectField K] [DecidableEq (RatFunc K)]
  [IsCurveOver K (RatFunc K)]
  [∀ v : Place K (RatFunc K), v.DCoordGenerates] [Nontrivial Ω[(RatFunc K)⁄K]]
  (p : K[X]) (hp : 0 < p.natDegree)
include hp in
omit [DecidableEq (RatFunc K)] in
theorem trace_localResidue_finitePlace_div_pow_eq_zero
    (hmon : p.Monic) (hirr : Irreducible p) {c : K[X]} (hc : c.degree < p.degree) {m : ℕ} (hm : 2 ≤
      m) :
    Algebra.trace K (finitePlace K hirr).ResidueField
        ((finitePlace K hirr).localResidue
          (algebraMap K[X] (RatFunc K) c / algebraMap K[X] (RatFunc K) p ^ m
            * (finitePlace K hirr).differentialCoeff
                (KaehlerDifferential.D K (RatFunc K) (RatFunc.X : RatFunc K)))) = 0
AlgebraicCurve.RationalFunctionField.trace_localResidue_finitePlace_div_pow_eq_zero
Source context 7 commands

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

@[expose] public section
section ProofImplementation
open Polynomial
open scoped Polynomial
namespace AlgebraicCurves.Places.Rational.Proofs
namespace FinitePlaceResidueTrace
open _root_.Polynomial Polynomial in
theorem _root_.AlgebraicCurve.RationalFunctionField.trace_localResidue_finitePlace_div_pow_eq_zero
    (K : Type*) [Field K] [PerfectField K]
    [AlgebraicCurve.IsCurveOver K (RatFunc K)]
    [∀ v : AlgebraicCurve.Place K (RatFunc K), v.DCoordGenerates] [Nontrivial Ω[(RatFunc K)⁄K]]
    {p c : K[X]} (hmon : p.Monic) (hp : Irreducible p) (hc : c.degree < p.degree) {m : ℕ} (hm : 2 ≤
      m) :
    Algebra.trace K (AlgebraicCurve.RationalFunctionField.finitePlace K hp).ResidueField
        ((AlgebraicCurve.RationalFunctionField.finitePlace K hp).localResidue
          (algebraMap K[X] (RatFunc K) c / algebraMap K[X] (RatFunc K) p ^ m
            * (AlgebraicCurve.RationalFunctionField.finitePlace K hp).differentialCoeff
                (KaehlerDifferential.D K (RatFunc K) (RatFunc.X : RatFunc K)))) = 0