import OAI.AlgebraicGeometry.Divisors.LineBundles.Augmented.SymmetricPolynomial import OAI.AlgebraicGeometry.Divisors.LineBundles.SymmetricProjective.ClosedImmersion import OAI.AlgebraicGeometry.Divisors.LineBundles.Symmetric.ScalarMap import Mathlib.Algebra.Polynomial.Div /-! # Kernel -/ namespace OAI.AlgebraicGeometry.Divisors.LineBundles.SymmetricInfinity.Kernel.BundleCycles noncomputable section /-! Killing the distinguished augmented coordinate has exactly the principal kernel generated by that coordinate. -/ variable (R M : Type) [CommRing R] [AddCommGroup M] [Module R M] theorem symmetricInfinity_constantCoeff : Polynomial.constantCoeff.comp (Augmented.SymmetricPolynomial.BundleCycles.augmentedSymmetricPolynomialMap R M).toRingHom = (Symmetric.GradedMap.BundleCycles.symmetricGradedMap (LinearMap.snd R R M)).toRingHom := by apply Symmetric.ScalarMap.BundleCycles.symmetricRingHom_ext · intro r change Polynomial.constantCoeff (Augmented.SymmetricPolynomial.BundleCycles.augmentedSymmetricPolynomialMap R M (algebraMap R _ r)) = _ rw [AlgHom.commutes] change (Polynomial.C (algebraMap R (SymmetricAlgebra R M) r)).coeff 0 = _ rw [Polynomial.coeff_C_zero] exact (SymmetricAlgebra.lift ((SymmetricAlgebra.ι R M).comp (LinearMap.snd R R M))).commutes r |>.symm · rintro ⟨r, m⟩ change Polynomial.constantCoeff (Augmented.SymmetricPolynomial.BundleCycles.augmentedSymmetricPolynomialMap R M (SymmetricAlgebra.ι R (R × M) (r, m))) = Symmetric.GradedMap.BundleCycles.symmetricGradedMap (LinearMap.snd R R M) (SymmetricAlgebra.ι R (R × M) (r, m)) rw [Augmented.SymmetricPolynomial.BundleCycles.augmentedSymmetricPolynomialMap_generator, Symmetric.GradedMap.BundleCycles.symmetricGradedMap_generator] change (r • Polynomial.X + Polynomial.C (SymmetricAlgebra.ι R M m)).coeff 0 = _ simp only [Polynomial.coeff_add, Polynomial.coeff_smul, Polynomial.coeff_X_zero, smul_zero, zero_add, Polynomial.coeff_C_zero] rfl theorem symmetricInfinity_kernel : RingHom.ker (Symmetric.GradedMap.BundleCycles.symmetricGradedMap (LinearMap.snd R R M)).toRingHom = Ideal.span {Augmented.SymmetricChart.BundleCycles.augmentedSymmetricVariable R M} := by apply le_antisymm · intro a ha have hz : (Augmented.SymmetricPolynomial.BundleCycles.augmentedSymmetricPolynomialMap R M a).coeff 0 = 0 := (DFunLike.congr_fun (symmetricInfinity_constantCoeff R M) a).trans ha obtain ⟨b, hb⟩ := Polynomial.X_dvd_iff.mpr hz apply Ideal.mem_span_singleton.mpr refine ⟨Augmented.SymmetricPolynomial.BundleCycles.augmentedSymmetricPolynomialInverse R M b, ?_⟩ apply (Augmented.SymmetricPolynomial.BundleCycles.augmentedSymmetricPolynomialEquiv R M).injective change Augmented.SymmetricPolynomial.BundleCycles.augmentedSymmetricPolynomialMap R M a = Augmented.SymmetricPolynomial.BundleCycles.augmentedSymmetricPolynomialMap R M (Augmented.SymmetricChart.BundleCycles.augmentedSymmetricVariable R M * Augmented.SymmetricPolynomial.BundleCycles.augmentedSymmetricPolynomialInverse R M b) rw [map_mul, Augmented.SymmetricPolynomial.BundleCycles.augmentedSymmetricPolynomialMap_variable, Augmented.SymmetricPolynomial.BundleCycles.augmentedSymmetricPolynomial_rightInverse R M b] exact hb · apply Ideal.span_le.mpr intro a ha obtain rfl : a = Augmented.SymmetricChart.BundleCycles.augmentedSymmetricVariable R M := ha change Symmetric.GradedMap.BundleCycles.symmetricGradedMap (LinearMap.snd R R M) (SymmetricAlgebra.ι R (R × M) (1, 0)) = 0 rw [Symmetric.GradedMap.BundleCycles.symmetricGradedMap_generator] exact map_zero (SymmetricAlgebra.ι R M) end end OAI.AlgebraicGeometry.Divisors.LineBundles.SymmetricInfinity.Kernel.BundleCycles