Module

ClosedImmersionFinitePresentationFactorsIffMem.lean

Nyll.AlgebraicCurves.Hilbert.ClosedImmersionFinitePresentationFactorsIffMem
6 declarations indexed from sourceView source ↗

exists is Closed Immersion locally Of Finite Presentation forall factors iff forall mem of

is Homogeneous of le of fg

Declarations

AlgebraicCurves.Hilbert.Proofs.HilbertClosedImmersion.P2Aux.exists_le_degree_eq
Source context 7 commands

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

section ProofImplementation
open _root_.AlgebraicGeometry (
  exists_isClosedImmersion_locallyOfFinitePresentation_forall_factors_iff_of_fg_idealCut)
namespace AlgebraicCurves.Hilbert.Proofs.HilbertClosedImmersion
open MvPolynomial CategoryTheory CategoryTheory.Limits AlgebraicGeometry
  AlgebraicGeometry.HilbertFunctor NeronModelInfra TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
namespace P2Aux
variable {σ : Type} {R : Type} [CommRing R]
theorem exists_le_degree_eq (μ : σ →₀ ℕ) : ∀ r : ℕ, r ≤ Finsupp.degree μ → ∃ ν : σ →₀ ℕ, ν ≤ μ ∧
  Finsupp.degree ν = r
AlgebraicCurves.Hilbert.Proofs.HilbertClosedImmersion.P2Aux.homogeneousComponent_mul_left
Source context 7 commands

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

section ProofImplementation
open _root_.AlgebraicGeometry (
  exists_isClosedImmersion_locallyOfFinitePresentation_forall_factors_iff_of_fg_idealCut)
namespace AlgebraicCurves.Hilbert.Proofs.HilbertClosedImmersion
open MvPolynomial CategoryTheory CategoryTheory.Limits AlgebraicGeometry
  AlgebraicGeometry.HilbertFunctor NeronModelInfra TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
namespace P2Aux
variable {σ : Type} {R : Type} [CommRing R]
theorem homogeneousComponent_mul_left {p : MvPolynomial σ R} {k : ℕ} (hp :
  p.IsHomogeneous k)
    (q : MvPolynomial σ R) (m : ℕ) :
    homogeneousComponent m (p * q) = if k ≤ m then p * homogeneousComponent (m - k) q else 0 := by
  classical
  ext μ
  rw [coeff_homogeneousComponent]
  have hpdeg : ∀ α : σ →₀ ℕ, p.coeff α ≠ 0 → Finsupp.degree α = k := fun α hα => by
    by_contra h
    exact hα (hp.coeff_eq_zero h)
  split_ifs with hμ hk
  · rw [coeff_mul, coeff_mul]
    refine Finset.sum_congr rfl fun x hx => ?_
    rw [Finset.HasAntidiagonal.mem_antidiagonal] at hx
    rw [coeff_homogeneousComponent]
    by_cases hα : p.coeff x.1 = 0
    · rw [hα, zero_mul, zero_mul]
    · have h1 := hpdeg x.1 hα
      have h2 : Finsupp.degree x.2 = m - k := by
        have := congrArg Finsupp.degree hx
        rw [map_add, h1, hμ] at this
        omega
      rw [ite_eq_left h2]
  · rw [AddMonoidAlgebra.coeff_zero, coeff_mul]
    refine Finset.sum_eq_zero fun x hx => ?_
    rw [Finset.HasAntidiagonal.mem_antidiagonal] at hx
    by_cases hα : p.coeff x.1 = 0
    · rw [hα, zero_mul]
    · exfalso
      have h1 := hpdeg x.1 hα
      have := congrArg Finsupp.degree hx
      rw [map_add, h1, hμ] at this
      omega
  · rw [coeff_mul]
    symm
    refine Finset.sum_eq_zero fun x hx => ?_
    rw [Finset.HasAntidiagonal.mem_antidiagonal] at hx
    rw [coeff_homogeneousComponent]
    split_ifs with h2
    · by_cases hα : p.coeff x.1 = 0
      · rw [hα, zero_mul]
      · exfalso
        have h1 := hpdeg x.1 hα
        have := congrArg Finsupp.degree hx
        rw [map_add, h1, h2] at this
        omega
    · rw [mul_zero]
  · rw [AddMonoidAlgebra.coeff_zero, Finsupp.zero_apply]
AlgebraicCurves.Hilbert.Proofs.HilbertClosedImmersion.P2R.forall_mem_iff_of_span
Source context 6 commands

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

section ProofImplementation
open _root_.AlgebraicGeometry (
  exists_isClosedImmersion_locallyOfFinitePresentation_forall_factors_iff_of_fg_idealCut)
namespace AlgebraicCurves.Hilbert.Proofs.HilbertClosedImmersion
open MvPolynomial CategoryTheory CategoryTheory.Limits AlgebraicGeometry
  AlgebraicGeometry.HilbertFunctor NeronModelInfra TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
namespace P2R
theorem forall_mem_iff_of_span
    {R : Type} [CommRing R] (n : ℕ) {J : Type} (gen : J → MvPolynomial (Fin (n + 1)) R) (deg : J →
      ℕ)
    (hgen : ∀ j, (gen j).IsHomogeneous (deg j))
    (I₀ : Ideal (MvPolynomial (Fin (n + 1)) R)) (hspan : Ideal.span (Set.range gen) = I₀)
    (A : Type) [CommRing A] (ψ : R →+* A) (N : Ideal (MvPolynomial (Fin (n + 1)) A)) (m : ℕ) :
    (∀ d : ℕ, m ≤ d → ∀ F : MvPolynomial (Fin (n + 1)) A,
        F ∈ Ideal.map (MvPolynomial.map ψ) I₀ → F.IsHomogeneous d → F ∈ N) ↔
    (∀ (j : J) (μ : Fin (n + 1) →₀ ℕ), μ.degree = max m (deg j) - deg j →
          MvPolynomial.monomial μ (1 : A) * MvPolynomial.map ψ (gen j) ∈ N)
AlgebraicCurves.Hilbert.Proofs.HilbertClosedImmersion.HilbR.ringHom_eq_of_specMap_eq
Source context 6 commands

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

section ProofImplementation
open _root_.AlgebraicGeometry (
  exists_isClosedImmersion_locallyOfFinitePresentation_forall_factors_iff_of_fg_idealCut)
namespace AlgebraicCurves.Hilbert.Proofs.HilbertClosedImmersion
open MvPolynomial CategoryTheory CategoryTheory.Limits AlgebraicGeometry
  AlgebraicGeometry.HilbertFunctor NeronModelInfra TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
namespace HilbR
theorem ringHom_eq_of_specMap_eq {R A : Type} [CommRing R] [CommRing A] {ψ ψ' : R →+* A}
    (h : Spec.map (CommRingCat.ofHom ψ) = Spec.map (CommRingCat.ofHom ψ')) : ψ = ψ'
AlgebraicCurves.Hilbert.Proofs.HilbertClosedImmersion.HilbR.exists_ringHom
Source context 6 commands

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

section ProofImplementation
open _root_.AlgebraicGeometry (
  exists_isClosedImmersion_locallyOfFinitePresentation_forall_factors_iff_of_fg_idealCut)
namespace AlgebraicCurves.Hilbert.Proofs.HilbertClosedImmersion
open MvPolynomial CategoryTheory CategoryTheory.Limits AlgebraicGeometry
  AlgebraicGeometry.HilbertFunctor NeronModelInfra TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
namespace HilbR
theorem exists_ringHom {R A : Type} [CommRing R] [CommRing A] {H : Scheme.{0}}
    (πH : H ⟶ Spec (CommRingCat.of R)) (u : Spec (CommRingCat.of A) ⟶ H) :
    ∃ ψ : R →+* A, u ≫ πH = Spec.map (CommRingCat.ofHom ψ)
AlgebraicGeometry.HilbertFunctor.exists_closedImmersion_factors_iff_mem_of_homogeneous_fg
Source context 6 commands

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

section ProofImplementation
open _root_.AlgebraicGeometry (
  exists_isClosedImmersion_locallyOfFinitePresentation_forall_factors_iff_of_fg_idealCut)
namespace AlgebraicGeometry.HilbertFunctor
open _root_.AlgebraicCurves.Hilbert.Proofs.HilbertClosedImmersion
open _root_.MvPolynomial _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry
  _root_.AlgebraicGeometry.HilbertFunctor _root_.NeronModelInfra _root_.TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
theorem exists_closedImmersion_factors_iff_mem_of_homogeneous_fg
    (R : Type) [CommRing R] (n : ℕ) (h : ℕ → ℕ)
    (hbc : ∀ (A B : Type) [CommRing A] [CommRing B] (φ : A →+* B) (P : Point A n h),
        ∃ Q : Point B n h, Q.I = Ideal.map (MvPolynomial.map φ) P.I)
    (Hilb : Scheme.{0}) (πH : Hilb ⟶ Spec (CommRingCat.of R))
    (pt : ∀ (A : Type) [CommRing A] (ψ : R →+* A),
      Point A n h ≃ SchemeHomOver (Spec.map (CommRingCat.ofHom ψ)) πH)
    (hnat : ∀ (A B : Type) [CommRing A] [CommRing B] (ψ : R →+* A) (φ : A →+* B) (P : Point A n h)
      (Q : Point B n h),
        Q.I = Ideal.map (MvPolynomial.map φ) P.I →
        (pt B (φ.comp ψ) Q).1 = Spec.map (CommRingCat.ofHom φ) ≫ (pt A ψ P).1)
    (I₀ : Ideal (MvPolynomial (Fin (n + 1)) R)) (hI₀ : ∀ p ∈ I₀, ∀ d : ℕ, homogeneousComponent d p
      ∈ I₀)
    (hfg : I₀.FG) (m : ℕ) :
    ∃ (C : Scheme.{0}) (ι : C ⟶ Hilb), IsClosedImmersion ι ∧ LocallyOfFinitePresentation ι ∧
      ∀ (A : Type) [CommRing A] (ψ : R →+* A) (P : Point A n h),
        (∃ c : Spec (CommRingCat.of A) ⟶ C, c ≫ ι = (pt A ψ P).1) ↔
          ∀ (d : ℕ), m ≤ d → ∀ F : MvPolynomial (Fin (n + 1)) A,
            F ∈ Ideal.map (MvPolynomial.map ψ) I₀ → F.IsHomogeneous d → F ∈ P.I