globalA1Degree(L)
Given an endomorphism of affine space $f=(f_1,\dots ,f_n) \colon \mathbb{A}^n_k \to \mathbb{A}^n_k$ with isolated zeros, we may compute its $\mathbb{A}^1$Brouwer degree valued in the GrothendieckWitt ring $\text{GW}(k)$.
The $\mathbb{A}^1$Brouwer degree first defined by Morel [M12] is an algebrogeometric enrichment of the classical topological Brouwer degree. Using the tools of motivic homotopy theory, one may associate to an endomorphism of affine space the isomorphism class of a symmetric bilinear form whose invariants encode geometric data about how the morphism transforms space.
Such an association appears in the work of EisenbudLevine [EL77] and Khimshiashvili [K77], wherein the authors develop a symmetric bilinear form whose signature computes the local degree of a smooth map of real manifolds in the case where the Jacobian may vanish on an affine chart. This was proven to agree with Morel's $\mathbb{A}^1$Brouwer degree in work of Kass and Wickelgren [KW19]. A similar production of a symmetric bilinear form is given by work of Scheja and Storch [SS76], which develops a symmetric bilinear form attached to a complete intersection. This was also shown to align with the $\mathbb{A}^1$Brouwer degree in [BW23].
Following recent work of B. McKean and Pauli [BMP23], the $\mathbb{A}^1$Brouwer degree can be computed as a multivariate Bezoutian bilinear form. The algorithms for producing such a form are developed here.



The previous example produces a rank two form with signature zero. This corresponds to the fact that the degree of the complex map $\mathbb{C}\to\mathbb{C},\ z\mapsto z^2$ has degree two, while the associated real map $\mathbb{R}\to\mathbb{R},\ x\mapsto x^2$ has global degree zero.
Following [M21] we may think about the $\mathbb{A}^1$Brouwer degree $\text{deg}^{\mathbb{A}^1}(f)$ as a quadratically enriched intersection multiplicity of the hyperplanes $V(f_1)\cap \cdots \cap V(f_n).$ As a toy example, consider the curve $y=x(x1)(x+1)$ intersecting the $x$axis.



The rank of this form is three, as cubics over the complex numbers have three roots counted with multiplicity. This form has signature one, which indicates that when the cubic intersects the $x$axis, when the three points of intersection are counted with a sign corresponding to a right hand rule, the sum equals one.
The global $\mathbb{A}^1$Brouwer degree can be computed as a sum over the local degrees at the points in the zero locus of the morphism. In the previous example, we see that $V(f)$ consists of three points on the affine line. We can compute local degrees at all of these and verify that the local degrees sum to the global degree:








Citations:
The object globalA1Degree is a method function.