Module

CartierFixedness.lean

Nyll.AlgebraicCurves.Differentials.Cartier.CartierFixedness
27 declarations indexed from sourceView source ↗

Cartier Fixedness

Declarations

AlgebraicCurve.CartierLogarithmic.genericPolynomial

The universal polynomial with independently varying coefficients and degrees below the characteristic.

Source context 6 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section GenericModel
variable (ℓ : ℕ) [hℓ : Fact ℓ.Prime]
def genericPolynomial : Polynomial (MvPolynomial (Fin ℓ) ℤ)
AlgebraicCurve.CartierLogarithmic.frobeniusPolynomial

The universal polynomial with coefficient and variable exponents multiplied by the characteristic.

Source context 6 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section GenericModel
variable (ℓ : ℕ) [hℓ : Fact ℓ.Prime]
def frobeniusPolynomial : Polynomial (MvPolynomial (Fin ℓ) ℤ)
AlgebraicCurve.CartierLogarithmic.map_pow_sub_frobeniusPolynomial_eq_zero
Source context 6 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section GenericModel
variable (ℓ : ℕ) [hℓ : Fact ℓ.Prime]
theorem map_pow_sub_frobeniusPolynomial_eq_zero :
    (genericPolynomial ℓ ^ ℓ - frobeniusPolynomial ℓ).map
      (MvPolynomial.map (Int.castRingHom (ZMod ℓ))) = 0
AlgebraicCurve.CartierLogarithmic.char_dvd_coeff_pow_sub_frobeniusPolynomial
Source context 6 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section GenericModel
variable (ℓ : ℕ) [hℓ : Fact ℓ.Prime]
theorem char_dvd_coeff_pow_sub_frobeniusPolynomial (k : ℕ) :
    MvPolynomial.C ((ℓ : ℕ) : ℤ) ∣ (genericPolynomial ℓ ^ ℓ - frobeniusPolynomial ℓ).coeff k
AlgebraicCurve.CartierLogarithmic.derivative_genericPolynomial
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section GenericModel
variable (ℓ : ℕ) [hℓ : Fact ℓ.Prime]
omit hℓ in
theorem derivative_genericPolynomial :
    derivative (genericPolynomial ℓ)
      = ∑ i : Fin ℓ, C (MvPolynomial.X i * ((i : ℕ) : MvPolynomial (Fin ℓ) ℤ))
          * X ^ ((i : ℕ) - 1)
AlgebraicCurve.CartierLogarithmic.coeff_pow_mul_derivative_eq_add_char_mul
Source context 6 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section GenericModel
variable (ℓ : ℕ) [hℓ : Fact ℓ.Prime]
theorem coeff_pow_mul_derivative_eq_add_char_mul (m : ℕ) (hm : m + 1 < ℓ) :
    ∃ e : MvPolynomial (Fin ℓ) ℤ,
      (genericPolynomial ℓ ^ (ℓ - 1) * derivative (genericPolynomial ℓ)).coeff (ℓ * m + (ℓ - 1))
        = ((m + 1 : ℕ) : MvPolynomial (Fin ℓ) ℤ)
            * MvPolynomial.X (⟨m + 1, hm⟩ : Fin ℓ) ^ ℓ
          + ((ℓ : ℕ) : MvPolynomial (Fin ℓ) ℤ) * e
AlgebraicCurve.CartierLogarithmic.natDegree_pow_mul_derivative_le
Source context 6 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section GenericModel
variable (ℓ : ℕ) [hℓ : Fact ℓ.Prime]
theorem natDegree_pow_mul_derivative_le :
    (genericPolynomial ℓ ^ (ℓ - 1) * derivative (genericPolynomial ℓ)).natDegree ≤ ℓ * (ℓ - 1)
AlgebraicCurve.CartierLogarithmic.coeff_pow_mul_derivative_eq_zero
Source context 6 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section GenericModel
variable (ℓ : ℕ) [hℓ : Fact ℓ.Prime]
theorem coeff_pow_mul_derivative_eq_zero (m : ℕ) (hm : ℓ ≤ m + 1) :
    (genericPolynomial ℓ ^ (ℓ - 1) * derivative (genericPolynomial ℓ)).coeff
      (ℓ * m + (ℓ - 1)) = 0
AlgebraicCurve.CartierLogarithmic.pthPower

The characteristic power regarded as an element of the subfield of characteristic powers.

Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
def pthPower (t : F) : pthPowers F ℓ
AlgebraicCurve.CartierLogarithmic.coe_pthPower
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem coe_pthPower (t : F) : ((pthPower (ℓ := ℓ) t : pthPowers F ℓ)
    : F) = t ^ ℓ
AlgebraicCurve.CartierLogarithmic.extendCoefficients

Extend the finite coefficient vector by zero outside its index range.

Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
def extendCoefficients (v : Fin ℓ → pthPowers F ℓ) (n : ℕ) :
    pthPowers F ℓ
AlgebraicCurve.CartierLogarithmic.extendCoefficients_of_lt
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem extendCoefficients_of_lt (v : Fin ℓ → pthPowers F ℓ) {n : ℕ} (h : n < ℓ) :
    extendCoefficients v n = v ⟨n, h⟩
AlgebraicCurve.CartierLogarithmic.coefficientEval

Evaluation of the universal coefficient variables at the given characteristic-power coefficients.

Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
def coefficientEval (v : Fin ℓ → pthPowers F ℓ) :
    MvPolynomial (Fin ℓ) ℤ →+* pthPowers F ℓ
AlgebraicCurve.CartierLogarithmic.coefficientEval_X
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem coefficientEval_X (v : Fin ℓ → pthPowers F ℓ) (j : Fin ℓ) :
    coefficientEval v (MvPolynomial.X j) = v j
AlgebraicCurve.CartierLogarithmic.coefficientEvalToField

The coefficient evaluation followed by the inclusion into the ambient field.

Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
def coefficientEvalToField (v : Fin ℓ → pthPowers F ℓ) :
    MvPolynomial (Fin ℓ) ℤ →+* F
AlgebraicCurve.CartierLogarithmic.coefficientEvalToField_apply
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem coefficientEvalToField_apply (v : Fin ℓ → pthPowers F ℓ)
    (x : MvPolynomial (Fin ℓ) ℤ) :
    coefficientEvalToField v x = ((coefficientEval v x : pthPowers F ℓ) : F)
AlgebraicCurve.CartierLogarithmic.polynomialEval

Evaluation of the universal polynomial at the chosen coordinate and coefficient vector.

Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
def polynomialEval (t : F) (v : Fin ℓ → pthPowers F ℓ) :
    Polynomial (MvPolynomial (Fin ℓ) ℤ) →+* F
AlgebraicCurve.CartierLogarithmic.polynomialEval_apply
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem polynomialEval_apply (t : F) (v : Fin ℓ → pthPowers F ℓ)
    (q : Polynomial (MvPolynomial (Fin ℓ) ℤ)) :
    polynomialEval t v q = Polynomial.eval₂ (coefficientEvalToField v) t q
AlgebraicCurve.CartierLogarithmic.natCast_pow_char
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem natCast_pow_char (n : ℕ) : ((n : F)) ^ ℓ = (n : F)
AlgebraicCurve.CartierLogarithmic.polynomialEval_genericPolynomial
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem polynomialEval_genericPolynomial (t : F)
    (hsep : ∀ x : F, IsSeparable (adjoinPthPowers (ℓ := ℓ) t).toSubfield x)
    (hdeg : (minpoly (pthPowers F ℓ) t).natDegree = ℓ)
    (f : F) :
    polynomialEval t (powerCoefficients t hsep hdeg f) (genericPolynomial ℓ) = f
AlgebraicCurve.CartierLogarithmic.derivativeEval

The formal derivative evaluated at the chosen coordinate for the polynomial with the given coefficients.

Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
def derivativeEval (t : F) (v : Fin ℓ → pthPowers F ℓ) : F
AlgebraicCurve.CartierLogarithmic.polynomialEval_derivative
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem polynomialEval_derivative (t : F) (v : Fin ℓ → pthPowers F ℓ) :
    polynomialEval t v (derivative (genericPolynomial ℓ)) = derivativeEval t v
AlgebraicCurve.CartierLogarithmic.powerCoefficients_polynomialEval
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Transport
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem powerCoefficients_polynomialEval (t : F)
    (hsep : ∀ x : F, IsSeparable (adjoinPthPowers (ℓ := ℓ) t).toSubfield x)
    (hdeg : (minpoly (pthPowers F ℓ) t).natDegree = ℓ)
    (v : Fin ℓ → pthPowers F ℓ)
    (q : Polynomial (MvPolynomial (Fin ℓ) ℤ)) (N : ℕ) (hN : q.natDegree < ℓ * N) :
    powerCoefficients t hsep hdeg (polynomialEval t v q)
      = fun r : Fin ℓ => ∑ m ∈ Finset.range N,
          coefficientEval v (q.coeff (ℓ * m + (r : ℕ))) * pthPower (ℓ := ℓ) t ^ m := by
  have hpos := hℓ.out.pos
  refine powerCoefficients_unique t hsep hdeg ?_
  have h0 : polynomialEval t v q
      = ∑ k ∈ Finset.range (ℓ * N), coefficientEvalToField v (q.coeff k) * t ^ k := by
    rw [polynomialEval_apply]
    exact eval₂_eq_sum_range' (coefficientEvalToField v) hN t
  calc polynomialEval t v q
      = ∑ k ∈ Finset.range (ℓ * N), coefficientEvalToField v (q.coeff k) * t ^ k := h0
    _ = ∑ p ∈ Finset.range N ×ˢ Finset.range ℓ,
          coefficientEvalToField v (q.coeff (ℓ * p.1 + p.2)) * t ^ (ℓ * p.1 + p.2) := by
        refine Finset.sum_nbij' (fun k => (k / ℓ, k % ℓ)) (fun p => ℓ * p.1 + p.2)
          ?_ ?_ ?_ ?_ ?_
        · intro k hk
          rw [Finset.mem_range] at hk
          rw [Finset.mem_product, Finset.mem_range, Finset.mem_range]
          refine ⟨?_, Nat.mod_lt _ hpos⟩
          rw [Nat.div_lt_iff_lt_mul hpos, Nat.mul_comm N ℓ]
          exact hk
        · intro p hp
          rw [Finset.mem_product, Finset.mem_range, Finset.mem_range] at hp
          rw [Finset.mem_range]
          show ℓ * p.1 + p.2 < ℓ * N
          have h1 : p.1 + 1 ≤ N := hp.1
          have h2 : ℓ * (p.1 + 1) ≤ ℓ * N := Nat.mul_le_mul_left ℓ h1
          rw [Nat.mul_succ] at h2
          omega
        · intro k _
          exact Nat.div_add_mod k ℓ
        · intro p hp
          rw [Finset.mem_product, Finset.mem_range, Finset.mem_range] at hp
          have hd : (ℓ * p.1 + p.2) / ℓ = p.1 := by
            rw [Nat.mul_add_div hpos, Nat.div_eq_of_lt hp.2, Nat.add_zero]
          have hm : (ℓ * p.1 + p.2) % ℓ = p.2 := by
            rw [Nat.mul_add_mod, Nat.mod_eq_of_lt hp.2]
          exact Prod.ext hd hm
        · intro k _
          change coefficientEvalToField v (q.coeff k) * t ^ k
              = coefficientEvalToField v (q.coeff (ℓ * (k / ℓ) + k % ℓ))
                  * t ^ (ℓ * (k / ℓ) + k % ℓ)
          rw [Nat.div_add_mod k ℓ]
    _ = ∑ m ∈ Finset.range N, ∑ r ∈ Finset.range ℓ,
          coefficientEvalToField v (q.coeff (ℓ * m + r)) * t ^ (ℓ * m + r) :=
        Finset.sum_product _ _ _
    _ = ∑ r ∈ Finset.range ℓ, ∑ m ∈ Finset.range N,
          coefficientEvalToField v (q.coeff (ℓ * m + r)) * t ^ (ℓ * m + r) :=
        Finset.sum_comm
    _ = ∑ r ∈ Finset.range ℓ,
          (∑ m ∈ Finset.range N, coefficientEvalToField v (q.coeff (ℓ * m + r)) * (t ^ ℓ) ^ m)
            * t ^ r := by
        refine Finset.sum_congr rfl fun r _ => ?_
        rw [Finset.sum_mul]
        refine Finset.sum_congr rfl fun m _ => ?_
        rw [pow_add, pow_mul, mul_assoc]
    _ = ∑ i : Fin ℓ,
          (((fun r : Fin ℓ => ∑ m ∈ Finset.range N,
              coefficientEval v (q.coeff (ℓ * m + (r : ℕ)))
                * pthPower (ℓ := ℓ) t ^ m) i : pthPowers F ℓ) : F)
            * t ^ (i : ℕ) := by
        rw [← Fin.sum_univ_eq_sum_range (fun r =>
          (∑ m ∈ Finset.range N, coefficientEvalToField v (q.coeff (ℓ * m + r)) * (t ^ ℓ) ^ m)
            * t ^ r) ℓ]
        refine Finset.sum_congr rfl fun i _ => ?_
        congr 1
        push_cast
        refine Finset.sum_congr rfl fun m _ => ?_
        rw [coefficientEvalToField_apply, coe_pthPower]
AlgebraicCurve.CartierLogarithmic.D_eq_derivativeEval_smul
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Assembly
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem D_eq_derivativeEval_smul (t : F)
    (hsep : ∀ x : F, IsSeparable (adjoinPthPowers (ℓ := ℓ) t).toSubfield x)
    (hdeg : (minpoly (pthPowers F ℓ) t).natDegree = ℓ)
    (f : F) :
    KaehlerDifferential.D K F f
      = derivativeEval t (powerCoefficients t hsep hdeg f)
          • KaehlerDifferential.D K F t
AlgebraicCurve.CartierLogarithmic.derivativeEval_pow_char
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Assembly
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem derivativeEval_pow_char (t : F) (v : Fin ℓ → pthPowers F ℓ) :
    derivativeEval t v ^ ℓ
      = ((∑ m ∈ Finset.range (ℓ - 1),
            ((m + 1 : ℕ) : pthPowers F ℓ) * extendCoefficients v (m + 1) ^ ℓ
              * pthPower (ℓ := ℓ) t ^ m : pthPowers F ℓ) : F)
AlgebraicCurve.CartierLogarithmic.powerCoefficients_pow_mul_derivative_last
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Assembly
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem powerCoefficients_pow_mul_derivative_last (t : F)
    (hsep : ∀ x : F, IsSeparable (adjoinPthPowers (ℓ := ℓ) t).toSubfield x)
    (hdeg : (minpoly (pthPowers F ℓ) t).natDegree = ℓ)
    (v : Fin ℓ → pthPowers F ℓ) :
    powerCoefficients t hsep hdeg
        (polynomialEval t v (genericPolynomial ℓ ^ (ℓ - 1) * derivative (genericPolynomial ℓ)))
        ⟨ℓ - 1, by have := hℓ.out.pos; omega⟩
      = ∑ m ∈ Finset.range (ℓ - 1),
          ((m + 1 : ℕ) : pthPowers F ℓ) * extendCoefficients v (m + 1) ^ ℓ
            * pthPower (ℓ := ℓ) t ^ m := by
  have hpos := hℓ.out.pos
  have h2 := hℓ.out.two_le
  have hℓ1 : ℓ - 1 + 1 = ℓ := by omega
  have hmulsq : ℓ * ℓ = ℓ * (ℓ - 1) + ℓ := by
    calc ℓ * ℓ = ℓ * ((ℓ - 1) + 1) := by rw [hℓ1]
      _ = ℓ * (ℓ - 1) + ℓ := by rw [Nat.mul_succ]
  have hdeg' : (genericPolynomial ℓ ^ (ℓ - 1) * derivative (genericPolynomial ℓ)).natDegree
      < ℓ * ℓ := by
    have h := natDegree_pow_mul_derivative_le ℓ
    omega
  have ht3 := powerCoefficients_polynomialEval t hsep hdeg v
    (genericPolynomial ℓ ^ (ℓ - 1) * derivative (genericPolynomial ℓ)) ℓ hdeg'
  rw [ht3]
  change ∑ m ∈ Finset.range ℓ,
      coefficientEval v ((genericPolynomial ℓ ^ (ℓ - 1) * derivative (genericPolynomial ℓ)).coeff
        (ℓ * m + (ℓ - 1))) * pthPower (ℓ := ℓ) t ^ m = _
  have hrange : Finset.range ℓ = Finset.range ((ℓ - 1) + 1) := by rw [hℓ1]
  rw [hrange, Finset.sum_range_succ]
  have htop : (genericPolynomial ℓ ^ (ℓ - 1) * derivative (genericPolynomial ℓ)).coeff
      (ℓ * (ℓ - 1) + (ℓ - 1)) = 0 :=
    coeff_pow_mul_derivative_eq_zero ℓ (ℓ - 1) (by omega)
  rw [htop, map_zero, zero_mul, add_zero]
  refine Finset.sum_congr rfl fun m hm => ?_
  have hmlt : m + 1 < ℓ := by
    rw [Finset.mem_range] at hm
    omega
  obtain ⟨e, he⟩ := coeff_pow_mul_derivative_eq_add_char_mul ℓ m hmlt
  rw [he, map_add, map_mul, map_mul, map_natCast, map_natCast, map_pow, coefficientEval_X]
  have hl0 : ((ℓ : ℕ) : pthPowers F ℓ) = 0 := by
    have h1 : (((ℓ : ℕ) : pthPowers F ℓ) : F) = ((ℓ : ℕ) : F) := by
      norm_cast
    have hF : ((ℓ : ℕ) : F) = 0 := CharP.cast_eq_zero F ℓ
    exact ZeroMemClass.coe_eq_zero.mp (h1.trans hF)
  rw [hl0, zero_mul, add_zero, extendCoefficients_of_lt v hmlt]
AlgebraicCurve.CartierLogarithmic.cartier_dlog
Source context 7 commands

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

@[expose] public section
open Polynomial AlgebraicCurve.PthPower AlgebraicCurve.Cartier
noncomputable section
namespace AlgebraicCurve.CartierLogarithmic
section Assembly
variable {K F : Type*} [Field K] [Field F] [Algebra K F]
variable {ℓ : ℕ} [hℓ : Fact ℓ.Prime] [CharP F ℓ]
theorem cartier_dlog (t : F)
    (hdt : KaehlerDifferential.D K F t ≠ 0)
    (hspan : Submodule.span F {KaehlerDifferential.D K F t} = ⊤)
    (hsep : ∀ x : F, IsSeparable (adjoinPthPowers (ℓ := ℓ) t).toSubfield x)
    (hdeg : (minpoly (pthPowers F ℓ) t).natDegree = ℓ)
    {f : F} (hf : f ≠ 0) :
    cartier (K := K) t hdt hspan hsep hdeg (dlog K f)
      = dlog K f