=== PDF PAGE 21 ===
                  A QUADRATICALLY ENRICHED CORRESPONDENCE THEOREM                                  21


for some ci0 (t) ∈ K with val(ci0 (t)) < 0, and some r, s > 0 with r ̸= s. Assume that r < s.
Now we plug in the new coordinates for pl . Namely,
                                                            1
                                 (tξl1 − τ + . . . , ηl0 + ηm t + . . .).
By equating the coefficient of the minimal power of t to zero, we get the following equation
                                                1
                             ηl0 a01 tr + am0 (ξm t − τ )m + h.o.t. = 0
which yields
                                         0        1
                                             ηl a01 m r
                               τ = ξl1 t −−           t m + h.o.t.
                                              am0
Hence, the coefficients c00 (t) and cm0 (t) satisfy
                   a00
         c00 (t) −     cm0 (t) =
(12)               am0
                                                                             1   r
          (−1)m mam0 (ξl0 )m−1 ξl1 t + (−1)m−1 m(ξl0 )m−1 (−ηl0 a01 am−1
                                                                     m0 ) t + h.o.t.
                                                                         m m


Note that there are m different choices for (12) corresponding to the m-th roots of the
coefficient −ηs0 a01 am−1                                       0      m−1
                      m0 . We call the choice of m-th root of −ηs a01 am0 defined by the
curve C, a refined condition to pass through pl .

                         4. From tropical to algebraic curves
  Let P = {p1 , . . . , pn } be a generic configuration of K-points in TorK (∆) such that the
points x1 , . . . , xn with xi = val(pi ) for i = 1, . . . , n is ∆-generic. In Section 3 we have seen
that a curve C ⊂ TorK (∆) defined by a (Laurent) polynomial f passing through P defines
      • a simple tropical curve Af with Newton polygon ∆ through x1 , . . . , xn , with a dual
        subdivision Sf : ∆ = ∆1 ∪ . . . ∪ ∆N ;
      • rational curves Cl ⊂ Tork (∆l ), for l = 1, . . . , N , such that
            – for a triangle ∆l , the curve Cl is irreducible, rational, nodal and meets
                Tor(∂∆s ) at exactly 3 points where it is unibranch and smooth,
            – for a parallelogram ∆l , the defining polynomial fl of Cl splits into a product
                of a monomial and binomials;
      • [σ]-refinements T[σ] (f ) for each extended edge [σ] with |σ| ≥ 2 defining a rational
        curve C[σ] ⊂ Tork (∆[σ] ) with |σ| − 1 nodes as only singularities;
      • refined conditions to pass through the points p1 , . . . , pn .
  In the following theorem we, use the non-quadratically enriched classical correspon-
dence theorems to argue that the data above uniquely determines the curve C ⊂ TorK (∆)
one started with, and to quadratically enrich Shustin’s refined patchworking theorem
[Shu06, §5.1], [IMS09, Theorem 2.51].
Theorem 4.1 (Quadratically enriched refined patchworking theorem). Let k be a field
of characteristic zero or greater than diam(∆). Let p1 , . . . , pn ∈ TorK (∆) be a generic
configuration of K-points that projects by the valuation val to a ∆-generic configura-
tion x1 , . . . , xn ∈ Q2 . Assume further that we are given
    (1) a simple irreducible genus g tropical curve A with Newton polygon ∆ passing
         through x1 , . . . , xn , with dual subdivision S : ∆ = ∆1 ∪ . . . ∪ ∆N induced by a
         piecewise linear function ν,
    (2) for each ∆l in S, a rational curve Cl defined by (i,j)∈∆l ∩Z2 aij xi y j , with coeffi-
                                                                   P

         cients aij ∈ k with the properties (1)-(4) of Proposition 3.16,
    (3) deformation patterns C[σ] defined by f[σ] with coefficients in k compatible with the
         curves C1 , . . . , CN in the sense of Definition 3.21.
    (4) refined conditions to pass through the points p1 , . . . , pn as in (12) defined over k.
Then there exists a unique irreducible genus g nodal curve C ∈ Tork{{t}} (∆) defined
over k{{t}} passing through p1 , . . . , pn , defined by a polynomial of the form
                                            X
                               f (x, y) =         (aij + cij (t))tν(i,j) xi y j
                                       (i,j)∈∆∩Z2

=== PDF PAGE 22 ===
22                     JARAMILLO PUENTES, ANDRÉS AND PAULI, SABRINA


such that Af = A, the tropical limit of C agrees with Cl for l = 1, . . . , N , T[σ] (f ) = f[σ] for
any extended edge [σ] with |σ| ≥ 2, and such that the refined conditions to pass through
the points p1 , . . . , pn for this curve agree with the given ones.
   Furthermore, there is a bijection
                          1:1
     ϕ : {nodes z of C} −−→ {nodes of Cl for l = 1, . . . , N and of C[σ] for [σ] ∈ E ∗ (A)},
such that for a node z of C, the residue field κ(z) equals κ(ϕ(z)){{t}} where κ(ϕ(z))
is the residue field of the node ϕ(z), and such that Type(z) 7→ Type(ϕ(z)) under the
bijection κ(z){{t}}× /(κ(z){{t}}× )2 ∼
                                     = κ(z)× /(κ(z)× )2 from Remark 2.5.
Proof. By the correspondence theorems in [Mik05] and [Shu06] for k = C or k = R,
[NS06] for char k = 0 or [Tyo12] for char k = 0 or char k > diam ∆, there exist exactly
multC (A) curves C ⊂ Tork{{t}} (∆) through p1 , . . . , pn defined over k{{t}} and tropicalizing
to A, where k is an algebraic closure of k. We will see in Section 6 that the number
of different choices for the input data in this theorem equals multC (A). Each of the
multC (A) curves gives rise to a unique choice for the input data. Thus there exists exactly
one curve C ⊂ Tork{{t}} (∆) matching the given input data. Indeed this curve is defined
over K = k{{t}} since there is a unique solution.
   It follows also from the non-quadratically enriched correspondence theorems that the
nodes of C correspond bijectively to the nodes of the Cl for l = 1, . . . , N and the C[σ]
for [σ] ∈ E ∗ (A) (see for example [Shu06, Theorem 5] or [AB22]). It remains to show the
statement about the types of the nodes. We show this in a very similar fashion to the
computations in [Pau22, §6].
   Let z be a node of C. Then val(z) ∈ A either lies on an edge of A or is a vertex. We start
by assuming the latter. Let ∆l be the polygon dual to this vertex in the dual subdivision S.
Then ϕ(z) is a node of Cl . After a coordinate change and after multiplying ν by a unit
in k{{t}} we can assume that ν equals 0 on ∆l and is positive outside of ∆l . Hence, we can
write z as z = (α, β) = (α0 + α1 (t), β 0 + β 1 (t)) with α0 , β 0 ∈ F and α1 (t), β 1 (t) ∈ F {{t}},
with val(α1 (t)), val(β 1 (t)) < 0, where F is some finite separable field extension F/k. Then,
                                             X
                                f (x, y) =           aij xi y j + h.o.t.
                                          (i,j)∈∆l ∩Z2

Here, we again mean higher order terms in t. Hence, (α0 , β0 ) is a singular point of Cl and
thus a node (we assume that the Cl are all nodal). One can find (α0 , β0 ) by solving
                                      ∂fl             ∂fl
                       fl (x, y) = 0,     (x, y) = 0,     (x, y) = 0.
                                      ∂x              ∂y
Since (α0 , β 0 ) is a node of Cl , its Hessian determinant det Hessian(fl )(α0 , β 0 ) does not
vanish. It follows that we get linear equations which one can use to solve for the initial
coefficients in α1 and β 1 , and then also inductively for all other coefficients. It follows
that α1 , β 1 are elements of F {{t}} (and not in some field extension of F {{t}}). We compute
the type of z:
                          Type(z) = − det Hessian(f )(z)
                                    = − det Hessian(fl )(z) + h.o.t.
                                    = − det Hessian(fl )(α0 , β 0 ) + h.o.t.
in F {{t}}× /(F {{t}}× )2 . Since (α0 , β 0 ) is a node of Cl , − det Hessian(fl )(α0 , β 0 ) does not
vanish and equals Type(z) in F {{t}}× /(F {{t}}× )2 (see Remark 2.5).
   The type of ϕ(z) = (α0 , β 0 ) is − det Hessian(fl )(α0 , β 0 ) ∈ F × /(F × )2 and thus one
can identify the type of z with the type of ϕ(z) via the bijection between F × /(F × )2
and F {{t}}× /(F {{t}}× )2 as in Remark 2.5.
   Now assume z is a node of C such that val(z) is not a vertex, but lies on an edge σ.
In this case ϕ(z) is a node of C[σ] . Let σ be the edge of S dual to this edge. After the
coordinate change from Subsection 3.3 and changing ν such that ν restricted to ∆[σ] is
zero and positive outside of ∆[σ] , we can assume that z is of the form
                                     z = (α0 + α1 , β 0 + β 1 ),

=== PDF PAGE 23 ===
                  A QUADRATICALLY ENRICHED CORRESPONDENCE THEOREM                                    23


with (α0 , β 0 ) defined over some finite separable field extension F/k, and such that α1 , β 1
are in F {{t}}, with val(α1 ), val(β 1 ) < 0. All these coordinate changes, change the deter-
minant of the Hessian by a square and the same computation as above proves the claim
about the types.                                                                            □

                                  5. Quadratic enrichments
  Theorem 4.1 provides a way to reconstruct a unique algebraic genus g curve passing
through p1 , . . . , pn in TorK (∆) from the data (1)-(4). In this section we find the different
possibilities for the curves Cl in (2) and C[σ] in (3) in Theorem 4.1 explicitly, analogous to
the methods in [Shu06]. Subsequently, we use these expressions to compute the quadratic
weights of the curves Cl and C[σ] . By the same theorem, these determine the quadratic
weight of the unique curve one reconstructs from this data.
           1
5.1. WelAκ(Cl ) (Cl ) when ∆l is a triangle. In this subsection we quadratically enrich
[Shu06, Lemma 3.5]. Let ∆′ := ∆l be a lattice triangle with edges σ, σ ′ and σ ′′ . Assume
that for all (i, j) ∈ (σ ∪ σ ′ ) ∩ Z2 , there are given coefficients aij ∈ K ′ , in a finite field
extension K ′ of our base field k. We want to find all rational curves C ′ in TorK ′ (∆′ )
meeting each boundary divisor at exactly one K ′ -point and being defined by a polynomial
                    X                        X                         X
        f ′ :=           aij xi y j =                  aij xi y j +              aij xi y j .
               (i,j)∈∆′ ∩Z2           (i,j)∈(∆′ \(σ∪σ ′ ))∩Z2         (i,j)∈(σ∪σ ′ )∩Z2

That is, we have to find all possible coefficients aij , with (i, j) ∈ (∆′ \ (σ ∪ σ ′ )) ∩ Z2 , such
that f ′ defines such a curve.
Definition 5.1. A lattice preserving transformation is an affine transformation z 7→ Az+b,
where A ∈ GL2 (Z) and b ∈ Z2 .
Remark 5.2. A lattice preserving transformation preserves the number of interior points,
boundary points and area of a lattice polygon.
  We perform the following lattice preserving transformation to our triangle ∆′ .
Lemma 5.3. Let ∆′ be a lattice triangle and let σ ′′ be one of its edges. Then, there exists
a lattice preserving transformation that sends ∆′ to Conv{(0, m), (p, 0), (q, 0)}, for some
integers 0 ≤ p < q ≤ m, and such that the edge σ ′′ is sent to the edge [(q, 0), (0, m)].
Proof. Call σ and σ ′ the remaining edges of ∆′ and assume that |σ| ≤ |σ ′ |. Let v ∈ Z2
be the common vertex of σ and σ ′ . Up to a translation by −v ∈ Z2 , we can assume that
the vertex v is at the origin. Let (a, b)T ∈ Z2 be the primitive vector pointing into the
direction of σ. Since gcd(a, b) = 1, there exist n, m ∈ Z such that an + bm = 1. We
perform the lattice preserving transformation defined by
                                          
                                    n m
                                             ∈ GL2 (Z),
                                     b −a

which sends the edge σ to the x-axis. Let w = (w1 , w2 )T ∈ Z2 be the primitive vector
pointing into the direction of the transformed edge of σ ′ . Up to the reflection across the
x-axis, we can assume that w2 > 0. Let l ∈ Z be the minimum integer such that w1 − kw2
is non-positive. We apply the transformation
                                          
                                     1 −l
                                             ∈ GL2 (Z),
                                     0 1
which leaves the transformed edge σ invariant, since it lies on the x-axis, and moves the
image of σ ′ to |σ ′ |(w1 − lw2 , w2 )T . Next, we shift the triangle by |σ ′ |(lw2 − w1 ) to the right.
We have that p := |σ ′ |(lw2 − w1 ) ≥ 0, q := p + |σ| > p and m := |σ ′ |w2 ≥ q since otherwise
|σ| > |σ ′ |(w1 − (l − 1)w2 ) ≥ |σ ′ |. See Figure 8 for an example of this algorithm.                □

=== PDF PAGE 24 ===
24                    JARAMILLO PUENTES, ANDRÉS AND PAULI, SABRINA




                                                                                                U



               σ                                                                                        V



                          σ ′′
                                                     ′σ′
                                                 σ
                                                            σ ′′σ   ′′                              i′
                                                                                                         L   σ ′′
                                                                                                             h
                                                                                                    σ
                                                                                                                 W
          v
               σ′
                                                                                                                     Z




                                    vv σ
                                      σ                                                                              v gσ

        Figure 8. Lattice preserving transformations applied to an arbitrary tri-
        angle.

Remark 5.4. For the triangle ∆′ = Conv{(0, m), (p, 0), (q, 0)} as in the Lemma 5.3 above
we have that its double Euclidean area equals
                                          |∆′ | = m · (q − p),
and the lattice lengths of the edges equal
                            |σ| = |[(p, 0), (q, 0)]| = (q − p),
                            |σ ′ | = |[(0, m), (p, 0)]| = gcd(p, m) =: dp ,
                           |σ ′′ | = |[(0, m), (q, 0)]| = gcd(q, m) =: dq .
  A lattice preserving transformation defines a coordinate change of the coordinates x
and y of a curve in TorK ′ (∆′ ). By [Lev18, §2] a coordinate change does not change the
type of a node. Hence, we can assume that ∆′ = Conv{(0, m), (p, 0), (q, 0)}. Up to a
reparametrization of the domain, we can assume that the three K ′ -points where C ′ meets
the toric boundary are 0, 1 and ∞. By choosing suitable affine coordinates on the torus,
the parametrization of the curve C ′ is given by
                                   x(t) = αtm ,
(13)
                                   y(t) = βtp (t − 1)q−p .
Then finding all possibilities for the aij with (i, j) ∈ (∆′ \ (σ ∪ σ ′ ))∩Z2 amounts to finding
all possibilities for α and β in (13).
Lemma 5.5. The different choices for α and β in (13) correspond to the solutions of
                                                  m            m(q−p)                   p
(14)                     aα + ϵ1 = 0,          bβ dp (−1)        dp
                                                                           + ϵ2 α dp = 0
for some fixed a, b, ϵ1 , ϵ2 ∈ K ′× . In particular, the K ′ -algebra defining these different
choices is given by (note that α already lies in K ′ )
                                                           K ′ [β]
(15)                        F′ =         m           m(q−p)                       p
                                                                                        
                                     bβ   dp
                                               (−1)     dp
                                                                    + ϵ2 ( −ϵa 1 ) dp       .

Proof. This follows the ideas of the proof of [Shu06, Lemma 3.5]. We generalize them so
that they work over an arbitrary base field. The curve C ′ has defining equation
                                          X
                                  f′ =           aij xi y j
                                               (i,j)∈∆′ ∩Z2

with given coefficients aij for (i, j) ∈ σ ∪ σ ′ = [(p, 0), (q, 0)] ∪ [(0, m), (p, 0)]. Without loss
of generality, we can assume that ap0 = 1. By Proposition 3.16, the curve C ′ should meet
