       TWISTED GENERATING FUNCTIONS AND NEARBY LAGRANGIANS                    37

   The next result is a characterisation of free rank-1 abelian groups in terms
of their properties with respect to the tensor product of complexes of mod-
ules:
Lemma 3.28. If A and B are bounded complexes of abelian groups with
                                             L     L
finite rank cohomology, which satisfy (A ⊗ B) ⊗ (Z/pZ) ≃ Z/pZ for all
primes p, then A ≃ Z[d] for some d ∈ Z.

                                                          L torsion parts,
Proof. We can decompose A and B as a sum of torsion free and
say A ≃ Af ⊕ At , B ≃ Bf ⊕ Bt (we ﬁrst decompose A = i H i A[−i] and
then decompose the H i A’s). We ﬁrst choose a prime p which annihilates
                                   L     L
the torsion At and Bt . Then (A ⊗ B) ⊗ (Z/pZ) ≃ Af ⊗ Bf ⊗ (Z/pZ) and
we deduce Af ≃ Z[d], Bf ≃ Z[−d], for some d ∈ Z. Now we assume that
Bt 6= 0 and choose a non trivial direct summand (Z/nZ)[i]. Let q be a
                                   L                        n=0
prime dividing n. Then (Z/nZ) ⊗ (Z/qZ) ≃ (Z/qZ −−→ Z/qZ) has non
                                             L              L
zero cohomology in two degrees. But (Af ⊗ Z/nZ[i]) ⊗ (Z/qZ) is a direct
                 L     L
summand of (A ⊗ B) ⊗ (Z/pZ) and we have a contradiction. Hence Bt = 0
and, in the same way, At = 0.                                      
Proof of Theorem 3.26. According to [Kra13] and [Abo12b] (or [Gui12]) we
know that L → M is a homotopy equivalence. In particular the stable
Gauss map of L factors up to homotopy through a map h : M → Λ0 (C∞ ).
Theorem 2.13 provides a twisted generating function (gi , qij ) for L twisted
by h.
   Theorem 3.13 transforms (gi , qij ) into a twisted generating function linear
at inﬁnity (b, fi , qij ) for the s0 -double of ϕ × z for some small s0 > 0. Let
s1 > maxL |z|. We pick a compactly supported contact isotopy (θs )s∈ [s0 ,3s1 ]
of J 1 M such that θs0 = id and
                      θs ◦ (ϕ × (z ± s0 )) = ϕ × (z ± s).
We apply Theorem 3.9 to (b, fi , qij ) and θs to ﬁnd a twisted generating
                      ′ ) which is linear at inﬁnity for ϕ × (z ± s). As soon as
function (b′ , fis , qij
s ≥ s1 , 0 is a regular value of fis (x, ·) for all x ∈ Mi and the topology of
the sublevel set {fis ≤ 0} is stable. So it is enough to prove the result for
s = 3s1 (for s ≥ 3s1 we can apply Lemma 3.22).
   According to Proposition 3.25, up to stabilizing all fi3s1 (by left acting
with a quadratic form), it is enough to show that H∗ (fi3s1 (x) ≤ 0, fi3s1 (x) ≤
−∞) ≃ Z[di ] for any given x ∈ Mi and some di . First consider the diﬀerence
function (δfi3s1 , δqij ′ ) and convert it to an actual function F : M × RN → R

using Lemma 3.21.
   The only global critical points of F with critical values less than or equal
to −4s1 consist of a copy of L in {F = −6s1 } in Morse-Bott situation. After
possibly passing to a double cover (of M and hence of L, recall L → M is
a homotopy equivalence), we may assume the negative eigenbundle of this
