Module

MvPolynomialFinrankPieceAddTwoEqMacaulayPow.lean

Nyll.AlgebraicCurves.Foundations.Polynomial.MvPolynomialFinrankPieceAddTwoEqMacaulayPow
30 declarations indexed from sourceView source ↗

Mv Polynomial finrank piece add two eq macaulay Pow of finrank piece succ eq macaulay Pow

Imports34
Imported by2

Declarations

AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.Ik

The part of the ideal lying in the specified homogeneous component.

Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
def Ik (I : Ideal (MvPolynomial (Fin (n + 1)) L)) (d : ℕ) :
    Submodule L ↥(homogeneousSubmodule (Fin (n + 1)) L d)
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.mem_Ik
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
theorem mem_Ik {I : Ideal (MvPolynomial (Fin (n + 1)) L)} {d : ℕ}
    (x : ↥(homogeneousSubmodule (Fin (n + 1)) L d)) :
    x ∈ Ik I d ↔ (x : MvPolynomial (Fin (n + 1)) L) ∈ I
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.Ik_mono
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
theorem Ik_mono {I I' : Ideal (MvPolynomial (Fin (n + 1)) L)} (h : I ≤ I') (d : ℕ) : Ik I d ≤ Ik I'
  d
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.piece_eq
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
theorem piece_eq (I : Ideal (MvPolynomial (Fin (n + 1)) L)) (d : ℕ) :
    piece I d = (↥(homogeneousSubmodule (Fin (n + 1)) L d) ⧸ Ik I d)
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.finrank_piece_add
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
theorem finrank_piece_add (I : Ideal (MvPolynomial (Fin (n + 1)) L)) (d : ℕ) :
    Module.finrank L (piece I d) + Module.finrank L ↥(Ik I d) =
      Module.finrank L ↥(homogeneousSubmodule (Fin (n + 1)) L d)
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.finrank_piece_eq_of_Ik_eq
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
theorem finrank_piece_eq_of_Ik_eq {I I' : Ideal (MvPolynomial (Fin (n + 1)) L)} {d : ℕ} (h : Ik I d
  = Ik I' d) :
    Module.finrank L (piece I d) = Module.finrank L (piece I' d)
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.finrank_piece_anti
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
theorem finrank_piece_anti {I I' : Ideal (MvPolynomial (Fin (n + 1)) L)} (h : I ≤ I') (d : ℕ) :
    Module.finrank L (piece I' d) ≤ Module.finrank L (piece I d)
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.finrank_piece_eq_zero_of_forall
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
theorem finrank_piece_eq_zero_of_forall {I : Ideal (MvPolynomial (Fin (n + 1)) L)} {d : ℕ}
    (h : ∀ f : MvPolynomial (Fin (n + 1)) L, f.IsHomogeneous d → f ∈ I) : Module.finrank L (piece I
      d) = 0
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.mem_of_finrank_piece_eq_zero
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
theorem mem_of_finrank_piece_eq_zero {I : Ideal (MvPolynomial (Fin (n + 1)) L)} {d : ℕ}
    (h : Module.finrank L (piece I d) = 0) (f : MvPolynomial (Fin (n + 1)) L) (hf : f.IsHomogeneous
      d) :
    f ∈ I
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.decompose_eq
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
theorem decompose_eq (q : MvPolynomial (Fin (n + 1)) L) (d : ℕ) :
    (DirectSum.decompose (homogeneousSubmodule (Fin (n + 1)) L) q d : MvPolynomial (Fin (n + 1)) L)
      =
      homogeneousComponent d q
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.homogeneousComponent_mul_add
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
theorem homogeneousComponent_mul_add {G : MvPolynomial (Fin (n + 1)) L} {m : ℕ} (hG :
  G.IsHomogeneous m)
    (a : MvPolynomial (Fin (n + 1)) L) (d : ℕ) :
    homogeneousComponent (m + d) (a * G) = homogeneousComponent d a * G
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.span_homogeneous
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
theorem span_homogeneous (s : Set (MvPolynomial (Fin (n + 1)) L))
    (hs : ∀ p ∈ s, ∃ i : ℕ, p.IsHomogeneous i) :
    ∀ p ∈ Ideal.span s, ∀ d : ℕ, homogeneousComponent d p ∈ Ideal.span s
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.finrank_piece_succ_eq_add
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Pieces
variable {L : Type u} [Field L]
theorem finrank_piece_succ_eq_add (I : Ideal (MvPolynomial (Fin (n + 1)) L))
    (hI : ∀ p ∈ I, ∀ i : ℕ, homogeneousComponent i p ∈ I)
    (ℓ : MvPolynomial (Fin (n + 1)) L) (hℓ : ℓ.IsHomogeneous 1) (k : ℕ)
    (hcol : ∀ f : MvPolynomial (Fin (n + 1)) L, f.IsHomogeneous k → ℓ * f ∈ I → f ∈ I) :
    Module.finrank L (piece I (k + 1)) =
      Module.finrank L (piece I k) + Module.finrank L (piece (I ⊔ Ideal.span {ℓ}) (k + 1))
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.exists_eq_sum_X_mul
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Regen
variable {L : Type u} [Field L]
theorem exists_eq_sum_X_mul (k : ℕ) (g : MvPolynomial (Fin (n + 1)) L) (hg : g.IsHomogeneous (k +
  1)) :
    ∃ q : Fin (n + 1) → MvPolynomial (Fin (n + 1)) L, (∀ i, (q i).IsHomogeneous k) ∧ g = ∑ i, X i *
      q i
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.finrank_piece_succ_eq_zero
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Regen
variable {L : Type u} [Field L]
theorem finrank_piece_succ_eq_zero {I : Ideal (MvPolynomial (Fin (n + 1)) L)} {k : ℕ}
    (h : Module.finrank L (piece I k) = 0) : Module.finrank L (piece I (k + 1)) = 0
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.homogeneous_of_gen
Source context 15 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Regen
variable {L : Type u} [Field L]
variable {m : ℕ} (J : Ideal (MvPolynomial (Fin (n + 1)) L))
  (hJ : ∃ s : Set (MvPolynomial (Fin (n + 1)) L), (∀ p ∈ s, p.IsHomogeneous m) ∧ J = Ideal.span s)
  (ℓ : MvPolynomial (Fin (n + 1)) L) (hℓ : ℓ.IsHomogeneous 1)
include hJ in
theorem homogeneous_of_gen : ∀ p ∈ J, ∀ i : ℕ, homogeneousComponent i p ∈ J
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.homogeneous_sup
Source context 15 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Regen
variable {L : Type u} [Field L]
variable {m : ℕ} (J : Ideal (MvPolynomial (Fin (n + 1)) L))
  (hJ : ∃ s : Set (MvPolynomial (Fin (n + 1)) L), (∀ p ∈ s, p.IsHomogeneous m) ∧ J = Ideal.span s)
  (ℓ : MvPolynomial (Fin (n + 1)) L) (hℓ : ℓ.IsHomogeneous 1)
include hJ hℓ in
theorem homogeneous_sup : ∀ p ∈ J ⊔ Ideal.span {ℓ}, ∀ i : ℕ, homogeneousComponent i p ∈ J ⊔
  Ideal.span {ℓ}
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.regen

The ideal generated by homogeneous forms of the fixed degree after adjoining the linear form.

Source context 14 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Regen
variable {L : Type u} [Field L]
variable {m : ℕ} (J : Ideal (MvPolynomial (Fin (n + 1)) L))
  (hJ : ∃ s : Set (MvPolynomial (Fin (n + 1)) L), (∀ p ∈ s, p.IsHomogeneous m) ∧ J = Ideal.span s)
  (ℓ : MvPolynomial (Fin (n + 1)) L) (hℓ : ℓ.IsHomogeneous 1)
def regen (m : ℕ) (J : Ideal (MvPolynomial (Fin (n + 1)) L)) (ℓ : MvPolynomial (Fin
  (n + 1)) L) :
    Ideal (MvPolynomial (Fin (n + 1)) L)
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.regen_le
Source context 14 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Regen
variable {L : Type u} [Field L]
variable {m : ℕ} (J : Ideal (MvPolynomial (Fin (n + 1)) L))
  (hJ : ∃ s : Set (MvPolynomial (Fin (n + 1)) L), (∀ p ∈ s, p.IsHomogeneous m) ∧ J = Ideal.span s)
  (ℓ : MvPolynomial (Fin (n + 1)) L) (hℓ : ℓ.IsHomogeneous 1)
theorem regen_le : regen m J ℓ ≤ J ⊔ Ideal.span {ℓ}
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.regen_generated
Source context 14 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Regen
variable {L : Type u} [Field L]
variable {m : ℕ} (J : Ideal (MvPolynomial (Fin (n + 1)) L))
  (hJ : ∃ s : Set (MvPolynomial (Fin (n + 1)) L), (∀ p ∈ s, p.IsHomogeneous m) ∧ J = Ideal.span s)
  (ℓ : MvPolynomial (Fin (n + 1)) L) (hℓ : ℓ.IsHomogeneous 1)
theorem regen_generated : ∃ s : Set (MvPolynomial (Fin (n + 1)) L), (∀ p ∈ s, p.IsHomogeneous m) ∧
    regen m J ℓ = Ideal.span s
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.le_regen
Source context 15 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Regen
variable {L : Type u} [Field L]
variable {m : ℕ} (J : Ideal (MvPolynomial (Fin (n + 1)) L))
  (hJ : ∃ s : Set (MvPolynomial (Fin (n + 1)) L), (∀ p ∈ s, p.IsHomogeneous m) ∧ J = Ideal.span s)
  (ℓ : MvPolynomial (Fin (n + 1)) L) (hℓ : ℓ.IsHomogeneous 1)
include hJ in
theorem le_regen : J ≤ regen m J ℓ
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.mem_regen_of_mem
Source context 15 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Regen
variable {L : Type u} [Field L]
variable {m : ℕ} (J : Ideal (MvPolynomial (Fin (n + 1)) L))
  (hJ : ∃ s : Set (MvPolynomial (Fin (n + 1)) L), (∀ p ∈ s, p.IsHomogeneous m) ∧ J = Ideal.span s)
  (ℓ : MvPolynomial (Fin (n + 1)) L) (hℓ : ℓ.IsHomogeneous 1)
include hJ hℓ in
theorem mem_regen_of_mem (hm : 1 ≤ m) : ∀ (j : ℕ) (x : MvPolynomial (Fin (n + 1)) L),
    x.IsHomogeneous (m + j) → x ∈ J ⊔ Ideal.span {ℓ} → x ∈ regen m J ℓ
  | 0, x, hx, hxI => Ideal.subset_span ⟨hxI, hx⟩
  | j + 1, x, hx, hxI => by
      obtain ⟨y, hy, z, hz, hyz⟩ := Submodule.mem_sup.mp hxI
      obtain ⟨g, rfl⟩ := Ideal.mem_span_singleton'.mp hz
      have hx1 : x = homogeneousComponent (m + j + 1) x := by
        rw [homogeneousComponent_of_mem (show x ∈ homogeneousSubmodule (Fin (n + 1)) L (m + j + 1)
          from hx),
          ite_eq_left rfl]
      have hgl : homogeneousComponent (m + j + 1) (g * ℓ) = homogeneousComponent (m + j) g * ℓ := by
        rw [Nat.add_comm (m + j) 1]; exact homogeneousComponent_mul_add hℓ g (m + j)
      rw [hx1, ← hyz, map_add, hgl]
      refine Ideal.add_mem _ (le_regen J hJ ℓ (homogeneous_of_gen J hJ y hy _)) ?_
      have hmj : m + j = (m + j - 1) + 1 := by omega
      obtain ⟨q, hq, hgq⟩ := exists_eq_sum_X_mul (m + j - 1) (homogeneousComponent (m + j) g)
        (by rw [← hmj]; exact homogeneousComponent_isHomogeneous _ _)
      rw [hgq, Finset.sum_mul]
      refine Ideal.sum_mem _ fun i _ => ?_
      rw [mul_assoc]
      refine Ideal.mul_mem_left _ _ (mem_regen_of_mem hm j (q i * ℓ) ?_ ?_)
      · have := (hq i).mul hℓ; rwa [← hmj] at this
      · exact Ideal.mem_sup_right (Ideal.mul_mem_left _ _ (Ideal.mem_span_singleton_self ℓ))
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.Ik_regen_eq
Source context 15 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Regen
variable {L : Type u} [Field L]
variable {m : ℕ} (J : Ideal (MvPolynomial (Fin (n + 1)) L))
  (hJ : ∃ s : Set (MvPolynomial (Fin (n + 1)) L), (∀ p ∈ s, p.IsHomogeneous m) ∧ J = Ideal.span s)
  (ℓ : MvPolynomial (Fin (n + 1)) L) (hℓ : ℓ.IsHomogeneous 1)
include hJ hℓ in
theorem Ik_regen_eq (hm : 1 ≤ m) {k : ℕ} (hk : m ≤ k) : Ik (regen m J ℓ) k = Ik (J ⊔ Ideal.span
  {ℓ}) k
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.finrank_piece_map
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section BaseChange
variable (K : Type u) (L : Type v) [Field K] [Field L] [Algebra K L]
theorem finrank_piece_map (J : Ideal (MvPolynomial (Fin (n + 1)) K))
    (hJ : ∀ p ∈ J, ∀ i : ℕ, homogeneousComponent i p ∈ J) (d : ℕ) :
    Module.finrank L (piece (J.map (MvPolynomial.map (algebraMap K L))) d) = Module.finrank K
      (piece J d)
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.map_generated
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section BaseChange
variable (K : Type u) (L : Type v) [Field K] [Field L] [Algebra K L]
theorem map_generated {m : ℕ} (J : Ideal (MvPolynomial (Fin (n + 1)) K))
    (hJ : ∃ s : Set (MvPolynomial (Fin (n + 1)) K), (∀ p ∈ s, p.IsHomogeneous m) ∧ J = Ideal.span
      s) :
    ∃ s : Set (MvPolynomial (Fin (n + 1)) L), (∀ p ∈ s, p.IsHomogeneous m) ∧
      J.map (MvPolynomial.map (algebraMap K L)) = Ideal.span s
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.isHomogeneous_linearForm
Source context 13 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Core
variable {L : Type u} [Field L]
theorem isHomogeneous_linearForm (a : Fin (n + 1) → L) :
    (∑ i, C (a i) * X i : MvPolynomial (Fin (n + 1)) L).IsHomogeneous 1
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.exists_eval_ne_zero
Source context 14 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Core
variable {L : Type u} [Field L]
variable [Infinite L]
theorem exists_eval_ne_zero {G₁ G₂ : MvPolynomial (Fin (n + 1)) L} (h₁ : G₁ ≠ 0) (h₂ : G₂ ≠ 0) :
    ∃ a : Fin (n + 1) → L, MvPolynomial.eval a G₁ ≠ 0 ∧ MvPolynomial.eval a G₂ ≠ 0
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.core
Source context 14 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
section Core
variable {L : Type u} [Field L]
variable [Infinite L]
theorem core {m : ℕ} (hm : 1 ≤ m) : ∀ (N : ℕ) (J : Ideal (MvPolynomial (Fin (n + 1)) L)),
    (∃ s : Set (MvPolynomial (Fin (n + 1)) L), (∀ p ∈ s, p.IsHomogeneous m) ∧ J = Ideal.span s) →
    Module.finrank L (piece J m) ≤ N →
    Module.finrank L (piece J (m + 1)) = Nat.macaulayPow m (Module.finrank L (piece J m)) →
    Module.finrank L (piece J (m + 2)) = Nat.macaulayPow (m + 1) (Module.finrank L (piece J (m +
      1)))
AlgebraicCurves.Foundations.Polynomial.Proofs.MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow.GotzStep.main
Source context 11 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
namespace GotzStep
open MvPolynomial AlgebraicGeometry.HilbertFunctor
open scoped TensorProduct
attribute [local instance] MvPolynomial.gradedAlgebra
variable {n : ℕ}
theorem main (n m : ℕ) (K : Type u) [Field K] (J : Ideal (MvPolynomial (Fin (n + 1)) K))
    (hJ : ∃ s : Set (MvPolynomial (Fin (n + 1)) K), (∀ p ∈ s, p.IsHomogeneous m) ∧ J = Ideal.span s)
    (hmax : Module.finrank K (piece J (m + 1)) = Nat.macaulayPow m (Module.finrank K (piece J m))) :
    Module.finrank K (piece J (m + 2)) = Nat.macaulayPow (m + 1) (Module.finrank K (piece J (m +
      1)))
MvPolynomial.finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
Source context 7 commands

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

@[expose] public section
universe u v
section ProofImplementation
open _root_.Nat.Macaulay
namespace AlgebraicCurves.Foundations.Polynomial.Proofs
namespace MvPolynomial_finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
open MvPolynomial AlgebraicGeometry.HilbertFunctor in
theorem
  _root_.MvPolynomial.finrank_piece_add_two_eq_macaulayPow_of_finrank_piece_succ_eq_macaulayPow
    (n m : ℕ) (K : Type u) [Field K] (J : Ideal (MvPolynomial (Fin (n + 1)) K))
    (hJ : ∃ s : Set (MvPolynomial (Fin (n + 1)) K), (∀ p ∈ s, p.IsHomogeneous m) ∧ J = Ideal.span s)
    (hmax : Module.finrank K (piece J (m + 1)) = Nat.macaulayPow m (Module.finrank K (piece J m))) :
    Module.finrank K (piece J (m + 2)) = Nat.macaulayPow (m + 1) (Module.finrank K (piece J (m +
      1)))