26             M. ABOUZAID, S. COURTE, S. GUILLERMOU, AND T. KRAGH

function gt : M × Rn × R2m → R, given by
              gt (x, u, x1 , y1 , . . . , xm , ym )
            = f t (x, u) + x1 y1 + · · · + xm ym + η t (x, u, x1 , y1 , . . . , xm , ym ),
is a generating function for θ t ◦ (ϕ × z)t .                                                   
  The following lemma will be key to our proof of the homotopy lifting
property for twisted generating functions linear at inﬁnity.
Lemma 3.7. Let (b, Mi , fi , qij ) be a well-ordered generating function lin-
ear at infinity over M with indexing set I. For any other total order ≤′
on I, there exists (up to a negligible shrinking of the cover) a well-ordered
                                                               ′ ) such that (f ′ , q ′ )
twisted generating function linear at infinity (b, Mi , fi′ , qij              i ij
and (fi , qij ) generate the same Legendrian immersion and have equivalent
underlying Q-twisted maps M → Z.
Proof. Denoting the indexing set of the cover by I = {1, . . . , p}, it suﬃces
to prove the existence of an equivalent generating function associated to the
permutation of a pair of successive elements (i, i+1). So for the new order we
have i+1 <′ i. Let m = 2(ni+1 −ni ). The map qi,i+1 ⊕−qi,i+1 : Mi,i+1 → Qm
is nullhomotopic, so (up to shrinking the cover) we can extend it to M ; we
denote the extension by δqi,i+1 . If Mi,i+1 is empty we take δqi,i+1 to be
a constant quadratic form on Rm . We will add quadratic forms such that
n′j = nj when j < i or j = i + 1 and n′j = nj + m when j > i + 1 or j = i.
We deﬁne qkl ′ as follows:
                
                
                  qkl                       if k ≥′ i or l ≤′ i + 1,
                
                −q
           ′           i,i+1                 if k = i + 1 and l = i,
(3.4)     qkl =
                
                  −δqi,i+1 ⊕ qkl            if k = i + 1 and l > i + 1,
                
                                      −1
                   (qkl ⊕ δqi,i+1 ) ◦ ak,i,l if k < i and l ≥′ i,
where ak,i,l : Rnki ×Rnil ×Rm → Rnki ×Rm ×Rnil is given by ak,i,l (v, w, u) =
(v, u, w). The permutation ak,i,l has the following eﬀect: on Mk,i,l ,
     (qk,l ⊕ δqi,i+1 ) ◦ a−1                                  −1
                          k,i,l = (qk,i ⊕ qi,l ⊕ δqi,i+1 ) ◦ ak,i,l = qk,i ⊕ δqi,i+1 ⊕ qi,l .

  We can check that qjk′ ⊕ q ′ = q ′ when j <′ k <′ l. The reader can notice
                             kl    jl
that for consecutive indices (k, k+ ) with respect to the order <′ , we have
                    ′                                         ′
                   qk,k +
                          = qk,k+        for k 6= i + 1,     qi+1,i = −qi,i+1 .
This essentially imposes the above formula for qkl  ′ with general indices k, l.

   Similarly we deﬁne
                        (
                         fk                      if k ≤′ i + 1,
(3.5)             fk′ =
                         (fk ⊕b δqi,i+1 ) ◦ a−1
                                             k  otherwise,
where ak : Rni × Rnik × Rm → Rni × Rm × Rnik is given by ak (v, w, u) =
(v, u, w). We can check that fk′ ⊕b qkl
                                     ′ = f ′ for all k <′ l. Note, that this uses
                                          l
