Module

EtaleSplitting.lean

Nyll.SchemeTheory.RingTheory.Etale.EtaleSplitting
7 declarations indexed from sourceView source ↗

Alg Hom nonempty equiv fin of tensor Product alg Equiv pi

Finite étale splitting with prescribed rank

Use the finite split algebra supplied by Mathlib and recover the prescribed number of factors from its rank at a prime of the covering algebra.

Algebra Etale exists finite etale faithfully Flat tensor Product alg Equiv pi

Imports5
  • Mathlib.RingTheory.TensorProduct.Pi
  • Mathlib.Tactic.Push
  • Mathlib.RingTheory.TotallySplit
  • Mathlib.RingTheory.Spectrum.Prime.Basic
  • Mathlib.RingTheory.Spectrum.Prime.FreeLocus
Imported by3

Declarations

AlgebraicCurves.Foundations.Algebra.Proofs.AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi.AlgHom.CountSplit.exists_eq_evalAlgHom
Source context 10 commands

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

@[expose] public section
section AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi
universe u v w w'
open TensorProduct
namespace AlgHom
namespace CountSplit
open _root_.AlgHom
theorem exists_eq_evalAlgHom {Ω : Type*} [Field Ω] {d : ℕ} (F : (Fin d → Ω) →ₐ[Ω] Ω) :
    ∃ j : Fin d, F = Pi.evalAlgHom Ω (fun _ => Ω) j := by
  classical
  have hidem : ∀ j, F (Pi.single j 1) = 0 ∨ F (Pi.single j 1) = 1 := fun j => by
    have h : F (Pi.single j 1) * F (Pi.single j 1) = F (Pi.single j 1) := by
      rw [← map_mul]
      congr 1
      ext k
      by_cases hk : k = j
      · simp only [hk, Pi.mul_apply, Pi.single_eq_same, mul_one]
      · simp only [Pi.mul_apply, ne_eq, hk, not_false_eq_true, Pi.single_eq_of_ne, mul_zero]
    rcases mul_eq_zero.mp
      (by rw [mul_sub, mul_one, h, sub_self] : F (Pi.single j 1) * (F (Pi.single j 1) - 1) = 0)
      with h0 | h1
    · exact Or.inl h0
    · exact Or.inr (sub_eq_zero.mp h1)
  have hone : (∑ j, (Pi.single j (1 : Ω) : Fin d → Ω)) = 1 := by
    ext l; simp only [Finset.sum_apply, Pi.single_apply, Finset.sum_ite_eq, Finset.mem_univ,
      ↓reduceIte, Pi.one_apply]
  have hsum : ∑ j, F (Pi.single j 1) = 1 := by
    rw [← map_sum, hone, map_one]
  obtain ⟨j, hj⟩ : ∃ j, F (Pi.single j 1) = 1 := by
    by_contra h
    push Not at h
    have : ∑ j, F (Pi.single j (1 : Ω)) = 0 := Finset.sum_eq_zero fun j _ => (hidem
      j).resolve_right (h j)
    rw [this] at hsum
    exact zero_ne_one hsum
  refine ⟨j, ?_⟩
  ext x
  have horth : ∀ k, k ≠ j → F (Pi.single k 1) = 0 := fun k hk => by
    have h0 : (Pi.single k (1 : Ω) : Fin d → Ω) * Pi.single j 1 = 0 := by
      rw [← Pi.single_mul_left, Pi.single_eq_of_ne hk, mul_zero, Pi.single_zero]
    have := congrArg F h0
    rw [map_mul, hj, mul_one, map_zero] at this
    exact this
  have hx : x = ∑ k, x k • (Pi.single k (1 : Ω) : Fin d → Ω) := by
    ext l; simp only [Finset.sum_apply, Pi.smul_apply, Pi.single_apply, smul_eq_mul, mul_ite,
      mul_one, mul_zero, Finset.sum_ite_eq, Finset.mem_univ, ↓reduceIte]
  rw [Pi.evalAlgHom_apply, hx, map_sum]
  simp only [map_smul, Finset.sum_apply, Pi.smul_apply, smul_eq_mul]
  rw [Finset.sum_eq_single j (fun k _ hk =>
    by rw [horth k hk, mul_zero]) (fun h => absurd (Finset.mem_univ j) h),
    Finset.sum_eq_single j (fun k _ hk => by simp only [ne_eq, hk, not_false_eq_true,
      Pi.single_eq_of_ne', mul_zero]) (fun h => absurd (Finset.mem_univ j) h)]
  simp only [hj, mul_one, Pi.single_eq_same]
AlgebraicCurves.Foundations.Algebra.Proofs.AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi.AlgHom.CountSplit.equivFinOfPi

Identify an algebra homomorphism from a finite product of fields with its evaluation index.

Source context 10 commands

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

@[expose] public section
section AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi
universe u v w w'
open TensorProduct
namespace AlgHom
namespace CountSplit
open _root_.AlgHom
def equivFinOfPi (Ω : Type*) [Field Ω] (d : ℕ) : ((Fin d → Ω) →ₐ[Ω] Ω) ≃ Fin d
AlgebraicCurves.Foundations.Algebra.Proofs.AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi.AlgHom.CountSplit.equivTensor

The scalar-extension equivalence between algebra homomorphisms to Ω.

Source context 10 commands

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

@[expose] public section
section AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi
universe u v w w'
open TensorProduct
namespace AlgHom
namespace CountSplit
open _root_.AlgHom
def equivTensor (A : Type u) [CommRing A] (B : Type w) [CommRing B] [Algebra A B]
    (Ω : Type w') [Field Ω] [Algebra A Ω] : (B →ₐ[A] Ω) ≃ (Ω ⊗[A] B →ₐ[Ω] Ω) where
  toFun ψ := Algebra.TensorProduct.lift (AlgHom.id Ω Ω) ψ (fun _ _ => Commute.all _ _)
  invFun F := (F.restrictScalars A).comp Algebra.TensorProduct.includeRight
  left_inv ψ := by
    apply AlgHom.ext
    intro b
    change Algebra.TensorProduct.lift (AlgHom.id Ω Ω) ψ (fun _ _ => Commute.all _ _)
      ((1 : Ω) ⊗ₜ[A] b) = ψ b
    rw [Algebra.TensorProduct.lift_tmul, AlgHom.id_apply, one_mul]
  right_inv F := by
    apply Algebra.TensorProduct.ext'
    intro x b
    have hx : x ⊗ₜ[A] b = x • ((1 : Ω) ⊗ₜ[A] b) :=
      by rw [TensorProduct.smul_tmul', smul_eq_mul, mul_one]
    rw [Algebra.TensorProduct.lift_tmul]
    change x * F ((1 : Ω) ⊗ₜ[A] b) = F (x ⊗ₜ[A] b)
    rw [hx, map_smul, smul_eq_mul]
AlgebraicCurves.Foundations.Algebra.Proofs.AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi.AlgHom.CountSplit.tensorEquivPi

The product decomposition after base change along the homomorphism to Ω.

Source context 10 commands

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

@[expose] public section
section AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi
universe u v w w'
open TensorProduct
namespace AlgHom
namespace CountSplit
open _root_.AlgHom
def tensorEquivPi {A : Type u} [CommRing A] {R' : Type v} [CommRing R'] [Algebra A R']
    {B : Type w} [CommRing B] [Algebra A B] {d : ℕ} (φ : R' ⊗[A] B ≃ₐ[R'] (Fin d → R'))
    {Ω : Type w'} [Field Ω] [Algebra A Ω] (t₀ : R' →ₐ[A] Ω) :
    Ω ⊗[A] B ≃ₐ[Ω] (Fin d → Ω)
AlgHom.nonempty_equiv_fin_of_tensorProduct_algEquiv_pi
Source context 8 commands

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

@[expose] public section
section AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace AlgHom_nonempty_equiv_fin_of_tensorProduct_algEquiv_pi
universe u v w w'
open TensorProduct
open AlgHom.CountSplit in
theorem _root_.AlgHom.nonempty_equiv_fin_of_tensorProduct_algEquiv_pi
    {A : Type u} [CommRing A] {R' : Type v} [CommRing R'] [Algebra A R']
    {B : Type w} [CommRing B] [Algebra A B] {d : ℕ}
    (φ : R' ⊗[A] B ≃ₐ[R'] (Fin d → R'))
    {Ω : Type w'} [Field Ω] [Algebra A Ω] (t₀ : R' →ₐ[A] Ω) :
    Nonempty ((B →ₐ[A] Ω) ≃ Fin d)
Algebra.Etale.exists_finite_etale_faithfullyFlat_tensorProduct_algEquiv_pi_of_rankAtStalk_eq
Source context 5 commands

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

@[expose] public section
section Algebra_Etale_exists_finite_etale_faithfullyFlat_tensorProduct_algEquiv_pi_of_rankAtStalk_eq
open scoped TensorProduct
namespace Algebra.Etale
universe u
theorem exists_finite_etale_faithfullyFlat_tensorProduct_algEquiv_pi_of_rankAtStalk_eq
    (R : Type u) [CommRing R] (B : Type u) [CommRing B] [Algebra R B]
    [Module.Finite R B] [Algebra.Etale R B]
    (n : ℕ) (hn : ∀ p : PrimeSpectrum R, Module.rankAtStalk (R := R) B p = n) :
    ∃ (R' : Type u) (_ : CommRing R') (_ : Algebra R R') (_ : Module.Finite R R')
      (_ : Algebra.Etale R R') (_ : Module.FaithfullyFlat R R'),
      Nonempty ((R' ⊗[R] B) ≃ₐ[R'] (Fin n → R'))
Algebra.Etale.exists_finite_etale_faithfullyFlat_tensorProduct_algEquiv_pi
Source context 7 commands

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

@[expose] public section
section Algebra_Etale_exists_finite_etale_faithfullyFlat_tensorProduct_algEquiv_pi
section ProofImplementation
namespace AlgebraicCurves.Foundations.Algebra.Proofs
namespace Algebra_Etale_exists_finite_etale_faithfullyFlat_tensorProduct_algEquiv_pi
open scoped TensorProduct
universe u
theorem _root_.Algebra.Etale.exists_finite_etale_faithfullyFlat_tensorProduct_algEquiv_pi
    (R : Type u) [CommRing R] [IsLocalRing R] [IsNoetherianRing R]
    (B : Type u) [CommRing B] [Algebra R B] [Module.Finite R B] [Algebra.Etale R B] :
    ∃ (R' : Type u) (_ : CommRing R') (_ : Algebra R R') (_ : Module.Finite R R')
      (_ : Algebra.Etale R R') (_ : Module.FaithfullyFlat R R') (_ : IsNoetherianRing R'),
      Nonempty ((R' ⊗[R] B) ≃ₐ[R'] (Fin (Module.finrank R B) → R'))