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

For example, any attempt to assign a homology group to a general generating
function fails as the moduli spaces of gradient ﬂow lines may escape to in-
ﬁnity, obstructing the Morse operator from deﬁning a diﬀerential. However,
for an embedded Lagrangian we give a procedure to convert a (twisted) gen-
erating function into another one which is well-behaved at inﬁnity, leading
to the following result, proved in Section 3.
Theorem D. Let M be a closed manifold and L a closed exact Lagrangian
submanifold of T ∗ M . Then there exists a twisted generating function of tube
type which tube generates L.
   Here a generating function of tube type is essentially (and up to sta-
bilizations) a generating function which is linear at inﬁnity such that the
regular sub-level set {f ≤ 0} has the homotopy type of a sphere (see Deﬁni-
tion 3.24). The notion of “tube generation” (see Deﬁnition 3.24) means that
we only consider what f restricted to this sub-level set generates.
   The key point is that we get the desired control of the Morse theory of the
generating function to extract topological and homological information about
L from it. Generating functions of tube type appear in our context essentially
as a reﬁnement of the fact that the homological intersection number of L
with each cotangent ﬁbre is 1 (this is proved using either Floer theory or
microlocal sheaves, in the course of showing the stronger statement discussed
above that the projection map from L to M is a homotopy equivalence).
The tube condition is related to the tube space T∞ arising in Waldhausen’s
manifold approach to algebraic K-theory of spaces (see [Wal82]): a tube is a
codimension 0 submanifold of Rm+1 which corresponds to the attachment of
a single trivial handle on top of Rm ×(−∞, 0]. Stably, the space of such tubes
was proved by Bökstedt in [Bö84] to be rationally homotopy equivalent to
BO. This gives important constraints on how a tube bundle may be twisted,
leading to Theorem A. This is explained in Section 4 where we reformulate
Bökstedt’s theorem in terms of function spaces arising naturally from our
construction in Section 3. We note that Bökstedt’s theorem is also crucial
in [Kra18].
   Finally we observe that in the case where M is a homotopy sphere, Theo-
rem A gives the triviality of the stable Gauss map and our method provides
a genuine generating function.
Theorem E. Let M be a homotopy sphere and L a closed exact Lagrangian
submanifold of T ∗ M . Then the stable Gauss map of L is null homotopic and
there exists a generating function of tube type which tube generates L.
Remark 1.1. While we do not discuss applications to the diffeomorphism
type of nearby Lagrangian submanifolds in this paper, forthcoming work of
Abouzaid, Álvarez-Gavela, Courte, and Kragh, uses its main result, stated as
Theorem D below, as the starting point to prove that nearby exact Lagrangian
submanifolds have associated normal invariant (measuring the difference be-
tween the tangent spaces of the Lagrangian and that of the base) which is
