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

Remark 2.8. The restriction to quadratic forms with eigenvalues ±1 is not
essential as the bigger space of all non-degenerate quadratic forms deforma-
tions retracts onto Q. However this slightly simplifies some constructions in
Section 3 where explicit bounds and cut-off functions are used.
Definition 2.9. A twisted generating function over a manifold M consists
of the following data:
      • a directed open cover (Mi )i∈I of M (see Definition A.2),
      • for each i, a generating function (ni , Ui , fi ) over Mi ,
      • for each i < j, a smooth map qij : Mij → Q, defined on the intersec-
        tion Mij = Mi ∩ Mj ,
such that
      • for all i < j, Uj ∩ (Mij × Rnj ) ⊂ (Ui ∩ (Mij × Rni )) × Rnj −ni and
        fi ⊕ qij = fj on Uj ∩ (Mij × Rnj ) (in particular, dim(qij ) = nj − ni
        at least over the image of the projection Uj ∩ (Mij × Rnj ) → Mij ),
      • for all i < j < k, qij ⊕ qjk = qik on the triple intersection Mijk =
        Mi ∩ Mj ∩ Mk .
We abbreviate this data as a quadruple (Mi , ni , fi , qij ).
  Note that if Mij is empty, the datum of qij is void and we allow the
possibility that i < j and ni > nj (but see Deﬁnition 2.10). For each i ∈ I,
we have a Legendrian immersion ifi : Σfi → J 1 Mi . For i < j, since dqij
vanishes only at the origin (qij is non-degenerate), the relation fi ⊕ qij = fj
imposes the following equality of subsets of Mij × Rnj :
              Σfj ∩ (Mij × Rnj ) = (Σfi × 0) ∩ Uj ∩ (Mij × Rnj ),
and the coincidence of the Legendrian immersions on this subset:
                             ifj = ifi ◦ πij
where πij : Mij × R j → Mij × Rni is the projection. This implies that the
                   n

pieces Σfi glue into an abstract manifold Σf with a Legendrian immersion
if : Σf → J 1 M . If the integers ni are bounded above by some integer n,
then Σf is naturally embedded in M × Rn in such a way that
              Σf ∩ (Mi × Rn ) = Σfi × 0 ⊂ (Mi × Rni ) × Rn−ni .
    Note that if may not be proper (for instance U2 , . . . , Uk may be empty
and only Σf1 is non-empty) but in our situation the Legendrian immersion
will be prescribed and surjective over M so this will force all Ui ’s to be
non-empty.
    The geometrically meaningful datum associated to a twisted generating
function is its equivalence class under the procedure of reﬁnement which
we now explain: if ((Mi′ )i′ ∈I ′ , σ : I ′ → I) is a reﬁnement of (Mi )i∈I in
the sense of Deﬁnition A.3, then we may pull back a twisted generating
function over (Mi )i∈I to one over (Mi′ )i′ ∈I ′ by setting for i′ ∈ I ′ , ni′ = nσ(i′ ) ,
Ui′ = Uσ(i′ ) ∩ (Mi′ × Rnσ(i′ ) ), fi′ = fi restricted to Ui′ and for i′ < j ′ ,
qi′ j ′ = qσ(i′ )σ(j ′ ) (where qii is interpreted as the unit in Q0 ) restricted to
