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

As Wj is obtained from the simply connected {fj ≤ 0} by carving out a
tubular neighborhood around a D i with 2i < n − 3 it is simply connected.
Its two boundaries are also simply connected using the above bounds on
Morse indices, so Wj is in fact an h-cobordism. It follows that both Wj
are compactly supported h-cobordisms from ∂T to {fj = 0}, and the claim
follows from the h-cobordism theorem.                                  
  Our goal for the rest of this subsection is to prove the following theorem,
which is a precise version of Theorem D.
Theorem 3.26. Let M and L be closed manifolds, and ϕ × z : L → J 1 M a
Legendrian lift of a Lagrangian embedding ϕ : L → T ∗ M . If s1 > maxL |z|,
then the s1 -double admits a twisted generating function of tube type. In
particular this twisted generating function tube generates ϕ × (z − s1 ).
   In order to prove Theorem 3.26, we need two preliminary results of homo-
logical nature. Given a ring A, we write D b (AM ) for the derived category of
(complexes of) sheaves of A-modules on M . The ﬁrst result is a homologi-
cal characterisation of those complexes which are equivalent to the constant
rank-1 sheaf:
Lemma 3.27. If M is a compact connected orientable manifold of dimension
n and G ∈ D b (AM ) such that RΓ(M ; G) ≃ RΓ(M ; AM ) in the derived
category of A-modules and H i G are constant. Then G ≃ AM in D b (AM ).
Proof. Recall from [KS94, Remark 1.7.6] that we have truncation endo-
functors τ≥a and τ≤b of D b (AM ) together with morphisms F → τ≥a F
and τ≤b F → F inducing isomorphisms in cohomological degrees ≥ a and
≤ b respectively. They come with a distinguished triangle τ≤a F → F →
         +1
τ≥a+1 F →.
   Let a be the minimal integer such that H a G 6= 0. We have a distinguished
triangle G′ → G → G′′ with G′′ = τ≥a+1 G and G′ = H a G[−a]. Since H a G is
constant and non zero, we have H a (M ; G′ ) = H 0 (M ; H a G) 6= 0. Since G′′ is
concentrated in degree greater than or equal to a+1, we have H i (M, G′′ ) = 0
for i < a + 1. The long exact sequence
(3.12)         · · · → H i (M ; G′ ) → H i (M ; G) → H i (M ; G′′ ) → . . .
now implies that H a (M ; G) 6= 0. But by assumption H a (M ; G) ≃ H a (M ; A),
hence a ≥ 0.
   Similarly, take b the maximal integer such that H b G 6= 0, and consider
the triangle G′ → G → G′′ with G′ = τ≤b−1 G and G′′ = H b G[−b].
   Then H n+b (M ; G′′ ) = H n (M ; H b G) is non-zero since H b G is constant and
M is orientable. Moreover H i (M ; G′ ) = 0 if i > b − 1 + n since G′ is concen-
trated in degrees ≤ b − 1. The long exact sequence gives H b+n (M ; G) 6= 0,
and hence b ≤ 0. Therefore H i G = 0 for i 6= 0 and H 0 G is constant by
hypothesis, hence G ≃ EM for some A-module E (see [KS94, Proposition
1.7.2]). Hence A = H 0 (M ; AM ) = H 0 (M ; G) = H 0 (M ; EM ) ≃ E since M
is connected, and G ≃ AM .                                                       
