Computing A¹-Brouwer degrees

The local and global $\mathbb{A}^1$-Brouwer degrees, stable and unstable, together with the local-algebra basis helper. Exact over $\mathbb{Q}$ and finite fields of odd characteristic; over $\mathbb{C}$ the unstable degrees compute numerically from HomotopyContinuation expressions (the stable degrees over $\mathbb{C}$ are the identity form of the algebra dimension); over $\mathbb{R}$ compute over $\mathbb{Q}$ and base-change the result.

MotivicHomotopy.global_A1_degree — Method
global_A1_degree(F)

The global $\mathbb{A}^1$-Brouwer degree of an endomorphism of affine space $f = (f_1, …, f_n) : \mathbb{A}^n_k → \mathbb{A}^n_k$ with isolated zeros, as a GWClass in $\text{GW}(k)$. F is a vector of $n$ polynomials in $n$ variables over a field $k$ of characteristic not 2.

The $\mathbb{A}^1$-Brouwer degree, first defined by Morel [M12], is an algebro-geometric enrichment of the classical topological Brouwer degree. Using the tools of motivic homotopy theory one associates to an endomorphism of affine space the isomorphism class of a nondegenerate symmetric bilinear form whose invariants encode geometric data about how the morphism transforms space: its rank recovers the degree of the associated complex map, and its signature the degree of the associated real map. Such a form appears in the work of Eisenbud–Levine [EL77] and Khimshiashvili [K77], whose signature computes the local degree of a smooth map of real manifolds even where the Jacobian vanishes; this was shown to agree with Morel's degree by Kass–Wickelgren [KW19]. A related form attached to a complete intersection, due to Scheja–Storch [SS76], was aligned with the $\mathbb{A}^1$-degree in [BW23]. Following Brazelton–McKean–Pauli [BMP23], the degree is computed here as a multivariate Bézoutian bilinear form.

Following McKean [M21] one may read the degree $\deg^{\mathbb{A}^1}(f)$ as a quadratically enriched intersection multiplicity of the hypersurfaces $V(f_1) ∩ ⋯ ∩ V(f_n)$. It equals the sum of the local_A1_degrees over the points of the zero locus $V(f)$.

The Gram matrix is expressed in a standard-monomial basis; an equivalent form in a different basis represents the same class, so compare results with is_isomorphic_form rather than entrywise.

Base field

  • $\mathbb{Q}$ and finite fields of odd characteristic — the form is computed exactly.
  • $\mathbb{C}$ — a symmetric bilinear form over $\mathbb{C}$ is determined by its rank, so the degree is simply the identity form of rank equal to the $\mathbb{C}$-dimension of the coordinate algebra $k[x_1,…,x_n]/(f_1,…,f_n)$ — the number of zeros counted with multiplicity. This dimension is a discrete invariant equal to the rank of the degree computed over $\mathbb{Q}$, so it is obtained from the exact computation with no numerical root-finding.
  • $\mathbb{R}$ — compute the degree over $\mathbb{Q}$ and base-change the resulting Gram matrix to $\mathbb{R}$ (its form_signature is the real degree); real input is not accepted directly.

Examples

For $z ↦ z^2$ the degree is a rank-2 form of signature 0: the complex map $\mathbb{C}$ → $\mathbb{C}$ has degree 2, while the real map $\mathbb{R}$ → $\mathbb{R}$ has degree 0.

julia> S, (x,) = polynomial_ring(QQ, ["x"]);

julia> beta = global_A1_degree([x^2 + 1])
[0   1]
[1   0]

julia> form_rank(beta), form_signature(beta)
(2, 0)

The cubic $y = x(x-1)(x+1)$ meeting the $x$-axis, read as an enriched count of intersection points: rank 3 (three complex intersections) and signature 1 (the signed real count).

julia> S, (x, y) = polynomial_ring(QQ, ["x", "y"]);

julia> f = [x^3 - x^2 - y, y];

julia> global_A1_degree(f)
[0    0    1]
[0    1   -1]
[1   -1    0]

julia> form_signature(global_A1_degree(f))
1

The global degree is the sum of the local degrees over the zero locus $V(f) = \{(1,0), (0,0)\}$:

julia> d1 = local_A1_degree(f, ideal(S, [x - 1, y]));

julia> d2 = local_A1_degree(f, ideal(S, [x, y]));

julia> is_isomorphic_form(global_A1_degree(f), gw_direct_sum(d1, d2))
true

References

  • [M12] F. Morel, $\mathbb{A}^1$-algebraic topology over a field, Springer Lecture Notes in Mathematics, 2012.
  • [EL77] D. Eisenbud and H. Levine, An algebraic formula for the degree of a C∞ map germ, Annals of Mathematics, 1977.
  • [K77] G. Khimshiashvili, The local degree of a smooth mapping, Sakharth. SSR Mecn. Akad. Moambe, 1977.
  • [SS76] G. Scheja and U. Storch, Über Spurfunktionen bei vollständigen Durchschnitten, J. Reine Angew. Math., 1975.
  • [KW19] J. L. Kass and K. Wickelgren, The class of Eisenbud–Khimshiashvili–Levine is the local $\mathbb{A}^1$-Brouwer degree, Duke Mathematical Journal, 2019.
  • [BW23] T. Bachmann and K. Wickelgren, Euler classes: six-functors formalism, dualities, integrality and linear subspaces of complete intersections, J. Inst. Math. Jussieu, 2023.
  • [BMP23] T. Brazelton, S. McKean, and S. Pauli, Bézoutians and the $\mathbb{A}^1$-degree, Algebra & Number Theory, 2023.
  • [M21] S. McKean, An arithmetic enrichment of Bézout's Theorem, Mathematische Annalen, 2021.

See also local_A1_degree, global_unstable_A1_degree, sum_decomposition.

source
MotivicHomotopy.global_unstable_A1_degree — Method
global_unstable_A1_degree(q)
global_unstable_A1_degree(f, g)

The global unstable $\mathbb{A}^1$-Brouwer degree of a pointed rational function $f/g : \mathbb{P}^1_k → \mathbb{P}^1_k$ — pointed meaning $(f/g)(∞) = ∞$, i.e. $\deg f > \deg g$ — as a GWuClass in the unstable Grothendieck–Witt group $\text{GW}^u(k) = \text{GW}(k) ×_{k^×/(k^×)^2} k^×$.

Morel's $\mathbb{A}^1$-Brouwer degree generalizes the classical Brouwer degree by assigning to an endomorphism of the motivic sphere a class in the Grothendieck–Witt ring. That degree map is an isomorphism in dimensions two and above, but in dimension one it is only surjective [M12]; there, a computation of Morel [M12] and Cazanave [C12] refines it to an isomorphism $[\mathbb{P}^1_k, \mathbb{P}^1_k] ≅ \text{GW}^u(k)$ onto the unstable group, which records not only the stable class but also a $k^×$-scalar. Building on Cazanave's work, Kass–Wickelgren [KW20] and Igieobo et al. [I+24] give an explicit bilinear form representing the degree of $f/g$ in both the local and global settings, a variant of the Bézoutian form (Cazanave [C12, Thm. 3.6]).

Unlike the stable degree, the global unstable degree is not the sum of the local_unstable_A1_degrees at the zeros of $f/g$: it is their divisorial_sum [I+24], which weights each zero's contribution by the configuration of the whole divisor of zeros.

Input and base field

q is an element of the fraction field of a one-variable polynomial ring over $\mathbb{Q}$ or a finite field of odd characteristic (a plain polynomial is treated as $f/1$); the two-argument form supplies numerator and denominator separately. If $f$ and $g$ share a common factor it is cancelled and the reduced function checked for pointedness before the degree is computed. Over $\mathbb{R}$, compute over $\mathbb{Q}$ and base-change.

Over $\mathbb{C}$ — the one case that needs numerical computation, since the class carries a $k^×$-scalar and so the actual complex roots must be found — pass two HomotopyContinuation expressions f, g. Roots of f and g closer than the linear_tolerance keyword (default 1e-6) are treated as a common factor and cancelled.

Examples

A degree-5 pointed rational function; its rank equals the number of zeros of $f/g$ counted with multiplicity over $\mathbb{C}$:

julia> S, (x,) = polynomial_ring(QQ, ["x"]);

julia> q = (x^5 - 6*x^4 + 11*x^3 - 2*x^2 - 12*x + 8) // (x^4 - 5*x^2 + 7*x + 1);

julia> global_unstable_A1_degree(q)
([-68 38 11 -14 1; 38 -63 63 -29 7; 11 63 -84 39 -5; -14 -29 39 -16 0; 1 7 -5 0 1], -53240)

The divisorial sum of the local degrees at the zeros $-1, 1, 2$ recovers the global degree:

julia> degs = [local_unstable_A1_degree(q, r) for r in [-1, 1, 2]];

julia> is_isomorphic_form(divisorial_sum(degs, [-1, 1, 2]),
                          global_unstable_A1_degree(q))
true

The same computation over $\mathbb{C}$ with HomotopyContinuation input:

julia> import HomotopyContinuation; HomotopyContinuation.@var x;

julia> global_unstable_A1_degree((x-1)*(x-2)*(x-3), (x-1)*(x-4))
(ComplexF64[1.0 + 0.0im 0.0 + 0.0im; 0.0 + 0.0im 1.0 + 0.0im], -1.9999999999999987 + 3.337899271044116e-15im)

References

  • [M12] F. Morel, $\mathbb{A}^1$-algebraic topology over a field, Springer Lecture Notes in Mathematics, 2012.
  • [C12] C. Cazanave, Algebraic homotopy classes of rational functions, Annales Scientifiques de l'École Normale Supérieure, 2012.
  • [KW20] J. L. Kass and K. Wickelgren, A classical proof that the algebraic homotopy class of a rational function is the residue pairing, Linear Algebra and its Applications, 2020.
  • [I+24] J. Igieobo et al., Motivic configurations on the line, Advances in Mathematics 482 (2025), 110637.

See also local_unstable_A1_degree, divisorial_sum, global_A1_degree.

source
MotivicHomotopy.local_A1_degree — Method
local_A1_degree(F, p)

The local $\mathbb{A}^1$-Brouwer degree of an endomorphism of affine space $f = (f_1, …, f_n) : \mathbb{A}^n_k → \mathbb{A}^n_k$ at an isolated zero, as a GWClass in $\text{GW}(k)$. F is a vector of $n$ polynomials in $n$ variables over a field of characteristic not 2, and p is the prime ideal of a point in the zero locus $V(f)$.

The local degree is the class of the Bézoutian bilinear form on the local algebra $Q_p(f) = k[x_1,…,x_n]_{\mathfrak{m}_p}/(f_1,…,f_n)$ at the point (see local_algebra_basis). Summed over the points of $V(f)$ it recovers the global_A1_degree; see there for the background and references.

The base field is handled as for the global degree: exactly over $\mathbb{Q}$ and finite fields of odd characteristic; over $\mathbb{C}$ the class is the identity form of rank equal to the $\mathbb{C}$-dimension of $Q_p(f)$ (the multiplicity of the zero), obtained from the exact computation; over $\mathbb{R}$, compute over $\mathbb{Q}$ and base-change.

Examples

julia> S, (x, y) = polynomial_ring(QQ, ["x", "y"]);

julia> f = [x^3 - x^2 - y, y];

julia> d1 = local_A1_degree(f, ideal(S, [x - 1, y]))
[1]

julia> d2 = local_A1_degree(f, ideal(S, [x, y]))
[ 1   -1]
[-1    0]

julia> is_isomorphic_form(global_A1_degree(f), gw_direct_sum(d1, d2))
true

See also global_A1_degree, local_unstable_A1_degree, local_algebra_basis.

source
MotivicHomotopy.local_algebra_basis — Method
local_algebra_basis(L, p)

A monomial basis of the local algebra $Q_p(f) = k[x_1,…,x_n]_{\mathfrak{m}_p}/(f)$ of an endomorphism of affine space at an isolated zero: L is the list of polynomials $f = (f_1, …, f_n)$ and p the prime ideal of the zero. The local algebra is realized as $k[x]/(I : (I : p^∞))$ ([S02, Proposition 2.5]) and its standard monomials are returned.

Examples

julia> S, (x, y) = polynomial_ring(QQ, ["x", "y"]);

julia> local_algebra_basis([x^2 + 1 - y, y], ideal(S, [x^2 + 1, y]))
2-element Vector{QQMPolyRingElem}:
 x
 1

References

  • [S02] B. Sturmfels, Solving Systems of Polynomial Equations, American Mathematical Society, 2002.

See also local_A1_degree.

source
MotivicHomotopy.local_unstable_A1_degree — Method
local_unstable_A1_degree(q, r)
local_unstable_A1_degree(f, g, r)

The local unstable $\mathbb{A}^1$-Brouwer degree of a pointed rational function $f/g : \mathbb{P}^1_k → \mathbb{P}^1_k$ at a zero r in the base field, as a GWuClass in $\text{GW}^u(k)$. If r is a zero of multiplicity $m$, the result is the $m × m$ antidiagonal form with entry the value of $(u - r)^m · g/f$ at $r$.

Input shapes match global_unstable_A1_degree (see there for background and references): a fraction or polynomial plus the root, or numerator and denominator separately; the numerical $\mathbb{C}$ path takes two HomotopyContinuation expressions and a number. Non-reduced input is reduced (and re-checked for pointedness) first.

Examples

julia> S, (x,) = polynomial_ring(QQ, ["x"]);

julia> local_unstable_A1_degree((x^2 + x - 2) // (3*x + 5), -2)
([1//3], 1//3)

See also global_unstable_A1_degree, divisorial_sum, local_A1_degree.

source