Module

AevalDivEqAevalDivAddAevalInvDiv.lean

Nyll.ValuedFieldTheory.Valuation.Subring.Integral.AevalDivEqAevalDivAddAevalInvDiv
25 declarations indexed from sourceView source ↗

Valuation Subring exists aeval div eq aeval div add aeval inv div

Imports23
  • Nyll.ValuedFieldTheory.Valuation.Subring.Integral.NormalizedPolynomial
  • Nyll.SchemeTheory.RingTheory.Polynomial.MultisetLinearFactorNormalization
  • Mathlib.Algebra.BigOperators.Group.Multiset.Basic
  • Mathlib.Algebra.Order.Antidiag.Prod
  • Mathlib.Algebra.Order.GroupWithZero.Basic
  • Mathlib.Algebra.Polynomial.AlgebraMap
  • Mathlib.Algebra.Polynomial.Basic
  • Mathlib.Algebra.Polynomial.Degree.Defs
  • Mathlib.Algebra.Polynomial.Degree.Operations
  • Mathlib.Algebra.Polynomial.Eval.Defs
  • Mathlib.Algebra.Polynomial.Roots
  • Mathlib.FieldTheory.IsAlgClosed.Basic
  • Mathlib.RingTheory.Algebraic.Basic
  • Mathlib.RingTheory.Valuation.Basic
  • Mathlib.RingTheory.Valuation.ValuationSubring
  • Mathlib.Tactic.Choose
  • Mathlib.Tactic.FieldSimp
  • Mathlib.Tactic.GCongr.Core
  • Mathlib.Tactic.LinearCombination
  • Mathlib.Tactic.Push
  • Mathlib.Tactic.Ring.RingNF
  • Mathlib.Tactic.SplitIfs
  • Mathlib.Algebra.Polynomial.Inductions
Imported by2

Declarations

AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.valuation_ne_one_of_isRoot
Source context 8 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
theorem valuation_ne_one_of_isRoot {t : L[X]} {d : ℕ} (hd : A.valuation (t.coeff d) = 1)
    (ht : ∀ j, j ≠ d → A.valuation (t.coeff j) < 1) {ρ : L} (hρ : t.IsRoot ρ) :
    A.valuation ρ ≠ 1
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.exists_eq_C_mul_prod_mul_prod
Source context 9 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
theorem exists_eq_C_mul_prod_mul_prod {t : L[X]} {d : ℕ} (hd : A.valuation (t.coeff d) = 1)
    (ht : ∀ j, j ≠ d → A.valuation (t.coeff j) < 1) :
    ∃ (u : L) (sm : Multiset L) (cs : Multiset L),
      u ≠ 0 ∧ 1 ≤ A.valuation u ∧ (∀ ρ ∈ sm, A.valuation ρ < 1) ∧ (∀ c ∈ cs, A.valuation c < 1) ∧
      t = C u * (sm.map fun ρ => (X - C ρ : L[X])).prod *
        (cs.map fun c => (1 - C c * X : L[X])).prod := by
  classical
  have htd : t.coeff d ≠ 0 := by
    intro h; rw [h, map_zero] at hd; exact zero_ne_one hd
  have ht0 : t ≠ 0 := fun h => htd (by rw [h, coeff_zero])
  have hsplit : C t.leadingCoeff * (t.roots.map fun a => X - C a).prod = t :=
    C_leadingCoeff_mul_prod_multiset_X_sub_C IsAlgClosed.card_roots_eq_natDegree
  set sm := t.roots.filter fun ρ => A.valuation ρ < 1 with hsm
  set lg := t.roots.filter fun ρ => ¬ A.valuation ρ < 1 with hlg
  have hsplit2 : t.roots = sm + lg := (Multiset.filter_add_not _ _).symm
  have hlg1 : ∀ ρ ∈ lg, 1 < A.valuation ρ := by
    intro ρ hρ
    rw [hlg, Multiset.mem_filter] at hρ
    have hne := valuation_ne_one_of_isRoot A hd ht ((mem_roots ht0).mp hρ.1)
    exact lt_of_le_of_ne (not_lt.mp hρ.2) (Ne.symm hne)
  have hlg0 : ∀ ρ ∈ lg, ρ ≠ 0 := by
    intro ρ hρ h; have := hlg1 ρ hρ; rw [h, map_zero] at this
    exact absurd this (not_lt.mpr zero_le)
  set u : L := t.leadingCoeff * (lg.map fun ρ => -ρ).prod with hu
  set cs : Multiset L := lg.map fun ρ => ρ⁻¹ with hcs
  have hcs1 : ∀ c ∈ cs, A.valuation c < 1 := by
    intro c hc
    rw [hcs, Multiset.mem_map] at hc
    obtain ⟨ρ, hρ, rfl⟩ := hc
    rw [map_inv₀]
    exact inv_lt_one_of_one_lt₀ (hlg1 ρ hρ)
  have hsm1 : ∀ ρ ∈ sm, A.valuation ρ < 1 := by
    intro ρ hρ; rw [hsm, Multiset.mem_filter] at hρ; exact hρ.2
  set P : L[X] := (sm.map fun ρ => (X - C ρ : L[X])).prod *
    (cs.map fun c => (1 - C c * X : L[X])).prod with hP
  have hfac : t = C u * P := by
    conv_lhs => rw [← hsplit, hsplit2, Multiset.map_add, Multiset.prod_add,
      Polynomial.prod_X_sub_C_eq_C_mul_prod_one_sub lg hlg0]
    rw [hP, hu, hcs, C_mul]
    ring
  have hu0 : u ≠ 0 := by
    intro h; apply ht0; rw [hfac, h, C_0, zero_mul]
  have hPA : ACoeff A P := by
    apply ACoeff.mul
    · apply ACoeff.multiset_prod
      intro ρ hρ
      exact ACoeff.sub A (ACoeff.X A) (ACoeff.C A ((A.valuation_le_one_iff _).mp (hsm1 ρ hρ).le))
    · exact (IsGood.multiset_prod_one_sub A cs hcs1).acoeff A
  have hu1 : 1 ≤ A.valuation u := by
    have h1 : t.coeff d = u * P.coeff d := by
      conv_lhs => rw [hfac]
      rw [coeff_C_mul]
    have h2 : A.valuation (t.coeff d) ≤ A.valuation u * 1 := by
      rw [h1, map_mul]
      gcongr
      exact hPA.valuation_le A d
    rw [hd, mul_one] at h2
    exact h2
  exact ⟨u, sm, cs, hu0, hu1, hsm1, hcs1, by rw [hfac, hP, mul_assoc]⟩
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM

The condition of being a sum of fractions regular in the element and its inverse.

Source context 11 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
def InM (g x : F) : Prop
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.aeval_prod_one_sub
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem aeval_prod_one_sub (g : F) (rs : Multiset L) :
    aeval g ((rs.map fun r => (1 - Polynomial.C r * X : L[X])).prod) =
      (rs.map fun r => 1 - algebraMap L F r * g).prod := by
  rw [map_multiset_prod, Multiset.map_map]
  congr 1
  refine Multiset.map_congr rfl fun r _ => ?_
  simp only [Function.comp_apply, map_sub, map_one, map_mul, aeval_C, aeval_X]
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.isLam_of_mul_prod_eq
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem isLam_of_mul_prod_eq {g x : F} (rs : Multiset L) (hrs : ∀ r ∈ rs, A.valuation r < 1)
    {q : L[X]} (hq : ACoeff A q)
    (h : x * (rs.map fun r => 1 - algebraMap L F r * g).prod = aeval g q) : IsLam A g x := by
  refine ⟨q, (rs.map fun r => (1 - Polynomial.C r * X : L[X])).prod, hq,
    IsGood.multiset_prod_one_sub A rs hrs, ?_⟩
  rw [aeval_prod_one_sub]
  exact h
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.inM_symm
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem inM_symm {g x : F} : InM A g x ↔ InM A g⁻¹ x
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.of_isLam
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem InM.of_isLam {g x : F} (hx : IsLam A g x) : InM A g x
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.of_isLam_inv
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem InM.of_isLam_inv {g x : F} (hx : IsLam A g⁻¹ x) : InM A g x
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.inM_zero
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem inM_zero (g : F) : InM A g 0
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.add
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem InM.add {g x y : F} (hx : InM A g x) (hy : InM A g y) : InM A g (x + y)
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.smul
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem InM.smul {g x : F} (hx : InM A g x) {a : L} (ha : a ∈ A) : InM A g (algebraMap L F a * x)
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.sum
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem InM.sum {g : F} {ι : Type*} (s : Finset ι) (x : ι → F) (hx : ∀ i ∈ s, InM A g (x i)) :
    InM A g (∑ i ∈ s, x i)
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.mul_self
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem InM.mul_self {g x : F} (hg : Transcendental L g) (hg0 : g ≠ 0) (hx : InM A g x) :
    InM A g (g * x)
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.mul_inv_self
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem InM.mul_inv_self {g x : F} (hg : Transcendental L g) (hg0 : g ≠ 0) (hx : InM A g x) :
    InM A g (g⁻¹ * x)
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.mul_pow
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem InM.mul_pow {g x : F} (hg : Transcendental L g) (hg0 : g ≠ 0) (hx : InM A g x) (n : ℕ) :
    InM A g (g ^ n * x)
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.mul_inv_pow
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem InM.mul_inv_pow {g x : F} (hg : Transcendental L g) (hg0 : g ≠ 0) (hx : InM A g x) (n : ℕ) :
    InM A g (g⁻¹ ^ n * x)
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.mul_aeval
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem InM.mul_aeval {g x : F} (hg : Transcendental L g) (hg0 : g ≠ 0) (hx : InM A g x)
    {p : L[X]} (hp : ACoeff A p) : InM A g (aeval g p * x)
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.exists_inM_mul_one_sub_eq_inv_pow
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem exists_inM_mul_one_sub_eq_inv_pow {g : F} (hg : Transcendental L g) (hg0 : g ≠ 0)
    {c : L} (hc : A.valuation c < 1) (j : ℕ) :
    ∃ w, InM A g w ∧ w * (1 - algebraMap L F c * g) = g⁻¹ ^ j
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.exists_inM_mul_one_sub_eq_of_fac
Source context 12 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
omit [IsAlgClosed L] in
theorem exists_inM_mul_one_sub_eq_of_fac {g : F} (hg : Transcendental L g) (hg0 : g ≠ 0)
    {c : L} (hc : A.valuation c < 1) (rs : Multiset L) :
    ∀ (z : F) (q : L[X]), (∀ r ∈ rs, A.valuation r < 1) → ACoeff A q →
      z * (rs.map fun r => 1 - algebraMap L F r * g⁻¹).prod = aeval g⁻¹ q →
      ∃ z'', InM A g z'' ∧ z'' * (1 - algebraMap L F c * g) = z := by
  induction rs using Multiset.induction_on with
  | empty =>
    intro z q _ hq h
    simp only [Multiset.map_zero, Multiset.prod_zero, mul_one] at h
    choose w hw hwe using fun j => exists_inM_mul_one_sub_eq_inv_pow A hg hg0 hc j
    refine ⟨∑ j ∈ Finset.range (q.natDegree + 1), algebraMap L F (q.coeff j) * w j,
      InM.sum A _ _ fun j _ => (hw j).smul A (hq j), ?_⟩
    rw [h, aeval_eq_sum_range, Finset.sum_mul]
    refine Finset.sum_congr rfl fun j _ => ?_
    rw [mul_assoc, hwe, Algebra.smul_def]
  | cons r rs ih =>
    intro z q hrs hq h
    have hr : A.valuation r < 1 := hrs r (Multiset.mem_cons_self _ _)
    have hrs' : ∀ r' ∈ rs, A.valuation r' < 1 := fun r' hr' => hrs r' (Multiset.mem_cons_of_mem hr')
    have hzL : IsLam A g⁻¹ z := isLam_of_mul_prod_eq A (r ::ₘ rs) hrs hq h
    obtain ⟨z₁, hz₁⟩ : ∃ z₁ : F, z₁ = z * (1 - algebraMap L F r * g⁻¹) := ⟨_, rfl⟩
    have hz₁e : z₁ * (rs.map fun r => 1 - algebraMap L F r * g⁻¹).prod = aeval g⁻¹ q := by
      rw [← h, Multiset.map_cons, Multiset.prod_cons, hz₁]
      ring
    obtain ⟨z₁'', hz₁'', hz₁''e⟩ := ih z₁ q hrs' hq hz₁e
    have hrc : A.valuation (r * c) < 1 := by
      rw [map_mul]
      calc A.valuation r * A.valuation c ≤ 1 * A.valuation c := mul_le_mul_left hr.le _
        _ < 1 := by rw [one_mul]; exact hc
    have h1rc : A.valuation (1 - r * c) = 1 := Valuation.map_one_sub_of_lt _ hrc
    have h1rc0 : (1 - r * c) ≠ 0 := by
      intro h0; rw [h0, map_zero] at h1rc; exact zero_ne_one h1rc
    set Q : L := (1 - r * c)⁻¹ with hQ
    have hQA : Q ∈ A := by
      rw [← A.valuation_le_one_iff, hQ, map_inv₀, h1rc, inv_one]
    have hrQA : r * Q ∈ A := by
      rw [← A.valuation_le_one_iff, map_mul]
      calc A.valuation r * A.valuation Q ≤ 1 * 1 :=
            mul_le_mul' hr.le ((A.valuation_le_one_iff _).mpr hQA)
        _ = 1 := one_mul 1
    have hQe : algebraMap L F Q * (1 - algebraMap L F r * algebraMap L F c) = 1 := by
      rw [← map_mul, ← map_one (algebraMap L F), ← map_sub, ← map_mul, hQ,
        inv_mul_cancel₀ h1rc0]
    have hginv : g⁻¹ * g = 1 := inv_mul_cancel₀ hg0
    refine ⟨algebraMap L F Q * z₁'' + algebraMap L F (r * Q) * (g⁻¹ * z),
      (hz₁''.smul A hQA).add A ((InM.of_isLam_inv A (hzL.mul_self A)).smul A hrQA), ?_⟩
    rw [map_mul]
    rw [hz₁] at hz₁''e
    linear_combination (algebraMap L F Q) * hz₁''e
      - (algebraMap L F r * algebraMap L F Q * algebraMap L F c * z) * hginv + z * hQe
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.exists_mul_one_sub_eq
Source context 11 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
theorem InM.exists_mul_one_sub_eq {g x : F} (hg : Transcendental L g) (hg0 : g ≠ 0)
    (hx : InM A g x) {c : L} (hc : A.valuation c < 1) :
    ∃ x', InM A g x' ∧ x' * (1 - algebraMap L F c * g) = x
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.exists_mul_one_sub_inv_eq
Source context 11 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
theorem InM.exists_mul_one_sub_inv_eq {g x : F} (hg : Transcendental L g) (hg0 : g ≠ 0)
    (hx : InM A g x) {r : L} (hr : A.valuation r < 1) :
    ∃ x', InM A g x' ∧ x' * (1 - algebraMap L F r * g⁻¹) = x
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.exists_mul_prod_eq
Source context 11 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
theorem InM.exists_mul_prod_eq {g x : F} (hg : Transcendental L g) (hg0 : g ≠ 0)
    (hx : InM A g x) (cs : Multiset L) (hcs : ∀ c ∈ cs, A.valuation c < 1) :
    ∃ x', InM A g x' ∧ x' * (cs.map fun c => 1 - algebraMap L F c * g).prod = x := by
  induction cs using Multiset.induction_on with
  | empty => exact ⟨x, hx, by rw [Multiset.map_zero, Multiset.prod_zero, mul_one]⟩
  | cons c cs ih =>
    obtain ⟨x₁, hx₁, hx₁e⟩ := ih fun c' hc' => hcs c' (Multiset.mem_cons_of_mem hc')
    obtain ⟨x₂, hx₂, hx₂e⟩ := hx₁.exists_mul_one_sub_eq A hg hg0 (hcs c (Multiset.mem_cons_self _
      _))
    refine ⟨x₂, hx₂, ?_⟩
    rw [Multiset.map_cons, Multiset.prod_cons, ← mul_assoc, hx₂e, hx₁e]
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.InM.exists_mul_prod_inv_eq
Source context 11 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
theorem InM.exists_mul_prod_inv_eq {g x : F} (hg : Transcendental L g) (hg0 : g ≠ 0)
    (hx : InM A g x) (rs : Multiset L) (hrs : ∀ r ∈ rs, A.valuation r < 1) :
    ∃ x', InM A g x' ∧ x' * (rs.map fun r => 1 - algebraMap L F r * g⁻¹).prod = x := by
  have hgi : Transcendental L g⁻¹ := fun h => hg (IsAlgebraic.inv_iff.mp h)
  obtain ⟨x', hx', hx'e⟩ :=
    ((inM_symm A).mp hx).exists_mul_prod_eq A hgi (inv_ne_zero hg0) rs hrs
  exact ⟨x', (inM_symm A).mpr hx', hx'e⟩
AlgebraicCurves.Valuations.Proofs.ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div.P1aSol.inM_aeval_div
Source context 11 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
namespace P1aSol
open ValuationSubring.NormalizedPolynomial
variable {L : Type*} [Field L] (A : ValuationSubring L)
variable [IsAlgClosed L]
section Charts
variable {F : Type*} [Field F] [Algebra L F]
theorem inM_aeval_div {f : F} (hf : Transcendental L f) {p t : L[X]} (hp : ACoeff A p)
    {d : ℕ} (hd : A.valuation (t.coeff d) = 1) (ht : ∀ j, j ≠ d → A.valuation (t.coeff j) < 1) :
    InM A f (aeval f p / aeval f t)
ValuationSubring.exists_aeval_div_eq_aeval_div_add_aeval_inv_div
Source context 6 commands

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

@[expose] public section
section ProofImplementation
namespace AlgebraicCurves.Valuations.Proofs
namespace ValuationSubring_exists_aeval_div_eq_aeval_div_add_aeval_inv_div
open Polynomial
open P1aSol ValuationSubring.NormalizedPolynomial in
theorem _root_.ValuationSubring.exists_aeval_div_eq_aeval_div_add_aeval_inv_div
    {L : Type*} [Field L] [IsAlgClosed L] (A : ValuationSubring L)
    {F : Type*} [Field F] [Algebra L F] {f : F} (hf : Transcendental L f)
    (p t : L[X]) (hp : ∀ j, p.coeff j ∈ A)
    (ht : ∃ d, A.valuation (t.coeff d) = 1 ∧ ∀ j, j ≠ d → A.valuation (t.coeff j) < 1) :
    ∃ p₁ t₁ q s : L[X],
      (∀ j, p₁.coeff j ∈ A) ∧ (∀ j, q.coeff j ∈ A) ∧
      (A.valuation (t₁.coeff 0) = 1 ∧ ∀ j, j ≠ 0 → A.valuation (t₁.coeff j) < 1) ∧
      (A.valuation (s.coeff 0) = 1 ∧ ∀ j, j ≠ 0 → A.valuation (s.coeff j) < 1) ∧
      aeval f p / aeval f t = aeval f p₁ / aeval f t₁ + aeval f⁻¹ q / aeval f⁻¹ s