       TWISTED GENERATING FUNCTIONS AND NEARBY LAGRANGIANS                                            31

This is possible since Σ′j coincides with Σ′i × {0} above Op(M ij ).
  Now we deﬁne fi (x, w, vi ) = w + gi′ (x, vi ) and fit as in Equation (3.8),
namely
          fit (x, w, vi ) = w + gi′ (x, vi ) + αi (x, vi )( 41 + t)(D(w) − w).

  Lemma 3.11 above (applied with M = Op(M i ) and K = Mi ) now ensures
that fit generates the s(t)-double of ϕ × z above M i for small t > 0 (the
same for each i).
  Finally we check the relation fit ⊕b qij = fjt on Mij :


          fit ⊕b qij = w + gi′ + qij + χqij (b−1 ·)αi ( 14 + t)(D(w) − w)
                        = w + gj′ + αj ( 41 + t)(D(w) − w).
  Remark that all of the above works with any value of b ≥ 1. But in
Deﬁnition 3.5 we have required that b is a bound for fi , which is the case
with our choice of b (and t < 43 ).                                      

3.3. Difference function.
Definition 3.14. Given a function f : M ×Rn → R, the diﬀerence function
δf : M × Rn × Rn → R is defined by
        δf (x, v1 , v1′ , . . . , vn , vn′ ) = f (x, v1 , . . . , vn ) − f (x, v1′ , . . . , vn′ ).
   Note that we alternate the variables as it will be more convenient later.
This is a classical tool in the theory of generating functions. We will use it
to derive the homological condition in Proposition 3.25 in the case of La-
grangian embeddings. Observe that δf is not strictly speaking a generating
function since it does not satisfy the transversality condition of Deﬁnition 2.1
in general, hence we will treat diﬀerence functions merely as functions.
   If f generates a Legendrian embedding L → J 1 M , then the global critical
points of δf correpond to Reeb chords of L and a Morse-Bott copy of L
in the level set {δf = 0}. In particular, when L is a lift of an embedded
Lagrangian submanifold, then the global critical points of δf consists merely
of this copy of L.
   A ﬁrst issue is that δf is not necessarily linear at inﬁnity when f is. In
particular in the twisted case, the ⊕b operation cannot be used directly with
δfi . We are led to introduce the following deﬁnition.
Definition 3.15. A function F : M × R2 × (R2 )n → R is called δ-linear at
inﬁnity if it is of the form:
          F (x, w, w′ , v1 , v1′ , . . . , vn , vn′ )
        = w − w′ + G(x, v1 , v1′ , . . . , vn , vn′ ) + ǫ(x, w, v) − ǫ′ (x, w′ , v ′ )
where supp(ǫ) → M and supp(ǫ′ ) → M are proper.
