Module

NegLeOrdTraceLeOrdSubPred.lean

Nyll.AlgebraicCurves.Places.NormTrace.NegLeOrdTraceLeOrdSubPred
11 declarations indexed from sourceView source ↗

Place neg le ord trace of forall le ord sub pred

Declarations

Algebra.trace_mem_of_mul_differentIdeal_subset
Source context 7 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred
open _root_.AlgebraicCurve
section Generic
open nonZeroDivisors
open scoped Algebra in
theorem _root_.Algebra.trace_mem_of_mul_differentIdeal_subset
    {A K L B : Type*} [CommRing A] [Field K] [CommRing B] [Field L]
    [Algebra A K] [Algebra B L] [Algebra A B] [Algebra K L] [Algebra A L]
    [IsScalarTower A K L] [IsScalarTower A B L] [IsDomain A] [IsFractionRing A K]
    [FiniteDimensional K L] [Algebra.IsSeparable K L] [IsIntegralClosure B A L]
    [IsFractionRing B L] [IsIntegrallyClosed A] [IsDedekindDomain B] [Module.IsTorsionFree A B]
    (h : L) (H : ∀ d ∈ differentIdeal A B, ∃ c : B, algebraMap B L c = h * algebraMap B L d) :
    ∃ a : A, algebraMap A K a = Algebra.trace K L h
AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred.mem_pow_ramificationIdx_sub_one_of_mem_differentIdeal
Source context 6 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred
open _root_.AlgebraicCurve
section Generic
open nonZeroDivisors
theorem mem_pow_ramificationIdx_sub_one_of_mem_differentIdeal
    {A K L B : Type*} [CommRing A] [Field K] [CommRing B] [Field L]
    [Algebra A K] [Algebra B L] [Algebra A B] [Algebra K L] [Algebra A L]
    [IsScalarTower A K L] [IsScalarTower A B L] [IsFractionRing A K]
    [FiniteDimensional K L] [Algebra.IsSeparable K L] [IsIntegralClosure B A L]
    [IsFractionRing B L] [IsDedekindDomain A] [IsDedekindDomain B] [Module.IsTorsionFree A B]
    [Module.Finite A B]
    {p : Ideal A} [p.IsMaximal] (hp : p ≠ ⊥) (P : Ideal B)
    {d : B} (hd : d ∈ differentIdeal A B) :
    d ∈ P ^ (p.ramificationIdx' P - 1)
AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred.AlgebraicCurve.Place.TraceCodiff.eq_ord_of_addHom_of_nonneg_iff
Source context 15 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred
open _root_.AlgebraicCurve
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace Place
open _root_.AlgebraicCurve.Place
namespace TraceCodiff
open _root_.AlgebraicCurve.Place
open _root_.AlgebraicCurve
section Uniqueness
variable {K F : Type*} [Field K] [Field F] [Algebra K F] (w : Place K F)
theorem eq_ord_of_addHom_of_nonneg_iff (φ : F → ℤ)
    (hmul : ∀ x y, x ≠ 0 → y ≠ 0 → φ (x * y) = φ x + φ y)
    (hone : ∃ t, t ≠ 0 ∧ φ t = 1)
    (hiff : ∀ x, x ≠ 0 → (0 ≤ φ x ↔ x ∈ w.toValuationSubring))
    {x : F} (hx : x ≠ 0) : φ x = w.ord x
AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred.AlgebraicCurve.Place.TraceCodiff.sub_one_le_ord_of_mem_differentIdeal
Source context 16 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred
open _root_.AlgebraicCurve
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace Place
open _root_.AlgebraicCurve.Place
namespace TraceCodiff
open _root_.AlgebraicCurve.Place
open _root_.AlgebraicCurve
variable {K F F' : Type*} [Field K] [Field F] [Field F']
  [Algebra K F] [Algebra K F'] [Algebra F F'] [IsScalarTower K F F']
  [FiniteDimensional F F'] [Algebra.IsSeparable F F']
section Core
variable {v : Place K F}
theorem sub_one_le_ord_of_mem_differentIdeal {w : Place K F'} (hw : w.restrict F = v)
    {d : integralClosureAt F' v}
    (hd : d ∈ differentIdeal v.toValuationSubring (integralClosureAt F' v)) (hd0 : d ≠ 0) :
    (w.ramificationIndex F : ℤ) - 1 ≤ w.ord (algebraMap (integralClosureAt F' v) F' d)
AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred.AlgebraicCurve.Place.TraceCodiff.exists_integralClosureAt_eq_of_forall_mem
Source context 16 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred
open _root_.AlgebraicCurve
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace Place
open _root_.AlgebraicCurve.Place
namespace TraceCodiff
open _root_.AlgebraicCurve.Place
open _root_.AlgebraicCurve
variable {K F F' : Type*} [Field K] [Field F] [Field F']
  [Algebra K F] [Algebra K F'] [Algebra F F'] [IsScalarTower K F F']
  [FiniteDimensional F F'] [Algebra.IsSeparable F F']
section Core
variable {v : Place K F}
theorem exists_integralClosureAt_eq_of_forall_mem (v : Place K F) {f : F'}
    (hf : ∀ w : Place K F', w.restrict F = v → f ∈ w.toValuationSubring) :
    ∃ c : integralClosureAt F' v, algebraMap (integralClosureAt F' v) F' c = f
AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred.AlgebraicCurve.Place.TraceCodiff.trace_mem_of_forall_neg_sub_one_le_ord
Source context 16 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred
open _root_.AlgebraicCurve
noncomputable section
open IsDedekindDomain WithZero IsLocalRing
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace Place
open _root_.AlgebraicCurve.Place
namespace TraceCodiff
open _root_.AlgebraicCurve.Place
open _root_.AlgebraicCurve
variable {K F F' : Type*} [Field K] [Field F] [Field F']
  [Algebra K F] [Algebra K F'] [Algebra F F'] [IsScalarTower K F F']
  [FiniteDimensional F F'] [Algebra.IsSeparable F F']
section Core
variable {v : Place K F}
theorem trace_mem_of_forall_neg_sub_one_le_ord (v : Place K F) (h : F')
    (hh : ∀ w : Place K F', w.restrict F = v → -((w.ramificationIndex F : ℤ) - 1) ≤ w.ord h) :
    Algebra.trace F F' h ∈ v.toValuationSubring
AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred.AlgebraicCurve.TraceCodiffAlong.exists_ord_eq_one
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred
open _root_.AlgebraicCurve
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace TraceCodiffAlong
open _root_.AlgebraicCurve
variable {k F F' : Type*} [Field k] [Field F] [Field F'] [Algebra k F] [Algebra k F']
theorem exists_ord_eq_one (x : Place k F) : ∃ π : F, x.ord π = 1
AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred.AlgebraicCurve.TraceCodiffAlong.ord_nonneg_of_mem'
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred
open _root_.AlgebraicCurve
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace TraceCodiffAlong
open _root_.AlgebraicCurve
variable {k F F' : Type*} [Field k] [Field F] [Field F'] [Algebra k F] [Algebra k F']
theorem ord_nonneg_of_mem' (v : Place k F) {f : F} (hf : f ∈ v.toValuationSubring) : 0 ≤ v.ord f
AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred.AlgebraicCurve.TraceCodiffAlong.ord_pow'
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred
open _root_.AlgebraicCurve
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace TraceCodiffAlong
open _root_.AlgebraicCurve
variable {k F F' : Type*} [Field k] [Field F] [Field F'] [Algebra k F] [Algebra k F']
theorem ord_pow' (v : Place k F) (f : F) (n : ℕ) : v.ord (f ^ n) = n * v.ord f
AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred.AlgebraicCurve.TraceCodiffAlong.main
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred
open _root_.AlgebraicCurve
namespace AlgebraicCurve
open _root_.AlgebraicCurve
namespace TraceCodiffAlong
open _root_.AlgebraicCurve
variable {k F F' : Type*} [Field k] [Field F] [Field F'] [Algebra k F] [Algebra k F']
theorem main (φ : F →ₐ[k] F') (hφ : φ.toRingHom.IsIntegral) (hfin : FiniteAlong k φ)
    (hsep : SeparableAlong k φ)
    (x : Place k F) (S : Finset (Place k F')) (hS : ∀ y : Place k F', y ∈ S ↔ y.restrictAlong φ hφ
      = x)
    (a : ℤ) (ha : 0 ≤ a) (g : F')
    (hg : ∀ y ∈ S, -((Place.ramificationIndexAlong φ y : ℤ) * a)
      - ((Place.ramificationIndexAlong φ y : ℤ) - 1) ≤ y.ord g) :
    letI := AlgebraicCurve.algebraAlong φ;
    -a ≤ x.ord (Algebra.trace F F' g) := by
  let _ := AlgebraicCurve.algebraAlong φ
  have _ := isScalarTower_along φ
  have _ := isIntegral_along φ hφ
  have _ : FiniteDimensional F F' := hfin
  have _ : Algebra.IsSeparable F F' := hsep
  change -a ≤ x.ord (Algebra.trace F F' g)
  by_cases hT0 : Algebra.trace F F' g = 0
  · rw [hT0, Place.ord_zero]; linarith
  have hg0 : g ≠ 0 := by
    intro h; apply hT0; rw [h, map_zero]
  obtain ⟨π, hπ⟩ := exists_ord_eq_one x
  have hπ0 : π ≠ 0 := by
    intro h; rw [h, Place.ord_zero] at hπ; exact zero_ne_one hπ
  obtain ⟨n, rfl⟩ := Int.eq_ofNat_of_zero_le ha
  set u : F' := φ (π ^ n) * g with hu
  have hφπ : φ (π ^ n) ≠ 0 := by
    rw [map_pow]; exact pow_ne_zero _ ((map_ne_zero φ).mpr hπ0)
  have hu0 : u ≠ 0 := mul_ne_zero hφπ hg0
  have hbound : ∀ y : Place k F', y.restrict F = x →
      -((y.ramificationIndex F : ℤ) - 1) ≤ y.ord u := by
    intro y hy
    have hy' : y.restrictAlong φ hφ = x := hy
    have hyS : y ∈ S := (hS y).mpr hy'
    have he : Place.ramificationIndexAlong φ y = y.ramificationIndex F := rfl
    rw [hu, y.ord_mul hφπ hg0, Place.ord_restrictAlong φ hφ y (π ^ n), hy', ord_pow', hπ, mul_one,
      he]
    have := hg y hyS
    rw [he] at this
    linarith
  have htr : Algebra.trace F F' u ∈ x.toValuationSubring :=
    Place.TraceCodiff.trace_mem_of_forall_neg_sub_one_le_ord x u hbound
  have hTu : Algebra.trace F F' u = π ^ n * Algebra.trace F F' g := by
    have e1 : u = (π ^ n) • g := by rw [hu, Algebra.smul_def]; rfl
    rw [e1, map_smul, smul_eq_mul]
  rw [hTu] at htr
  have h0 := ord_nonneg_of_mem' x htr
  rw [x.ord_mul (pow_ne_zero _ hπ0) hT0, ord_pow', hπ, mul_one] at h0
  linarith
AlgebraicCurve.Place.neg_le_ord_trace_of_forall_le_ord_sub_pred
Source context 4 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Places.Proofs.Place_neg_le_ord_trace_of_forall_le_ord_sub_pred
open _root_.AlgebraicCurve
theorem _root_.AlgebraicCurve.Place.neg_le_ord_trace_of_forall_le_ord_sub_pred
    {k F F' : Type*} [Field k] [Field F] [Field F'] [Algebra k F] [Algebra k F'] [IsAlgClosed k]
    [IsCurveOver k F] [IsCurveOver k F']
    (φ : F →ₐ[k] F') (hφ : φ.toRingHom.IsIntegral) (hfin : FiniteAlong k φ) (hsep : SeparableAlong
      k φ)
    (x : Place k F) (S : Finset (Place k F')) (hS : ∀ y : Place k F', y ∈ S ↔ y.restrictAlong φ hφ
      = x)
    (a : ℤ) (ha : 0 ≤ a) (g : F')
    (hg : ∀ y ∈ S, -((Place.ramificationIndexAlong φ y : ℤ) * a) - ((Place.ramificationIndexAlong φ
      y : ℤ) - 1) ≤ y.ord g) :
    letI := AlgebraicCurve.algebraAlong φ;
    -a ≤ x.ord (Algebra.trace F F' g) :=
  AlgebraicCurve.TraceCodiffAlong.main φ hφ hfin hsep x S hS a ha g hg