Documentation

Atlas.ArithmeticGeometry.code.ProjectiveVarieties

@[reducible, inline]
abbrev HomogeneousPolynomial.IsHomogeneousOfDegree {σ : Type u_1} {R : Type u_2} [CommSemiring R] (f : MvPolynomial σ R) (d : ) :

A multivariate polynomial $f$ is homogeneous of degree $d$ if every monomial in $f$ has total degree $d$. Abbreviation for Mathlib's MvPolynomial.IsHomogeneous.

Instances For

    A polynomial $f$ is homogeneous if it is homogeneous of some degree $d \in \mathbb{N}$.

    Instances For
      theorem HomogeneousPolynomial.isHomogeneous_eval_smul {σ : Type u_1} {R : Type u_2} [CommSemiring R] (f : MvPolynomial σ R) (d : ) (hf : f.IsHomogeneous d) (c : R) (x : σR) :
      (MvPolynomial.eval fun (i : σ) => c * x i) f = c ^ d * (MvPolynomial.eval x) f

      Homogeneity under scaling: if $f$ is homogeneous of degree $d$, then $f(c x_1, \ldots, c x_n) = c^d \cdot f(x_1, \ldots, x_n)$ for every scalar $c$.

      The zero polynomial is homogeneous (of every degree, witnessed here by any chosen $d$).

      A constant polynomial $C(r)$ is homogeneous of degree $0$.

      Each variable $X_i$ is homogeneous of degree $1$.

      Decomposition into homogeneous components: every polynomial $f$ is the sum of its homogeneous components $f = \sum_{i \le \deg f} f_i$.

      @[reducible, inline]

      An ideal $I \subseteq R[X_1, \ldots, X_n]$ is homogeneous if every $f \in I$ has all of its homogeneous components in $I$.

      Instances For
        def AffinePatch.Projectivization.coordNeZero {n : } (k : Type u_1) [Field k] (i : Fin (n + 1)) :
        Projectivization k (Fin (n + 1)k)Prop

        Well-defined predicate on a projective point $p \in \mathbb{P}^n(k)$: "the $i$-th coordinate of any representative of $p$ is nonzero".

        Instances For
          def AffinePatch.affinePatch {n : } (k : Type u_1) [Field k] (i : Fin (n + 1)) :
          Set (Projectivization k (Fin (n + 1)k))

          The standard affine patch $U_i = \{[x_0 : \cdots : x_n] \in \mathbb{P}^n(k) \mid x_i \neq 0\}$.

          Instances For
            @[simp]
            theorem AffinePatch.mem_affinePatch_mk {n : } (k : Type u_1) [Field k] (i : Fin (n + 1)) (v : Fin (n + 1)k) (hv : v 0) :

            Membership criterion in the patch $U_i$ in terms of an explicit representative $v \neq 0$.

            theorem AffinePatch.mem_affinePatch_iff_rep {n : } (k : Type u_1) [Field k] (i : Fin (n + 1)) (p : Projectivization k (Fin (n + 1)k)) :
            p affinePatch k i p.rep i 0

            A projective point $p$ lies in $U_i$ iff its canonical representative p.rep has nonzero $i$-th coordinate.

            theorem AffinePatch.insertNth_one_ne_zero {n : } (k : Type u_1) [Field k] (i : Fin (n + 1)) (a : Fin nk) :
            i.insertNth 1 a 0

            Inserting a $1$ at index $i$ produces a nonzero tuple.

            noncomputable def AffinePatch.affinePatchEquiv {n : } (k : Type u_1) [Field k] (i : Fin (n + 1)) :
            (affinePatch k i) (Fin nk)

            The canonical bijection $U_i \simeq \mathbb{A}^n(k)$ sending the projective point $[x_0 : \cdots : x_n]$ with $x_i \neq 0$ to the affine point $(x_0 / x_i, \ldots, \widehat{x_i / x_i}, \ldots, x_n / x_i)$.

            Instances For
              noncomputable def ProjectiveClosure.homogenize {n : } {R : Type u_1} [CommSemiring R] (f : MvPolynomial (Fin n) R) :
              MvPolynomial (Fin (n + 1)) R

              Homogenization with respect to a new variable $X_0$: given $f \in R[X_1, \ldots, X_n]$ of degree $d$, produce the homogeneous polynomial $X_0^d f(X_1 / X_0, \ldots, X_n / X_0) \in R[X_0, X_1, \ldots, X_n]$.

              Instances For

                Unfolding lemma exposing the definition of homogenize as a sum over the support of $f$.

                def ProjectiveClosure.homogenizeSet {n : } {R : Type u_1} [CommSemiring R] (I : Ideal (MvPolynomial (Fin n) R)) :
                Set (MvPolynomial (Fin (n + 1)) R)

                Image of an ideal $I$ under homogenization, as a set of homogeneous polynomials in $R[X_0, \ldots, X_n]$.

                Instances For
                  noncomputable def ProjectiveClosure.homogenizeIdeal {n : } {R : Type u_1} [CommSemiring R] (I : Ideal (MvPolynomial (Fin n) R)) :
                  Ideal (MvPolynomial (Fin (n + 1)) R)

                  Homogenization of the ideal $I$: the ideal of $R[X_0, \ldots, X_n]$ generated by all homogenizations of elements of $I$.

                  Instances For

                    The homogenization of any element $f \in I$ belongs to the homogenized ideal homogenizeIdeal I.

                    def ProjectiveClosure.projectiveVanishes {n : } (k : Type u_2) [Field k] (f : MvPolynomial (Fin (n + 1)) k) (p : Projectivization k (Fin (n + 1)k)) :

                    $f$ vanishes at the projective point $p$ if $f(p_{\mathrm{rep}}) = 0$ on (any) representative.

                    Instances For
                      def ProjectiveClosure.projectiveZeroLocus {n : } (k : Type u_2) [Field k] (S : Set (MvPolynomial (Fin (n + 1)) k)) :
                      Set (Projectivization k (Fin (n + 1)k))

                      Projective zero locus of a set of polynomials: $V_+(S) = \{ p \in \mathbb{P}^n(k) \mid f(p) = 0 \text{ for all } f \in S\}$.

                      Instances For
                        theorem ProjectiveClosure.projectiveZeroLocus_anti {n : } (k : Type u_2) [Field k] {S T : Set (MvPolynomial (Fin (n + 1)) k)} (h : S T) :

                        The projective zero locus is order-reversing: $S \subseteq T$ implies $V_+(T) \subseteq V_+(S)$.

                        def ProjectiveClosure.projectiveClosure {n : } (k : Type u_2) [Field k] (I : Ideal (MvPolynomial (Fin n) k)) :
                        Set (Projectivization k (Fin (n + 1)k))

                        The projective closure of the affine variety $V(I)$: the zero locus of the homogenized ideal homogenizeIdeal I inside $\mathbb{P}^n(k)$.

                        Instances For
                          def ProjectiveClosure.projectiveClosureOfSet {n : } (k : Type u_2) [Field k] (Z : Set (Fin nk)) :
                          Set (Projectivization k (Fin (n + 1)k))

                          Projective closure of an arbitrary set $Z \subseteq \mathbb{A}^n(k)$: defined as the projective closure of the affine vanishing ideal of $Z$.

                          Instances For
                            noncomputable def AffineParts.dehomogenize {n : } (k : Type u_1) [Field k] (i : Fin (n + 1)) :

                            Dehomogenization with respect to the variable $X_i$: the ring homomorphism $R[X_0, \ldots, X_n] \to R[X_0, \ldots, \widehat{X_i}, \ldots, X_n]$ which sends $X_i \mapsto 1$.

                            Instances For
                              def AffineParts.projectiveZeroLocus {n : } (k : Type u_1) [Field k] (S : Set (MvPolynomial (Fin (n + 1)) k)) :
                              Set (Projectivization k (Fin (n + 1)k))

                              Projective zero locus restricted to homogeneous polynomials: a projective point $p$ lies in $V_+(S)$ iff every homogeneous $f \in S$ vanishes at any representative of $p$.

                              Instances For
                                def AffineParts.affinePart {n : } (k : Type u_1) [Field k] (V : Set (Projectivization k (Fin (n + 1)k))) (i : Fin (n + 1)) :
                                Set (Projectivization k (Fin (n + 1)k))

                                Affine part of a projective set $V$ in the chart $U_i$: simply $V \cap U_i$.

                                Instances For
                                  noncomputable def AffineParts.dehomogenizedIdeal {n : } (k : Type u_1) [Field k] (I : Ideal (MvPolynomial (Fin (n + 1)) k)) (i : Fin (n + 1)) :

                                  Image of an ideal $I$ under dehomogenization at index $i$: the ideal of $R[X_0, \ldots, \widehat{X_i}, \ldots, X_n]$ obtained from $I$ by setting $X_i = 1$.

                                  Instances For
                                    def AffineParts.affinePartZeroLocus {n : } (k : Type u_1) [Field k] (S : Set (MvPolynomial (Fin (n + 1)) k)) (i : Fin (n + 1)) :
                                    Set (Fin nk)

                                    Affine zero locus in the chart $U_i$: an affine point $a$ lies in the locus iff every homogeneous $f \in S$ vanishes after dehomogenization at $X_i$.

                                    Instances For
                                      def ProjectiveVanishingIdeal.homogVanishingSet {n : } (k : Type u_1) [Field k] (Z : Set (Projectivization k (Fin (n + 1)k))) :
                                      Set (MvPolynomial (Fin (n + 1)) k)

                                      Set of homogeneous polynomials vanishing on a projective subset $Z$.

                                      Instances For
                                        noncomputable def ProjectiveVanishingIdeal.projectiveVanishingIdeal {n : } (k : Type u_1) [Field k] (Z : Set (Projectivization k (Fin (n + 1)k))) :
                                        Ideal (MvPolynomial (Fin (n + 1)) k)

                                        Projective vanishing ideal $I_+(Z) \subseteq k[X_0, \ldots, X_n]$: the homogeneous ideal generated by all homogeneous polynomials vanishing on $Z$.

                                        Instances For
                                          def ProjectiveVarietyDef.ProjectiveAlgebraicSet {n : } (k : Type u_1) [Field k] (S : Set (MvPolynomial (Fin (n + 1)) k)) :
                                          Set (Projectivization k (Fin (n + 1)k))

                                          Definition 13.21 (projective algebraic set). The zero locus of a set $S$ of polynomials in $\mathbb{P}^n(k)$, considering only the homogeneous elements of $S$.

                                          Instances For

                                            A subset $Z \subseteq \mathbb{P}^n(k)$ is projective algebraic if it arises as the projective zero locus of some set $S$ of polynomials.

                                            Instances For

                                              A projective algebraic set $Z$ is irreducible if it is nonempty and cannot be written as a union $Z = Z_1 \cup Z_2$ of two proper projective algebraic subsets.

                                              Instances For
                                                def ProjectiveVarietyDef.IsProjectiveVariety {n : } (k : Type u_1) [Field k] (V : Set (Projectivization k (Fin (n + 1)k))) :

                                                A projective variety is an irreducible projective algebraic subset of $\mathbb{P}^n(k)$.

                                                Instances For

                                                  A projective variety is irreducible.

                                                  theorem ProjectiveVarietyDef.IsProjectiveVariety.nonempty {n : } (k : Type u_1) [Field k] {V : Set (Projectivization k (Fin (n + 1)k))} (hV : IsProjectiveVariety k V) :

                                                  A projective variety is nonempty.

                                                  theorem Theorem1323.eval_single_homogenized_monomial {n : } (k : Type u_1) [Field k] (m : Fin n →₀ ) (c : k) (d : ) (P : Fin nk) :
                                                  (MvPolynomial.eval (Fin.insertNth 0 1 P)) ((MvPolynomial.monomial (Finsupp.mapDomain Fin.succ m + Finsupp.single 0 (d - m.sum fun (x : Fin n) (e : ) => e))) c) = c * m.prod fun (i : Fin n) (e : ) => P i ^ e

                                                  Evaluating a single homogenized monomial at $(1, P_1, \ldots, P_n)$ yields $c \prod_i P_i^{m_i}$, the corresponding affine monomial value.

                                                  Key compatibility: evaluating the homogenization $F = \tilde f$ at $(1, P_1, \ldots, P_n)$ recovers the affine evaluation $f(P)$.

                                                  Composing dehomogenization-at-$X_0$ with affine evaluation at $P$ equals projective evaluation at $(1, P)$.

                                                  theorem Theorem1323.eval_dehomogenize_eq {n : } (k : Type u_1) [Field k] (g : MvPolynomial (Fin (n + 1)) k) (P : Fin nk) :

                                                  Pointwise version of eval_comp_dehomogenize_eq.

                                                  Dehomogenization of the homogenized monomial $X_0^e \cdot X_1^{m_1} \cdots X_n^{m_n}$ at $X_0$ recovers the affine monomial $X_1^{m_1} \cdots X_n^{m_n}$.

                                                  Evaluating $\widetilde{f|_{X_0 = 1}}$ at $(1, P)$ agrees with evaluating $f$ at $(1, P)$: on the affine patch $U_0$, homogenize-after-dehomogenize is the identity.

                                                  If $f \in I$, then $\widetilde{f|_{X_0 = 1}}$ lies in the homogenization of the dehomogenized image of $I$.

                                                  theorem Theorem1323.projective_closure_cap_affine_eq {n : } (k : Type u_1) [Field k] (I : Ideal (MvPolynomial (Fin n) k)) :
                                                  {P : Fin nk | gProjectiveClosure.homogenizeIdeal I, (MvPolynomial.eval (Fin.insertNth 0 1 P)) g = 0} = {P : Fin nk | fI, (MvPolynomial.eval P) f = 0}

                                                  Theorem 13.23. Intersecting the projective closure with the affine patch $U_0$ recovers the original affine variety $V(I)$: the projective vanishing set of homogenizeIdeal I at points $(1, P)$ equals the affine vanishing set of $I$.

                                                  @[reducible, inline]
                                                  abbrev ProjectiveDimension.AffinePoint (k : Type u_1) [Field k] (N : ) :
                                                  Type u_1

                                                  Affine $N$-space over $\overline{k}$: tuples $(x_1, \ldots, x_N) \in \overline{k}^N$.

                                                  Instances For

                                                    Affine zero locus of a set $S$ over $\overline{k}$: the common $\overline{k}$-vanishing set of $S \subseteq \overline{k}[X_1, \ldots, X_N]$.

                                                    Instances For

                                                      Vanishing ideal of a set $V \subseteq \overline{k}^N$: the ideal of polynomials over $\overline{k}$ that vanish on every point of $V$.

                                                      Instances For
                                                        @[reducible, inline]
                                                        abbrev ProjectiveDimension.coordinateRing' (k : Type u_1) [Field k] (N : ) (V : Set (AffinePoint k N)) :
                                                        Type u_1

                                                        Coordinate ring of $V \subseteq \overline{k}^N$: the quotient $\overline{k}[X_1, \ldots, X_N] / I(V)$.

                                                        Instances For
                                                          def ProjectiveDimension.HasAffineDimension (k : Type u_1) [Field k] (N : ) (V : Set (AffinePoint k N)) (d : ) :

                                                          An affine algebraic set $V$ has dimension $d$ if the Krull dimension of its coordinate ring equals $d$.

                                                          Instances For
                                                            noncomputable def ProjectiveDimension.jacobianMatrix (k : Type u_1) [Field k] (N m : ) (f : Fin mMvPolynomial (Fin N) (AlgebraicClosure k)) (P : AffinePoint k N) :

                                                            Jacobian matrix at the point $P$: the $m \times N$ matrix whose $(i, j)$-entry is $\partial f_i / \partial X_j \,(P)$.

                                                            Instances For
                                                              def ProjectiveDimension.singularLocus' (k : Type u_1) [Field k] (N m r : ) (f : Fin mMvPolynomial (Fin N) (AlgebraicClosure k)) :

                                                              Singular locus of the system $f$: those zeros of $f$ at which the rank of the Jacobian is strictly less than the codimension threshold $r$.

                                                              Instances For
                                                                def ProjectiveDimension.affinePartBaseChange {n : } (k : Type u_1) [Field k] (V : Set (Fin nk)) :

                                                                Base change of an affine variety $V \subseteq k^n$ to $\overline{k}^n$ via the canonical algebra map $k \hookrightarrow \overline{k}$.

                                                                Instances For

                                                                  Coefficient lift $k[X_1, \ldots, X_N] \to \overline{k}[X_1, \ldots, X_N]$ via the canonical algebra map.

                                                                  Instances For
                                                                    noncomputable def ProjectiveDimension.affinePartGenerators {n : } (k : Type u_1) [Field k] {m : } (f : Fin mMvPolynomial (Fin (n + 1)) k) (i : Fin (n + 1)) :

                                                                    Generators of the affine piece in chart $U_i$ over $\overline{k}$: dehomogenize each $f_j$ at index $i$, then lift coefficients to $\overline{k}$.

                                                                    Instances For
                                                                      def ProjectiveDimension.affinePartZeroLocusAlgClosed {n : } (k : Type u_1) [Field k] {m : } (f : Fin mMvPolynomial (Fin (n + 1)) k) (i : Fin (n + 1)) :

                                                                      Zero locus over $\overline{k}$ of the affine generators in chart $U_i$.

                                                                      Instances For
                                                                        def ProjectiveDimension.HasProjectiveDimension {n : } (k : Type u_1) [Field k] {m : } (f : Fin mMvPolynomial (Fin (n + 1)) k) (d : ) :

                                                                        Projective dimension of the variety cut out by $f$: every affine chart has dimension $\le d$, and at least one chart realizes dimension $d$.

                                                                        Instances For
                                                                          def ProjectiveDimension.IsAffinePartSmooth {n : } (k : Type u_1) [Field k] {m : } (g : Fin mMvPolynomial (Fin n) (AlgebraicClosure k)) (d : ) :

                                                                          An affine piece of dimension $d$ is smooth when its singular locus (rank $< n - d$) is empty.

                                                                          Instances For
                                                                            def ProjectiveDimension.IsProjectiveSmooth {n : } (k : Type u_1) [Field k] {m : } (f : Fin mMvPolynomial (Fin (n + 1)) k) :

                                                                            A projective variety is smooth if each of its affine charts of dimension $d_i$ is smooth.

                                                                            Instances For

                                                                              Dehomogenization at any index $i$ is a surjective ring homomorphism $k[X_0, \ldots, X_n] \twoheadrightarrow k[X_0, \ldots, \widehat{X_i}, \ldots, X_n]$.

                                                                              theorem Theorem1324.projective_closure_of_affinePart_eq {n : } (k : Type u_1) [Field k] (I : Ideal (MvPolynomial (Fin (n + 1)) k)) :
                                                                              {P : Fin nk | fI, (MvPolynomial.eval (Fin.insertNth 0 1 P)) f = 0} = {P : Fin nk | gProjectiveClosure.homogenizeIdeal (Ideal.map (AffineParts.dehomogenize k 0) I), (MvPolynomial.eval (Fin.insertNth 0 1 P)) g = 0}

                                                                              Theorem 13.24. For any ideal $I \subseteq k[X_0, \ldots, X_n]$, the affine piece $\{P \mid f(1, P) = 0 \,\forall f \in I\}$ equals the affine piece of the projective closure of $I$ dehomogenized at $X_0$ and re-homogenized.

                                                                              Functoriality: equal subsets have equal vanishing ideals.

                                                                              noncomputable def Corollary1326.coordinateRingEquiv {n : } (k : Type u_1) [Field k] (V V' : Set (Fin nk)) (hVV' : V = V') :

                                                                              Ring isomorphism between coordinate rings induced by equality of varieties $V = V'$.

                                                                              Instances For

                                                                                Equal varieties give coordinate rings with equal Krull dimension.

                                                                                Equal irreducible varieties give isomorphic function fields.

                                                                                Instances For

                                                                                  Coordinate-ring isomorphism between the affine part of the projective closure of $V(I)$ and the affine variety $V(I)$ itself (Corollary 13.26).

                                                                                  Instances For

                                                                                    Dimension is preserved: the affine part of the projective closure of $V(I)$ has the same Krull dimension as $V(I)$.

                                                                                    theorem Corollary1326.affinePart_eq_dehomogenizedIdeal_zeroLocus {n : } (k : Type u_1) [Field k] (I : Ideal (MvPolynomial (Fin (n + 1)) k)) :
                                                                                    {P : Fin nk | fI, (MvPolynomial.eval (Fin.insertNth 0 1 P)) f = 0} = {P : Fin nk | gIdeal.map (AffineParts.dehomogenize k 0) I, (MvPolynomial.eval P) g = 0}

                                                                                    The affine piece of a projective ideal $I$ over chart $U_0$ equals the zero locus of its dehomogenization at $X_0$.

                                                                                    Coordinate-ring isomorphism induced by affinePart_eq_dehomogenizedIdeal_zeroLocus.

                                                                                    Instances For

                                                                                      Krull dimension agrees on the two presentations of the affine piece.

                                                                                      Function-field isomorphism for the two presentations of an irreducible affine piece.

                                                                                      Instances For

                                                                                        Part of Corollary 13.26: if the projective dimension is $d$, then every chart's affine dimension is $\le d$.

                                                                                        Corollary 13.26 (coordinate-ring compatibility). For any affine ideal $I_1 \subseteq k[X_1, \ldots, X_n]$ and any projective ideal $I_2 \subseteq k[X_0, \ldots, X_n]$, the affine pieces of $V_+(I_1)$ and $V(I_2)|_{U_0}$ have coordinate rings isomorphic to those of $V(I_1)$ and the dehomogenization of $I_2$ respectively.