1 Introduction
 As in the classical Minimal Model Program, it is expected that every foliation on a complex projective manifold X is either uniruled or it admits a minimal model, that is, a birational contraction 
 $X\dashrightarrow X'$
 such that the canonical divisor of the induced foliation
$X\dashrightarrow X'$
 such that the canonical divisor of the induced foliation 
 $\mathcal F'$
 on
$\mathcal F'$
 on 
 $X'$
 is nef. For rank one foliations on a complex surface, this is known to be true thanks to the work of Brunella, McQuillan and Mendes (e.g., see [Reference BrunellaBru15, Reference McQuillanMcQ08, Reference MendesMen00]). For foliations of rank two on a threefold, the program was carried out in [Reference SpicerSpi20, Reference Cascini and SpicerCS21, Reference Spicer and SvaldiSS22].
$X'$
 is nef. For rank one foliations on a complex surface, this is known to be true thanks to the work of Brunella, McQuillan and Mendes (e.g., see [Reference BrunellaBru15, Reference McQuillanMcQ08, Reference MendesMen00]). For foliations of rank two on a threefold, the program was carried out in [Reference SpicerSpi20, Reference Cascini and SpicerCS21, Reference Spicer and SvaldiSS22].
 In [Reference McQuillanMcQ04], McQuillan proved the existence of minimal models for foliations by curves. More specifically, he showed that if X is a projective variety with quotient singularities and 
 $\mathcal F$
 is a rank one foliation on X with log canonical singularities, then
$\mathcal F$
 is a rank one foliation on X with log canonical singularities, then 
 ${\mathcal F}$
 admits a minimal model.
${\mathcal F}$
 admits a minimal model.
The goal of this paper is to explore this result in the case of rank one foliations on threefolds. In particular, we are interested in proving a generalisation of McQuillan’s theorem, and understanding the relationship between the birational geometry of foliations and classical birational geometry.
In a forthcoming paper [Reference Cascini and SpicerCS25b] we show some applications of our results, such as the base point free theorem, the study of foliations with trivial canonical class, and further developing the relationship between the birational geometry of foliations and classical birational geometry.
1.1 Statement of main results
 Our first main result is to show that flips exist for log canonical foliated pairs of rank one on a 
 ${\mathbb Q}$
-factorial threefold with klt singularities:
${\mathbb Q}$
-factorial threefold with klt singularities:
Theorem 1.1 (= Theorem 8.8).
 Let X be a 
 ${\mathbb Q}$
-factorial klt projective threefold and let
${\mathbb Q}$
-factorial klt projective threefold and let 
 $({\mathcal F},\Delta )$
 be a rank one foliated pair on X with log canonical singularities. Let R be a
$({\mathcal F},\Delta )$
 be a rank one foliated pair on X with log canonical singularities. Let R be a 
 $(K_{\mathcal F}+\Delta )$
-negative extremal ray such that
$(K_{\mathcal F}+\Delta )$
-negative extremal ray such that 
 ${\operatorname {loc} \, R} $
 has dimension one (cf. Section 2.12).
${\operatorname {loc} \, R} $
 has dimension one (cf. Section 2.12).
 Then the flipping contraction 
 $\phi \colon X\to Z$
 associated to R and the
$\phi \colon X\to Z$
 associated to R and the 
 $(K_{\mathcal F}+\Delta )$
-flip exist.
$(K_{\mathcal F}+\Delta )$
-flip exist.
The theorem in particular implies that the foliated MMP can be run with natural assumptions on the singularities of the underlying variety, as well as allowing for the presence of a boundary divisor:
Theorem 1.2 (= Theorem 8.10).
 Let X be a 
 ${\mathbb Q}$
-factorial projective threefold with klt singularities and let
${\mathbb Q}$
-factorial projective threefold with klt singularities and let 
 $({\mathcal F}, \Delta )$
 be a log canonical foliated pair of rank one on X. Assume that
$({\mathcal F}, \Delta )$
 be a log canonical foliated pair of rank one on X. Assume that 
 $K_{\mathcal F}+\Delta $
 is pseudo-effective.
$K_{\mathcal F}+\Delta $
 is pseudo-effective.
 Then 
 $({\mathcal F}, \Delta )$
 admits a minimal model.
$({\mathcal F}, \Delta )$
 admits a minimal model.
Our ideas and proofs are greatly indebted to McQuillan’s strategies and insights; however, ultimately our approach to the existence of minimal models of foliations is independent from the proof given in [Reference McQuillanMcQ04] and is based on techniques from the existence of minimal models in the case of varieties.
Finally, we prove several results which relate the birational geometry of foliations to classical birational geometry. For instance, it is a striking feature of the canonical model theorem for foliation by curves on surfaces that the singularities on the underlying surface of the canonical model are never worse than log canonical (see [Reference McQuillanMcQ08, Fact I.2.4 and Theorem III.3.2]).
We were interested in whether such a bound could be proven on threefolds without making recourse to a canonical model theorem for foliations on threefolds, which to our knowledge is unknown. In this direction we prove the following:
Theorem 1.3 (=Theorem 4.3).
 Let X be a normal threefold and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let
${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let 
 $0\in X$
 be an isolated singularity.
$0\in X$
 be an isolated singularity.
Then X has log canonical singularities.
 Simple examples show that this result is close to optimal in the sense that if 
 $0 \in X$
 is not an isolated singularity then there is in general no such bound on the singularities of X (see Example 4.5).
$0 \in X$
 is not an isolated singularity then there is in general no such bound on the singularities of X (see Example 4.5).
1.2 Sketch of the proof
 We briefly explain our approach to the proof of existence of flips. Let X be a 
 ${\mathbb Q}$
-factorial projective threefold with klt singularities and let
${\mathbb Q}$
-factorial projective threefold with klt singularities and let 
 ${\mathcal F}$
 be a foliation with canonical singularities on X. We assume for simplicity that
${\mathcal F}$
 be a foliation with canonical singularities on X. We assume for simplicity that 
 $\Delta =0$
. Let
$\Delta =0$
. Let 
 $f\colon X \rightarrow Z$
 be a
$f\colon X \rightarrow Z$
 be a 
 $K_{\mathcal F}$
-negative flipping contraction which contracts a single curve C. We first note that C is necessarily
$K_{\mathcal F}$
-negative flipping contraction which contracts a single curve C. We first note that C is necessarily 
 ${\mathcal F}$
-invariant (cf. §2.3).
${\mathcal F}$
-invariant (cf. §2.3).
 Our basic approach is to reduce the 
 $K_{\mathcal F}$
-flip to a
$K_{\mathcal F}$
-flip to a 
 $(K_X+D)$
-flip for some well-chosen divisor D on X. If D is an arbitrary divisor then there is no reason to expect any relation between
$(K_X+D)$
-flip for some well-chosen divisor D on X. If D is an arbitrary divisor then there is no reason to expect any relation between 
 ${\mathcal F}$
 and the pair
${\mathcal F}$
 and the pair 
 $(X, D)$
. However, if every component of D is
$(X, D)$
. However, if every component of D is 
 ${\mathcal F}$
-invariant then much of the geometry of
${\mathcal F}$
-invariant then much of the geometry of 
 $(X, D)$
 is controlled by
$(X, D)$
 is controlled by 
 ${\mathcal F}$
.
${\mathcal F}$
.
 In particular, in Section 4 we show that if 
 $(X, D)$
 is log canonical and C is a log canonical centre of
$(X, D)$
 is log canonical and C is a log canonical centre of 
 $(X, D)$
 then
$(X, D)$
 then 
 $(K_X+D)\cdot C<0$
. Thus, the challenge in producing the
$(K_X+D)\cdot C<0$
. Thus, the challenge in producing the 
 $K_{\mathcal F}$
-flip becomes to produce a very singular
$K_{\mathcal F}$
-flip becomes to produce a very singular 
 ${\mathcal F}$
-invariant divisor containing C. This divisor gives us the flexibility to produce a divisor D with the desired properties. This is achieved in Section 5. The idea is to perform a careful analysis of the singularities of the induced foliation
${\mathcal F}$
-invariant divisor containing C. This divisor gives us the flexibility to produce a divisor D with the desired properties. This is achieved in Section 5. The idea is to perform a careful analysis of the singularities of the induced foliation 
 $f_{*}{\mathcal F}$
 on Z at
$f_{*}{\mathcal F}$
 on Z at 
 $f(C)$
. Unfortunately, as in the classical MMP, the divisor
$f(C)$
. Unfortunately, as in the classical MMP, the divisor 
 $K_{f_{*}{\mathcal F}}$
 is not
$K_{f_{*}{\mathcal F}}$
 is not 
 ${\mathbb Q}$
-Cartier and so working directly with
${\mathbb Q}$
-Cartier and so working directly with 
 $f_{*}{\mathcal F}$
 is very difficult. Rather, we demonstrate the existence of an auxiliary divisor E on Z, which is a foliated version of a complement in the classical MMP and such that
$f_{*}{\mathcal F}$
 is very difficult. Rather, we demonstrate the existence of an auxiliary divisor E on Z, which is a foliated version of a complement in the classical MMP and such that 
 $K_{f_{*}{\mathcal F}}+E$
 is
$K_{f_{*}{\mathcal F}}+E$
 is 
 ${\mathbb Q}$
-Cartier and the pair
${\mathbb Q}$
-Cartier and the pair 
 $(f_{*}{\mathcal F}, E)$
 has mild singularities. An analysis of the pair is much more feasible and in fact we are able to show that
$(f_{*}{\mathcal F}, E)$
 has mild singularities. An analysis of the pair is much more feasible and in fact we are able to show that 
 $(f_{*}{\mathcal F}, E)$
 admits a particularly simple normal form which, roughly, can be given by a vector field of the form
$(f_{*}{\mathcal F}, E)$
 admits a particularly simple normal form which, roughly, can be given by a vector field of the form 
 $\sum n_ix_i\frac {\partial }{\partial x_i}$
 where the
$\sum n_ix_i\frac {\partial }{\partial x_i}$
 where the 
 $n_i$
 are non-negative integers. Examining this normal form, we are able to produce a large number of invariant divisors containing C on X.
$n_i$
 are non-negative integers. Examining this normal form, we are able to produce a large number of invariant divisors containing C on X.
 It is worth spending a moment to compare this with McQuillan’s approach to the existence of a flip. In dimension three, it is possible to show that 
 $C \cap {\operatorname {Sing} {\mathcal F}}$
 consists of a single point P and that if
$C \cap {\operatorname {Sing} {\mathcal F}}$
 consists of a single point P and that if 
 $\partial $
 is a vector field defining
$\partial $
 is a vector field defining 
 ${\mathcal F}$
 near P then
${\mathcal F}$
 near P then 
 $\partial = -t\frac {\partial }{\partial t}+ax\frac {\partial }{\partial x}+by\frac {\partial }{\partial y}$
 where
$\partial = -t\frac {\partial }{\partial t}+ax\frac {\partial }{\partial x}+by\frac {\partial }{\partial y}$
 where 
 $C = \{x = y = 0\}$
 and
$C = \{x = y = 0\}$
 and 
 $a, b$
 are positive integers. From this, it is possible to deduce that the normal bundle of C splits as
$a, b$
 are positive integers. From this, it is possible to deduce that the normal bundle of C splits as 
 $\mathcal O_C(-a)\oplus \mathcal O_C(-b)$
. By an inductive analysis of
$\mathcal O_C(-a)\oplus \mathcal O_C(-b)$
. By an inductive analysis of 
 ${\mathcal F}$
 along C, we can lift this splitting of the normal bundle to a splitting on a formal neighbourhood of C in X, that is, C is a complete intersection of two formal divisors. With this description of the formal neighbourhood of C in hand, it is easy to construct a surgery, which is similar to a flip, by an explicit procedure consisting of a single weighted blow up followed by a single weighted blow down.
${\mathcal F}$
 along C, we can lift this splitting of the normal bundle to a splitting on a formal neighbourhood of C in X, that is, C is a complete intersection of two formal divisors. With this description of the formal neighbourhood of C in hand, it is easy to construct a surgery, which is similar to a flip, by an explicit procedure consisting of a single weighted blow up followed by a single weighted blow down.
2 Preliminary Results
2.1 Notations
 We work over the field of complex numbers 
 ${\mathbb C}$
.
${\mathbb C}$
.
 Given a normal variety X, we denote by 
 $\Omega ^1_X$
 its sheaf of Kähler differentials and, by
$\Omega ^1_X$
 its sheaf of Kähler differentials and, by 
 $T_X:=(\Omega ^1_X)^{*}$
 its tangent sheaf. For any positive integer p, we denote
$T_X:=(\Omega ^1_X)^{*}$
 its tangent sheaf. For any positive integer p, we denote  . Let A be a
. Let A be a 
 ${\mathbb R}$
-Weil divisor on X and let D be a prime divisor. We denote by
${\mathbb R}$
-Weil divisor on X and let D be a prime divisor. We denote by 
 $\mu _DA$
 the coefficient of D in A. A log pair
$\mu _DA$
 the coefficient of D in A. A log pair 
 $(X,\Delta )$
 is a pair of a normal variety and a
$(X,\Delta )$
 is a pair of a normal variety and a 
 ${\mathbb Q}$
-divisor
${\mathbb Q}$
-divisor 
 $\Delta $
 such that
$\Delta $
 such that 
 $K_X+\Delta $
 is
$K_X+\Delta $
 is 
 ${\mathbb Q}$
-Cartier. We refer to [Reference Kollár and MoriKM98] for the classical definitions of singularities (e.g., klt, log canonical) appearing in the minimal model program, except for the fact that in our definitions we require the pairs to have effective boundaries. In addition, we say that a log pair
${\mathbb Q}$
-Cartier. We refer to [Reference Kollár and MoriKM98] for the classical definitions of singularities (e.g., klt, log canonical) appearing in the minimal model program, except for the fact that in our definitions we require the pairs to have effective boundaries. In addition, we say that a log pair 
 $(X,\Delta )$
 is sub log canonical, or sub lc, if
$(X,\Delta )$
 is sub log canonical, or sub lc, if 
 $a(E,X,\Delta )\ge -1$
 for any geometric valuation E over X. A fibration
$a(E,X,\Delta )\ge -1$
 for any geometric valuation E over X. A fibration 
 $f\colon X\to Y$
 is a surjective morphism between normal varieties with connected fibres. We refer to [Reference Cascini and SpicerCS21, Section 2.6] for some of the basic notions, commonly used in the MMP.
$f\colon X\to Y$
 is a surjective morphism between normal varieties with connected fibres. We refer to [Reference Cascini and SpicerCS21, Section 2.6] for some of the basic notions, commonly used in the MMP.
 A foliation of rank 
 $\boldsymbol {r}$
 on a normal variety X is a rank r coherent subsheaf
$\boldsymbol {r}$
 on a normal variety X is a rank r coherent subsheaf 
 ${\mathcal F}\subset T_X$
 such that
${\mathcal F}\subset T_X$
 such that 
- 
1.  ${\mathcal F}$
 is saturated in ${\mathcal F}$
 is saturated in $T_X$
, and $T_X$
, and
- 
2.  ${\mathcal F}$
 is closed under Lie bracket. ${\mathcal F}$
 is closed under Lie bracket.
Note that if 
 $r=1$
 then (2) is automatically satisfied. By (1), it follows that
$r=1$
 then (2) is automatically satisfied. By (1), it follows that 
 $T_X/{{\mathcal F}}$
 is torsion free. We denote by
$T_X/{{\mathcal F}}$
 is torsion free. We denote by 
 $\mathcal N^{*}_{\mathcal F}:=(T_X/{{\mathcal F}})^{*}$
 the conormal sheaf of
$\mathcal N^{*}_{\mathcal F}:=(T_X/{{\mathcal F}})^{*}$
 the conormal sheaf of 
 ${\mathcal F}$
. The normal sheaf
${\mathcal F}$
. The normal sheaf 
 $\mathcal N_F$
 of
$\mathcal N_F$
 of 
 ${\mathcal F}$
 is the dual of the conormal sheaf. The canonical divisor of
${\mathcal F}$
 is the dual of the conormal sheaf. The canonical divisor of 
 ${\mathcal F}$
 is a divisor
${\mathcal F}$
 is a divisor 
 $K_{\mathcal F}$
 on X such that
$K_{\mathcal F}$
 on X such that 
 $\mathcal O_X(-K_{\mathcal F})\simeq \det T_{{\mathcal F}}$
. The foliation
$\mathcal O_X(-K_{\mathcal F})\simeq \det T_{{\mathcal F}}$
. The foliation 
 ${\mathcal F}$
 is said to be Gorenstein (resp.
${\mathcal F}$
 is said to be Gorenstein (resp. 
 ${\mathbb Q}$
-Gorenstein) if
${\mathbb Q}$
-Gorenstein) if 
 $K_{{\mathcal F}}$
 is a Cartier (resp.
$K_{{\mathcal F}}$
 is a Cartier (resp. 
 ${\mathbb Q}$
-Cartier) divisor. More generally, a rank
${\mathbb Q}$
-Cartier) divisor. More generally, a rank 
 $\boldsymbol {r}$
 foliated pair
$\boldsymbol {r}$
 foliated pair 
 $({\mathcal F}, \Delta )$
 is a pair of a foliation
$({\mathcal F}, \Delta )$
 is a pair of a foliation 
 ${\mathcal F}$
 of rank r and a
${\mathcal F}$
 of rank r and a 
 ${\mathbb Q}$
-divisor
${\mathbb Q}$
-divisor 
 $\Delta \ge 0$
 such that
$\Delta \ge 0$
 such that 
 $K_{\mathcal F}+\Delta $
 is
$K_{\mathcal F}+\Delta $
 is 
 ${\mathbb Q}$
-Cartier.
${\mathbb Q}$
-Cartier.
 Let X be a normal variety and let 
 ${\mathcal F}$
 be a rank r foliation on X. We can associate to
${\mathcal F}$
 be a rank r foliation on X. We can associate to 
 ${\mathcal F}$
 a morphism
${\mathcal F}$
 a morphism 
 $$\begin{align*}\phi\colon \Omega^{[r]}_X \rightarrow \mathcal O_X(K_{\mathcal F})\end{align*}$$
$$\begin{align*}\phi\colon \Omega^{[r]}_X \rightarrow \mathcal O_X(K_{\mathcal F})\end{align*}$$
defined by taking the double dual of the r-wedge product of the map 
 $\Omega ^{[1]}_X\to {\mathcal F}^{*}$
, induced by the inclusion
$\Omega ^{[1]}_X\to {\mathcal F}^{*}$
, induced by the inclusion 
 ${\mathcal F} \subset T_X$
. We will call
${\mathcal F} \subset T_X$
. We will call 
 $\phi $
 the Pfaff field associated to
$\phi $
 the Pfaff field associated to 
 ${\mathcal F}$
. Following [Reference DruelDru21, Definition 5.4], we define the twisted Pfaff field as the induced map
${\mathcal F}$
. Following [Reference DruelDru21, Definition 5.4], we define the twisted Pfaff field as the induced map 
 $$\begin{align*}\phi'\colon (\Omega^{[r]}_X \otimes \mathcal O_X(-K_{\mathcal F}))^{**} \rightarrow \mathcal O_X\end{align*}$$
$$\begin{align*}\phi'\colon (\Omega^{[r]}_X \otimes \mathcal O_X(-K_{\mathcal F}))^{**} \rightarrow \mathcal O_X\end{align*}$$
and we define the singular locus of 
 ${\mathcal F}$
, denoted by
${\mathcal F}$
, denoted by 
 ${\operatorname {Sing} {\mathcal F}}$
, to be the cosupport of the image of
${\operatorname {Sing} {\mathcal F}}$
, to be the cosupport of the image of 
 $\phi '$
. We say that
$\phi '$
. We say that 
 ${\mathcal F}$
 is smooth at a closed point
${\mathcal F}$
 is smooth at a closed point 
 $x\in X$
 if
$x\in X$
 if 
 $x\notin {\operatorname {Sing} {\mathcal F}}$
 and we say that
$x\notin {\operatorname {Sing} {\mathcal F}}$
 and we say that 
 ${\mathcal F}$
 is a smooth foliation if
${\mathcal F}$
 is a smooth foliation if 
 ${\operatorname {Sing} {\mathcal F}}$
 is empty.
${\operatorname {Sing} {\mathcal F}}$
 is empty.
 Let 
 $\sigma \colon Y\dashrightarrow X$
 be a dominant map between normal varieties and let
$\sigma \colon Y\dashrightarrow X$
 be a dominant map between normal varieties and let 
 ${\mathcal F}$
 be a foliation of rank r on X. We denote by
${\mathcal F}$
 be a foliation of rank r on X. We denote by 
 $\sigma ^{-1}{\mathcal F}$
 the induced foliation on Y (e.g., see [Reference DruelDru21, Section 3.2]). If
$\sigma ^{-1}{\mathcal F}$
 the induced foliation on Y (e.g., see [Reference DruelDru21, Section 3.2]). If 
 $\sigma \colon Y\to X$
 is a morphism then the induced foliation
$\sigma \colon Y\to X$
 is a morphism then the induced foliation 
 $\sigma ^{-1}{\mathcal F}$
 is called the pulled back foliation. If
$\sigma ^{-1}{\mathcal F}$
 is called the pulled back foliation. If 
 $f\colon X\dashrightarrow X'$
 is a birational map, then the induced foliation on
$f\colon X\dashrightarrow X'$
 is a birational map, then the induced foliation on 
 $X'$
 by
$X'$
 by 
 $f^{-1}$
 is called the transformed foliation of
$f^{-1}$
 is called the transformed foliation of 
 ${\mathcal F}$
 by f and we will denote it by
${\mathcal F}$
 by f and we will denote it by 
 $f_{*}{\mathcal F}$
. Moreover, if
$f_{*}{\mathcal F}$
. Moreover, if 
 $q\colon X' \rightarrow X$
 is a quasi-étale cover and
$q\colon X' \rightarrow X$
 is a quasi-étale cover and 
 ${\mathcal F}' = q^{-1}{\mathcal F}$
 then
${\mathcal F}' = q^{-1}{\mathcal F}$
 then 
 $K_{{\mathcal F}'}=q^{*}K_{\mathcal F}$
 and [Reference DruelDru21, Proposition 5.13] implies that
$K_{{\mathcal F}'}=q^{*}K_{\mathcal F}$
 and [Reference DruelDru21, Proposition 5.13] implies that 
 ${\mathcal F}'$
 is smooth if and only if
${\mathcal F}'$
 is smooth if and only if 
 ${\mathcal F}$
 is.
${\mathcal F}$
 is.
2.2 Singularities in the sense of McQuillan
The definition of foliation singularities used in [Reference McQuillanMcQ04] is slightly different than the notion defined above. We recall McQuillan’s definition now.
 Let X be a normal variety, let 
 ${\mathcal F}$
 be a rank one foliation on X such that
${\mathcal F}$
 be a rank one foliation on X such that 
 $K_{\mathcal F}$
 is
$K_{\mathcal F}$
 is 
 ${\mathbb Q}$
-Cartier. Let
${\mathbb Q}$
-Cartier. Let 
 $x \in X$
 be a point and let U be an open neighbourhood of x. Up to replacing U by a smaller neighbourhood we may find an index one cover
$x \in X$
 be a point and let U be an open neighbourhood of x. Up to replacing U by a smaller neighbourhood we may find an index one cover 
 $\sigma \colon U' \rightarrow U$
 associated to
$\sigma \colon U' \rightarrow U$
 associated to 
 $K_{{\mathcal F}}$
 and such that
$K_{{\mathcal F}}$
 and such that 
 $\sigma ^{-1}{\mathcal F}$
 is generated by a vector field
$\sigma ^{-1}{\mathcal F}$
 is generated by a vector field 
 $\partial $
.
$\partial $
.
 We say that 
 ${\mathcal F}$
 is singular in the sense of McQuillan at
${\mathcal F}$
 is singular in the sense of McQuillan at 
 $x \in X$
 provided there exists an embedding
$x \in X$
 provided there exists an embedding 
 $U' \rightarrow M$
 where M is a smooth variety and a lift
$U' \rightarrow M$
 where M is a smooth variety and a lift 
 $\tilde {\partial }$
 of
$\tilde {\partial }$
 of 
 $\partial $
 to a vector field on M such that
$\partial $
 to a vector field on M such that 
 $\tilde {\partial }$
 vanishes at
$\tilde {\partial }$
 vanishes at 
 $\sigma ^{-1}(x)$
. We denote by
$\sigma ^{-1}(x)$
. We denote by 
 ${\operatorname {Sing}^{+}{\mathcal F}}$
 the locus of points
${\operatorname {Sing}^{+}{\mathcal F}}$
 the locus of points 
 $x \in X$
 where
$x \in X$
 where 
 ${\mathcal F}$
 is singular in the sense of McQuillan. Note that
${\mathcal F}$
 is singular in the sense of McQuillan. Note that 
 ${\operatorname {Sing}^{+}{\mathcal F}}$
 does not depend on the choice of
${\operatorname {Sing}^{+}{\mathcal F}}$
 does not depend on the choice of 
 $U'$
 and it is a closed subset of X.
$U'$
 and it is a closed subset of X.
We have the following inclusion of singular loci:
Lemma 2.1. Let X be a normal variety, let 
 ${\mathcal F}$
 be a rank one foliation on X such that
${\mathcal F}$
 be a rank one foliation on X such that 
 $K_{\mathcal F}$
 is
$K_{\mathcal F}$
 is 
 ${\mathbb Q}$
-Cartier.
${\mathbb Q}$
-Cartier.
 Then 
 ${\operatorname {Sing} {\mathcal F}} \subset {\operatorname {Sing}^{+}{\mathcal F}}$
.
${\operatorname {Sing} {\mathcal F}} \subset {\operatorname {Sing}^{+}{\mathcal F}}$
.
Proof. See [Reference Cascini and SpicerCS25a, Lemma 4.1].
We will show later that the equality holds if X admits klt singularities (cf. Proposition 2.32).
2.3 Invariant subvarieties
 Let X be a normal variety, and let 
 $\partial \in H^0(X,T_X)$
 be a vector field. We say that an ideal sheaf J of X is
$\partial \in H^0(X,T_X)$
 be a vector field. We say that an ideal sheaf J of X is 
 $\boldsymbol {\partial }$
-invariant if
$\boldsymbol {\partial }$
-invariant if 
 $\partial (J)\subset J$
. Let
$\partial (J)\subset J$
. Let 
 $S\subset X$
 be a subvariety. Then S is said to be
$S\subset X$
 be a subvariety. Then S is said to be 
 $\boldsymbol {\partial }$
-invariant, or invariant by
$\boldsymbol {\partial }$
-invariant, or invariant by 
 $\partial $
 if the ideal sheaf
$\partial $
 if the ideal sheaf 
 ${\mathcal I}_{S}$
 of S is
${\mathcal I}_{S}$
 of S is 
 $\partial $
-invariant.
$\partial $
-invariant.
 Let 
 ${\mathcal F}$
 be a foliation on X. Then S is said to be
${\mathcal F}$
 be a foliation on X. Then S is said to be 
 ${\boldsymbol {\mathcal F}}$
-invariant, or invariant by
${\boldsymbol {\mathcal F}}$
-invariant, or invariant by
 ${\mathcal F}$
, if, in a neighbourhood U of the generic point of S,
${\mathcal F}$
, if, in a neighbourhood U of the generic point of S, 
 $T_{{\mathcal F}}$
 is locally free and for any section
$T_{{\mathcal F}}$
 is locally free and for any section 
 $\partial \in H^0(U,{\mathcal F})$
, we have that
$\partial \in H^0(U,{\mathcal F})$
, we have that 
 $S\cap U$
 is
$S\cap U$
 is 
 $\partial $
-invariant. If
$\partial $
-invariant. If 
 $D\subset X$
 is a prime divisor then we define
$D\subset X$
 is a prime divisor then we define 
 $\epsilon (D) = 1$
 if D is not
$\epsilon (D) = 1$
 if D is not 
 ${\mathcal F}$
-invariant and
${\mathcal F}$
-invariant and 
 $\epsilon (D) = 0$
 if it is
$\epsilon (D) = 0$
 if it is 
 ${\mathcal F}$
-invariant.
${\mathcal F}$
-invariant.
We will need the following version of Riemann-Hurwitz formula for foliations (e.g., see [Reference DruelDru21, Lemma 3.4]):
Proposition 2.2. Let 
 $\sigma \colon Y \rightarrow X$
 be a finite surjective morphism between normal varieties, let
$\sigma \colon Y \rightarrow X$
 be a finite surjective morphism between normal varieties, let 
 ${\mathcal F}$
 be a foliation on X and let
${\mathcal F}$
 be a foliation on X and let 
 $\mathcal G := \sigma ^{-1}{\mathcal F}$
.
$\mathcal G := \sigma ^{-1}{\mathcal F}$
.
Then we may write
 $$\begin{align*}K_{\mathcal G} = \sigma^{*}K_{\mathcal F} + \sum \epsilon(\sigma(D))(r_D-1)D\end{align*}$$
$$\begin{align*}K_{\mathcal G} = \sigma^{*}K_{\mathcal F} + \sum \epsilon(\sigma(D))(r_D-1)D\end{align*}$$
where the sum runs over all the prime divisors on Y and 
 $r_D$
 is the ramification index of
$r_D$
 is the ramification index of 
 $\sigma $
 along D. In particular, if every ramified divisor is
$\sigma $
 along D. In particular, if every ramified divisor is 
 $\mathcal G$
-invariant then
$\mathcal G$
-invariant then 
 $K_{\mathcal G} = \sigma ^{*}K_{\mathcal F}$
.
$K_{\mathcal G} = \sigma ^{*}K_{\mathcal F}$
.
Lemma 2.3. Let X be a normal variety and let 
 ${\mathcal F}$
 be a rank one foliation on X. Let
${\mathcal F}$
 be a rank one foliation on X. Let 
 $p\colon Y \rightarrow X$
 be a proper morphism and assume that
$p\colon Y \rightarrow X$
 be a proper morphism and assume that 
 $K_{{\mathcal F}}$
 is Cartier and
$K_{{\mathcal F}}$
 is Cartier and 
 $K_{\mathcal G} = p^{*}K_{\mathcal F}$
 where
$K_{\mathcal G} = p^{*}K_{\mathcal F}$
 where 
 $\mathcal G := p^{-1}{\mathcal F}$
.
$\mathcal G := p^{-1}{\mathcal F}$
.
Then the following hold:
- 
1. If  $W \subset Y$
 is a $W \subset Y$
 is a $\mathcal G$
-invariant subvariety then $\mathcal G$
-invariant subvariety then $p(W)$
 is $p(W)$
 is ${\mathcal F}$
-invariant. ${\mathcal F}$
-invariant.
- 
2. If  $Z \subset X$
 is a $Z \subset X$
 is a ${\mathcal F}$
-invariant subvariety then ${\mathcal F}$
-invariant subvariety then $p^{-1}(Z)$
 is $p^{-1}(Z)$
 is $\mathcal G$
-invariant. $\mathcal G$
-invariant.
Proof. We may assume that X is affine and that 
 $T_{\mathcal F}$
 is generated by a vector field
$T_{\mathcal F}$
 is generated by a vector field 
 $\partial $
 which lifts to a vector field
$\partial $
 which lifts to a vector field 
 $\tilde {\partial }$
 on Y which generates
$\tilde {\partial }$
 on Y which generates 
 $T_{\mathcal G}$
.
$T_{\mathcal G}$
.
 We first prove (1). Let J denote the ideal of 
 $p(W)$
 and let I denote the ideal sheaf of W. In particular,
$p(W)$
 and let I denote the ideal sheaf of W. In particular, 
 $p_{*}I$
 is the sheaf associated to J. Let
$p_{*}I$
 is the sheaf associated to J. Let 
 $f \in J$
 and notice that
$f \in J$
 and notice that 
 $p^{*}\partial f = \tilde {\partial }(p^{*}f)$
. Since W is
$p^{*}\partial f = \tilde {\partial }(p^{*}f)$
. Since W is 
 $\mathcal G$
-invariant and p is proper, we have
$\mathcal G$
-invariant and p is proper, we have 
 $$\begin{align*}p^{*}\partial f= \tilde{\partial}(p^{*}f) \in H^0(Y, I)=J. \end{align*}$$
$$\begin{align*}p^{*}\partial f= \tilde{\partial}(p^{*}f) \in H^0(Y, I)=J. \end{align*}$$
Thus, J is 
 $\partial $
-invariant and (1) follows.
$\partial $
-invariant and (1) follows.
 We now prove (2). Let I denote the ideal sheaf of Z and let 
 $f_1, ..., f_k$
 be generators of I. Then
$f_1, ..., f_k$
 be generators of I. Then 
 $p^{*}f_1,\dots ,p^{*}f_k$
 are generators of
$p^{*}f_1,\dots ,p^{*}f_k$
 are generators of 
 $p^{-1}I\mathcal O_Y$
, the ideal sheaf of the scheme-theoretic preimage
$p^{-1}I\mathcal O_Y$
, the ideal sheaf of the scheme-theoretic preimage 
 $p^{-1}(Z)$
. Since
$p^{-1}(Z)$
. Since 
 $\partial (f_i) \in I$
 we get that
$\partial (f_i) \in I$
 we get that 
 $$\begin{align*}\tilde{\partial}(p^{*}f_i) = p^{*}\partial f_i \in p^{-1}I\mathcal O_Y \end{align*}$$
$$\begin{align*}\tilde{\partial}(p^{*}f_i) = p^{*}\partial f_i \in p^{-1}I\mathcal O_Y \end{align*}$$
and so 
 $p^{-1}I\mathcal O_Y$
 is invariant under
$p^{-1}I\mathcal O_Y$
 is invariant under 
 $\tilde {\partial }$
, as required.
$\tilde {\partial }$
, as required.
2.4 Foliation singularities
 Let X be a normal variety and let 
 $({\mathcal F},\Delta )$
 be a foliated pair on X.
$({\mathcal F},\Delta )$
 be a foliated pair on X.
 Given a birational morphism 
 $\pi \colon \widetilde {X} \rightarrow X$
, let
$\pi \colon \widetilde {X} \rightarrow X$
, let 
 $\widetilde {\mathcal F}$
 be the pulled back foliation on
$\widetilde {\mathcal F}$
 be the pulled back foliation on 
 $\tilde {X}$
 and let
$\tilde {X}$
 and let 
 $\Delta '$
 be the strict transform of
$\Delta '$
 be the strict transform of 
 $\Delta $
 in
$\Delta $
 in 
 $\widetilde X$
. We may write
$\widetilde X$
. We may write 
 $$\begin{align*}K_{\widetilde{\mathcal F}}+\Delta'= \pi^{*}(K_{\mathcal F}+\Delta)+ \sum a(E, {\mathcal F}, \Delta)E\end{align*}$$
$$\begin{align*}K_{\widetilde{\mathcal F}}+\Delta'= \pi^{*}(K_{\mathcal F}+\Delta)+ \sum a(E, {\mathcal F}, \Delta)E\end{align*}$$
where the sum runs over all the prime 
 $\pi $
-exceptional divisors of
$\pi $
-exceptional divisors of 
 $\tilde X$
.
$\tilde X$
.
 The rational number 
 $a(E,{\mathcal F},\Delta )$
 denotes the discrepancy of
$a(E,{\mathcal F},\Delta )$
 denotes the discrepancy of 
 $({\mathcal F},\Delta )$
 with respect to E. If
$({\mathcal F},\Delta )$
 with respect to E. If 
 $\Delta =0$
, then we will simply denote
$\Delta =0$
, then we will simply denote 
 $a(E,{\mathcal F})=a(E,{\mathcal F},0)$
.
$a(E,{\mathcal F})=a(E,{\mathcal F},0)$
.
Definition 2.4. Let X be a normal variety and let 
 $({\mathcal F},\Delta )$
 be a foliated pair on X. We say that
$({\mathcal F},\Delta )$
 be a foliated pair on X. We say that 
 $({\mathcal F}, \Delta )$
 is terminal (resp. canonical, log terminal, log canonical) if
$({\mathcal F}, \Delta )$
 is terminal (resp. canonical, log terminal, log canonical) if 
 $a(E, {\mathcal F}, \Delta )>0$
 (resp.
$a(E, {\mathcal F}, \Delta )>0$
 (resp. 
 $\geq 0$
,
$\geq 0$
, 
 $> -\epsilon (E)$
,
$> -\epsilon (E)$
, 
 $\geq -\epsilon (E)$
), for any birational morphism
$\geq -\epsilon (E)$
), for any birational morphism 
 $\pi \colon \tilde X\to X$
 and for any
$\pi \colon \tilde X\to X$
 and for any 
 $\pi $
-exceptional divisor E on
$\pi $
-exceptional divisor E on 
 $\tilde X$
.
$\tilde X$
.
 Moreover, we say that the foliated pair 
 $({\mathcal F},\Delta )$
 is Kawamata log terminal, or klt, if
$({\mathcal F},\Delta )$
 is Kawamata log terminal, or klt, if 
 $\lfloor \Delta \rfloor =0$
 and if
$\lfloor \Delta \rfloor =0$
 and if 
 $a(E,{\mathcal F},\Delta )> -\epsilon (E)$
 for any birational morphism
$a(E,{\mathcal F},\Delta )> -\epsilon (E)$
 for any birational morphism 
 $\pi \colon \tilde X\to X$
 and for any
$\pi \colon \tilde X\to X$
 and for any 
 $\pi $
-exceptional prime divisor E on
$\pi $
-exceptional prime divisor E on 
 $\tilde X$
.
$\tilde X$
.
 We say that a 
 ${\mathbb Q}$
-Gorenstein foliation
${\mathbb Q}$
-Gorenstein foliation 
 ${\mathcal F}$
 is terminal (resp. canonical, log canonical) if the foliated pair
${\mathcal F}$
 is terminal (resp. canonical, log canonical) if the foliated pair 
 $({\mathcal F},0)$
 is such.
$({\mathcal F},0)$
 is such.
 Note that these notions are well defined, that is, 
 $\epsilon (E)$
 and
$\epsilon (E)$
 and 
 $a(E, {\mathcal F}, \Delta )$
 are independent of
$a(E, {\mathcal F}, \Delta )$
 are independent of 
 $\pi $
. Observe also that in the case where
$\pi $
. Observe also that in the case where 
 ${\mathcal F} = T_X$
, no exceptional divisor E over X is invariant, that is,
${\mathcal F} = T_X$
, no exceptional divisor E over X is invariant, that is, 
 $\epsilon (E)=1$
 for all E, and so this definition recovers the usual definitions of (log) terminal and (log) canonical.
$\epsilon (E)=1$
 for all E, and so this definition recovers the usual definitions of (log) terminal and (log) canonical.
 Let 
 $P \in X$
 be a, not necessarily closed, point of X. We say that
$P \in X$
 be a, not necessarily closed, point of X. We say that 
 $({\mathcal F}, \Delta )$
 is terminal (resp. canonical, log canonical) at
$({\mathcal F}, \Delta )$
 is terminal (resp. canonical, log canonical) at 
 $\boldsymbol {P}$
 if for any birational morphism
$\boldsymbol {P}$
 if for any birational morphism 
 $\pi \colon \widetilde X\to X$
 and for any
$\pi \colon \widetilde X\to X$
 and for any 
 $\pi $
-exceptional divisor E on
$\pi $
-exceptional divisor E on 
 $\widetilde X$
 whose centre in X is the Zariski closure
$\widetilde X$
 whose centre in X is the Zariski closure 
 $\overline P$
 of P, we have that the discrepancy of E is
$\overline P$
 of P, we have that the discrepancy of E is 
 $>0$
 (resp.
$>0$
 (resp. 
 $\geq 0$
,
$\geq 0$
, 
 $\geq -\epsilon (E)$
). Sometimes we will phrase this as P is a terminal (resp. canonical, log canonical) point for
$\geq -\epsilon (E)$
). Sometimes we will phrase this as P is a terminal (resp. canonical, log canonical) point for 
 $({\mathcal F}, \Delta )$
. We say that
$({\mathcal F}, \Delta )$
. We say that 
 ${\mathcal F}$
 is terminal near
${\mathcal F}$
 is terminal near 
 $P \in X$
 if there is a neighborhood U of P such that
$P \in X$
 if there is a neighborhood U of P such that 
 ${\mathcal F}\vert _U$
 is terminal. We will see (cf. Lemma 2.9) that being terminal at a closed point P is equivalent to
${\mathcal F}\vert _U$
 is terminal. We will see (cf. Lemma 2.9) that being terminal at a closed point P is equivalent to 
 ${\mathcal F}$
 being smooth at P.
${\mathcal F}$
 being smooth at P.
 Given an irreducible subvariety 
 $W \subset X$
, we say that
$W \subset X$
, we say that 
 $({\mathcal F},\Delta )$
 is terminal at the generic point of W if
$({\mathcal F},\Delta )$
 is terminal at the generic point of W if 
 $({\mathcal F},\Delta )$
 is terminal at the generic point
$({\mathcal F},\Delta )$
 is terminal at the generic point 
 $\eta _W$
 of W. We say that
$\eta _W$
 of W. We say that 
 $({\mathcal F},\Delta )$
 is terminal at a general point of W if
$({\mathcal F},\Delta )$
 is terminal at a general point of W if 
 $({\mathcal F},\Delta )$
 is terminal at a general closed point of W.
$({\mathcal F},\Delta )$
 is terminal at a general closed point of W.
Definition 2.5. Given a normal variety X and a foliated pair 
 $({\mathcal F}, \Delta )$
 on X, we say that a subvariety
$({\mathcal F}, \Delta )$
 on X, we say that a subvariety 
 $W \subset X$
 is a log canonical centre or, in short, lc centre (resp. canonical centre) of
$W \subset X$
 is a log canonical centre or, in short, lc centre (resp. canonical centre) of 
 $({\mathcal F}, \Delta )$
 if
$({\mathcal F}, \Delta )$
 if 
 $({\mathcal F},\Delta )$
 is log canonical (resp. canonical) at the generic point of W and there is a birational morphism
$({\mathcal F},\Delta )$
 is log canonical (resp. canonical) at the generic point of W and there is a birational morphism 
 $\pi \colon Y\to X$
 and a prime divisor E on Y of discrepancy
$\pi \colon Y\to X$
 and a prime divisor E on Y of discrepancy 
 $-\epsilon (E)$
 (resp.
$-\epsilon (E)$
 (resp. 
 $0$
) whose centre in X is W.
$0$
) whose centre in X is W.
 A subvariety W is called a non log canonical centre of 
 $({\mathcal F},\Delta )$
 if there is a birational morphism
$({\mathcal F},\Delta )$
 if there is a birational morphism 
 $\pi \colon Y\to X$
 and a prime divisor E on Y of discrepancy
$\pi \colon Y\to X$
 and a prime divisor E on Y of discrepancy 
 $<-\epsilon (E)$
 whose centre in X is W.
$<-\epsilon (E)$
 whose centre in X is W.
 Note that if W is a canonical centre of 
 $({\mathcal F}, \Delta )$
, then
$({\mathcal F}, \Delta )$
, then 
 $({\mathcal F}, \Delta )$
 is not terminal at the generic point of W. We also remark that if
$({\mathcal F}, \Delta )$
 is not terminal at the generic point of W. We also remark that if 
 ${\mathcal F}$
 is smooth and
${\mathcal F}$
 is smooth and 
 $C\subset X$
 is an
$C\subset X$
 is an 
 ${\mathcal F}$
-invariant curve then
${\mathcal F}$
-invariant curve then 
 ${\mathcal F}$
 is terminal at a general point of C, but is not terminal at the generic point of C.
${\mathcal F}$
 is terminal at a general point of C, but is not terminal at the generic point of C.
 Given a normal variety X and a foliation 
 ${\mathcal F}$
 of rank one on X, we say that
${\mathcal F}$
 of rank one on X, we say that 
 ${\mathcal F}$
 has dicritical singularities if there exists a birational morphism
${\mathcal F}$
 has dicritical singularities if there exists a birational morphism 
 $\pi \colon X'\to X$
 and a
$\pi \colon X'\to X$
 and a 
 $\pi $
-exceptional divisor E which is not
$\pi $
-exceptional divisor E which is not 
 $\pi ^{-1}{\mathcal F}$
-invariant. We say that
$\pi ^{-1}{\mathcal F}$
-invariant. We say that 
 ${\mathcal F}$
 is nondicritical, if it is not dicritical.
${\mathcal F}$
 is nondicritical, if it is not dicritical.
Lemma 2.6. Let X be a normal variety and let 
 ${\mathcal F}$
 be a rank one foliation with canonical singularities.
${\mathcal F}$
 be a rank one foliation with canonical singularities.
 Then 
 ${\mathcal F}$
 is nondicritical.
${\mathcal F}$
 is nondicritical.
Proof. This is [Reference McQuillan and PanazzoloMP13, Corollary III.i.4].
 Note that if 
 ${\mathcal F}$
 is a nondicritical foliation then the notions of log canonical and canonical coincide. In this case we might still refer to canonical centres as log canonical centres. We also remark that any
${\mathcal F}$
 is a nondicritical foliation then the notions of log canonical and canonical coincide. In this case we might still refer to canonical centres as log canonical centres. We also remark that any 
 ${\mathcal F}$
-invariant divisor is an lc centre and a canonical centre of
${\mathcal F}$
-invariant divisor is an lc centre and a canonical centre of 
 $({\mathcal F}, \Delta )$
.
$({\mathcal F}, \Delta )$
.
We will make frequent use of the following consequence of the negativity lemma:
Lemma 2.7. Let 
 $\phi \colon X\dashrightarrow X'$
 be a birational map between normal varieties and let
$\phi \colon X\dashrightarrow X'$
 be a birational map between normal varieties and let

be a commutative diagram, where Y is a normal variety and f and 
 $f'$
 are proper birational morphisms. Let
$f'$
 are proper birational morphisms. Let 
 $({\mathcal F},\Delta )$
 be a foliated pair on X. Let
$({\mathcal F},\Delta )$
 be a foliated pair on X. Let 
 ${\mathcal F}'=\phi _{*}{\mathcal F}$
 and let
${\mathcal F}'=\phi _{*}{\mathcal F}$
 and let 
 $({\mathcal F}',\Delta ')$
 be a foliated pair on
$({\mathcal F}',\Delta ')$
 be a foliated pair on 
 $X'$
 such that
$X'$
 such that 
 $f_{*}\Delta =f^{\prime }_{*}\Delta '$
. Assume that
$f_{*}\Delta =f^{\prime }_{*}\Delta '$
. Assume that 
 $-(K_{\mathcal F}+\Delta )$
 is f-ample and
$-(K_{\mathcal F}+\Delta )$
 is f-ample and 
 $K_{{\mathcal F}'}+\Delta '$
 is
$K_{{\mathcal F}'}+\Delta '$
 is 
 $f'$
-ample.
$f'$
-ample.
Then, for any valuation E on X, we have
 $$\begin{align*}a(E,{\mathcal F},\Delta)\le a(E,{\mathcal F}',\Delta'). \end{align*}$$
$$\begin{align*}a(E,{\mathcal F},\Delta)\le a(E,{\mathcal F}',\Delta'). \end{align*}$$
Moreover, the strict inequality holds if f or 
 $f'$
 is not an isomorphism above the generic point of the centre of E in Y.
$f'$
 is not an isomorphism above the generic point of the centre of E in Y.
Proof. The proof is the same as [Reference Kollár and MoriKM98, Lemma 3.38].
The following is essentially [Reference McQuillan and PanazzoloMP13, Corollary III.i.5]:
Lemma 2.8. Let X be a normal variety and let 
 ${\mathcal F}$
 be a rank one foliation on X. Let
${\mathcal F}$
 be a rank one foliation on X. Let 
 $q\colon \overline X\to X$
 be a finite morphism and let
$q\colon \overline X\to X$
 be a finite morphism and let 
 $\overline {\mathcal F}:=q^{-1}{\mathcal F}$
. Let
$\overline {\mathcal F}:=q^{-1}{\mathcal F}$
. Let 
 $\overline Z\subset \overline X$
 be a subvariety and let
$\overline Z\subset \overline X$
 be a subvariety and let 
 $Z:=q(\overline Z)$
. Assume that
$Z:=q(\overline Z)$
. Assume that 
 $({\mathcal F},\Delta )$
 is a foliated pair on X and assume that
$({\mathcal F},\Delta )$
 is a foliated pair on X and assume that 
 $\overline \Delta :=q^{*}(K_{\mathcal F}+\Delta )-K_{\overline {\mathcal F}}$
 is an effective
$\overline \Delta :=q^{*}(K_{\mathcal F}+\Delta )-K_{\overline {\mathcal F}}$
 is an effective 
 ${\mathbb Q}$
-divisor.
${\mathbb Q}$
-divisor.
 Then 
 $({\mathcal F}, \Delta )$
 is log canonical at the generic point of Z if and only if
$({\mathcal F}, \Delta )$
 is log canonical at the generic point of Z if and only if 
 $(\overline {\mathcal F}, \overline {\Delta })$
 is log canonical at the generic point of
$(\overline {\mathcal F}, \overline {\Delta })$
 is log canonical at the generic point of 
 $\overline {Z}$
.
$\overline {Z}$
.
 Moreover, if q is a quasi-étale morphism, then 
 ${\mathcal F}$
 is terminal (resp. canonical) at the generic point of Z if and only if
${\mathcal F}$
 is terminal (resp. canonical) at the generic point of Z if and only if 
 $(\overline {\mathcal F}, \overline {\Delta })$
 is terminal (resp. canonical) at the generic point of
$(\overline {\mathcal F}, \overline {\Delta })$
 is terminal (resp. canonical) at the generic point of 
 $\overline {Z}$
.
$\overline {Z}$
.
Proof. We follow the same methods as [Reference Kollár and MoriKM98, Proposition 5.20]. Let 
 $\overline f\colon \overline Y\to \overline X$
 be a proper birational morphism and let
$\overline f\colon \overline Y\to \overline X$
 be a proper birational morphism and let 
 $\overline E$
 be an
$\overline E$
 be an 
 $\overline f$
-exceptional divisor on
$\overline f$
-exceptional divisor on 
 $\overline Y$
 whose centre in
$\overline Y$
 whose centre in 
 $\overline X$
 is
$\overline X$
 is 
 $\overline Z$
. Then, by [Reference KollárKol96, Theorem VI.1.3], after possibly replacing
$\overline Z$
. Then, by [Reference KollárKol96, Theorem VI.1.3], after possibly replacing 
 $\overline {Y}$
 by an higher model, we may assume that there exists a commutative diagram
$\overline {Y}$
 by an higher model, we may assume that there exists a commutative diagram

where 
 $ f$
 is birational and p is finite. In particular, if
$ f$
 is birational and p is finite. In particular, if 
 $E=p(\overline {E})$
 then E is f-exceptional and Z is the centre of E in X.
$E=p(\overline {E})$
 then E is f-exceptional and Z is the centre of E in X.
 Assume now that 
 $f\colon Y\to X$
 is a proper birational morphism and let E be an f-exceptional divisor on Y whose centre in X is Z. Let
$f\colon Y\to X$
 is a proper birational morphism and let E be an f-exceptional divisor on Y whose centre in X is Z. Let 
 $\overline Y$
 be a component of the normalisation of
$\overline Y$
 be a component of the normalisation of 
 $\overline X\times _X Y$
 which maps onto Y and let
$\overline X\times _X Y$
 which maps onto Y and let 
 $\overline {f}\colon \overline Y\to \overline X$
 and
$\overline {f}\colon \overline Y\to \overline X$
 and 
 $p\colon \overline Y\to Y$
 be the induced morphisms. Let
$p\colon \overline Y\to Y$
 be the induced morphisms. Let 
 $\overline E$
 be a prime divisor such that
$\overline E$
 be a prime divisor such that 
 $p(\overline E)=E$
.
$p(\overline E)=E$
.
 Lemma 2.3 easily implies that 
 $\epsilon (E)=\epsilon (\overline E)$
. Let
$\epsilon (E)=\epsilon (\overline E)$
. Let 
 $r_E$
 be the ramification index of p along E. Then, as in the proof of [Reference Kollár and MoriKM98, Proposition 5.20], Proposition 2.2 implies that
$r_E$
 be the ramification index of p along E. Then, as in the proof of [Reference Kollár and MoriKM98, Proposition 5.20], Proposition 2.2 implies that 
 $$\begin{align*}a(\overline E,\overline{\mathcal F},\overline {\Delta })=r_Ea(E,{\mathcal F},\Delta)+\epsilon(E)(r_E-1). \end{align*}$$
$$\begin{align*}a(\overline E,\overline{\mathcal F},\overline {\Delta })=r_Ea(E,{\mathcal F},\Delta)+\epsilon(E)(r_E-1). \end{align*}$$
It follows easily that 
 $a(\overline E,\overline {\mathcal F},\overline {\Delta })> -\epsilon (\overline E)$
 if and only if
$a(\overline E,\overline {\mathcal F},\overline {\Delta })> -\epsilon (\overline E)$
 if and only if 
 $ a(E,{\mathcal F},\Delta )>-\epsilon (E). $
 Thus, the first claim follows.
$ a(E,{\mathcal F},\Delta )>-\epsilon (E). $
 Thus, the first claim follows.
 Note that if q is a quasi-étale morphism and 
 $\Delta =0$
 then
$\Delta =0$
 then 
 $\overline \Delta =0$
. Lemma 2.6 implies that if
$\overline \Delta =0$
. Lemma 2.6 implies that if 
 ${\mathcal F}$
 (resp.
${\mathcal F}$
 (resp. 
 $\overline {\mathcal F}$
) is canonical, then
$\overline {\mathcal F}$
) is canonical, then 
 $\epsilon (E)=0$
 (resp.
$\epsilon (E)=0$
 (resp. 
 $\epsilon (\overline E)=0$
). Thus, the second claim follows using the same arguments as above.
$\epsilon (\overline E)=0$
). Thus, the second claim follows using the same arguments as above.
 Let 
 $f\colon X\to Y$
 be a holomorphic morphism between analytic varieties. We say that f is a submersion if, for any point
$f\colon X\to Y$
 be a holomorphic morphism between analytic varieties. We say that f is a submersion if, for any point 
 $x\in X$
, it induces a surjective morphism
$x\in X$
, it induces a surjective morphism 
 $df_x:T_xX\to T_{f(x)}Y$
.
$df_x:T_xX\to T_{f(x)}Y$
.
Lemma 2.9. Let X be a normal variety and let 
 ${\mathcal F}$
 be a rank one foliation on X such that
${\mathcal F}$
 be a rank one foliation on X such that 
 $K_{{\mathcal F}}$
 is
$K_{{\mathcal F}}$
 is 
 ${\mathbb Q}$
-Cartier. Let
${\mathbb Q}$
-Cartier. Let 
 $P \in X$
 be a closed point.
$P \in X$
 be a closed point.
Then the following are equivalent:
- 
1.  ${\mathcal F}$
 is terminal at P. ${\mathcal F}$
 is terminal at P.
- 
2. P is not contained in  ${\operatorname {Sing}^{+}{\mathcal F}}$
. ${\operatorname {Sing}^{+}{\mathcal F}}$
.
- 
3. There is an analytic open neighbourhood U of P, a quasi-étale morphism  $q\colon V \rightarrow U$
 and a holomorphic submersion $q\colon V \rightarrow U$
 and a holomorphic submersion $f\colon V \rightarrow B$
 such that $f\colon V \rightarrow B$
 such that $q^{-1}{\mathcal F}\vert _U$
 is induced by f. $q^{-1}{\mathcal F}\vert _U$
 is induced by f.
 When 
 $K_{{\mathcal F}}$
 is Cartier these are equivalent to the following:
$K_{{\mathcal F}}$
 is Cartier these are equivalent to the following: 
- 
4. P is not invariant by  ${\mathcal F}$
. ${\mathcal F}$
.
Proof. We first observe that all three listed properties are preserved under taking quasi-étale covers. Indeed, terminal singularities are preserved by Lemma 2.8. Finally, our second and third properties are unchanged by a quasi-étale cover by definition.
 Next, all properties are local about P, so we may freely replace X by the index one cover associated to 
 $K_{{\mathcal F}}$
 and therefore we may freely assume that
$K_{{\mathcal F}}$
 and therefore we may freely assume that 
 $K_{{\mathcal F}}$
 is Cartier.
$K_{{\mathcal F}}$
 is Cartier.
The equivalence of (2) and (3) is then a consequence of [Reference Bogomolov and McQuillanBM16, Lemma I.2.1].
 The equivalence of (2) and (4) follows by observing that P is a singular point of 
 ${\mathcal F}$
 if and only if P is invariant under
${\mathcal F}$
 if and only if P is invariant under 
 ${\mathcal F}$
.
${\mathcal F}$
.
 By [Reference Bogomolov and McQuillanBM16, Lemma I.1.3] if P is invariant, then the blow up at P extracts a divisor of discrepancy 
 $\leq 0$
, in particular
$\leq 0$
, in particular 
 ${\mathcal F}$
 is not terminal at P. Thus (1) implies (4). A direct calculation shows that (3) implies (1).
${\mathcal F}$
 is not terminal at P. Thus (1) implies (4). A direct calculation shows that (3) implies (1).
Remark 2.10. Using the same notation as in Lemma 2.9, let 
 $P \in X$
 be a point at which
$P \in X$
 be a point at which 
 ${\mathcal F}$
 is terminal and let C be a
${\mathcal F}$
 is terminal and let C be a 
 ${\mathcal F}$
-invariant curve passing through P. Then, for our choice of
${\mathcal F}$
-invariant curve passing through P. Then, for our choice of 
 $q\colon V\to U$
, we have that
$q\colon V\to U$
, we have that 
 $C':= q^{-1}(C)$
 is normal and irreducible and the map
$C':= q^{-1}(C)$
 is normal and irreducible and the map 
 $C' \to C$
 is ramified over P with ramification index m, where m is the Cartier index of
$C' \to C$
 is ramified over P with ramification index m, where m is the Cartier index of 
 $K_{{\mathcal F}}$
.
$K_{{\mathcal F}}$
.
 Note that the above lemma implies the well-known fact that if X is a surface and 
 ${\mathcal F}$
 is a terminal rank one foliation on X then X has at worst quotient singularities. One can ask more generally if there is a similar way to control the singularities of the underlying variety in higher dimensions and higher ranks, and if such a bound holds if
${\mathcal F}$
 is a terminal rank one foliation on X then X has at worst quotient singularities. One can ask more generally if there is a similar way to control the singularities of the underlying variety in higher dimensions and higher ranks, and if such a bound holds if 
 ${\mathcal F}$
 has only canonical singularities. For foliations of co-rank one on a normal threefold, some of these questions were addressed in [Reference Cascini and SpicerCS21]. We will approach some cases of this problem in the rank one case in dimension three (cf. Section 4).
${\mathcal F}$
 has only canonical singularities. For foliations of co-rank one on a normal threefold, some of these questions were addressed in [Reference Cascini and SpicerCS21]. We will approach some cases of this problem in the rank one case in dimension three (cf. Section 4).
 We remark that if 
 ${\mathcal F}$
 is log canonical then there is no bound on the singularities of the underlying variety, at least from the perspective of Mori theory, as the example in [Reference McQuillanMcQ08, Example I.2.5] shows.
${\mathcal F}$
 is log canonical then there is no bound on the singularities of the underlying variety, at least from the perspective of Mori theory, as the example in [Reference McQuillanMcQ08, Example I.2.5] shows.
 We also remark that by Lemma 2.1 if 
 ${\mathcal F}$
 is a rank one foliation on a normal variety X such that
${\mathcal F}$
 is a rank one foliation on a normal variety X such that 
 ${\mathcal F}$
 is terminal at a closed point
${\mathcal F}$
 is terminal at a closed point 
 $P\in X$
 then
$P\in X$
 then 
 $P \notin {\operatorname {Sing} {\mathcal F}}$
.
$P \notin {\operatorname {Sing} {\mathcal F}}$
.
2.5 Foliations on a surface
The goal of this section is to present some results for foliations on a surface which will be used later on. To this end, we employ Mumford’s intersection theory for Weil divisors on a normal projective surface (e.g., see [Reference FultonFul84, Example 8.3.11]).
Lemma 2.11. Let X be a normal projective surface and let 
 ${\mathcal F}$
 be a rank one foliation on X such that
${\mathcal F}$
 be a rank one foliation on X such that 
 $K_{\mathcal F}\equiv 0$
 and suppose that
$K_{\mathcal F}\equiv 0$
 and suppose that 
 ${\mathcal F}$
 is not algebraically integrable. Then
${\mathcal F}$
 is not algebraically integrable. Then 
- 
1. there are only finitely many  ${\mathcal F}$
-invariant curves ${\mathcal F}$
-invariant curves $C_1,\dots ,C_k \subset X$
; and $C_1,\dots ,C_k \subset X$
; and
- 
2. through a general point of X there exists a curve M not passing through  ${\operatorname {Sing} {\mathcal F}}$
 and such that ${\operatorname {Sing} {\mathcal F}}$
 and such that $$ \begin{align*}(K_X+\sum_{i=1}^k C_i)\cdot M \leq 0.\end{align*} $$ $$ \begin{align*}(K_X+\sum_{i=1}^k C_i)\cdot M \leq 0.\end{align*} $$
Proof. We recall that [Reference JouanolouJou78] shows that if X is a normal projective surface and 
 ${\mathcal F}$
 is a rank one foliation on X such that
${\mathcal F}$
 is a rank one foliation on X such that 
 ${\mathcal F}$
 is not algebraically integrable, then there are only finitely many
${\mathcal F}$
 is not algebraically integrable, then there are only finitely many 
 ${\mathcal F}$
-invariant curves on X. This proves item (1).
${\mathcal F}$
-invariant curves on X. This proves item (1).
 We now prove item (2). First we show that 
 ${\mathcal F}$
 has canonical singularities. Suppose not and let
${\mathcal F}$
 has canonical singularities. Suppose not and let 
 $p\colon Y\to X$
 be a resolution such that
$p\colon Y\to X$
 be a resolution such that 
 ${\mathcal F}_Y:=p^{-1}{\mathcal F}$
 has canonical singularities, whose existence is guaranteed by Seidenberg’s theorem (e.g., see [Reference BrunellaBru15, Theorem 1.1 and pag. 105]). We have
${\mathcal F}_Y:=p^{-1}{\mathcal F}$
 has canonical singularities, whose existence is guaranteed by Seidenberg’s theorem (e.g., see [Reference BrunellaBru15, Theorem 1.1 and pag. 105]). We have 
 $K_{{\mathcal F}_Y}-\sum a(E,{\mathcal F})E\equiv 0$
, where the sum runs over all the p-exceptional divisors and, by assumption, there exists a p-exceptional divisor E such that
$K_{{\mathcal F}_Y}-\sum a(E,{\mathcal F})E\equiv 0$
, where the sum runs over all the p-exceptional divisors and, by assumption, there exists a p-exceptional divisor E such that 
 $a(E,{\mathcal F})<0$
. In particular,
$a(E,{\mathcal F})<0$
. In particular, 
 $K_{{\mathcal F}_Y}$
 is not pseudo-effective and by Miyaoka’s theorem (e.g., see [Reference BrunellaBru15, Theorem 7.1]),
$K_{{\mathcal F}_Y}$
 is not pseudo-effective and by Miyaoka’s theorem (e.g., see [Reference BrunellaBru15, Theorem 7.1]), 
 ${\mathcal F}_Y$
 is algebraically integrable, and so is
${\mathcal F}_Y$
 is algebraically integrable, and so is 
 ${\mathcal F}$
, a contradiction.
${\mathcal F}$
, a contradiction.
 Next, observe that we may freely contract 
 ${\mathcal F}$
-invariant divisors and replace X by a quasi-étale cover. Thus, we are free to assume that
${\mathcal F}$
-invariant divisors and replace X by a quasi-étale cover. Thus, we are free to assume that 
 ${\mathcal F}$
 is one of the foliations appearing in the list [Reference McQuillanMcQ08, Theorem IV.3.6]. In particular, X is obtained as an equivariant compactification of a commutative algebraic group of dimension two and
${\mathcal F}$
 is one of the foliations appearing in the list [Reference McQuillanMcQ08, Theorem IV.3.6]. In particular, X is obtained as an equivariant compactification of a commutative algebraic group of dimension two and 
 ${\mathcal F}$
 is induced by a codimension one Lie subalgebra. We now check each individual case:
${\mathcal F}$
 is induced by a codimension one Lie subalgebra. We now check each individual case: 
- 
1. X is an abelian surface and  ${\mathcal F}$
 is a linear foliation. In particular, if ${\mathcal F}$
 is a linear foliation. In particular, if ${\mathcal F}$
 is not algebraically integrable, there are no ${\mathcal F}$
 is not algebraically integrable, there are no ${\mathcal F}$
-invariant curves on X and ${\mathcal F}$
-invariant curves on X and $K_X\sim 0$
. $K_X\sim 0$
.
- 
2. X is a  ${\mathbb P}^1$
-bundle over an elliptic curve, with projection ${\mathbb P}^1$
-bundle over an elliptic curve, with projection $p\colon X \rightarrow S$
. In this case, the $p\colon X \rightarrow S$
. In this case, the ${\mathcal F}$
-invariant curves are either a single section or two disjoint sections. Thus, it is enough to choose M as a general fibre of p. ${\mathcal F}$
-invariant curves are either a single section or two disjoint sections. Thus, it is enough to choose M as a general fibre of p.
- 
3. X is a  ${\mathbb P}^1$
-bundle over ${\mathbb P}^1$
-bundle over ${\mathbb P}^1$
, with projection ${\mathbb P}^1$
, with projection $p\colon X\to {\mathbb P}^1$
. In this case, the $p\colon X\to {\mathbb P}^1$
. In this case, the ${\mathcal F}$
-invariant curves are two vertical fibres and either a single or two disjoint sections. Again, we can choose M as a general fibre of p. ${\mathcal F}$
-invariant curves are two vertical fibres and either a single or two disjoint sections. Again, we can choose M as a general fibre of p.
Lemma 2.12. Let X be a normal projective surface and let 
 ${\mathcal F}$
 be a rank one foliation on X which is algebraically integrable. Let
${\mathcal F}$
 be a rank one foliation on X which is algebraically integrable. Let 
 $\Delta , \Theta \geq 0$
 be
$\Delta , \Theta \geq 0$
 be 
 ${\mathbb Q}$
-divisors on X such that
${\mathbb Q}$
-divisors on X such that 
- 
1.  $\mu _C \Theta \leq \mu _C\Delta $
 for any curve C which is not $\mu _C \Theta \leq \mu _C\Delta $
 for any curve C which is not ${\mathcal F}$
-invariant, and ${\mathcal F}$
-invariant, and
- 
2.  $(X, \Theta )$
 is log canonical. $(X, \Theta )$
 is log canonical.
 Then X is covered by 
 ${\mathcal F}$
-invariant curves M such that
${\mathcal F}$
-invariant curves M such that 
 $$\begin{align*}(K_X+\Theta)\cdot M \leq (K_{\mathcal F}+\Delta)\cdot M. \end{align*}$$
$$\begin{align*}(K_X+\Theta)\cdot M \leq (K_{\mathcal F}+\Delta)\cdot M. \end{align*}$$
Proof. We may assume, without loss of generality, that the coefficients of 
 $\Delta $
 are at most one. Let
$\Delta $
 are at most one. Let 
 $p\colon X' \rightarrow X$
 be an F-dlt modification of
$p\colon X' \rightarrow X$
 be an F-dlt modification of 
 $({\mathcal F},\Delta )$
 (cf. [Reference Cascini and SpicerCS21, Theorem 1.4]). Then we may write
$({\mathcal F},\Delta )$
 (cf. [Reference Cascini and SpicerCS21, Theorem 1.4]). Then we may write 
 $K_{{\mathcal F}'}+p_{*}^{-1}\Delta +E = p^{*}(K_{\mathcal F}+\Delta )$
 and
$K_{{\mathcal F}'}+p_{*}^{-1}\Delta +E = p^{*}(K_{\mathcal F}+\Delta )$
 and 
 $K_{X'}+p_{*}^{-1}\Theta +E' = p^{*}(K_X+\Theta )$
, where
$K_{X'}+p_{*}^{-1}\Theta +E' = p^{*}(K_X+\Theta )$
, where 
 $E, E'$
 are p-exceptional
$E, E'$
 are p-exceptional 
 ${\mathbb Q}$
-divisors and the coefficients of E (resp.
${\mathbb Q}$
-divisors and the coefficients of E (resp. 
 $E'$
) are greater or equal (resp. less or equal) to one. Since
$E'$
) are greater or equal (resp. less or equal) to one. Since 
 ${\mathcal F}'$
 is algebraically integrable and nondicritical, it follows that
${\mathcal F}'$
 is algebraically integrable and nondicritical, it follows that 
 ${\mathcal F}'$
 is induced by a fibration
${\mathcal F}'$
 is induced by a fibration 
 $\pi \colon X' \rightarrow B$
. Let F be a general fibre of
$\pi \colon X' \rightarrow B$
. Let F be a general fibre of 
 $\pi $
 and observe that
$\pi $
 and observe that 
- 
(i)  $K_{{\mathcal F}'}\cdot F = K_{X'}\cdot F$
, $K_{{\mathcal F}'}\cdot F = K_{X'}\cdot F$
,
- 
(ii)  $p_{*}^{-1}\Theta \cdot F \leq p_{*}^{-1}\Delta \cdot F$
, and $p_{*}^{-1}\Theta \cdot F \leq p_{*}^{-1}\Delta \cdot F$
, and
- 
(iii)  $E-E' \ge 0$
. $E-E' \ge 0$
.
 Thus, if 
 $M=p(F)$
 then
$M=p(F)$
 then 
 $$\begin{align*}\begin{aligned} (K_X+\Theta)\cdot M &=(K_{X'}+p_{*}^{-1}\Theta+E')\cdot F\\ &\le (K_{{\mathcal F}'}+p_{*}^{-1}\Delta+E)\cdot F = (K_{\mathcal F}+\Delta)\cdot M \end{aligned} \end{align*}$$
$$\begin{align*}\begin{aligned} (K_X+\Theta)\cdot M &=(K_{X'}+p_{*}^{-1}\Theta+E')\cdot F\\ &\le (K_{{\mathcal F}'}+p_{*}^{-1}\Delta+E)\cdot F = (K_{\mathcal F}+\Delta)\cdot M \end{aligned} \end{align*}$$
and the claim follows.
2.6 Adjunction
Proposition 2.13. Let X be a normal variety and 
 ${\mathcal F}$
 be a rank one
${\mathcal F}$
 be a rank one 
 ${\mathbb Q}$
-Gorenstein foliation on X. Let
${\mathbb Q}$
-Gorenstein foliation on X. Let 
 $S \subset X$
 be an
$S \subset X$
 be an 
 ${\mathcal F}$
-invariant subvariety which is not contained in
${\mathcal F}$
-invariant subvariety which is not contained in 
 ${\operatorname {Sing} {\mathcal F}}$
. Let
${\operatorname {Sing} {\mathcal F}}$
. Let 
 $\nu \colon S^\nu \rightarrow S$
 be the normalisation.
$\nu \colon S^\nu \rightarrow S$
 be the normalisation.
Then
- 
1. there is an induced foliated pair  $(\mathcal G,\Delta )$
 of rank one on $(\mathcal G,\Delta )$
 of rank one on $S^\nu $
 such that $S^\nu $
 such that $$ \begin{align*}K_{\mathcal F}|_{S^\nu} = K_{\mathcal G}+\Delta;\end{align*} $$ $$ \begin{align*}K_{\mathcal F}|_{S^\nu} = K_{\mathcal G}+\Delta;\end{align*} $$
- 
2. if  $(\mathcal G, \Delta )$
 is terminal at a closed point $(\mathcal G, \Delta )$
 is terminal at a closed point $P \in S^\nu $
 then $P \in S^\nu $
 then ${\mathcal F}$
 is terminal at ${\mathcal F}$
 is terminal at $\nu (P)$
. $\nu (P)$
.
 Assume now that 
 $C \subset X$
 is a curve whose irreducible components are
$C \subset X$
 is a curve whose irreducible components are 
 ${\mathcal F}$
-invariant and they are not contained in
${\mathcal F}$
-invariant and they are not contained in 
 ${\operatorname {Sing} {\mathcal F}}$
. If
${\operatorname {Sing} {\mathcal F}}$
. If 
 $\nu \colon C^\nu \rightarrow C$
 is the normalisation then
$\nu \colon C^\nu \rightarrow C$
 is the normalisation then 
 $K_{\mathcal F}|_{C^\nu } = K_{C^\nu }+\Delta $
, where
$K_{\mathcal F}|_{C^\nu } = K_{C^\nu }+\Delta $
, where 
 $\Delta \ge 0$
, and
$\Delta \ge 0$
, and 
- 
3.  ${\operatorname {Supp} \, \lfloor \Delta \rfloor } = \nu ^{-1}({\operatorname {Sing} {\mathcal F}}\cap C)$
; and ${\operatorname {Supp} \, \lfloor \Delta \rfloor } = \nu ^{-1}({\operatorname {Sing} {\mathcal F}}\cap C)$
; and
- 
4. if  $P \in C$
 is a point such that $P \in C$
 is a point such that ${\mathcal F}$
 is terminal at ${\mathcal F}$
 is terminal at $\nu (P)$
 then $\nu (P)$
 then $\mu _P\Delta = \frac {r-1}{r}$
 where r is the Cartier index of $\mu _P\Delta = \frac {r-1}{r}$
 where r is the Cartier index of $K_{\mathcal F}$
 at $K_{\mathcal F}$
 at $\nu (P)$
. $\nu (P)$
.
Proof. (1) and (2) follow from [Reference Cascini and SpicerCS25a, Proposition-Definition 3.12] and [Reference Cascini and SpicerCS25a, Remark 3.13].
 Note that, although [Reference Cascini and SpicerCS25a, Proposition 3.14] is stated only for codimension one subvarieties, the same proof work for any 
 ${\mathcal F}$
-invariant subvariety. Thus, (3) and, by Remark 2.10, (4) hold.
${\mathcal F}$
-invariant subvariety. Thus, (3) and, by Remark 2.10, (4) hold.
We now explain some generalities comparing foliation adjunction and classical adjunction on a threefold:
Proposition 2.14. Let X be a normal threefold and let 
 ${\mathcal F}$
 be a foliation of rank one on X with canonical singularities. Let
${\mathcal F}$
 be a foliation of rank one on X with canonical singularities. Let 
 $\Gamma \ge 0$
 be a
$\Gamma \ge 0$
 be a 
 ${\mathbb Q}$
-divisor on X with
${\mathbb Q}$
-divisor on X with 
 ${\mathcal F}$
-invariant support and let
${\mathcal F}$
-invariant support and let 
 $S\subset X$
 be a reduced and irreducible
$S\subset X$
 be a reduced and irreducible 
 ${\mathcal F}$
-invariant divisor such that
${\mathcal F}$
-invariant divisor such that 
 $(X,\Gamma +S)$
 is log canonical. Let
$(X,\Gamma +S)$
 is log canonical. Let 
 $\nu \colon S^\nu \to S$
 be its normalisation.
$\nu \colon S^\nu \to S$
 be its normalisation.
We may write
 $$\begin{align*}K_{\mathcal F}|_{S^\nu} = K_{\mathcal G}+\Delta \quad\text{and}\quad (K_X+\Gamma+S)|_{S^\nu} = K_{S^\nu}+\Theta \end{align*}$$
$$\begin{align*}K_{\mathcal F}|_{S^\nu} = K_{\mathcal G}+\Delta \quad\text{and}\quad (K_X+\Gamma+S)|_{S^\nu} = K_{S^\nu}+\Theta \end{align*}$$
where 
 $\mathcal G$
 is the induced foliation and
$\mathcal G$
 is the induced foliation and 
 $\Delta , \Theta \geq 0$
 are
$\Delta , \Theta \geq 0$
 are 
 ${\mathbb Q}$
-divisors on
${\mathbb Q}$
-divisors on 
 $S^{\nu }$
. Let
$S^{\nu }$
. Let 
 $C\subset S^{\nu }$
 be a curve.
$C\subset S^{\nu }$
 be a curve.
Then the following hold:
- 
1. if  $\nu (C)$
 is contained in $\nu (C)$
 is contained in ${\operatorname {Sing} {\mathcal F}}$
 then ${\operatorname {Sing} {\mathcal F}}$
 then $\mu _C\Delta \geq 1$
 and, in particular, $\mu _C\Delta \geq 1$
 and, in particular, $\mu _C\Delta \geq \mu _C\Theta $
; $\mu _C\Delta \geq \mu _C\Theta $
;
- 
2. if  $\nu (C)$
 is not contained in $\nu (C)$
 is not contained in ${\operatorname {Sing} {\mathcal F}}$
 and C is not ${\operatorname {Sing} {\mathcal F}}$
 and C is not $\mathcal G$
-invariant (i.e., $\mathcal G$
-invariant (i.e., ${\mathcal F}$
 is terminal at the generic point of ${\mathcal F}$
 is terminal at the generic point of $\nu (C)$
), then $\nu (C)$
), then $\mu _C\Delta = \mu _C\Theta = \frac {n-1}{n}$
 where n is the Cartier index of $\mu _C\Delta = \mu _C\Theta = \frac {n-1}{n}$
 where n is the Cartier index of $K_{{\mathcal F}}$
 at the generic point of C. $K_{{\mathcal F}}$
 at the generic point of C.
Proof. Let 
 $C\subset S^{\nu }$
 be a curve which is not
$C\subset S^{\nu }$
 be a curve which is not 
 $\mathcal G$
-invariant and such that
$\mathcal G$
-invariant and such that 
 $\nu (C)$
 is not contained in
$\nu (C)$
 is not contained in 
 ${\operatorname {Sing} {\mathcal F}}$
. Then
${\operatorname {Sing} {\mathcal F}}$
. Then 
 $\nu (C)$
 is not contained in the support of
$\nu (C)$
 is not contained in the support of 
 $\Gamma $
.
$\Gamma $
.
 We may calculate 
 $\mu _C\Delta $
 using [Reference Cascini and SpicerCS25a, Proposition 3.14], and
$\mu _C\Delta $
 using [Reference Cascini and SpicerCS25a, Proposition 3.14], and 
 $\mu _C\Theta $
 by using [Reference KollárKol13]. The result then follows.
$\mu _C\Theta $
 by using [Reference KollárKol13]. The result then follows.
 Note that, in the notations above, if C is 
 $\mathcal G$
-invariant then there is in general no natural relation between
$\mathcal G$
-invariant then there is in general no natural relation between 
 $\mu _C\Delta $
 and
$\mu _C\Delta $
 and 
 $\mu _C\Theta $
, as shown in the following example:
$\mu _C\Theta $
, as shown in the following example:
Example 2.15. Let T be a smooth surface and let 
 $C_0$
 be a smooth curve. Let
$C_0$
 be a smooth curve. Let 
 $X=T\times C_0$
 and let
$X=T\times C_0$
 and let 
 ${\mathcal F}$
 be the foliation induced by the fibration
${\mathcal F}$
 be the foliation induced by the fibration 
 $p\colon X\to T$
. Let
$p\colon X\to T$
. Let 
 $D\subset T$
 be a curve with high multiplicity at a point
$D\subset T$
 be a curve with high multiplicity at a point 
 $z\in D$
 and let
$z\in D$
 and let 
 $S=D\times C_0\subset X$
. Then S is
$S=D\times C_0\subset X$
. Then S is 
 ${\mathcal F}$
-invariant and if
${\mathcal F}$
-invariant and if 
 $C=\{z_0\}\times C_0$
, we have that
$C=\{z_0\}\times C_0$
, we have that 
 $\mu _C\Delta = 0$
; however,
$\mu _C\Delta = 0$
; however, 
 $\mu _C\Theta $
 is arbitrarily large.
$\mu _C\Theta $
 is arbitrarily large.
2.7 Jordan decomposition of a vector field
 We follow the notation of [Reference MartinetMar81]. Let  be the completion of
 be the completion of 
 ${\mathbb C}^m$
 at the origin
${\mathbb C}^m$
 at the origin 
 $0\in X$
 and let
$0\in X$
 and let 
 $\partial $
 be a vector field on X which leaves
$\partial $
 be a vector field on X which leaves  invariant. Let
 invariant. Let 
 ${\mathfrak m}$
 be the maximal ideal defining W and note that, by the Leibniz rule, the ideal
${\mathfrak m}$
 be the maximal ideal defining W and note that, by the Leibniz rule, the ideal 
 ${\mathfrak m}^n$
 is
${\mathfrak m}^n$
 is 
 $\partial $
-invariant for all positive integer n. Thus, we get a linear map
$\partial $
-invariant for all positive integer n. Thus, we get a linear map 
 $$\begin{align*}\partial_n\colon {\mathfrak m}/{\mathfrak m}^{n+1} \rightarrow {\mathfrak m}/{\mathfrak m}^{n+1}. \end{align*}$$
$$\begin{align*}\partial_n\colon {\mathfrak m}/{\mathfrak m}^{n+1} \rightarrow {\mathfrak m}/{\mathfrak m}^{n+1}. \end{align*}$$
We may write 
 $\partial _n = \partial _{S, n} +\partial _{N, n}$
 as the Jordan decomposition of
$\partial _n = \partial _{S, n} +\partial _{N, n}$
 as the Jordan decomposition of 
 $\partial _n$
 into its semisimple and nilpotent parts. This decomposition respects the exact sequences
$\partial _n$
 into its semisimple and nilpotent parts. This decomposition respects the exact sequences 
 $$\begin{align*}0 \rightarrow {\mathfrak m}^n/{\mathfrak m}^{n+1} \rightarrow {\mathbb C}[[X]]/{\mathfrak m}^{n+1} \rightarrow {\mathbb C}[[X]]/{\mathfrak m}^n \rightarrow 0\end{align*}$$
$$\begin{align*}0 \rightarrow {\mathfrak m}^n/{\mathfrak m}^{n+1} \rightarrow {\mathbb C}[[X]]/{\mathfrak m}^{n+1} \rightarrow {\mathbb C}[[X]]/{\mathfrak m}^n \rightarrow 0\end{align*}$$
for each positive integer n and it yields a decomposition 
 $\partial = \partial _S+\partial _N$
.
$\partial = \partial _S+\partial _N$
.
We summarise briefly some of the key properties of this decomposition:
- 
1.  $[\partial _S, \partial _N] = 0$
; $[\partial _S, \partial _N] = 0$
;
- 
2. we may find coordinates  $y_1, ..., y_m$
 on $y_1, ..., y_m$
 on $\widehat {{\mathbb C}^m}$
 and $\widehat {{\mathbb C}^m}$
 and $\lambda _1,\dots ,\lambda _m\in {\mathbb C}$
 so that $\lambda _1,\dots ,\lambda _m\in {\mathbb C}$
 so that $\partial _S = \sum _i \lambda _i y_i \partial _{y_i}$
; and $\partial _S = \sum _i \lambda _i y_i \partial _{y_i}$
; and
- 
3. if  $Z \subset \widehat {{\mathbb C}^m}$
 is $Z \subset \widehat {{\mathbb C}^m}$
 is $\partial $
-invariant then Z is both $\partial $
-invariant then Z is both $\partial _S$
 and $\partial _S$
 and $\partial _N$
-invariant. $\partial _N$
-invariant.
 We briefly explain (3). Let 
 $I_Z\subset {\mathbb C}[[X]]$
 be the ideal of Z and let
$I_Z\subset {\mathbb C}[[X]]$
 be the ideal of Z and let 
 $I_{Z, n}$
 denote its restriction to
$I_{Z, n}$
 denote its restriction to 
 ${\mathfrak m}/{\mathfrak m}^{n+1}$
, for each positive integer n. Then
${\mathfrak m}/{\mathfrak m}^{n+1}$
, for each positive integer n. Then 
 $I_{Z, n} \subset {\mathfrak m}/{\mathfrak m}^{n+1}$
 is a
$I_{Z, n} \subset {\mathfrak m}/{\mathfrak m}^{n+1}$
 is a 
 $\partial _n$
-invariant subspace and, in particular, it is both
$\partial _n$
-invariant subspace and, in particular, it is both 
 $\partial _{S,n}$
 and
$\partial _{S,n}$
 and 
 $\partial _{N,n}$
-invariant. Thus, (3) follows.
$\partial _{N,n}$
-invariant. Thus, (3) follows.
 More generally, we can define the Jordan decomposition for any vector field 
 $\partial $
 on the completion of a variety X at a point
$\partial $
 on the completion of a variety X at a point 
 $P\in X$
. Indeed, consider an embedding
$P\in X$
. Indeed, consider an embedding 
 $\iota \colon Z \hookrightarrow {\mathbb C}^m$
 and a lift
$\iota \colon Z \hookrightarrow {\mathbb C}^m$
 and a lift 
 $\widetilde {\partial }$
 of
$\widetilde {\partial }$
 of 
 $\partial $
 to a vector field on
$\partial $
 to a vector field on 
 ${\mathbb C}^m$
. We can define
${\mathbb C}^m$
. We can define 
 $\widetilde {\partial }_S$
 and
$\widetilde {\partial }_S$
 and 
 $\widetilde {\partial }_N$
 as above. Then
$\widetilde {\partial }_N$
 as above. Then 
 $\widetilde {\partial }_S$
 and
$\widetilde {\partial }_S$
 and 
 $\widetilde {\partial }_N$
 leave Z invariant and, therefore, they restrict to vector fields
$\widetilde {\partial }_N$
 leave Z invariant and, therefore, they restrict to vector fields 
 $\partial _S$
 and
$\partial _S$
 and 
 $\partial _N$
 on Z. Thus,
$\partial _N$
 on Z. Thus, 
 $\partial = \partial _S+\partial _N$
 and this decomposition has all the properties of the Jordan decomposition, as described above.
$\partial = \partial _S+\partial _N$
 and this decomposition has all the properties of the Jordan decomposition, as described above.
2.8 Characterising log canonical vector fields
 Let X be a normal variety and let 
 $\partial $
 be a vector field which defines a foliated pair
$\partial $
 be a vector field which defines a foliated pair 
 $({\mathcal F},D)$
 such that
$({\mathcal F},D)$
 such that 
 $K_{\mathcal F}+D$
 is Cartier. Then we say that
$K_{\mathcal F}+D$
 is Cartier. Then we say that 
 $\partial $
 is terminal (resp. canonical, log canonical) if the foliated pair
$\partial $
 is terminal (resp. canonical, log canonical) if the foliated pair 
 $({\mathcal F},D)$
 is such.
$({\mathcal F},D)$
 is such.
 Let 
 $P \in Z$
 be a germ of a normal variety and let
$P \in Z$
 be a germ of a normal variety and let 
 $\partial \in H^0(Z, T_Z)$
 be a vector field which leaves P invariant. By Lemma 2.9,
$\partial \in H^0(Z, T_Z)$
 be a vector field which leaves P invariant. By Lemma 2.9, 
 $\partial $
 is singular at P. Let
$\partial $
 is singular at P. Let  where
 where 
 ${\mathfrak m}$
 is the maximal ideal at P and observe that
${\mathfrak m}$
 is the maximal ideal at P and observe that 
 $\partial $
 induces a linear map
$\partial $
 induces a linear map 
 $\partial _0\colon V \rightarrow V$
. Let
$\partial _0\colon V \rightarrow V$
. Let 
 ${\mathcal F}$
 be the foliation defined by
${\mathcal F}$
 be the foliation defined by 
 $\partial $
 so that
$\partial $
 so that 
 $\partial $
 is a section of
$\partial $
 is a section of 
 ${\mathcal F}(-D)$
 for some divisor
${\mathcal F}(-D)$
 for some divisor 
 $D \geq 0$
. We assume that D is reduced.
$D \geq 0$
. We assume that D is reduced.
We recall the following results:
Proposition 2.16. Set up as above.
 Then the vector field 
 $\partial $
 is log canonical at P if and only if
$\partial $
 is log canonical at P if and only if 
 $\partial _0$
 is non-nilpotent.
$\partial _0$
 is non-nilpotent.
Proof. This is [Reference McQuillan and PanazzoloMP13, Fact I.ii.4].
Proposition 2.17. Set up as above. Suppose in addition that either 
 $\partial $
 is log canonical and not canonical, or
$\partial $
 is log canonical and not canonical, or 
 $D \neq 0$
.
$D \neq 0$
.
 Then, after possibly rescaling and taking a change of coordinates, we have that 
 $\partial $
 is semisimple and its eigenvalues are all non-negative integers.
$\partial $
 is semisimple and its eigenvalues are all non-negative integers.
Proof. This follows from [Reference McQuillan and PanazzoloMP13, Fact III.i.3].
We will also need the following:
Lemma 2.18. Let 
 $\partial $
 be a log canonical vector field defined over a neighbourhood of
$\partial $
 be a log canonical vector field defined over a neighbourhood of 
 $0 \in C \subset {\mathbb C}^3$
 where C is a smooth curve which is invariant by
$0 \in C \subset {\mathbb C}^3$
 where C is a smooth curve which is invariant by 
 $\partial $
. Suppose the following:
$\partial $
. Suppose the following: 
- 
1. there exist  $f_1, ..., f_q$
 with $f_1, ..., f_q$
 with $\partial f_i = \lambda _if_i$
 where $\partial f_i = \lambda _if_i$
 where $\lambda _i$
 is a positive rational number; and $\lambda _i$
 is a positive rational number; and
- 
2. C is an irreducible component of the reduced locus of  $\{f_1 = ... = f_q = 0\}$
. $\{f_1 = ... = f_q = 0\}$
.
 Then (up to rescaling) the semisimple part of 
 $\partial $
 has eigenvalues
$\partial $
 has eigenvalues 
 $1, -a, -b$
 where
$1, -a, -b$
 where 
 $a, b \in {\mathbb Q}_{>0}$
.
$a, b \in {\mathbb Q}_{>0}$
.
Proof. We may freely replace 
 $\partial $
 by its semisimple part, and so we may assume that
$\partial $
 by its semisimple part, and so we may assume that 
 $\partial $
 is semisimple. In suitable coordinates and after possibly rescaling by a unit, we may write
$\partial $
 is semisimple. In suitable coordinates and after possibly rescaling by a unit, we may write 
 $$\begin{align*}\partial = -x_1\frac{\partial}{\partial x_1}+a_2x_2\frac{\partial}{\partial x_2}+ a_3x_3\frac{\partial}{\partial x_3}\end{align*}$$
$$\begin{align*}\partial = -x_1\frac{\partial}{\partial x_1}+a_2x_2\frac{\partial}{\partial x_2}+ a_3x_3\frac{\partial}{\partial x_3}\end{align*}$$
and 
 $C = \{x_2 = x_3 = 0\}$
$C = \{x_2 = x_3 = 0\}$
 Fix 
 $i\in \{1,\dots ,q\}$
. By (2), it follows that
$i\in \{1,\dots ,q\}$
. By (2), it follows that 
 $f_i \in (x_2, x_3)$
, and we may write
$f_i \in (x_2, x_3)$
, and we may write 
 $$\begin{align*}f_i = \sum_{k,l,m\ge 0} a_{klm}^ix_1^kx_2^lx_3^m\end{align*}$$
$$\begin{align*}f_i = \sum_{k,l,m\ge 0} a_{klm}^ix_1^kx_2^lx_3^m\end{align*}$$
for some 
 $a_{klm}^i\in {\mathbb C}$
 such that
$a_{klm}^i\in {\mathbb C}$
 such that 
 $a^i_{k00} = 0$
 for all
$a^i_{k00} = 0$
 for all 
 $k\ge 0$
. We have
$k\ge 0$
. We have 
 $$\begin{align*}\partial f_i = \sum a^i_{klm}(-k+a_2l+a_3m)x_1^kx_2^lx_3^m. \end{align*}$$
$$\begin{align*}\partial f_i = \sum a^i_{klm}(-k+a_2l+a_3m)x_1^kx_2^lx_3^m. \end{align*}$$
Thus, (1) implies that
 $$\begin{align*}\lambda_i = -k+a_2l+a_3m \end{align*}$$
$$\begin{align*}\lambda_i = -k+a_2l+a_3m \end{align*}$$
for all non-negative integers 
 $k,l,m$
 such that
$k,l,m$
 such that 
 $a^i_{klm}\neq 0$
.
$a^i_{klm}\neq 0$
.
 If 
 $a^i_{kl0}$
 (resp.
$a^i_{kl0}$
 (resp. 
 $a^i_{k0m}$
) is nonzero for some
$a^i_{k0m}$
) is nonzero for some 
 $i, k, l$
 (resp.
$i, k, l$
 (resp. 
 $i,k,m$
) it follows immediately that
$i,k,m$
) it follows immediately that 
 $a_2$
 (resp.
$a_2$
 (resp. 
 $a_3$
) is a positive rational number.
$a_3$
) is a positive rational number.
 Assume that 
 $a^i_{k0m} = 0$
 for all
$a^i_{k0m} = 0$
 for all 
 $i,k, m$
. Then it follows that
$i,k, m$
. Then it follows that 
 $$\begin{align*}\{x_2 = 0\} \subset \{f_1 = ... = f_k = 0\} \end{align*}$$
$$\begin{align*}\{x_2 = 0\} \subset \{f_1 = ... = f_k = 0\} \end{align*}$$
contradicting the fact that 
 $\{x_2 = x_3 = 0\}$
 is an irreducible component of the latter scheme. A similar contradiction holds if
$\{x_2 = x_3 = 0\}$
 is an irreducible component of the latter scheme. A similar contradiction holds if 
 $a^i_{km0} = 0$
 for all
$a^i_{km0} = 0$
 for all 
 $i, k, m$
.
$i, k, m$
.
2.9 Canonical bundle formula
We recall some results on the canonical bundle formula which will be used later (see [Reference AmbroAmb04] for more details).
 Let 
 $(X,\Delta )$
 be a sub log canonical pair and let
$(X,\Delta )$
 be a sub log canonical pair and let 
 $f\colon X\to Y$
 be a fibration. Assume that the horizontal part
$f\colon X\to Y$
 be a fibration. Assume that the horizontal part 
 $\Delta ^h$
 of
$\Delta ^h$
 of 
 $\Delta $
 is effective and that there exists a
$\Delta $
 is effective and that there exists a 
 ${\mathbb Q}$
-Cartier
${\mathbb Q}$
-Cartier 
 ${\mathbb Q}$
-divisor D on Y such that
${\mathbb Q}$
-divisor D on Y such that 
 $$ \begin{align*}K_X+\Delta\sim_{{\mathbb Q}} f^{*}D.\end{align*} $$
$$ \begin{align*}K_X+\Delta\sim_{{\mathbb Q}} f^{*}D.\end{align*} $$
If P is a prime divisor on Y, we denote by 
 $\eta _P$
 its generic point and we define the log canonical threshold of
$\eta _P$
 its generic point and we define the log canonical threshold of 
 $f^{*}P$
 with respect to
$f^{*}P$
 with respect to 
 $(X,\Delta )$
 to be
$(X,\Delta )$
 to be 

Let  . Then we define the discriminant of f with respect to
. Then we define the discriminant of f with respect to 
 $\Delta $
 as
$\Delta $
 as  , where the sum runs over all the prime divisors P in Y. Let r be the smallest positive integer such that there exists a rational function
, where the sum runs over all the prime divisors P in Y. Let r be the smallest positive integer such that there exists a rational function 
 $\phi $
 on X satisfying
$\phi $
 on X satisfying 
 $$\begin{align*}K_X+\Delta+\frac 1 r (\phi)=f^{*}D. \end{align*}$$
$$\begin{align*}K_X+\Delta+\frac 1 r (\phi)=f^{*}D. \end{align*}$$
Then there exists a 
 ${\mathbb Q}$
-divisor
${\mathbb Q}$
-divisor 
 $M_Y$
 such that
$M_Y$
 such that 
 $$ \begin{align*}K_X+\Delta+\frac 1 r(\phi)=f^{*}(K_Y+B_Y+ M_Y).\end{align*} $$
$$ \begin{align*}K_X+\Delta+\frac 1 r(\phi)=f^{*}(K_Y+B_Y+ M_Y).\end{align*} $$
 $M_Y$
 is called the moduli part of f with respect to
$M_Y$
 is called the moduli part of f with respect to 
 $\Delta $
.
$\Delta $
.
Lemma 2.19. Let 
 $(X,\Delta )$
 be a two dimensional log canonical pair, let
$(X,\Delta )$
 be a two dimensional log canonical pair, let 
 $f\colon X\to Y$
 be a fibration onto a curve Y and let D be a
$f\colon X\to Y$
 be a fibration onto a curve Y and let D be a 
 ${\mathbb Q}$
-divisor on Y such that
${\mathbb Q}$
-divisor on Y such that 
 $K_X+\Delta \sim _{{\mathbb Q}}f^{*}D$
. Let
$K_X+\Delta \sim _{{\mathbb Q}}f^{*}D$
. Let 
 $y\in Y$
 be a closed point and assume that there exists an open neighbourhood U of y such that, if we denote
$y\in Y$
 be a closed point and assume that there exists an open neighbourhood U of y such that, if we denote 

then 
 $(X_U,\Delta |_{X_U})$
 is log smooth and there exists an isomorphism
$(X_U,\Delta |_{X_U})$
 is log smooth and there exists an isomorphism 
 $$\begin{align*}\phi_u\colon X_u \to X_y\qquad\text{such that} \qquad \phi^{*}_u(\Delta|_{X_y})=\Delta|_{X_u} \qquad\text{for all }u\in U. \end{align*}$$
$$\begin{align*}\phi_u\colon X_u \to X_y\qquad\text{such that} \qquad \phi^{*}_u(\Delta|_{X_y})=\Delta|_{X_u} \qquad\text{for all }u\in U. \end{align*}$$
 Then the moduli part of f with respect to 
 $\Delta $
 is trivial, that is,
$\Delta $
 is trivial, that is, 
 $M_Y\sim _{{\mathbb Q}}0$
.
$M_Y\sim _{{\mathbb Q}}0$
.
Proof. By [Reference KollárKol07a, Proposition 8.4.9], we may freely perform a base change. Thus, without loss of generality, we may freely assume that 
 $X \rightarrow Y$
 is semistable and
$X \rightarrow Y$
 is semistable and 
 $\Delta +f^{*}P$
 is a divisor with simple normal crossing for any prime divisor P on Y.
$\Delta +f^{*}P$
 is a divisor with simple normal crossing for any prime divisor P on Y.
 Let G be the support of 
 $\Delta $
. By our hypotheses, after possibly replacing Y by a higher cover, we may find an open subset
$\Delta $
. By our hypotheses, after possibly replacing Y by a higher cover, we may find an open subset 
 $V \subset Y$
 so that
$V \subset Y$
 so that 
 $X = X_0\times V$
 and
$X = X_0\times V$
 and 
 $G = G_0 \times V$
, where
$G = G_0 \times V$
, where 
 $X_0$
 is a smooth curve and
$X_0$
 is a smooth curve and 
 $G_0\subset X_0$
 is a finite set. Since
$G_0\subset X_0$
 is a finite set. Since 
 $M_Y$
 only depends on the generic fibre we are therefore free to assume that
$M_Y$
 only depends on the generic fibre we are therefore free to assume that 
 $X = X_0 \times Y$
 and
$X = X_0 \times Y$
 and 
 $G = G_0 \times Y$
, in which case the result is immediate.
$G = G_0 \times Y$
, in which case the result is immediate.
2.10 A recollection on approximation theorems
We recall some approximation results proven in [Reference Cascini and SpicerCS21, Section 4].
 We consider the following set up. Let 
 $\tilde {X} = {\text {Spec}\, {\tilde {A}}}$
 be an affine variety where
$\tilde {X} = {\text {Spec}\, {\tilde {A}}}$
 be an affine variety where 
 $\tilde {A}$
 is a henselian local ring with maximal ideal
$\tilde {A}$
 is a henselian local ring with maximal ideal 
 ${\mathfrak m}$
 and let
${\mathfrak m}$
 and let 
 $W \subset \tilde {X}$
 be a closed subscheme, defined by an ideal
$W \subset \tilde {X}$
 be a closed subscheme, defined by an ideal 
 $\tilde {I}\subset \tilde A$
. Let
$\tilde {I}\subset \tilde A$
. Let  where
 where 
 $\widehat {A}$
 is the completion of
$\widehat {A}$
 is the completion of 
 $\tilde {A}$
 along
$\tilde {A}$
 along 
 $\tilde {I}$
 and let
$\tilde {I}$
 and let 
 $\widehat {D}$
 be a divisor on
$\widehat {D}$
 be a divisor on 
 $\widehat {X}$
. Equivalently,
$\widehat {X}$
. Equivalently, 
 $\widehat {D}$
 is given by a reflexive sheaf
$\widehat {D}$
 is given by a reflexive sheaf 
 $\widehat {M}$
 on
$\widehat {M}$
 on 
 $\widehat {X}$
 and a choice of a section
$\widehat {X}$
 and a choice of a section 
 $\hat {s} \in \widehat {M}$
.
$\hat {s} \in \widehat {M}$
.
The following is a slight generalisation of Artin-Elkik approximation theorem:
Theorem 2.20. Set up as above. Let m be a positive integer such that 
 $m\widehat {D}$
 is Cartier on
$m\widehat {D}$
 is Cartier on 
 $\widehat {X} \setminus W$
.
$\widehat {X} \setminus W$
.
 Then, for all positive integer n, there exists a divisor 
 $D^n$
 on
$D^n$
 on 
 $\tilde {X}$
 such that
$\tilde {X}$
 such that 
 $$\begin{align*}D^n = \widehat{D}\quad \mod \tilde{I}^n\qquad\text{and}\qquad \mathcal O_{\tilde{X}}(mD^n) \otimes \widehat{A} \cong \mathcal O_{\tilde{X}}(m\widehat{D}). \end{align*}$$
$$\begin{align*}D^n = \widehat{D}\quad \mod \tilde{I}^n\qquad\text{and}\qquad \mathcal O_{\tilde{X}}(mD^n) \otimes \widehat{A} \cong \mathcal O_{\tilde{X}}(m\widehat{D}). \end{align*}$$
Proof. See [Reference Cascini and SpicerCS21, Corollary 4.5].
 We will use this theorem under the following additional constraints. Let 
 $X = {\text {Spec}\, A}$
 be an affine variety and let
$X = {\text {Spec}\, A}$
 be an affine variety and let 
 $P \in X$
 be closed point and suppose
$P \in X$
 be closed point and suppose 
 $\tilde {A}$
 is the henselisation of A at P.
$\tilde {A}$
 is the henselisation of A at P.
Corollary 2.21. Set up as above.
 Then, for all positive integer n, there exists an étale neighbourhood 
 $\sigma \colon U \rightarrow X$
 of P and a divisor
$\sigma \colon U \rightarrow X$
 of P and a divisor 
 $D^n_U$
 on U such that
$D^n_U$
 on U such that 
 $\tau ^{*}D^n_U = D^n$
 where
$\tau ^{*}D^n_U = D^n$
 where 
 $\tau \colon \tilde {X} \rightarrow U$
 is the induced morphism.
$\tau \colon \tilde {X} \rightarrow U$
 is the induced morphism.
 In particular, if 
 $\tilde {I} = I \otimes \tilde {A}$
 for some
$\tilde {I} = I \otimes \tilde {A}$
 for some 
 $I \subset A$
 then
$I \subset A$
 then 
 $D^n_U = \widehat {D}\ \mod I^n$
.
$D^n_U = \widehat {D}\ \mod I^n$
.
 In our applications here we will always take 
 $W = P$
 and so the additional hypotheses of the corollary are always satisfied.
$W = P$
 and so the additional hypotheses of the corollary are always satisfied.
We also recall the following:
Lemma 2.22. Set up as above. Suppose in addition that 
 $(\widehat {X}, \widehat {D})$
 is klt (resp. (log) terminal, resp. (log) canonical).
$(\widehat {X}, \widehat {D})$
 is klt (resp. (log) terminal, resp. (log) canonical).
 Then for any sufficiently large positive integer n, we have that 
 $(U, D^n_U)$
 is klt (resp. (log) terminal, resp. (log) canonical) in a neighborhood of
$(U, D^n_U)$
 is klt (resp. (log) terminal, resp. (log) canonical) in a neighborhood of 
 $\sigma ^{-1}(P)$
.
$\sigma ^{-1}(P)$
.
Proof. See [Reference Cascini and SpicerCS21, Lemma 4.8].
2.11 Resolution of singularities of threefold vector fields
We recall the following example from [Reference McQuillan and PanazzoloMP13].
Example 2.23. [Reference McQuillan and PanazzoloMP13, Example III.iii.3] Consider the 
 ${\mathbb Z}/2{\mathbb Z}$
-action on
${\mathbb Z}/2{\mathbb Z}$
-action on 
 ${\mathbb C}^3$
 given by
${\mathbb C}^3$
 given by 
 $(x, y, z) \mapsto (y, x, -z)$
. Let X denote the quotient of
$(x, y, z) \mapsto (y, x, -z)$
. Let X denote the quotient of 
 ${\mathbb C}^3$
 by this action.
${\mathbb C}^3$
 by this action.
 Consider the vector field on 
 ${\mathbb C}^3$
 given by
${\mathbb C}^3$
 given by 
 $$\begin{align*}\partial_S := x \frac{\partial}{\partial x} - y \frac{\partial}{\partial y}\end{align*}$$
$$\begin{align*}\partial_S := x \frac{\partial}{\partial x} - y \frac{\partial}{\partial y}\end{align*}$$
and
 $$\begin{align*}\partial_N := a(xy, z)x\frac{\partial}{\partial x} - a(xy, -z)y\frac{\partial}{\partial y} + c(xy, z)\frac{\partial}{\partial z}\end{align*}$$
$$\begin{align*}\partial_N := a(xy, z)x\frac{\partial}{\partial x} - a(xy, -z)y\frac{\partial}{\partial y} + c(xy, z)\frac{\partial}{\partial z}\end{align*}$$
where 
 $a,c$
 are formal functions in two variables such that c is not a unit and it satisfies
$a,c$
 are formal functions in two variables such that c is not a unit and it satisfies 
 $c(xy, z) = c(xy, -z)$
. Let
$c(xy, z) = c(xy, -z)$
. Let 
 $\partial := \partial _S+\partial _N$
. Note that
$\partial := \partial _S+\partial _N$
. Note that 
 $\partial \mapsto -\partial $
 under the group action. Thus,
$\partial \mapsto -\partial $
 under the group action. Thus, 
 $\partial $
 induces a foliation
$\partial $
 induces a foliation 
 ${\mathcal F}$
 on X with an isolated canonical singularity and such that
${\mathcal F}$
 on X with an isolated canonical singularity and such that 
 $2K_{\mathcal F}$
 is Cartier, but
$2K_{\mathcal F}$
 is Cartier, but 
 $K_{\mathcal F}$
 is not Cartier.
$K_{\mathcal F}$
 is not Cartier.
 By [Reference McQuillan and PanazzoloMP13, Possibility III.iii.3.bis], there does not exist a birational morphism 
 $f\colon Y\to X$
 such that the induced foliation
$f\colon Y\to X$
 such that the induced foliation 
 $f^{-1}{\mathcal F}$
 is both Gorenstein and canonical. Moreover, by [Reference McQuillan and PanazzoloMP13, III.iii.3.bis], we also have that the curve
$f^{-1}{\mathcal F}$
 is both Gorenstein and canonical. Moreover, by [Reference McQuillan and PanazzoloMP13, III.iii.3.bis], we also have that the curve 
 $\{x= y = 0\}$
 is not algebraic, nor analytically convergent.
$\{x= y = 0\}$
 is not algebraic, nor analytically convergent.
Definition 2.24. Let X be a normal threefold and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities. We say that
${\mathcal F}$
 be a rank one foliation on X with canonical singularities. We say that 
 ${\mathcal F}$
 admits a simple singularity at
${\mathcal F}$
 admits a simple singularity at 
 $P\in X$
 if either
$P\in X$
 if either 
- 
1.  ${\mathcal F}$
 is terminal and no component of ${\mathcal F}$
 is terminal and no component of ${\operatorname {Sing} X}$
 through P is ${\operatorname {Sing} X}$
 through P is ${\mathcal F}$
-invariant; or ${\mathcal F}$
-invariant; or
- 
2.  $ {X}$
 and $ {X}$
 and ${\mathcal F}$
 are formally isomorphic to the variety and the foliation defined in Example 2.23 at P; or ${\mathcal F}$
 are formally isomorphic to the variety and the foliation defined in Example 2.23 at P; or
- 
3. X is smooth at P. 
Theorem 2.25. Let X be a normal threefold and let 
 ${\mathcal F}$
 be a rank one foliation on X.
${\mathcal F}$
 be a rank one foliation on X.
 Then there exists a birational morphism (in fact a sequence of weighted blow ups) 
 $p\colon \widetilde {X} \rightarrow X$
 so that
$p\colon \widetilde {X} \rightarrow X$
 so that  has simple singularities at all points
 has simple singularities at all points 
 $P \in \widetilde {X}$
.
$P \in \widetilde {X}$
.
Proof. Up to replacing X by a resolution of singularities, we may assume that X is smooth. We may then apply [Reference McQuillan and PanazzoloMP13, III.iii.4].
Lemma 2.26. Let X be a normal threefold and let 
 ${\mathcal F}$
 be a rank one foliation on X. Suppose that
${\mathcal F}$
 be a rank one foliation on X. Suppose that 
 ${\mathcal F}$
 admits a simple singularity at P.
${\mathcal F}$
 admits a simple singularity at P.
Then X has cyclic quotient singularities at P.
Proof. If X is smooth then there is nothing to show and if 
 $P \in X$
 is as in Example 2.23, then we are done since X is a
$P \in X$
 is as in Example 2.23, then we are done since X is a 
 ${\mathbb Z}/2{\mathbb Z}$
 quotient singularity.
${\mathbb Z}/2{\mathbb Z}$
 quotient singularity.
 So suppose that 
 ${\mathcal F}$
 is terminal at P. After possibly replacing X by an analytic neighbourhood of P, we may assume that there exists a quasi-étale cover
${\mathcal F}$
 is terminal at P. After possibly replacing X by an analytic neighbourhood of P, we may assume that there exists a quasi-étale cover 
 $q\colon X' \rightarrow X$
 with a holomorphic submersion
$q\colon X' \rightarrow X$
 with a holomorphic submersion 
 $f\colon X' \rightarrow S$
 as guaranteed by Lemma 2.9. Assume by contradiction that
$f\colon X' \rightarrow S$
 as guaranteed by Lemma 2.9. Assume by contradiction that 
 $X'$
 is not smooth. Then
$X'$
 is not smooth. Then 
 $q({\operatorname {Sing} X'}) \subset {\operatorname {Sing} X}$
 and
$q({\operatorname {Sing} X'}) \subset {\operatorname {Sing} X}$
 and 
 $q({\operatorname {Sing} X'} )$
 is
$q({\operatorname {Sing} X'} )$
 is 
 ${\mathcal F}$
-invariant, a contradiction. It follows that
${\mathcal F}$
-invariant, a contradiction. It follows that 
 $X'$
 is smooth and so X has at worst a cyclic quotient singularity.
$X'$
 is smooth and so X has at worst a cyclic quotient singularity.
Lemma 2.27. Let G a finite group acting on 
 ${\mathbb C}^3$
 without pseudo-reflections, let
${\mathbb C}^3$
 without pseudo-reflections, let  be a quotient singularity and let
 be a quotient singularity and let 
 $q \colon {\mathbb C}^3 \rightarrow X$
 be the quotient map. Let
$q \colon {\mathbb C}^3 \rightarrow X$
 be the quotient map. Let 
 ${\mathcal F}$
 be a rank one foliation on X and let
${\mathcal F}$
 be a rank one foliation on X and let 
 $C \subset X$
 be a smooth
$C \subset X$
 be a smooth 
 ${\mathcal F}$
-invariant curve.
${\mathcal F}$
-invariant curve.
Then the following hold:
- 
1. if  ${\mathcal F}$
 is terminal, then ${\mathcal F}$
 is terminal, then $q^{-1}(C)$
 is a smooth irreducible curve; $q^{-1}(C)$
 is a smooth irreducible curve;
- 
2. if  $q(0)\in X$
 is a foliation singularity as in Example 2.23, then $q(0)\in X$
 is a foliation singularity as in Example 2.23, then $q^{-1}(C)$
 is a nodal curve and C is a smooth irreducible curve; and $q^{-1}(C)$
 is a nodal curve and C is a smooth irreducible curve; and
- 
3. if the singularity of  ${\mathcal F}$
 at ${\mathcal F}$
 at $q(0)$
 is simple, then there is a surface $q(0)$
 is simple, then there is a surface $D\subset X$
 containing C and such that D is klt at $D\subset X$
 containing C and such that D is klt at $q(0)$
 and if $q(0)$
 and if ${\mathcal F}$
 is terminal (resp. canonical) at ${\mathcal F}$
 is terminal (resp. canonical) at $q(0)$
 then $q(0)$
 then $(D, C)$
 is log terminal (resp. log canonical) at $(D, C)$
 is log terminal (resp. log canonical) at $q(0)$
. $q(0)$
.
Proof. Let 
 $\mathcal G := q^{-1}{\mathcal F}$
 and let
$\mathcal G := q^{-1}{\mathcal F}$
 and let 
 $C':=q^{-1}(C)$
. Then Lemma 2.3 implies that
$C':=q^{-1}(C)$
. Then Lemma 2.3 implies that 
 $C'$
 is
$C'$
 is 
 $\mathcal G$
-invariant.
$\mathcal G$
-invariant.
 If 
 ${\mathcal F}$
 is terminal then Lemma 2.8 implies that
${\mathcal F}$
 is terminal then Lemma 2.8 implies that 
 $\mathcal G$
 is a terminal foliation on a smooth variety and, by Lemma 2.9, it is smooth. Since
$\mathcal G$
 is a terminal foliation on a smooth variety and, by Lemma 2.9, it is smooth. Since 
 $C'$
 is a connected leaf of
$C'$
 is a connected leaf of 
 $\mathcal G$
, it is therefore smooth and irreducible. Thus, (1) follows.
$\mathcal G$
, it is therefore smooth and irreducible. Thus, (1) follows.
 We now prove (2). Using the same notation as in Example 2.23, we have that 
 $C'$
 is necessarily
$C'$
 is necessarily 
 $\partial _S$
-invariant. It is easy to see that the only
$\partial _S$
-invariant. It is easy to see that the only 
 $\partial _S$
-invariant curves passing through
$\partial _S$
-invariant curves passing through 
 $0 \in {\mathbb C}^3$
 are
$0 \in {\mathbb C}^3$
 are 
 $\{x = y = 0\}, \{x = z = 0\}$
 and
$\{x = y = 0\}, \{x = z = 0\}$
 and 
 $\{y = z = 0\}$
. As in Example 2.23, the curve
$\{y = z = 0\}$
. As in Example 2.23, the curve 
 $\{x= y = 0\}$
 is not algebraic, or not analytically convergent. Thus,
$\{x= y = 0\}$
 is not algebraic, or not analytically convergent. Thus, 
 $C'$
 is either smooth or
$C'$
 is either smooth or 
 $C' = \{x = z = 0\} \cup \{y = z = 0\}$
 as required. Since C is the quotient of
$C' = \{x = z = 0\} \cup \{y = z = 0\}$
 as required. Since C is the quotient of 
 $\{x = z = 0\}\cup \{y = z = 0\}$
 by the
$\{x = z = 0\}\cup \{y = z = 0\}$
 by the 
 ${\mathbb Z}/2{\mathbb Z}$
-action we see that C is a smooth irreducible curve. Thus, (2) follows.
${\mathbb Z}/2{\mathbb Z}$
-action we see that C is a smooth irreducible curve. Thus, (2) follows.
 Let 
 $D'\subset {\mathbb C}^3$
 be a general surface containing
$D'\subset {\mathbb C}^3$
 be a general surface containing 
 $C'$
 and let
$C'$
 and let 
 $D=q(D')$
. Note that
$D=q(D')$
. Note that 
 $D'$
 is smooth at
$D'$
 is smooth at 
 $0$
 and, therefore, D has klt singularities at
$0$
 and, therefore, D has klt singularities at 
 $q(0)$
. By [Reference Kollár and MoriKM98, Proposition 5.20],
$q(0)$
. By [Reference Kollár and MoriKM98, Proposition 5.20], 
 $(D, C)$
 is log terminal (resp. log canonical) if and only if
$(D, C)$
 is log terminal (resp. log canonical) if and only if 
 $(D', C')$
 is log terminal (resp. log canonical). Thus, (3) follows.
$(D', C')$
 is log terminal (resp. log canonical). Thus, (3) follows.
2.12 Nakamaye’s theorem and the structure of extremal rays
 Let X be a normal projective variety and let M be a 
 ${\mathbb Q}$
-Cartier divisor on X. We define the exceptional locus of M to be
${\mathbb Q}$
-Cartier divisor on X. We define the exceptional locus of M to be 

where the union runs over all the subvarieties 
 $V\subset X$
 of positive dimension such that
$V\subset X$
 of positive dimension such that 
 $M|_V$
 is not big. We denote by
$M|_V$
 is not big. We denote by 
 ${\mathbb B}(M)$
 the stable base locus of M,
${\mathbb B}(M)$
 the stable base locus of M, 

where the intersection runs over all the sufficiently divisible positive integers m. Finally, given a ray R in the cone of curves 
 $\overline {\mathrm {NE}}(X)$
, we define the locus of
$\overline {\mathrm {NE}}(X)$
, we define the locus of 
 $\boldsymbol {R}$
 to be the subset
$\boldsymbol {R}$
 to be the subset 
 $$\begin{align*}{\operatorname{loc} \, R}:=\bigcup_{[C]\in R}C. \end{align*}$$
$$\begin{align*}{\operatorname{loc} \, R}:=\bigcup_{[C]\in R}C. \end{align*}$$
We recall the following result originally due to Nakamaye, in the case of smooth varieties.
Lemma 2.28. Let X be a normal projective variety. Let A be an ample 
 ${\mathbb Q}$
-divisor and let M be a big and nef Cartier divisor on X.
${\mathbb Q}$
-divisor and let M be a big and nef Cartier divisor on X.
 Then 
 ${\operatorname {Null} \, M} = {\mathbb B}(M-\epsilon A)$
 for any sufficiently small rational number
${\operatorname {Null} \, M} = {\mathbb B}(M-\epsilon A)$
 for any sufficiently small rational number 
 $\epsilon>0$
.
$\epsilon>0$
.
Proof. See [Reference BirkarBir17, Theorem 1.4].
Proposition 2.29. Let X be a 
 ${\mathbb Q}$
-factorial normal projective variety. Let M be a big and nef Cartier divisor on X. Let
${\mathbb Q}$
-factorial normal projective variety. Let M be a big and nef Cartier divisor on X. Let 
 $W = {\operatorname {Null} \, M}$
 and suppose that
$W = {\operatorname {Null} \, M}$
 and suppose that 
 $M\vert _W \equiv 0$
.
$M\vert _W \equiv 0$
.
 Then there exists a birational contraction to an algebraic space, such that 
 $\phi $
 contracts W to a point and which is an isomorphism outside W.
$\phi $
 contracts W to a point and which is an isomorphism outside W.
Proof. Let A be an ample divisor. Consider the rational map 
 $\phi \colon X \dashrightarrow {\mathbb P}^N$
 defined by the linear system
$\phi \colon X \dashrightarrow {\mathbb P}^N$
 defined by the linear system 
 $|m(M-\epsilon A)|$
 where
$|m(M-\epsilon A)|$
 where 
 $\epsilon>0$
 is a sufficiently small rational number and m is a sufficiently divisible and large positive integer and note that
$\epsilon>0$
 is a sufficiently small rational number and m is a sufficiently divisible and large positive integer and note that 
 $\phi $
 is birational onto the closure of its image
$\phi $
 is birational onto the closure of its image 
 $Y\subset {\mathbb P}^N$
. Let
$Y\subset {\mathbb P}^N$
. Let 
 $p\colon \overline X\to X$
 and
$p\colon \overline X\to X$
 and 
 $q\colon \overline X\to Y$
 be birational morphisms which resolve the indeterminancy locus of
$q\colon \overline X\to Y$
 be birational morphisms which resolve the indeterminancy locus of 
 $\phi $
.
$\phi $
.
 By Lemma 2.28, it follows that 
 $p({\operatorname {Exc} \, q}) = W$
. We may write
$p({\operatorname {Exc} \, q}) = W$
. We may write 
 $$\begin{align*}p^{*}(m(M-\epsilon A)) = H +F \end{align*}$$
$$\begin{align*}p^{*}(m(M-\epsilon A)) = H +F \end{align*}$$
where 
 $F \geq 0$
 is q-exceptional and
$F \geq 0$
 is q-exceptional and 
 $H=q^{*}L$
 for some very ample Cartier divisor L on Y. Since X is
$H=q^{*}L$
 for some very ample Cartier divisor L on Y. Since X is 
 ${\mathbb Q}$
-factorial we may choose
${\mathbb Q}$
-factorial we may choose 
 $G \geq 0$
 to be p-exceptional so that
$G \geq 0$
 to be p-exceptional so that 
 $-G$
 is p-ample. Choose
$-G$
 is p-ample. Choose 
 $\delta>0$
 sufficiently small so that
$\delta>0$
 sufficiently small so that  is ample.
 is ample.
 We therefore have 
 $F+\delta G = p^{*}(mM) - A'-H$
 and
$F+\delta G = p^{*}(mM) - A'-H$
 and 
 $F+\delta G$
 is a
$F+\delta G$
 is a 
 ${\mathbb Q}$
-Cartier q-exceptional divisor. Since
${\mathbb Q}$
-Cartier q-exceptional divisor. Since 
 $p({\operatorname {Exc} \, q}) = W$
, it follows that
$p({\operatorname {Exc} \, q}) = W$
, it follows that 
 $p^{*}M$
 restricted to
$p^{*}M$
 restricted to 
 ${\operatorname {Exc} \, q}$
 is numerically trivial. Thus, if k is a sufficiently divisible positive integer so that
${\operatorname {Exc} \, q}$
 is numerically trivial. Thus, if k is a sufficiently divisible positive integer so that 
 $k(F+\delta G)$
 is a Cartier divisor, then
$k(F+\delta G)$
 is a Cartier divisor, then 
 $$\begin{align*}-k(F+\delta G)\vert_{k(F+\delta G)} \equiv k(A'+H)\vert_{k(F+\delta G)}. \end{align*}$$
$$\begin{align*}-k(F+\delta G)\vert_{k(F+\delta G)} \equiv k(A'+H)\vert_{k(F+\delta G)}. \end{align*}$$
Since ampleness of a line bundle on a scheme is equivalent to ampleness of the line bundle restricted to the reduction and normalisation, and since 
 $A'+H$
 restricted to the reduction and normalisation of each component of
$A'+H$
 restricted to the reduction and normalisation of each component of 
 ${\operatorname {Exc} \, q}$
 is ample, we see that
${\operatorname {Exc} \, q}$
 is ample, we see that 
 $-k(F+\delta G)\vert _{k(F+\delta G)}$
 is ample.
$-k(F+\delta G)\vert _{k(F+\delta G)}$
 is ample.
 We may therefore apply Artin’s Theorem [Reference ArtinArt70, Theorem 6.2] to produce a morphism of algebraic spaces 
 $\overline {X} \rightarrow Z$
 which contracts
$\overline {X} \rightarrow Z$
 which contracts 
 $F+\delta G$
 to a point. By the rigidity lemma this contraction factors through
$F+\delta G$
 to a point. By the rigidity lemma this contraction factors through 
 $\overline {X} \rightarrow X$
 giving our desired birational contraction
$\overline {X} \rightarrow X$
 giving our desired birational contraction 
 $\phi \colon X \rightarrow Z$
.
$\phi \colon X \rightarrow Z$
.
2.13 Cone theorem
 The cone theorem for rank one foliations was initially proven in [Reference Bogomolov and McQuillanBM16, Corollary IV.2.1] when 
 ${\mathcal F}$
 is Gorenstein and in [Reference McQuillanMcQ04] when
${\mathcal F}$
 is Gorenstein and in [Reference McQuillanMcQ04] when 
 ${\mathcal F}$
 is
${\mathcal F}$
 is 
 ${\mathbb Q}$
-Gorenstein. A more general version is proven in [Reference Cascini and SpicerCS25a], which we recall here.
${\mathbb Q}$
-Gorenstein. A more general version is proven in [Reference Cascini and SpicerCS25a], which we recall here.
Theorem 2.30. Let X be a normal projective 
 ${\mathbb Q}$
-factorial variety and let
${\mathbb Q}$
-factorial variety and let 
 $({\mathcal F}, \Delta )$
 be a rank one foliated pair on X.
$({\mathcal F}, \Delta )$
 be a rank one foliated pair on X.
 Then there are 
 ${\mathcal F}$
-invariant rational curves
${\mathcal F}$
-invariant rational curves 
 $C_1,C_2,\dots $
 not contained in
$C_1,C_2,\dots $
 not contained in 
 ${\operatorname {Sing}{\mathcal F}} $
 such that
${\operatorname {Sing}{\mathcal F}} $
 such that 
 $$\begin{align*}0<-(K_{\mathcal F}+\Delta)\cdot C_i\le 2\dim X\end{align*}$$
$$\begin{align*}0<-(K_{\mathcal F}+\Delta)\cdot C_i\le 2\dim X\end{align*}$$
and
 $$ \begin{align*}\overline{\mathrm{NE}}(X)=\overline{\mathrm{NE}}(X)_{K_{\mathcal F}+\Delta\ge 0}+Z_{-\infty}+ \sum_i \mathbb R_+[C_i]\end{align*} $$
$$ \begin{align*}\overline{\mathrm{NE}}(X)=\overline{\mathrm{NE}}(X)_{K_{\mathcal F}+\Delta\ge 0}+Z_{-\infty}+ \sum_i \mathbb R_+[C_i]\end{align*} $$
where 
 $Z_{-\infty }\subset \overline {\mathrm {NE}}(X)$
 is a subset contained in the span of the images of
$Z_{-\infty }\subset \overline {\mathrm {NE}}(X)$
 is a subset contained in the span of the images of 
 $\overline {\mathrm {NE}}(W) \rightarrow \overline {\mathrm {NE}}(X)$
 where
$\overline {\mathrm {NE}}(W) \rightarrow \overline {\mathrm {NE}}(X)$
 where 
 $W \subset X$
 are the non-log canonical centres of
$W \subset X$
 are the non-log canonical centres of 
 $({\mathcal F}, \Delta )$
.
$({\mathcal F}, \Delta )$
.
Proof. See [Reference Cascini and SpicerCS25a, Theorem 4.8].
Remark 2.31. Set up as in Theorem 2.30. Assume in addition that 
 $({\mathcal F},\Delta )$
 is log canonical and R is a
$({\mathcal F},\Delta )$
 is log canonical and R is a 
 $(K_{\mathcal F}+\Delta )$
-negative extremal ray such that
$(K_{\mathcal F}+\Delta )$
-negative extremal ray such that 
 $\dim {\operatorname {loc} \, R}=1$
. Let C be a component of
$\dim {\operatorname {loc} \, R}=1$
. Let C be a component of 
 ${\operatorname {loc} \, R}$
. Then [Reference Cascini and SpicerCS25a, Lemma 4.7] implies that C is not contained in
${\operatorname {loc} \, R}$
. Then [Reference Cascini and SpicerCS25a, Lemma 4.7] implies that C is not contained in 
 ${\operatorname {Sing}^{+}{\mathcal F}} $
 and, as in the proof of [Reference Cascini and SpicerCS25a, Theorem 4.8], we have that C is
${\operatorname {Sing}^{+}{\mathcal F}} $
 and, as in the proof of [Reference Cascini and SpicerCS25a, Theorem 4.8], we have that C is 
 ${\mathcal F}$
-invariant.
${\mathcal F}$
-invariant.
2.14 A remark on the different notions of singularity
The following proposition is not needed in this paper, but we believe it is of independent interest as it clarifies the relation between different notions of foliation singularities appearing in the existing literature.
Proposition 2.32. Let X be a klt variety and let 
 ${\mathcal F}$
 be a rank one foliation on X such that
${\mathcal F}$
 be a rank one foliation on X such that 
 $K_{{\mathcal F}}$
 is
$K_{{\mathcal F}}$
 is 
 ${\mathbb Q}$
-Cartier.
${\mathbb Q}$
-Cartier.
 Then 
 ${\operatorname {Sing} {\mathcal F}} = {\operatorname {Sing}^{+}{\mathcal F}} $
.
${\operatorname {Sing} {\mathcal F}} = {\operatorname {Sing}^{+}{\mathcal F}} $
.
Proof. By Lemma 2.1 we have the inclusion 
 ${\operatorname {Sing} {\mathcal F}} \subset {\operatorname {Sing}^{+}{\mathcal F}} $
, so suppose for the sake of contradiction that there exists a closed point
${\operatorname {Sing} {\mathcal F}} \subset {\operatorname {Sing}^{+}{\mathcal F}} $
, so suppose for the sake of contradiction that there exists a closed point 
 $x \in {\operatorname {Sing}^{+}{\mathcal F}} \setminus {\operatorname {Sing} {\mathcal F}}$
. We may freely replace X by a neighbourhood of
$x \in {\operatorname {Sing}^{+}{\mathcal F}} \setminus {\operatorname {Sing} {\mathcal F}}$
. We may freely replace X by a neighbourhood of 
 $x \in X$
 and we may also freely replace X be the index one cover associated to
$x \in X$
 and we may also freely replace X be the index one cover associated to 
 $K_{{\mathcal F}}$
. Thus, we may assume that
$K_{{\mathcal F}}$
. Thus, we may assume that 
 ${\mathcal F}$
 is defined by a vector field
${\mathcal F}$
 is defined by a vector field 
 $\partial $
. Since
$\partial $
. Since 
 $x \not \in {\operatorname {Sing} {\mathcal F}}$
 the morphism
$x \not \in {\operatorname {Sing} {\mathcal F}}$
 the morphism 
 $\Omega ^{[1]}_X \rightarrow \mathcal O_X$
 induced by pairing with
$\Omega ^{[1]}_X \rightarrow \mathcal O_X$
 induced by pairing with 
 $\partial $
 is surjective, and so there exists a section
$\partial $
 is surjective, and so there exists a section 
 $\omega \in \Omega ^{[1]}_X$
 such that
$\omega \in \Omega ^{[1]}_X$
 such that 
 $\partial (\omega ) =1$
. Let
$\partial (\omega ) =1$
. Let 
 $p\colon X' \rightarrow X$
 be a functorial resolution of X, cf. [Reference KollárKol07b, Theorems 3.35 and 3.45]. By [Reference Greb, Kebekus and KovácsGKK10, Corollary 4.7] there exists a vector field
$p\colon X' \rightarrow X$
 be a functorial resolution of X, cf. [Reference KollárKol07b, Theorems 3.35 and 3.45]. By [Reference Greb, Kebekus and KovácsGKK10, Corollary 4.7] there exists a vector field 
 $\partial '$
 on
$\partial '$
 on 
 $X'$
 such that
$X'$
 such that 
 $p_{*}\partial ' = \partial $
. Since X is klt, [Reference Greb, Kebekus, Kovács and PeternellGKKP11, Theorem 1.4] implies that
$p_{*}\partial ' = \partial $
. Since X is klt, [Reference Greb, Kebekus, Kovács and PeternellGKKP11, Theorem 1.4] implies that  is a holomorphic 1-form on
 is a holomorphic 1-form on 
 $X'$
. Note that we still have
$X'$
. Note that we still have 
 $\partial '(\omega ') = 1$
, in particular,
$\partial '(\omega ') = 1$
, in particular, 
 $\partial '$
 defines a smooth foliation
$\partial '$
 defines a smooth foliation 
 ${\mathcal F}'$
 on
${\mathcal F}'$
 on 
 $X'$
.
$X'$
.
 Since 
 $x \in {\operatorname {Sing}^{+}{\mathcal F}} $
, it follows that x is invariant by
$x \in {\operatorname {Sing}^{+}{\mathcal F}} $
, it follows that x is invariant by 
 $\partial $
, and so
$\partial $
, and so 
 $p^{-1}(x)$
 is invariant by
$p^{-1}(x)$
 is invariant by 
 $\partial '$
. Perhaps passing to a higher functorial resolution we may assume that
$\partial '$
. Perhaps passing to a higher functorial resolution we may assume that 
 $p^{-1}(x)$
 is a divisor and that there exists an exceptional Cartier divisor G such that
$p^{-1}(x)$
 is a divisor and that there exists an exceptional Cartier divisor G such that 
 $-G$
 is p-ample. Since G is supported on p-exceptional divisors and the p-exceptional locus is
$-G$
 is p-ample. Since G is supported on p-exceptional divisors and the p-exceptional locus is 
 ${\mathcal F}'$
-invariant we have a partial connection
${\mathcal F}'$
-invariant we have a partial connection 
 $\nabla \colon \mathcal O_{X'}(G) \rightarrow \mathcal O_{X'}(G) \otimes \mathcal O_{X'}(K_{{\mathcal F}'})$
. Let E be an irreducible component of
$\nabla \colon \mathcal O_{X'}(G) \rightarrow \mathcal O_{X'}(G) \otimes \mathcal O_{X'}(K_{{\mathcal F}'})$
. Let E be an irreducible component of 
 $p^{-1}(x)$
, and let
$p^{-1}(x)$
, and let 
 ${\mathcal F}^{\prime }_E$
 be the restricted foliation. We may restrict the partial connection
${\mathcal F}^{\prime }_E$
 be the restricted foliation. We may restrict the partial connection 
 $\nabla $
 to a partial connection
$\nabla $
 to a partial connection 
 $$\begin{align*}\nabla_E \colon \mathcal O_E(G\vert_E) \rightarrow \mathcal O_E(G\vert_E)\otimes \mathcal O_E(K_{{\mathcal F}^{\prime}_E}). \end{align*}$$
$$\begin{align*}\nabla_E \colon \mathcal O_E(G\vert_E) \rightarrow \mathcal O_E(G\vert_E)\otimes \mathcal O_E(K_{{\mathcal F}^{\prime}_E}). \end{align*}$$
Since 
 ${\mathcal F}^{\prime }_E$
 is smooth, we may apply Bott vanishing to conclude that
${\mathcal F}^{\prime }_E$
 is smooth, we may apply Bott vanishing to conclude that 
 $G\vert _E^{\dim E} \equiv 0$
, cf. [Reference Carrell and LiebermanCL77, Proposition 5.1], which contradicts the fact that
$G\vert _E^{\dim E} \equiv 0$
, cf. [Reference Carrell and LiebermanCL77, Proposition 5.1], which contradicts the fact that 
 $-G\vert _E$
 is ample.
$-G\vert _E$
 is ample.
In light of this Proposition we ask the following:
Question 2.33. Let X be a normal variety and let 
 ${\mathcal F}$
 be a rank one foliation on X such that
${\mathcal F}$
 be a rank one foliation on X such that 
 $K_{{\mathcal F}}$
 is
$K_{{\mathcal F}}$
 is 
 ${\mathbb Q}$
-Cartier. Does
${\mathbb Q}$
-Cartier. Does 
 ${\operatorname {Sing} {\mathcal F}} = {\operatorname {Sing}^{+}{\mathcal F}}$
?
${\operatorname {Sing} {\mathcal F}} = {\operatorname {Sing}^{+}{\mathcal F}}$
?
3 Facts about terminal singularities
The following simple observation is a crucial technical ingredient:
Proposition 3.1. Let X be a normal projective variety and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let
${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let 
 $\phi \colon X \dashrightarrow X^{+}$
 be a step of a
$\phi \colon X \dashrightarrow X^{+}$
 be a step of a 
 $K_{\mathcal F}$
-MMP and let
$K_{\mathcal F}$
-MMP and let 
 ${\mathcal F}^{+}$
 be the induced foliation on
${\mathcal F}^{+}$
 be the induced foliation on 
 $X^{+}$
.
$X^{+}$
.
Then the following hold:
- 
1. If X admits only quotient singularities, then  $X^{+}$
 also admits at worst quotient singularities. $X^{+}$
 also admits at worst quotient singularities.
- 
2. If X is a threefold and  ${\mathcal F}$
 admits simple singularities (cf. Definition 2.24), then ${\mathcal F}$
 admits simple singularities (cf. Definition 2.24), then ${\mathcal F}^{+}$
 also only admits simple singularities. ${\mathcal F}^{+}$
 also only admits simple singularities.
Proof. Let 
 $Z \subset X^{+}$
 be
$Z \subset X^{+}$
 be 
 $\phi ({\operatorname {Exc} \, \phi })$
 if
$\phi ({\operatorname {Exc} \, \phi })$
 if 
 $\phi $
 is a divisorial contraction and let it be the flipped locus when
$\phi $
 is a divisorial contraction and let it be the flipped locus when 
 $\phi $
 is a flip. In either case by Lemma 2.7 if E is a divisor centred in a subvariety of Z then
$\phi $
 is a flip. In either case by Lemma 2.7 if E is a divisor centred in a subvariety of Z then 
 $a(E,{\mathcal F}^{+})>0$
. Thus,
$a(E,{\mathcal F}^{+})>0$
. Thus, 
 ${\mathcal F}^{+}$
 is terminal at all points of Z, including any generic point of Z.
${\mathcal F}^{+}$
 is terminal at all points of Z, including any generic point of Z.
 We first prove (1). Assume that 
 $P\in {\operatorname {Sing} X^{+}}$
 is not a quotient singularity. In particular,
$P\in {\operatorname {Sing} X^{+}}$
 is not a quotient singularity. In particular, 
 $P\in Z$
 and
$P\in Z$
 and 
 ${\mathcal F}$
 is terminal at P. Let
${\mathcal F}$
 is terminal at P. Let 
 $q\colon V\to U$
 be a quasi-étale morphism over an analytic open neighbourhood U of P such that
$q\colon V\to U$
 be a quasi-étale morphism over an analytic open neighbourhood U of P such that 
 $q^{*}K_{{\mathcal F}^{+}}$
 is Cartier. Then
$q^{*}K_{{\mathcal F}^{+}}$
 is Cartier. Then 
 $q({\operatorname {Sing} V})$
 is nonempty.
$q({\operatorname {Sing} V})$
 is nonempty.
 By Lemma 2.9, after possibly shrinking U, we may assume that there exists a submersion 
 $f\colon V \rightarrow B$
 which induces
$f\colon V \rightarrow B$
 which induces 
 $q^{-1}{\mathcal F}^{+}|_U$
 and
$q^{-1}{\mathcal F}^{+}|_U$
 and 
 ${\mathcal F}^{+}$
 is not terminal at any generic point of
${\mathcal F}^{+}$
 is not terminal at any generic point of 
 $q({\operatorname {Sing} V})$
. Thus,
$q({\operatorname {Sing} V})$
. Thus, 
 $q({\operatorname {Sing} V})$
 is not contained in Z. Let
$q({\operatorname {Sing} V})$
 is not contained in Z. Let 
 $Q\in V$
 such that
$Q\in V$
 such that 
 $q(Q)=P$
. Since
$q(Q)=P$
. Since 
 $X^{+}\setminus Z$
 has at worst quotient singularities by assumption this implies that
$X^{+}\setminus Z$
 has at worst quotient singularities by assumption this implies that 
 $f(Q) \in B$
 is a quotient singularity. Thus, V, and hence U, has at worst quotient singularities, and (1) follows.
$f(Q) \in B$
 is a quotient singularity. Thus, V, and hence U, has at worst quotient singularities, and (1) follows.
 We now prove (2). Since 
 ${\mathcal F}^{+}$
 is terminal at all points of Z, it follows that no components of Z are
${\mathcal F}^{+}$
 is terminal at all points of Z, it follows that no components of Z are 
 ${\mathcal F}$
-invariant, so if a component
${\mathcal F}$
-invariant, so if a component 
 $\Sigma $
 of
$\Sigma $
 of 
 ${\operatorname {Sing} X^{+}}$
 is contained in Z then
${\operatorname {Sing} X^{+}}$
 is contained in Z then 
 $\Sigma $
 is not
$\Sigma $
 is not 
 ${\mathcal F}^{+}$
-invariant. Thus, (2) follows.
${\mathcal F}^{+}$
-invariant. Thus, (2) follows.
3.1 A version of Reeb stability
Our goal is to generalise Reeb stability theorem to foliations defined over singular varieties.
 More specifically, let X be a normal variety and let 
 ${\mathcal F}$
 be a rank one foliation on X which is terminal at all closed points. Let
${\mathcal F}$
 be a rank one foliation on X which is terminal at all closed points. Let 
 $C \subset X$
 be a compact
$C \subset X$
 be a compact 
 ${\mathcal F}$
-invariant curve and let
${\mathcal F}$
-invariant curve and let 
 $\Sigma \subset {\operatorname {Sing} X }$
 be the locus where
$\Sigma \subset {\operatorname {Sing} X }$
 be the locus where 
 ${\mathcal F}$
 is not Gorenstein. By definition of invariance, the set
${\mathcal F}$
 is not Gorenstein. By definition of invariance, the set 
 $\{c_1, ..., c_N\}=C\cap \Sigma $
 is finite. Let
$\{c_1, ..., c_N\}=C\cap \Sigma $
 is finite. Let 
 $C^\circ = C \setminus \{c_1, ..., c_N\}$
 and let
$C^\circ = C \setminus \{c_1, ..., c_N\}$
 and let 
 $n_k$
 be the Cartier index of
$n_k$
 be the Cartier index of 
 $K_{\mathcal F}$
 at
$K_{\mathcal F}$
 at 
 $c_k$
 for each
$c_k$
 for each 
 $k=1,\dots ,N$
. We now define the holonomy of
$k=1,\dots ,N$
. We now define the holonomy of 
 ${\mathcal F}$
 along
${\mathcal F}$
 along 
 $C^\circ $
.
$C^\circ $
.
 Since C is compact, by Lemma 2.9, we may find open sets 
 $U_1,\dots ,U_\ell $
 in X such that C is contained in the union
$U_1,\dots ,U_\ell $
 in X such that C is contained in the union 
 $\cup U_i$
 and for each
$\cup U_i$
 and for each 
 $i=1,\dots ,\ell $
, there exists a finite morphism
$i=1,\dots ,\ell $
, there exists a finite morphism 
 $q_i\colon V_i\to U_i$
 and a fibration
$q_i\colon V_i\to U_i$
 and a fibration 
 $f_i\colon V_i\to T_i$
 such that
$f_i\colon V_i\to T_i$
 such that  is the foliation induced by
 is the foliation induced by 
 $f_i$
,
$f_i$
, 
 $q_i$
 is unramified outside
$q_i$
 is unramified outside 
 $\Sigma $
, and if
$\Sigma $
, and if 
 $c_k\in U_i$
 for some
$c_k\in U_i$
 for some 
 $k=1,\dots ,N$
 then the ramification index of
$k=1,\dots ,N$
 then the ramification index of 
 $q_i$
 at
$q_i$
 at 
 $c_k$
 is
$c_k$
 is 
 $n_k$
. In particular, the preimage of the curve C in
$n_k$
. In particular, the preimage of the curve C in 
 $V_i$
 is mapped to a point
$V_i$
 is mapped to a point 
 $z_i\in T_i$
.
$z_i\in T_i$
.
 Pick distinct 
 $i,j$
 such that
$i,j$
 such that 
 $U_{i,j}:=U_i\cap U_j$
 is not empty and it intersects C. After possibly shrinking
$U_{i,j}:=U_i\cap U_j$
 is not empty and it intersects C. After possibly shrinking 
 $U_i$
 or
$U_i$
 or 
 $U_j$
, we may assume that
$U_j$
, we may assume that 
 $U_{i,j}$
 does not intersect
$U_{i,j}$
 does not intersect 
 $\Sigma $
. Let
$\Sigma $
. Let 
 $V^j_i:=q_i^{-1}(U_{i,j})$
 and let
$V^j_i:=q_i^{-1}(U_{i,j})$
 and let 
 $V_{i,j}=V_i^j\times _{U_{i,j}} V_j^i$
. Note that the induced morphism
$V_{i,j}=V_i^j\times _{U_{i,j}} V_j^i$
. Note that the induced morphism 
 $q_{i,j}\colon V_{i,j}\to U_{i,j}$
 is unramified and there exists a morphism
$q_{i,j}\colon V_{i,j}\to U_{i,j}$
 is unramified and there exists a morphism 
 $f_{i,j}\colon V_{i,j}\to T_{i,j}$
 such the pulled back foliation
$f_{i,j}\colon V_{i,j}\to T_{i,j}$
 such the pulled back foliation 
 ${\mathcal F}_{i,j}$
 on
${\mathcal F}_{i,j}$
 on 
 $V_{i,j}$
 is induced by
$V_{i,j}$
 is induced by 
 $f_{i,j}$
. Indeed,
$f_{i,j}$
. Indeed, 
 $f_{i,j}$
 is the Stein factorisation of the morphism
$f_{i,j}$
 is the Stein factorisation of the morphism 
 $V_{i,j}\to T_i$
. Let
$V_{i,j}\to T_i$
. Let 
 $\sigma _{i,j}\colon T_{i,j}\to T_i$
 be the induced morphism. Note that the preimage of C in
$\sigma _{i,j}\colon T_{i,j}\to T_i$
 be the induced morphism. Note that the preimage of C in 
 $V_{i,j}$
 is mapped to a point
$V_{i,j}$
 is mapped to a point 
 $z_{i,j}\in T_{i,j}$
 such that
$z_{i,j}\in T_{i,j}$
 such that 
 $\sigma _{i,j}(z_{i,j})=z_i$
. After possibly shrinking
$\sigma _{i,j}(z_{i,j})=z_i$
. After possibly shrinking 
 $U_i$
 and
$U_i$
 and 
 $U_j$
, we may assume that
$U_j$
, we may assume that 
 $\sigma _{i,j}$
 is surjective. It follows that
$\sigma _{i,j}$
 is surjective. It follows that 
 $\sigma _{i,j}$
 is étale. Thus, after replacing
$\sigma _{i,j}$
 is étale. Thus, after replacing 
 $V_i$
 by
$V_i$
 by 
 $V_{i}\times _{T_{i}}T_{i,j}$
 we may assume that
$V_{i}\times _{T_{i}}T_{i,j}$
 we may assume that 
 $T_i=T_j$
. After repeating this process, finitely many times, we may assume that
$T_i=T_j$
. After repeating this process, finitely many times, we may assume that  and
 and  do not depend on
 do not depend on 
 $i=1,\dots ,k$
. Note that, by the construction above, the choice of the germ
$i=1,\dots ,k$
. Note that, by the construction above, the choice of the germ 
 $(T,z)$
 is uniquely determined by
$(T,z)$
 is uniquely determined by 
 ${\mathcal F}$
 and C.
${\mathcal F}$
 and C.
 Pick 
 $c\in C^\circ $
. Let
$c\in C^\circ $
. Let 
 $\gamma _1,\dots ,\gamma _N$
 be loops based at c around
$\gamma _1,\dots ,\gamma _N$
 be loops based at c around 
 $c_1,\dots ,c_N$
, respectively. The orbifold fundamental group
$c_1,\dots ,c_N$
, respectively. The orbifold fundamental group 
 $\pi (C^\circ ,c;n_1,\dots ,n_N)$
 of
$\pi (C^\circ ,c;n_1,\dots ,n_N)$
 of 
 $C^\circ $
 with weight
$C^\circ $
 with weight 
 $n_k$
 at
$n_k$
 at 
 $c_k$
 is defined as the quotient of
$c_k$
 is defined as the quotient of 
 $\pi (C^\circ ,c)$
 by the normal subgroup generated by
$\pi (C^\circ ,c)$
 by the normal subgroup generated by 
 $\gamma _1^{n_1},\dots ,\gamma _N^{n_N}$
. We now want to define the holonomy map
$\gamma _1^{n_1},\dots ,\gamma _N^{n_N}$
. We now want to define the holonomy map 
 $$ \begin{align*}\rho\colon \pi(C^\circ,c;n_1,\dots,n_N)\to \operatorname{\mathrm{Aut}}(T,z),\end{align*} $$
$$ \begin{align*}\rho\colon \pi(C^\circ,c;n_1,\dots,n_N)\to \operatorname{\mathrm{Aut}}(T,z),\end{align*} $$
where 
 $\operatorname {\mathrm {Aut}}(T,z)$
 denotes the group of biholomorphic automorphisms on the germ
$\operatorname {\mathrm {Aut}}(T,z)$
 denotes the group of biholomorphic automorphisms on the germ 
 $(T,z)$
. Let
$(T,z)$
. Let 
 $\gamma \colon [0,1]\to C^\circ $
 be a continuous path which is contained in
$\gamma \colon [0,1]\to C^\circ $
 be a continuous path which is contained in 
 $U_i$
 for some
$U_i$
 for some 
 $i=1,\dots ,\ell $
. Then, since
$i=1,\dots ,\ell $
. Then, since 
 $q_i\colon V_i\to U_i$
 is unramified outside
$q_i\colon V_i\to U_i$
 is unramified outside 
 $\Sigma $
, there exists a lifting
$\Sigma $
, there exists a lifting 
 $\tilde \gamma \colon [0,1]\to V_i$
 of
$\tilde \gamma \colon [0,1]\to V_i$
 of 
 $\gamma $
 in
$\gamma $
 in 
 $V_i$
. Note that
$V_i$
. Note that 
 $f_i$
 maps the image of
$f_i$
 maps the image of 
 $\tilde \gamma $
 to the point
$\tilde \gamma $
 to the point 
 $z\in T$
. Proceeding as in the construction of the classic holonomy map (e.g., see [Reference Camacho and NetoCN85]), we can define a homomorphism
$z\in T$
. Proceeding as in the construction of the classic holonomy map (e.g., see [Reference Camacho and NetoCN85]), we can define a homomorphism 
 $$ \begin{align*}\rho'\colon \pi(C^0,c)\to \operatorname{\mathrm{Aut}} (T,z).\end{align*} $$
$$ \begin{align*}\rho'\colon \pi(C^0,c)\to \operatorname{\mathrm{Aut}} (T,z).\end{align*} $$
Note that if 
 $c_k\in U_i$
 for some i and k, then the ramification index of
$c_k\in U_i$
 for some i and k, then the ramification index of 
 $q_i$
 at any point in
$q_i$
 at any point in 
 $q_i^{-1}(c_k)$
 is equal to
$q_i^{-1}(c_k)$
 is equal to 
 $n_k$
. Thus, it follows that
$n_k$
. Thus, it follows that 
 $\rho '(\gamma _k^{n_k})$
 is the identity automorphism of T for any
$\rho '(\gamma _k^{n_k})$
 is the identity automorphism of T for any 
 $k=1,\dots ,N$
 and, in particular, the holonomy map
$k=1,\dots ,N$
 and, in particular, the holonomy map 
 $$ \begin{align*}\rho\colon \pi(C^\circ,c;n_1,\dots,n_N)\to \operatorname{\mathrm{Aut}}(T,z)\end{align*} $$
$$ \begin{align*}\rho\colon \pi(C^\circ,c;n_1,\dots,n_N)\to \operatorname{\mathrm{Aut}}(T,z)\end{align*} $$
is well defined.
We are now ready to state our singular version of Reeb stability theorem:
Theorem 3.2. Set up as above. Assume that the image of the holonomy map 
 $\rho $
 is finite.
$\rho $
 is finite.
 Then there exists an analytic open subset W of X containing C such that the leaf 
 $C_t$
 of
$C_t$
 of 
 ${\mathcal F}$
 passing through
${\mathcal F}$
 passing through 
 $t\in W$
 is a compact analytic subvariety of W.
$t\in W$
 is a compact analytic subvariety of W.
Proof. The proof of the Theorem is an easy generalisation of the classical Reeb stability theorem (e.g., see [Reference Camacho and NetoCN85, Theorem IV.5]).
As a direct application of Reeb stability theorem, we get the following result (see also [Reference McQuillanMcQ04, II.d.5]):
Proposition 3.3. Let X be a normal variety and let 
 ${\mathcal F}$
 be a rank one foliation on X. Let
${\mathcal F}$
 be a rank one foliation on X. Let 
 $C \subset X$
 be an
$C \subset X$
 be an 
 ${\mathcal F}$
-invariant curve and suppose that
${\mathcal F}$
-invariant curve and suppose that 
 ${\mathcal F}$
 is terminal at every closed point
${\mathcal F}$
 is terminal at every closed point 
 $P\in C$
. Suppose moreover that
$P\in C$
. Suppose moreover that 
 $K_{\mathcal F}\cdot C<0$
.
$K_{\mathcal F}\cdot C<0$
.
 Then C moves in a family of 
 ${\mathcal F}$
-invariant curves covering X.
${\mathcal F}$
-invariant curves covering X.
Proof. By definition of invariance, 
 ${\mathcal F}$
 is Gorenstein at the generic point of C. Let
${\mathcal F}$
 is Gorenstein at the generic point of C. Let 
 $c_1, ..., c_N\in C$
 be the non-Gorenstein points of
$c_1, ..., c_N\in C$
 be the non-Gorenstein points of 
 ${\mathcal F}$
 and let
${\mathcal F}$
 and let 
 $n_k$
 denote the Cartier index of
$n_k$
 denote the Cartier index of 
 $K_{\mathcal F}$
 at
$K_{\mathcal F}$
 at 
 $c_k$
, for
$c_k$
, for 
 $k=1,\dots ,N$
. Let
$k=1,\dots ,N$
. Let 
 $C^\circ =C\setminus \{c_1,\dots ,c_N\}$
.
$C^\circ =C\setminus \{c_1,\dots ,c_N\}$
.
It follows from foliation adjunction (cf. Proposition 2.13), that C is a rational curve and
 $$ \begin{align*}K_{\mathcal F}\cdot C = -2+\sum_{k=1}^N \frac{n_k-1}{n_k}.\end{align*} $$
$$ \begin{align*}K_{\mathcal F}\cdot C = -2+\sum_{k=1}^N \frac{n_k-1}{n_k}.\end{align*} $$
In particular, since 
 $K_{\mathcal F}\cdot C<0$
 it follows that the orbifold fundamental group
$K_{\mathcal F}\cdot C<0$
 it follows that the orbifold fundamental group 
 $\pi _1(C^\circ ,c;n_1,\dots ,n_N)$
 is finite. Thus, Theorem 3.2 implies the claim.
$\pi _1(C^\circ ,c;n_1,\dots ,n_N)$
 is finite. Thus, Theorem 3.2 implies the claim.
4 Subadjunction result in the presence of a foliation
 Given a log pair 
 $(X,S)$
, a minimal log canonical centre W of
$(X,S)$
, a minimal log canonical centre W of 
 $(X, S)$
 and an ample divisor A on X, we may write
$(X, S)$
 and an ample divisor A on X, we may write 
 $(K_X+S+A)|_W = K_W+\Theta $
 for an effective divisor
$(K_X+S+A)|_W = K_W+\Theta $
 for an effective divisor 
 $\Theta \geq 0$
. We are interested in this situation in the presence of a foliation which leaves the components of S invariant. In this case we are able to get some control on
$\Theta \geq 0$
. We are interested in this situation in the presence of a foliation which leaves the components of S invariant. In this case we are able to get some control on 
 $\Theta $
 in terms of the singularities of the foliation.
$\Theta $
 in terms of the singularities of the foliation.
4.1 Dlt modification
 Let X be a normal threefold singularity and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let
${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let 
 $S_1,\dots ,S_k$
 be prime
$S_1,\dots ,S_k$
 be prime 
 ${\mathcal F}$
-invariant divisors. Our goal here is to control the singularities of the pair
${\mathcal F}$
-invariant divisors. Our goal here is to control the singularities of the pair  , where
, where 
 $a_1,\dots ,a_k\in (0,1]\cap {\mathbb Q}$
, in terms of the singularities of
$a_1,\dots ,a_k\in (0,1]\cap {\mathbb Q}$
, in terms of the singularities of 
 ${\mathcal F}$
. As the following example shows, a canonical foliation singularity will in general have worse than quotient singularities on the ambient variety (in contrast to the surface case):
${\mathcal F}$
. As the following example shows, a canonical foliation singularity will in general have worse than quotient singularities on the ambient variety (in contrast to the surface case):
Example 4.1. Let 
 $X = \{xy-zw = 0\} \subset {\mathbb C}^4$
 and consider the vector field
$X = \{xy-zw = 0\} \subset {\mathbb C}^4$
 and consider the vector field 
 $\partial = x\partial _x-y\partial _y+z\partial _z-w\partial _w$
 on
$\partial = x\partial _x-y\partial _y+z\partial _z-w\partial _w$
 on 
 ${\mathbb C}^4$
. Note that X is
${\mathbb C}^4$
. Note that X is 
 $\partial $
-invariant and so
$\partial $
-invariant and so 
 $\partial $
 induces a rank one foliation
$\partial $
 induces a rank one foliation 
 ${\mathcal F}$
 on X. We claim that
${\mathcal F}$
 on X. We claim that 
 ${\mathcal F}$
 has canonical singularities. Indeed,
${\mathcal F}$
 has canonical singularities. Indeed, 
 ${\operatorname {Sing} {\mathcal F}} = \{ 0\}$
 and if
${\operatorname {Sing} {\mathcal F}} = \{ 0\}$
 and if 
 ${\mathfrak m}$
 is the maximal ideal at
${\mathfrak m}$
 is the maximal ideal at 
 $0$
 then the induced linear map
$0$
 then the induced linear map 
 ${\mathfrak m}/{\mathfrak m}^2 \rightarrow {\mathfrak m}/{\mathfrak m}^2$
 is non-nilpotent, and Proposition 2.16 implies that it is log canonical. The eigenvalues of
${\mathfrak m}/{\mathfrak m}^2 \rightarrow {\mathfrak m}/{\mathfrak m}^2$
 is non-nilpotent, and Proposition 2.16 implies that it is log canonical. The eigenvalues of 
 $\partial $
 are not all positive rational numbers and [Reference McQuillan and PanazzoloMP13, Fact III.i.3] implies that
$\partial $
 are not all positive rational numbers and [Reference McQuillan and PanazzoloMP13, Fact III.i.3] implies that 
 ${\mathcal F}$
 has a canonical singularity at
${\mathcal F}$
 has a canonical singularity at 
 $(0, 0, 0, 0)$
.
$(0, 0, 0, 0)$
.
Lemma 4.2. Let X be a normal variety and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let
${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let 
 $(X,\Gamma =\sum a_i S_i)$
 be a log pair where
$(X,\Gamma =\sum a_i S_i)$
 be a log pair where 
 $S_1,\dots ,S_k$
 are irreducible
$S_1,\dots ,S_k$
 are irreducible 
 ${\mathcal F}$
-invariant divisors and
${\mathcal F}$
-invariant divisors and 
 $a_1,\dots ,a_k\in (0,1]$
.
$a_1,\dots ,a_k\in (0,1]$
.
 Then there exists a birational morphism 
 $\mu \colon \overline {X} \rightarrow X$
 of
$\mu \colon \overline {X} \rightarrow X$
 of 
 $(X, \Gamma )$
 such that
$(X, \Gamma )$
 such that 
- 
1.  $K_{\overline {\mathcal F}} = \mu ^{*}K_{\mathcal F}+F$
 where $K_{\overline {\mathcal F}} = \mu ^{*}K_{\mathcal F}+F$
 where $\overline {\mathcal F}$
 is the foliation induced on $\overline {\mathcal F}$
 is the foliation induced on $\overline X$
 and $\overline X$
 and $F\ge 0$
 is a $F\ge 0$
 is a $\mu $
-exceptional divisor whose centre in X is contained in the locus where $\mu $
-exceptional divisor whose centre in X is contained in the locus where ${\mathcal F}$
 is not Gorenstein; and ${\mathcal F}$
 is not Gorenstein; and
- 
2.  $(\overline X,\overline {\Gamma }+E)$
 is dlt and $(\overline X,\overline {\Gamma }+E)$
 is dlt and $K_{\overline {X}}+\overline {\Gamma }+E$
 is nef over X, where E is the sum of all the $K_{\overline {X}}+\overline {\Gamma }+E$
 is nef over X, where E is the sum of all the $\mu $
-exceptional divisors and $\mu $
-exceptional divisors and $\overline {\Gamma }$
 is the strict transform of $\overline {\Gamma }$
 is the strict transform of $\Gamma $
 in $\Gamma $
 in $\overline X$
. $\overline X$
.
 We call the morphism 
 $\mu $
 a dlt modification of
$\mu $
 a dlt modification of 
 $(X,\Gamma )$
 with respect to
$(X,\Gamma )$
 with respect to 
 ${\mathcal F}$
.
${\mathcal F}$
.
Proof. Let 
 $U \subset X$
 be the Gorenstein locus of
$U \subset X$
 be the Gorenstein locus of 
 ${\mathcal F}$
, that is, the open subset of all points
${\mathcal F}$
, that is, the open subset of all points 
 $P \in X$
 such that
$P \in X$
 such that 
 $K_{\mathcal F}$
 is Cartier in a neighbourhood of P and so
$K_{\mathcal F}$
 is Cartier in a neighbourhood of P and so 
 ${\mathcal F}$
 is defined by a vector field
${\mathcal F}$
 is defined by a vector field 
 $\partial $
. In particular,
$\partial $
. In particular, 
 $X\setminus U$
, being contained in
$X\setminus U$
, being contained in 
 ${\operatorname {Sing} X}$
, has codimension at least two. Let
${\operatorname {Sing} X}$
, has codimension at least two. Let 
 $p\colon V \to U$
 be a functorial resolution, cf. [Reference KollárKol07b, Theorems 3.35 and 3.45]. By [Reference Greb, Kebekus and KovácsGKK10, Corollary 4.7] there exists a lift of
$p\colon V \to U$
 be a functorial resolution, cf. [Reference KollárKol07b, Theorems 3.35 and 3.45]. By [Reference Greb, Kebekus and KovácsGKK10, Corollary 4.7] there exists a lift of 
 $\partial $
 to a vector field
$\partial $
 to a vector field 
 $\partial '$
 on U and therefore we have that
$\partial '$
 on U and therefore we have that 
 $K_{{\mathcal F}_V} = p^{*}(K_{\mathcal F}|_U)+F$
. Since
$K_{{\mathcal F}_V} = p^{*}(K_{\mathcal F}|_U)+F$
. Since 
 ${\mathcal F}$
 admits canonical singularities
${\mathcal F}$
 admits canonical singularities 
 $F = 0$
, that is,
$F = 0$
, that is, 
 $K_{{\mathcal F}_V} = p^{*}(K_{\mathcal F}|_U)$
.
$K_{{\mathcal F}_V} = p^{*}(K_{\mathcal F}|_U)$
.
 Let Y be a normal variety which is a partial compactification of V such that there exists a projective morphism 
 $\pi \colon Y\to X$
 which extends p. Let
$\pi \colon Y\to X$
 which extends p. Let 
 $\Gamma _Y=\pi ^{-1}_{*}\Gamma $
 and let G be the sum of all the
$\Gamma _Y=\pi ^{-1}_{*}\Gamma $
 and let G be the sum of all the 
 $\pi $
-exceptional divisors. Let
$\pi $
-exceptional divisors. Let 
 $Z\to Y$
 be a log resolution of
$Z\to Y$
 be a log resolution of 
 $(Y,\Gamma _Y+G)$
, which is an isomorphism over V, and let
$(Y,\Gamma _Y+G)$
, which is an isomorphism over V, and let 
 $\rho \colon Z\to X$
 be the induced morphism. In particular, if
$\rho \colon Z\to X$
 be the induced morphism. In particular, if 
 ${\mathcal F}_Z$
 is the induced foliation on Z,
${\mathcal F}_Z$
 is the induced foliation on Z, 
 $W=\rho ^{-1}(U)$
 and
$W=\rho ^{-1}(U)$
 and 
 $q=\rho |_W\colon W\to U$
 is the restriction morphism, then
$q=\rho |_W\colon W\to U$
 is the restriction morphism, then 
 $K_{{\mathcal F}_Z}|_W=q^{*}(K_{{\mathcal F}}|_U)$
.
$K_{{\mathcal F}_Z}|_W=q^{*}(K_{{\mathcal F}}|_U)$
.
 We may construct a morphism 
 $\mu \colon \overline X\to X$
 satisfying (2) as the output of an MMP over X starting from Z (e.g., see [Reference KollárKol13, Theorem 1.34]). Let
$\mu \colon \overline X\to X$
 satisfying (2) as the output of an MMP over X starting from Z (e.g., see [Reference KollárKol13, Theorem 1.34]). Let 
 $\overline {{\mathcal F}}$
 be the foliation induced on
$\overline {{\mathcal F}}$
 be the foliation induced on 
 $\overline X$
. It follows that, if
$\overline X$
. It follows that, if 
 $\overline U=\mu ^{-1}U$
, then we have that
$\overline U=\mu ^{-1}U$
, then we have that 
 $K_{\overline {{\mathcal F}}}|_{\overline U}=r^{*}(K_{{\mathcal F}}|_U)$
, where
$K_{\overline {{\mathcal F}}}|_{\overline U}=r^{*}(K_{{\mathcal F}}|_U)$
, where 
 $r=\mu |_{\overline U}\colon \overline U\to U$
 is the restriction morphism. Thus, since
$r=\mu |_{\overline U}\colon \overline U\to U$
 is the restriction morphism. Thus, since 
 ${\mathcal F}$
 has canonical singularities, (1) follows.
${\mathcal F}$
 has canonical singularities, (1) follows.
Theorem 4.3. Let X be a normal threefold and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let
${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let 
 $0\in X$
 be a closed point and let
$0\in X$
 be a closed point and let 
 $(X, \Gamma )$
 be a log pair where
$(X, \Gamma )$
 be a log pair where 
 $\Gamma $
 has
$\Gamma $
 has 
 ${\mathcal F}$
-invariant support. Suppose that
${\mathcal F}$
-invariant support. Suppose that 
 $K_X$
 and
$K_X$
 and 
 $\Gamma $
 are
$\Gamma $
 are 
 ${\mathbb Q}$
-Cartier and that
${\mathbb Q}$
-Cartier and that 
 $(X, \Gamma )$
 is log canonical away from
$(X, \Gamma )$
 is log canonical away from 
 $0$
. Suppose moreover that X is klt away from
$0$
. Suppose moreover that X is klt away from 
 $0$
.
$0$
.
 Then 
 $(X, \Gamma )$
 has log canonical singularities.
$(X, \Gamma )$
 has log canonical singularities.
Proof. Observe that our hypotheses are preserved by shrinking X and by taking quasi-étale covers. Thus, we may assume without loss of generality that 
 $K_{\mathcal F}$
 is Cartier.
$K_{\mathcal F}$
 is Cartier.
 Suppose for the sake of contradiction that 
 $(X, \Gamma )$
 has a worse than log canonical singularity at 0. We may find
$(X, \Gamma )$
 has a worse than log canonical singularity at 0. We may find 
 $0<\lambda <1$
, sufficiently close to
$0<\lambda <1$
, sufficiently close to 
 $1$
 so that
$1$
 so that 
 $(X, \lambda \Gamma )$
 is not log canonical at
$(X, \lambda \Gamma )$
 is not log canonical at 
 $0$
 and is klt away from
$0$
 and is klt away from 
 $0$
. Thus, after replacing
$0$
. Thus, after replacing 
 $\Gamma $
 by
$\Gamma $
 by 
 $\lambda \Gamma $
, we may assume that
$\lambda \Gamma $
, we may assume that 
 $(X,\Gamma )$
 is klt away from
$(X,\Gamma )$
 is klt away from 
 $0$
.
$0$
.
 Let 
 $\mu \colon \overline {X} \rightarrow X$
 be a dlt modification of
$\mu \colon \overline {X} \rightarrow X$
 be a dlt modification of 
 $(X, \Gamma )$
 with respect to
$(X, \Gamma )$
 with respect to 
 ${\mathcal F}$
, whose existence is guaranteed by Lemma 4.2. Let
${\mathcal F}$
, whose existence is guaranteed by Lemma 4.2. Let  . Then, since
. Then, since 
 ${\mathcal F}$
 is Gorenstein, we have that
${\mathcal F}$
 is Gorenstein, we have that 
 $K_{\overline {\mathcal F}}=\mu ^{*}K_{\mathcal F}$
 and since
$K_{\overline {\mathcal F}}=\mu ^{*}K_{\mathcal F}$
 and since 
 $(X,\Gamma )$
 is klt away from
$(X,\Gamma )$
 is klt away from 
 $0$
, we have that every
$0$
, we have that every 
 $\mu $
-exceptional divisor is centred in
$\mu $
-exceptional divisor is centred in 
 $0$
. Let
$0$
. Let 
 $E=\sum _{i=1}^q E_i$
 be the sum of the
$E=\sum _{i=1}^q E_i$
 be the sum of the 
 $\mu $
-exceptional divisors and let
$\mu $
-exceptional divisors and let 
 $\overline {\Gamma }$
 be the strict transform of
$\overline {\Gamma }$
 be the strict transform of 
 $\Gamma $
 in
$\Gamma $
 in 
 $\overline X$
. Lemma 2.6 implies that E is
$\overline X$
. Lemma 2.6 implies that E is 
 $\overline {\mathcal F}$
-invariant.
$\overline {\mathcal F}$
-invariant.
 By classical adjunction and by Proposition 2.13, for each 
 $i=1,\dots ,q$
, we may write
$i=1,\dots ,q$
, we may write 
 $$ \begin{align*}(K_{\overline X}+\overline{\Gamma}+E)|_{E_i}=K_{E_i}+\Theta_i\qquad\text{and}\qquad K_{\overline{\mathcal F}}\vert_{E_i} = K_{\mathcal G_i}+\Delta_i \end{align*} $$
$$ \begin{align*}(K_{\overline X}+\overline{\Gamma}+E)|_{E_i}=K_{E_i}+\Theta_i\qquad\text{and}\qquad K_{\overline{\mathcal F}}\vert_{E_i} = K_{\mathcal G_i}+\Delta_i \end{align*} $$
for some 
 ${\mathbb Q}$
-divisors
${\mathbb Q}$
-divisors 
 $\Delta _i, \Theta _i\ge 0$
 on
$\Delta _i, \Theta _i\ge 0$
 on 
 $E_i$
 and where
$E_i$
 and where 
 $\mathcal G_i$
 is the induced foliation on
$\mathcal G_i$
 is the induced foliation on 
 $E_i$
. In particular,
$E_i$
. In particular, 
 $(E_i,\Theta _i)$
 is log canonical for all
$(E_i,\Theta _i)$
 is log canonical for all 
 $i=1,\dots ,q$
.
$i=1,\dots ,q$
.
We first prove the following:
Claim 4.4. For any 
 $i=1,\dots ,q$
, the surface
$i=1,\dots ,q$
, the surface 
 $E_i$
 is covered by curves M such that
$E_i$
 is covered by curves M such that 
 $(K_{E_i}+\Theta _i)\cdot M \leq 0$
.
$(K_{E_i}+\Theta _i)\cdot M \leq 0$
.
Proof of the Claim.
 Note that 
 $K_{\mathcal G_i}+\Delta _i\equiv 0$
. Suppose first that
$K_{\mathcal G_i}+\Delta _i\equiv 0$
. Suppose first that 
 $\mathcal G_i$
 is not algebraically integrable. If
$\mathcal G_i$
 is not algebraically integrable. If 
 $\Delta _i\neq 0$
, as in the proof of Lemma 2.11 it follows that
$\Delta _i\neq 0$
, as in the proof of Lemma 2.11 it follows that 
 $\mathcal G_i$
 is uniruled, a contradiction. Thus, we may assume that
$\mathcal G_i$
 is uniruled, a contradiction. Thus, we may assume that 
 $\Delta _i = 0$
, and so, by Proposition 2.14,
$\Delta _i = 0$
, and so, by Proposition 2.14, 
 $\Theta _i$
 only consists of
$\Theta _i$
 only consists of 
 $\mathcal G_i$
-invariant components. Thus, since
$\mathcal G_i$
-invariant components. Thus, since 
 $(E_i, \Theta _i)$
 is log canonical, we have that
$(E_i, \Theta _i)$
 is log canonical, we have that 
 $\Theta _i \leq \sum C_j$
 where the sum runs over all the
$\Theta _i \leq \sum C_j$
 where the sum runs over all the 
 $\mathcal G_i$
-invariant divisors, and so we may apply Lemma 2.11 to conclude.
$\mathcal G_i$
-invariant divisors, and so we may apply Lemma 2.11 to conclude.
 Now suppose that 
 $\mathcal G_i$
 is algebraically integrable. Again, by Proposition 2.14 and since
$\mathcal G_i$
 is algebraically integrable. Again, by Proposition 2.14 and since 
 $K_{\mathcal G_i}+\Delta _i\equiv 0$
, we may apply Lemma 2.12 to conclude. Thus, the claim follows.
$K_{\mathcal G_i}+\Delta _i\equiv 0$
, we may apply Lemma 2.12 to conclude. Thus, the claim follows.
 Let 
 $c\colon \overline {X} \dashrightarrow X_{can}$
 be the log canonical model of
$c\colon \overline {X} \dashrightarrow X_{can}$
 be the log canonical model of 
 $(\overline {X}, \overline {\Gamma }+E)$
 over X, let
$(\overline {X}, \overline {\Gamma }+E)$
 over X, let  and let
 and let 
 $m\colon X_{can} \rightarrow X$
 be the induced morphism.
$m\colon X_{can} \rightarrow X$
 be the induced morphism.
 By (2) of Lemma 4.2, we have that 
 $K_{\overline {X}}+\overline {\Gamma }+E$
 is nef over X. Thus, the inequality of the Claim is in fact an equality and as such, each such curve is contracted by c. This implies that
$K_{\overline {X}}+\overline {\Gamma }+E$
 is nef over X. Thus, the inequality of the Claim is in fact an equality and as such, each such curve is contracted by c. This implies that 
 $X_{can} \rightarrow X$
 is a small contraction. In particular,
$X_{can} \rightarrow X$
 is a small contraction. In particular, 
 $m^{*}(K_X+\Gamma ) =K_{X_{can}}+\Gamma _{can}$
. Our result follows, since
$m^{*}(K_X+\Gamma ) =K_{X_{can}}+\Gamma _{can}$
. Our result follows, since 
 $(X_{can}, \Gamma _{can})$
 has log canonical singularities.
$(X_{can}, \Gamma _{can})$
 has log canonical singularities.
Example 4.5. Observe that the assumption that our singularity is isolated in the above theorem is necessary. Indeed, let S be any normal surface and let C be a smooth curve and let 
 ${\mathcal F}$
 be the foliation on
${\mathcal F}$
 be the foliation on  induced by the projection onto the first coordinate. It is straightforward to check that
 induced by the projection onto the first coordinate. It is straightforward to check that 
 ${\operatorname {Sing} {\mathcal F}} =\emptyset $
 and so
${\operatorname {Sing} {\mathcal F}} =\emptyset $
 and so 
 ${\mathcal F}$
 has canonical singularities by [Reference DruelDru21, Lemma 5.9], and moreover, is terminal at all closed points
${\mathcal F}$
 has canonical singularities by [Reference DruelDru21, Lemma 5.9], and moreover, is terminal at all closed points 
 $x \in X$
.
$x \in X$
.
We also need the following:
Proposition 4.6. Let X be a normal threefold and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let
${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let 
 $(X,S:=\sum S_i)$
 be a log pair where
$(X,S:=\sum S_i)$
 be a log pair where 
 $S_1,\dots , S_k$
 are irreducible
$S_1,\dots , S_k$
 are irreducible 
 ${\mathcal F}$
-invariant divisors and let
${\mathcal F}$
-invariant divisors and let 
 $C\subset {\operatorname {Sing} {\mathcal F}}$
 be a curve.
$C\subset {\operatorname {Sing} {\mathcal F}}$
 be a curve.
 Then 
 $(X,S)$
 is log canonical at the generic point of C.
$(X,S)$
 is log canonical at the generic point of C.
Proof. The following proof relies on similar, and at the same time easier, ideas as in Theorem 4.3. Thus, we only sketch its main steps.
 Observe that our hypotheses are preserved by shrinking X and by taking quasi-étale covers. Thus, we may assume without loss of generality that 
 $K_{\mathcal F}$
 is Cartier.
$K_{\mathcal F}$
 is Cartier.
 Let 
 $\mu \colon \overline {X} \rightarrow X$
 be a dlt modification of
$\mu \colon \overline {X} \rightarrow X$
 be a dlt modification of 
 $(X, S)$
 with respect to
$(X, S)$
 with respect to 
 ${\mathcal F}$
, whose existence is guaranteed by Lemma 4.2. Let
${\mathcal F}$
, whose existence is guaranteed by Lemma 4.2. Let  . Then, since
. Then, since 
 ${\mathcal F}$
 is Gorenstein, we have that
${\mathcal F}$
 is Gorenstein, we have that 
 $K_{\overline {\mathcal F}}=\mu ^{*}K_{\mathcal F}$
. After possibly replacing X by a neighbourhood of the generic point of C, we may assume that every
$K_{\overline {\mathcal F}}=\mu ^{*}K_{\mathcal F}$
. After possibly replacing X by a neighbourhood of the generic point of C, we may assume that every 
 $\mu $
-exceptional divisor is centred in C. Let
$\mu $
-exceptional divisor is centred in C. Let 
 $E=\sum _{i=1}^q E_i$
 be the sum of the
$E=\sum _{i=1}^q E_i$
 be the sum of the 
 $\mu $
-exceptional divisors and let
$\mu $
-exceptional divisors and let 
 $\overline {S}$
 be the strict transform of S in
$\overline {S}$
 be the strict transform of S in 
 $\overline X$
.
$\overline X$
.
 By classical adjunction and by Proposition 2.13, for each 
 $i=1,\dots ,q$
, we may write
$i=1,\dots ,q$
, we may write 
 $$ \begin{align*}(K_{\overline X}+\overline{S}+E)|_{E_i}=K_{E_i}+\Theta_i\qquad\text{and}\qquad K_{\overline{\mathcal F}}\vert_{E_i} = K_{\mathcal G_i}+\Delta_i \end{align*} $$
$$ \begin{align*}(K_{\overline X}+\overline{S}+E)|_{E_i}=K_{E_i}+\Theta_i\qquad\text{and}\qquad K_{\overline{\mathcal F}}\vert_{E_i} = K_{\mathcal G_i}+\Delta_i \end{align*} $$
for some 
 ${\mathbb Q}$
-divisors
${\mathbb Q}$
-divisors 
 $\Delta _i, \Theta _i\ge 0$
 on
$\Delta _i, \Theta _i\ge 0$
 on 
 $E_i$
 and where
$E_i$
 and where 
 $\mathcal G_i$
 is the induced foliation on
$\mathcal G_i$
 is the induced foliation on 
 $E_i$
. In particular,
$E_i$
. In particular, 
 $(E_i,\Theta _i)$
 is log canonical, for all
$(E_i,\Theta _i)$
 is log canonical, for all 
 $i=1,\dots ,q$
.
$i=1,\dots ,q$
.
 Fix 
 $i=1,\dots , q$
 and consider the induced morphism
$i=1,\dots , q$
 and consider the induced morphism 
 $p\colon E_i\to C$
. Let
$p\colon E_i\to C$
. Let 
 $\Sigma $
 be the general fibre of p and let
$\Sigma $
 be the general fibre of p and let 
 $\Sigma ^{\nu }\to \Sigma $
 be its normalisation. Since
$\Sigma ^{\nu }\to \Sigma $
 be its normalisation. Since 
 $C\subset {\operatorname {Sing} {\mathcal F}}$
, it follows that a general closed point of C is
$C\subset {\operatorname {Sing} {\mathcal F}}$
, it follows that a general closed point of C is 
 ${\mathcal F}$
-invariant. Thus, Lemma 2.3 implies that
${\mathcal F}$
-invariant. Thus, Lemma 2.3 implies that 
 $\Sigma $
 is
$\Sigma $
 is 
 $\overline {\mathcal F}$
-invariant. By classical adjunction and by Proposition 2.13, there exist
$\overline {\mathcal F}$
-invariant. By classical adjunction and by Proposition 2.13, there exist 
 ${\mathbb Q}$
-divisors
${\mathbb Q}$
-divisors 
 $\Gamma _i, \Delta '\ge 0$
 on
$\Gamma _i, \Delta '\ge 0$
 on 
 $\Sigma ^{\nu }$
 such that
$\Sigma ^{\nu }$
 such that 
 $$\begin{align*}(K_{E_i}+\Theta_i)|_{\Sigma^\nu} = K_{\Sigma^\nu}+\Gamma_i \qquad \text{and}\qquad 0\equiv K_{\overline{\mathcal F}}|_{\Sigma^\nu}=K_{\Sigma^\nu}+\Delta'. \end{align*}$$
$$\begin{align*}(K_{E_i}+\Theta_i)|_{\Sigma^\nu} = K_{\Sigma^\nu}+\Gamma_i \qquad \text{and}\qquad 0\equiv K_{\overline{\mathcal F}}|_{\Sigma^\nu}=K_{\Sigma^\nu}+\Delta'. \end{align*}$$
By Proposition 2.14, it follows that the support of 
 $\Gamma _i$
 is contained in the support of
$\Gamma _i$
 is contained in the support of 
 $\Delta '$
 and since
$\Delta '$
 and since 
 $\Delta '$
 is integral, whilst
$\Delta '$
 is integral, whilst 
 $(\Sigma ^{\nu },\Gamma _i)$
 is log canonical, it follows that
$(\Sigma ^{\nu },\Gamma _i)$
 is log canonical, it follows that 
 $\deg (K_{\Sigma ^\nu }+\Gamma _i)\le 0$
. Thus, our results follow as in the proof of Theorem 4.3.
$\deg (K_{\Sigma ^\nu }+\Gamma _i)\le 0$
. Thus, our results follow as in the proof of Theorem 4.3.
 Note that it is easy to produce examples of a canonical foliation of rank one on a normal variety and a collection of invariant divisors 
 $\sum S_i$
 so that
$\sum S_i$
 so that 
 $(X, \sum S_i)$
 has zero-dimensional non-log canonical singularities, as shown in the following example:
$(X, \sum S_i)$
 has zero-dimensional non-log canonical singularities, as shown in the following example:
Example 4.7. Let 
 $X={\mathbb C}^3$
, let
$X={\mathbb C}^3$
, let 
 ${\mathcal F}$
 be the foliation defined by the vector field
${\mathcal F}$
 be the foliation defined by the vector field 
 $x\frac {\partial }{\partial x}-y\frac {\partial }{\partial y}$
 and let
$x\frac {\partial }{\partial x}-y\frac {\partial }{\partial y}$
 and let 
 $S=\{x = 0\} + \{y = 0\} +\{xy-z^2 =0\}$
. Then the support of S is
$S=\{x = 0\} + \{y = 0\} +\{xy-z^2 =0\}$
. Then the support of S is 
 ${\mathcal F}$
-invariant and the origin
${\mathcal F}$
-invariant and the origin 
 $0\in X$
 is a non-lc centre for
$0\in X$
 is a non-lc centre for 
 $(X,S)$
. Note that it is not isolated: the curves
$(X,S)$
. Note that it is not isolated: the curves 
 $\{x = z = 0\}$
 and
$\{x = z = 0\}$
 and 
 $\{y = z = 0\}$
 are non-lc centres for
$\{y = z = 0\}$
 are non-lc centres for 
 $(X,S)$
 as well.
$(X,S)$
 as well.
Remark 4.8. Theorem 4.3 implies that if 
 $x \in X$
 is an isolated
$x \in X$
 is an isolated 
 ${\mathbb Q}$
-Gorenstein singularity and
${\mathbb Q}$
-Gorenstein singularity and 
 ${\mathcal F}$
 is a rank one foliation with canonical singularities then
${\mathcal F}$
 is a rank one foliation with canonical singularities then 
 $x \in X$
 is a log canonical singularity. It would be interesting to know if we could improve this bound. For example, is
$x \in X$
 is a log canonical singularity. It would be interesting to know if we could improve this bound. For example, is 
 $x \in X$
 log terminal?
$x \in X$
 log terminal?
 Note that if there is a 
 ${\mathbb Q}$
-Cartier
${\mathbb Q}$
-Cartier 
 ${\mathcal F}$
-invariant, possibly formal, divisor S passing through x then
${\mathcal F}$
-invariant, possibly formal, divisor S passing through x then 
 $(X, tS)$
 is log canonical for
$(X, tS)$
 is log canonical for 
 $t>0$
 sufficiently small and so X is log terminal.
$t>0$
 sufficiently small and so X is log terminal.
4.2 Subadjuntion
 We work in the following set up. Let X be a 
 ${\mathbb Q}$
-factorial threefold with klt singularities, let
${\mathbb Q}$
-factorial threefold with klt singularities, let 
 ${\mathcal F}$
 be a rank one foliation on X and let
${\mathcal F}$
 be a rank one foliation on X and let 
 $\Gamma = \sum a_iS_i$
 be a
$\Gamma = \sum a_iS_i$
 be a 
 ${\mathbb Q}$
-divisor where
${\mathbb Q}$
-divisor where 
 $S_1,\dots ,S_k$
 are
$S_1,\dots ,S_k$
 are 
 ${\mathcal F}$
-invariant prime divisors and
${\mathcal F}$
-invariant prime divisors and 
 $a_1,\dots ,a_k\in (0,1)$
. Let
$a_1,\dots ,a_k\in (0,1)$
. Let 
 $C \subset X$
 be a
$C \subset X$
 be a 
 ${\mathcal F}$
-invariant projective curve which is a log canonical centre of
${\mathcal F}$
-invariant projective curve which is a log canonical centre of 
 $(X, \Gamma )$
 and suppose that there are no one-dimensional non-log canonical centres. Suppose moreover that
$(X, \Gamma )$
 and suppose that there are no one-dimensional non-log canonical centres. Suppose moreover that 
 ${\mathcal F}$
 has canonical singularities and that
${\mathcal F}$
 has canonical singularities and that 
 ${\mathcal F}$
 is terminal at a general point of C. Theorem 4.3 implies that
${\mathcal F}$
 is terminal at a general point of C. Theorem 4.3 implies that 
 $(X, \Gamma )$
 is log canonical.
$(X, \Gamma )$
 is log canonical.
By subadjunction for varieties, cf. [Reference KollárKol07a, Theorem 8.6.1], we may write
 $$\begin{align*}(K_X+\Gamma)\vert_{C^\nu} = K_{C^\nu} +\Theta\end{align*}$$
$$\begin{align*}(K_X+\Gamma)\vert_{C^\nu} = K_{C^\nu} +\Theta\end{align*}$$
where 
 $\nu \colon C^\nu \rightarrow C$
 is the normalisation and
$\nu \colon C^\nu \rightarrow C$
 is the normalisation and 
 $\Theta \ge 0$
 is a
$\Theta \ge 0$
 is a 
 ${\mathbb Q}$
-divisor.
${\mathbb Q}$
-divisor.
Theorem 4.9. Set up as above. Then
- 
1.  $(C^\nu , \Theta )$
 is log canonical; $(C^\nu , \Theta )$
 is log canonical;
- 
2.  $\lfloor \Theta \rfloor $
 is supported on the preimage of centres of canonical singularities of $\lfloor \Theta \rfloor $
 is supported on the preimage of centres of canonical singularities of ${\mathcal F}$
; ${\mathcal F}$
;
- 
3. if  ${\mathcal F}$
 is terminal at ${\mathcal F}$
 is terminal at $\nu (Q) \in C$
 for some $\nu (Q) \in C$
 for some $Q \in C^\nu $
 then $Q \in C^\nu $
 then $\mu _Q\Theta = \frac {n-1}{n}$
 where n is the Cartier index of $\mu _Q\Theta = \frac {n-1}{n}$
 where n is the Cartier index of $K_{\mathcal F}$
 at $K_{\mathcal F}$
 at $\nu (Q)$
. $\nu (Q)$
.
In particular, we have
 $$\begin{align*}(K_X+\Gamma)\cdot C\le K_{\mathcal F}\cdot C. \end{align*}$$
$$\begin{align*}(K_X+\Gamma)\cdot C\le K_{\mathcal F}\cdot C. \end{align*}$$
Proof. Let 
 $p\colon \overline {X} \rightarrow X$
 be a dlt modification of
$p\colon \overline {X} \rightarrow X$
 be a dlt modification of 
 $(X, \Gamma )$
 and let
$(X, \Gamma )$
 and let 
 $\overline {\Gamma }$
 be the strict transform of
$\overline {\Gamma }$
 be the strict transform of 
 $\Gamma $
 in
$\Gamma $
 in 
 $\overline X$
. Since
$\overline X$
. Since 
 $(X,\Gamma )$
 is log canonical, we may write
$(X,\Gamma )$
 is log canonical, we may write 
 $$\begin{align*}K_{\overline{X}}+\overline{\Gamma}+E = p^{*}(K_X+\Gamma) \end{align*}$$
$$\begin{align*}K_{\overline{X}}+\overline{\Gamma}+E = p^{*}(K_X+\Gamma) \end{align*}$$
where E is the sum of all the prime exceptional divisors of p. Lemma 2.6 implies that E is 
 $\overline {\mathcal F}$
-invariant. Since C is a log canonical centre of
$\overline {\mathcal F}$
-invariant. Since C is a log canonical centre of 
 $(X, \Gamma )$
, after possibly going to a higher model we may assume that there exists an irreducible component
$(X, \Gamma )$
, after possibly going to a higher model we may assume that there exists an irreducible component 
 $E_0$
 of E dominating C. Set
$E_0$
 of E dominating C. Set 
 $E_1=E-E_0$
. By adjunction we may write
$E_1=E-E_0$
. By adjunction we may write 
 $$\begin{align*}(K_{\overline{X}}+E+\overline{\Gamma})\vert_{E_0} = K_{E_0}+\Theta_0 \end{align*}$$
$$\begin{align*}(K_{\overline{X}}+E+\overline{\Gamma})\vert_{E_0} = K_{E_0}+\Theta_0 \end{align*}$$
where 
 $\Theta _0 \geq 0$
.
$\Theta _0 \geq 0$
.
 Let  be the restriction morphism. Then
 be the restriction morphism. Then 
 $K_{E_0}+\Theta _0$
 is f-trivial and we may write
$K_{E_0}+\Theta _0$
 is f-trivial and we may write 
 $K_{E_0}+\Theta _0 = f^{*}(K_{C^\nu }+M+B)$
 where
$K_{E_0}+\Theta _0 = f^{*}(K_{C^\nu }+M+B)$
 where  is the moduli part of f and
 is the moduli part of f and  is the discrepancy part of f, as in Section 2.9. In particular, we have
 is the discrepancy part of f, as in Section 2.9. In particular, we have 
 $\Theta =M+B$
. Note that M depends only on
$\Theta =M+B$
. Note that M depends only on 
 $(X, \Gamma )$
 in a neighbourhood of the generic point of C. Moreover, for any
$(X, \Gamma )$
 in a neighbourhood of the generic point of C. Moreover, for any 
 $P \in C^\nu $
,
$P \in C^\nu $
, 
 $\mu _PB$
 depends only on the germ of
$\mu _PB$
 depends only on the germ of 
 $(X, \Gamma )$
 at
$(X, \Gamma )$
 at 
 $\nu (P)$
.
$\nu (P)$
.
 Since 
 $(E_0,\Theta _0)$
 is dlt, it follows that
$(E_0,\Theta _0)$
 is dlt, it follows that 
 $(C^\nu , B)$
 is log canonical. Moreover, (3) implies (2). Thus, it is enough to prove:
$(C^\nu , B)$
 is log canonical. Moreover, (3) implies (2). Thus, it is enough to prove: 
- 
(a)  $M = 0$
; $M = 0$
;
- 
(b) for any closed point  $P \in C$
 such that $P \in C$
 such that ${\mathcal F}$
 is terminal at P, if n is the Cartier index of ${\mathcal F}$
 is terminal at P, if n is the Cartier index of $K_{\mathcal F}$
 at P, then $K_{\mathcal F}$
 at P, then $\mu _P \Theta = \frac {n-1}{n}$
. $\mu _P \Theta = \frac {n-1}{n}$
.
 We first prove (a). Since 
 ${\mathcal F}$
 is Gorenstein at the general point
${\mathcal F}$
 is Gorenstein at the general point 
 $P\in C$
 and the support of
$P\in C$
 and the support of 
 $\Gamma $
 is
$\Gamma $
 is 
 ${\mathcal F}$
-invariant, by Lemma 2.9 there exists an analytic neighbourhood U of P and an isomorphism
${\mathcal F}$
-invariant, by Lemma 2.9 there exists an analytic neighbourhood U of P and an isomorphism 
 $$\begin{align*}c\colon U \to S \times \mathbb D \end{align*}$$
$$\begin{align*}c\colon U \to S \times \mathbb D \end{align*}$$
where S is an analytic surface and 
 $\mathbb D \subset {\mathbb C}$
 is a disc such that
$\mathbb D \subset {\mathbb C}$
 is a disc such that 
 ${\mathcal F}|_U$
 is induced by the natural submersion
${\mathcal F}|_U$
 is induced by the natural submersion 
 $F\colon U\to S$
 and
$F\colon U\to S$
 and 
 $\Gamma =F^{*}\Gamma _S$
 for some
$\Gamma =F^{*}\Gamma _S$
 for some 
 ${\mathbb Q}$
-divisor
${\mathbb Q}$
-divisor 
 $\Gamma _S\ge 0$
 on S. Thus, we may assume that
$\Gamma _S\ge 0$
 on S. Thus, we may assume that 
 $p^{-1}(U)$
 is isomorphic to
$p^{-1}(U)$
 is isomorphic to 
 $\overline S\times \mathbb D$
 where
$\overline S\times \mathbb D$
 where 
 $\overline S$
 is an analytic surface and that
$\overline S$
 is an analytic surface and that 
 $\Gamma +E=\overline F^{*}D$
 for some
$\Gamma +E=\overline F^{*}D$
 for some 
 ${\mathbb Q}$
-divisor D on
${\mathbb Q}$
-divisor D on 
 $\overline S$
, where
$\overline S$
, where 
 $\overline F\colon p^{-1}(U)\to \overline S$
 is the natural morphism. It follows that for any two general points
$\overline F\colon p^{-1}(U)\to \overline S$
 is the natural morphism. It follows that for any two general points 
 $P, Q \in C$
 we have an isomorphism
$P, Q \in C$
 we have an isomorphism 
 $(f^{-1}(P), \Theta _0\vert _{f^{-1}(P)}) \cong (f^{-1}(Q), \Theta _0\vert _{f^{-1}(Q)})$
. Lemma 2.19 implies that
$(f^{-1}(P), \Theta _0\vert _{f^{-1}(P)}) \cong (f^{-1}(Q), \Theta _0\vert _{f^{-1}(Q)})$
. Lemma 2.19 implies that 
 $M = 0$
 and (a) follows.
$M = 0$
 and (a) follows.
 We now prove (b). Let 
 $P\in C$
 be a closed point such that
$P\in C$
 be a closed point such that 
 ${\mathcal F}$
 is terminal at P. By Lemma 2.9 there exists an analytic neighborhood U of P in X and a quasi-étale cover
${\mathcal F}$
 is terminal at P. By Lemma 2.9 there exists an analytic neighborhood U of P in X and a quasi-étale cover 
 $q\colon V \rightarrow U$
 such that
$q\colon V \rightarrow U$
 such that 
 $q^{*}K_{\mathcal F}$
 is Cartier and a holomorphic submersion
$q^{*}K_{\mathcal F}$
 is Cartier and a holomorphic submersion 
 $F\colon V \rightarrow B$
 which induces
$F\colon V \rightarrow B$
 which induces 
 ${\mathcal F}' = q^{-1}{\mathcal F}$
.
${\mathcal F}' = q^{-1}{\mathcal F}$
.
 Let 
 $C' = q^{-1}(C)$
 and note that
$C' = q^{-1}(C)$
 and note that  is ramified to order n at
 is ramified to order n at  . We also have that
. We also have that 
 $C'$
 is
$C'$
 is 
 ${\mathcal F}'$
-invariant. Since F is a submersion, it follows that
${\mathcal F}'$
-invariant. Since F is a submersion, it follows that 
 $C'$
 is smooth at
$C'$
 is smooth at 
 $P'$
.
$P'$
.
We may write
 $$\begin{align*}K_V+\Gamma_V=q^{*}(K_X+\Gamma). \end{align*}$$
$$\begin{align*}K_V+\Gamma_V=q^{*}(K_X+\Gamma). \end{align*}$$
Note that 
 $C'$
 is a log canonical centre for
$C'$
 is a log canonical centre for 
 $(V,\Gamma _V)$
 and, therefore, by subadjunction for varieties, we may also write
$(V,\Gamma _V)$
 and, therefore, by subadjunction for varieties, we may also write 
 $$\begin{align*}(K_V+\Gamma_V)|_{C'}=K_{C'}+\Theta', \end{align*}$$
$$\begin{align*}(K_V+\Gamma_V)|_{C'}=K_{C'}+\Theta', \end{align*}$$
so that 
 $K_{C'}+\Theta ' = q_C^{*}(K_C+\Theta )$
.
$K_{C'}+\Theta ' = q_C^{*}(K_C+\Theta )$
.
 Since 
 $\Gamma _V$
 is
$\Gamma _V$
 is 
 ${\mathcal F}'$
-invariant, after replacing U by a smaller analytic neighbourhood of
${\mathcal F}'$
-invariant, after replacing U by a smaller analytic neighbourhood of 
 $P'$
, we have that the submersion F defines an isomorphism
$P'$
, we have that the submersion F defines an isomorphism 
 $$\begin{align*}c\colon V \to S \times \mathbb D \end{align*}$$
$$\begin{align*}c\colon V \to S \times \mathbb D \end{align*}$$
where 
 $S\subset B$
 is an analytic open set,
$S\subset B$
 is an analytic open set, 
 $\mathbb D \subset {\mathbb C}$
 is a disc and
$\mathbb D \subset {\mathbb C}$
 is a disc and 
 $\Gamma _V=F^{*}\Gamma _S$
 for some
$\Gamma _V=F^{*}\Gamma _S$
 for some 
 ${\mathbb Q}$
-divisor
${\mathbb Q}$
-divisor 
 $\Gamma _S\ge 0$
 on S. It follows that
$\Gamma _S\ge 0$
 on S. It follows that 
 $\mu _{P'}\Theta '=0$
 and, therefore, by Riemann-Hurwitz we have that
$\mu _{P'}\Theta '=0$
 and, therefore, by Riemann-Hurwitz we have that 
 $\mu _P\Theta = \frac {n-1}n$
, as claimed. This concludes the proof of (b). Thus, (1), (2) and (3) follow.
$\mu _P\Theta = \frac {n-1}n$
, as claimed. This concludes the proof of (b). Thus, (1), (2) and (3) follow.
Our final claim follows immediately from the results above and Proposition 2.13.
5 The formal neighborhood of a flipping curve
 Let X be a normal threefold, let 
 ${\mathcal F}$
 be a rank one foliation on X and let
${\mathcal F}$
 be a rank one foliation on X and let 
 $f\colon X \rightarrow Z$
 be a
$f\colon X \rightarrow Z$
 be a 
 $K_{\mathcal F}$
-flipping contraction. Let
$K_{\mathcal F}$
-flipping contraction. Let 
 $C = \mathrm {Exc} (f)$
. In the case where C is smooth and irreducible, McQuillan has produced a rather complete picture of the structure of a formal neighborhood of C by examining the formal holonomy around the curve; in particular, he shows the existence of a formal
$C = \mathrm {Exc} (f)$
. In the case where C is smooth and irreducible, McQuillan has produced a rather complete picture of the structure of a formal neighborhood of C by examining the formal holonomy around the curve; in particular, he shows the existence of a formal 
 ${\mathcal F}$
-invariant divisor containing C.
${\mathcal F}$
-invariant divisor containing C.
In this section we provide a different approach to producing such an invariant divisor. Our two main ingredients are a foliated analogue of the existence of complements and an analysis of the structure of log canonical foliation singularities.
5.1 Preliminary results
We begin with the following results:
Lemma 5.1. Let X be a normal threefold with only quotient singularities and let 
 $C \subset X$
 be a curve such that
$C \subset X$
 be a curve such that 
 ${\operatorname {Sing} X} \cap C = \{x_1, ..., x_k\}$
 is finite. Let H be an ample divisor and assume that for each
${\operatorname {Sing} X} \cap C = \{x_1, ..., x_k\}$
 is finite. Let H be an ample divisor and assume that for each 
 $i=1,\dots ,k$
, there exists a prime divisor
$i=1,\dots ,k$
, there exists a prime divisor 
 $D_i$
 such that
$D_i$
 such that 
 $D_i$
 is klt at
$D_i$
 is klt at 
 $x_i$
, C is contained in
$x_i$
, C is contained in 
 $D_i$
, and the log pair
$D_i$
, and the log pair 
 $(D_i,C)$
 is log canonical at the point
$(D_i,C)$
 is log canonical at the point 
 $x_i$
.
$x_i$
.
Then, after possibly replacing X by an analytic neighbourhood of C, there exists a divisor L such that for any sufficiently large positive integer m the general element D of the linear system
 $$\begin{align*}\{ \Sigma \in |L+mH|\mid C\subset \Sigma\} \end{align*}$$
$$\begin{align*}\{ \Sigma \in |L+mH|\mid C\subset \Sigma\} \end{align*}$$
is such that D is klt at each point 
 $x_1,\dots ,x_k$
 and
$x_1,\dots ,x_k$
 and 
 $(D,C)$
 is log canonical.
$(D,C)$
 is log canonical.
Proof. After possibly replacing X by an analytic neighbourhood of C, for each 
 $i=1,\dots , k$
 we may find an effective divisor
$i=1,\dots , k$
 we may find an effective divisor 
 $M_i$
 on X, such that
$M_i$
 on X, such that 
 $$ \begin{align*}\sum_{j\neq i} D_j + M_i \text{ is Cartier at }x_i \qquad \text{ and }\qquad x_j\notin M_i \text{ for any } j\neq i.\end{align*} $$
$$ \begin{align*}\sum_{j\neq i} D_j + M_i \text{ is Cartier at }x_i \qquad \text{ and }\qquad x_j\notin M_i \text{ for any } j\neq i.\end{align*} $$
Let 
 $L:=\sum _{i=1}^k (D_i+M_i)$
. Then
$L:=\sum _{i=1}^k (D_i+M_i)$
. Then 
 $L-D_i$
 is Cartier at
$L-D_i$
 is Cartier at 
 $x_i$
 for each
$x_i$
 for each 
 $i=1,\dots ,k$
. Thus, if m is a sufficiently large positive integer, we have that
$i=1,\dots ,k$
. Thus, if m is a sufficiently large positive integer, we have that 
 $x_i$
 is not contained in the base locus of
$x_i$
 is not contained in the base locus of 
 $|L-D_i+mH|$
. In particular, there exists
$|L-D_i+mH|$
. In particular, there exists 
 $\Sigma _i\in |L+mH|$
 such that
$\Sigma _i\in |L+mH|$
 such that 
 $C\subset \Sigma _i$
,
$C\subset \Sigma _i$
, 
 $\Sigma _i$
 has klt singularities at
$\Sigma _i$
 has klt singularities at 
 $x_i$
 and
$x_i$
 and 
 $(\Sigma _i,C)$
 is log canonical at
$(\Sigma _i,C)$
 is log canonical at 
 $x_i$
. Thus, the general element in the linear system
$x_i$
. Thus, the general element in the linear system 
 $$\begin{align*}\{\Sigma\in |L+mH|\mid C\subset \Sigma\} \end{align*}$$
$$\begin{align*}\{\Sigma\in |L+mH|\mid C\subset \Sigma\} \end{align*}$$
satisfies the required properties.
Lemma 5.2. Let X be a normal variety of dimension at least three and with only quotient singularities and let C be a Cartier divisor on X. Let H be an ample divisor on X, let L be a divisor on X and let 
 $D\in \lvert mH+L\rvert $
 for a sufficiently large positive integer m. Suppose that
$D\in \lvert mH+L\rvert $
 for a sufficiently large positive integer m. Suppose that 
 $C\vert _D \sim _{{\mathbb Q}} 0$
.
$C\vert _D \sim _{{\mathbb Q}} 0$
.
 Then 
 $C \sim _{{\mathbb Q}} 0$
.
$C \sim _{{\mathbb Q}} 0$
.
Proof. After replacing C by a multiple, we may assume that 
 $C|_D\sim 0$
 and that there exists a compactification
$C|_D\sim 0$
 and that there exists a compactification 
 $\overline X$
 of X which is normal and it admits a Cartier divisor
$\overline X$
 of X which is normal and it admits a Cartier divisor 
 $\overline C$
 such that
$\overline C$
 such that 
 $\overline C|_X=C$
.
$\overline C|_X=C$
.
 Let 
 $\pi \colon Y \rightarrow \overline {X}$
 be a finite cover which is unramified along the general point of D and such that
$\pi \colon Y \rightarrow \overline {X}$
 be a finite cover which is unramified along the general point of D and such that  is Cartier. Let
 is Cartier. Let  and
 and  . Notice that
. Notice that 
 $C_Y\vert _{D_Y} \sim 0$
. Let
$C_Y\vert _{D_Y} \sim 0$
. Let 
 $\overline {D_Y}$
 be the closure of
$\overline {D_Y}$
 be the closure of 
 $D_Y$
 in Y. It follows that
$D_Y$
 in Y. It follows that 
 $C_Y|_{\overline {D_Y}}\sim \sum a_i C_i|_{\overline {D_Y}}$
 where
$C_Y|_{\overline {D_Y}}\sim \sum a_i C_i|_{\overline {D_Y}}$
 where 
 $a_i\in \mathbb Z$
 and
$a_i\in \mathbb Z$
 and 
 $C_i$
 is a divisor contained in
$C_i$
 is a divisor contained in 
 $Y\setminus U$
, where
$Y\setminus U$
, where  .
.
 By choosing 
 $m \gg 0$
 we may assume by Serre duality and Serre vanishing that
$m \gg 0$
 we may assume by Serre duality and Serre vanishing that 
 $$\begin{align*}H^1(Y, \mathcal O_Y(-\overline{H_Y})) = H^2(Y, \mathcal O_Y(-\overline{H_Y})) = 0. \end{align*}$$
$$\begin{align*}H^1(Y, \mathcal O_Y(-\overline{H_Y})) = H^2(Y, \mathcal O_Y(-\overline{H_Y})) = 0. \end{align*}$$
By the exact sequence
 $$ \begin{align*}1 \rightarrow \mathcal O_Y(-\overline{D_Y}) \rightarrow \mathcal O^{*}_{Y} \rightarrow \mathcal O^{*}_{\overline{D_Y}} \rightarrow 1\end{align*} $$
$$ \begin{align*}1 \rightarrow \mathcal O_Y(-\overline{D_Y}) \rightarrow \mathcal O^{*}_{Y} \rightarrow \mathcal O^{*}_{\overline{D_Y}} \rightarrow 1\end{align*} $$
it follows that 
 ${\text {Pic}\, Y}\rightarrow {\text {Pic}\, \overline {D_Y}}$
 is an isomorphism. Thus,
${\text {Pic}\, Y}\rightarrow {\text {Pic}\, \overline {D_Y}}$
 is an isomorphism. Thus, 
 $C_Y\sim \sum a_i C_i$
 and, in particular,
$C_Y\sim \sum a_i C_i$
 and, in particular, 
 $C_Y\vert _U\sim 0$
.
$C_Y\vert _U\sim 0$
.
 Perhaps passing to the Galois closure of 
 $U \rightarrow X$
 with Galois group G we see that if
$U \rightarrow X$
 with Galois group G we see that if 
 $s \in H^0(U, C_Y\vert _U)$
 is a nonvanishing section then
$s \in H^0(U, C_Y\vert _U)$
 is a nonvanishing section then 
 $\prod _{g\in G} g\cdot s$
 is a nonvanishing G-invariant section of
$\prod _{g\in G} g\cdot s$
 is a nonvanishing G-invariant section of 
 $q C_Y\vert _U$
, where
$q C_Y\vert _U$
, where 
 $q=\# G$
, and so descends to a nonvanishing section of
$q=\# G$
, and so descends to a nonvanishing section of 
 $q C$
. Thus, the claim follows.
$q C$
. Thus, the claim follows.
5.2 Flipping contractions
 Let X be a projective 
 ${\mathbb Q}$
-factorial normal threefold and let
${\mathbb Q}$
-factorial normal threefold and let 
 ${\mathcal F}$
 be a rank one foliation on X. Let R be a
${\mathcal F}$
 be a rank one foliation on X. Let R be a 
 $K_{\mathcal F}$
-negative extremal ray and assume that
$K_{\mathcal F}$
-negative extremal ray and assume that 
 ${\operatorname {loc} \, R}$
 is a curve C. Let
${\operatorname {loc} \, R}$
 is a curve C. Let 
 $H_R$
 be a supporting hyperplane to R for
$H_R$
 be a supporting hyperplane to R for 
 $\overline {NE}(X)$
.
$\overline {NE}(X)$
.
Lemma 5.3. Set up as above. Let S be a surface.
 Then 
 $H_R^2\cdot S>0$
 and, in particular,
$H_R^2\cdot S>0$
 and, in particular, 
 ${\operatorname {Null} \, H}_R = {\operatorname {loc} \, R}$
.
${\operatorname {Null} \, H}_R = {\operatorname {loc} \, R}$
.
Proof. Suppose for the sake of contradiction that 
 $H_R^2\cdot S= 0$
.
$H_R^2\cdot S= 0$
.
 Let 
 $\nu \colon S^\nu \rightarrow S$
 be the normalisation of S. Since
$\nu \colon S^\nu \rightarrow S$
 be the normalisation of S. Since 
 $H_R$
 is big and nef we may write
$H_R$
 is big and nef we may write 
 $H_R \sim _{{\mathbb Q}} A+B+tS$
 where A is ample,
$H_R \sim _{{\mathbb Q}} A+B+tS$
 where A is ample, 
 $B \geq 0$
 and does not contain S in its support and
$B \geq 0$
 and does not contain S in its support and 
 $t>0$
. It follows that
$t>0$
. It follows that 
 $$\begin{align*}\nu^{*}H_R\cdot \nu^{*}S=\frac 1 t \nu^{*}H_R\cdot \nu^{*}(H_R-A-B) <0. \end{align*}$$
$$\begin{align*}\nu^{*}H_R\cdot \nu^{*}S=\frac 1 t \nu^{*}H_R\cdot \nu^{*}(H_R-A-B) <0. \end{align*}$$
 We may also write 
 $H_R \sim _{{\mathbb Q}} K_{\mathcal F}+A'$
 where
$H_R \sim _{{\mathbb Q}} K_{\mathcal F}+A'$
 where 
 $A'$
 is ample. Since
$A'$
 is ample. Since 
 $H_R^2\cdot S = 0$
 we see that
$H_R^2\cdot S = 0$
 we see that 
 $\nu ^{*}H_R\cdot \nu ^{*} K_{\mathcal F} = -\nu ^{*}H_R\cdot \nu ^{*}A' <0$
.
$\nu ^{*}H_R\cdot \nu ^{*} K_{\mathcal F} = -\nu ^{*}H_R\cdot \nu ^{*}A' <0$
.
 Suppose first that S is not 
 ${\mathcal F}$
-invariant. Then [Reference Cascini and SpicerCS25a, Proposition-Definition 3.7] implies that there exists a
${\mathcal F}$
-invariant. Then [Reference Cascini and SpicerCS25a, Proposition-Definition 3.7] implies that there exists a 
 ${\mathbb Q}$
-divisor
${\mathbb Q}$
-divisor 
 $D\ge 0$
 on
$D\ge 0$
 on 
 $S^{\nu }$
 such that
$S^{\nu }$
 such that 
 $(K_{\mathcal F}+S)\vert _{S^\nu } \sim _{{\mathbb Q}} D $
. We have
$(K_{\mathcal F}+S)\vert _{S^\nu } \sim _{{\mathbb Q}} D $
. We have 
 $$\begin{align*}0 \leq \nu^{*}H_R\cdot \nu^{*}(K_{\mathcal F}+S) = (-\nu^{*}H_R\cdot \nu^{*}A') + (\nu^{*}H_R\cdot \nu^{*}S) <0, \end{align*}$$
$$\begin{align*}0 \leq \nu^{*}H_R\cdot \nu^{*}(K_{\mathcal F}+S) = (-\nu^{*}H_R\cdot \nu^{*}A') + (\nu^{*}H_R\cdot \nu^{*}S) <0, \end{align*}$$
which gives us a contradiction.
 Thus, we may assume that S is 
 ${\mathcal F}$
-invariant. Let
${\mathcal F}$
-invariant. Let 
 $(\mathcal G,\Delta )$
 be the induced foliated pair on
$(\mathcal G,\Delta )$
 be the induced foliated pair on 
 $S^\nu $
, whose existence is guaranteed by Proposition 2.13, so that
$S^\nu $
, whose existence is guaranteed by Proposition 2.13, so that 
 $K_{\mathcal F}|_{S^{\nu }} = K_{\mathcal G}+\Delta $
. We have
$K_{\mathcal F}|_{S^{\nu }} = K_{\mathcal G}+\Delta $
. We have 
 $$\begin{align*}\nu^{*}H_R\cdot (K_{\mathcal G}+\Delta)=\nu^{*}H_R\cdot \nu^{*}K_{\mathcal F}<0 \end{align*}$$
$$\begin{align*}\nu^{*}H_R\cdot (K_{\mathcal G}+\Delta)=\nu^{*}H_R\cdot \nu^{*}K_{\mathcal F}<0 \end{align*}$$
and so by applying bend and break (e.g., see [Reference SpicerSpi20, Corollary 2.28]), we may produce through any point 
 $x \in S^\nu $
 a rational curve
$x \in S^\nu $
 a rational curve 
 $\Sigma $
 with
$\Sigma $
 with 
 $\nu ^{*}H_R\cdot \Sigma = 0$
, a contradiction of the fact that
$\nu ^{*}H_R\cdot \Sigma = 0$
, a contradiction of the fact that 
 ${\operatorname {loc} \, R}$
 is one dimensional.
${\operatorname {loc} \, R}$
 is one dimensional.
Lemma 5.4. Set up as above.
Then the contraction of the flipping locus exists in the category of algebraic spaces.
Proof. By Lemma 5.3, it follows that 
 ${\operatorname {Null} \, H}_R={\operatorname {loc} \, R}$
. Thus, Proposition 2.29 implies the claim.
${\operatorname {Null} \, H}_R={\operatorname {loc} \, R}$
. Thus, Proposition 2.29 implies the claim.
Remark 5.5. We remark that Lemma 5.4 holds equally well in the case where we only assume that X is quasi-projective, 
 $c\colon X \to Y$
 is a contraction between quasi-projective varieties (or algebraic spaces) and
$c\colon X \to Y$
 is a contraction between quasi-projective varieties (or algebraic spaces) and 
 $R \subset \overline {NE}(X/Y)$
 is a
$R \subset \overline {NE}(X/Y)$
 is a 
 $K_{{\mathcal F}}$
-negative extremal ray such that
$K_{{\mathcal F}}$
-negative extremal ray such that 
 ${\operatorname {loc} \, R}$
 is a curve C. Indeed, to produce the contraction, we are free to replace Y by an étale neighbourhood of
${\operatorname {loc} \, R}$
 is a curve C. Indeed, to produce the contraction, we are free to replace Y by an étale neighbourhood of 
 $c(C)$
 and so may assume that Y is affine. Further replacing X and Y by projective compactifications we may then apply Lemma 5.4 to produce the contraction.
$c(C)$
 and so may assume that Y is affine. Further replacing X and Y by projective compactifications we may then apply Lemma 5.4 to produce the contraction.
5.3 Foliation complements
 We work in the following set up. Let X be a normal threefold and let 
 ${\mathcal F}$
 be a foliation of rank one on X with simple singularities (cf. Definition 2.24). In particular, by Lemma 2.26, X admits at worst cyclic quotient singularities. Assume that X admits a flipping contraction
${\mathcal F}$
 be a foliation of rank one on X with simple singularities (cf. Definition 2.24). In particular, by Lemma 2.26, X admits at worst cyclic quotient singularities. Assume that X admits a flipping contraction 
 $f\colon X\to Z$
 of a
$f\colon X\to Z$
 of a 
 $K_{\mathcal F}$
-negative connected curve C, where Z is an algebraic space. Theorem 2.30 and Remark 2.31 imply that any component of C is
$K_{\mathcal F}$
-negative connected curve C, where Z is an algebraic space. Theorem 2.30 and Remark 2.31 imply that any component of C is 
 ${\mathcal F}$
-invariant and is not contained in
${\mathcal F}$
-invariant and is not contained in 
 ${\operatorname {Sing} {\mathcal F}}$
. Since
${\operatorname {Sing} {\mathcal F}}$
. Since 
 ${\mathcal F}$
 admits simple singularities, it follows that X is smooth at any generic point of C.
${\mathcal F}$
 admits simple singularities, it follows that X is smooth at any generic point of C.
We first consider the case that C is a smooth irreducible curve, whilst the case of a singular flipping curve will be considered in Section 5.5. The goal of this subsection is to prove the following:
Proposition 5.6. Set up as above.
Then, after possibly replacing X by an analytic neighbourhood of C, there exists a divisor T intersecting C in a single point Q such that
- 
1.  $({\mathcal F}, T)$
 is log canonical; $({\mathcal F}, T)$
 is log canonical;
- 
2.  ${\mathcal F}$
 is terminal at Q; and ${\mathcal F}$
 is terminal at Q; and
- 
3.  $K_{\mathcal F}+T \sim _{f,{\mathbb Q}} 0$
. $K_{\mathcal F}+T \sim _{f,{\mathbb Q}} 0$
.
Lemma 5.7. Set up as above.
 Then there exists exactly one closed point 
 $P\in C$
 such that
$P\in C$
 such that 
 ${\mathcal F}$
 is not terminal at P. Moreover
${\mathcal F}$
 is not terminal at P. Moreover 
 $C\cap ( {\operatorname {Sing} X} \cup {\operatorname {Sing} {\mathcal F}} )$
 consists of at most two points.
$C\cap ( {\operatorname {Sing} X} \cup {\operatorname {Sing} {\mathcal F}} )$
 consists of at most two points.
Proof. Proposition 3.3 implies that there exists a point 
 $P\in C$
 such that
$P\in C$
 such that 
 ${\mathcal F}$
 is not terminal at P. Let
${\mathcal F}$
 is not terminal at P. Let 
 $Q\in C\cap {\operatorname {Sing} X} $
 be a closed point and assume, by contradiction, that
$Q\in C\cap {\operatorname {Sing} X} $
 be a closed point and assume, by contradiction, that 
 ${\mathcal F}$
 is terminal and Gorenstein at Q. Then Lemma 2.9 implies that
${\mathcal F}$
 is terminal and Gorenstein at Q. Then Lemma 2.9 implies that 
 $C\subset {\operatorname {Sing} X} $
 and, in particular, the singularities of
$C\subset {\operatorname {Sing} X} $
 and, in particular, the singularities of 
 ${\mathcal F}$
 are not simple, a contradiction.
${\mathcal F}$
 are not simple, a contradiction.
 Thus, since by assumption we have that 
 $K_{\mathcal F}\cdot C<0$
, the result follows immediately by Proposition 2.13.
$K_{\mathcal F}\cdot C<0$
, the result follows immediately by Proposition 2.13.
Lemma 5.8. Set up as above. Let H be an ample divisor.
Then, after possibly replacing X by an analytic neighbourhood of C, there exists a divisor L such that for any sufficiently large positive integer m the general element D of the linear system
 $$\begin{align*}\{ \Sigma \in |L+mH|\mid C\subset \Sigma\} \end{align*}$$
$$\begin{align*}\{ \Sigma \in |L+mH|\mid C\subset \Sigma\} \end{align*}$$
is such that D has at most two singularities along C, D is klt and 
 $(D,C)$
 is log canonical with a unique zero-dimensional log canonical centre along C.
$(D,C)$
 is log canonical with a unique zero-dimensional log canonical centre along C.
 Moreover, if 
 $f\colon X\to Z$
 is the flipping contraction and S is the normalisation of
$f\colon X\to Z$
 is the flipping contraction and S is the normalisation of 
 $f(D)$
, then the induced morphism
$f(D)$
, then the induced morphism 
 $f\vert _D\colon D\rightarrow S$
 is a contraction of relative Picard number one.
$f\vert _D\colon D\rightarrow S$
 is a contraction of relative Picard number one.
Proof. The first part of the Lemma is a direct consequence of Lemma 2.27, Lemma 5.1 and Lemma 5.7.
 We now prove that the induced morphism 
 $f|_D\colon D\to f(D)$
 is a contraction of relative Picard number one. By classical adjunction, we may write
$f|_D\colon D\to f(D)$
 is a contraction of relative Picard number one. By classical adjunction, we may write 
 $(K_D+C)|_C = K_C+\Theta $
 where
$(K_D+C)|_C = K_C+\Theta $
 where 
 $\Theta \ge 0$
 is a
$\Theta \ge 0$
 is a 
 ${\mathbb Q}$
-divisor on C which is supported on
${\mathbb Q}$
-divisor on C which is supported on 
 ${\operatorname {Sing} D}\cap C$
 and such that
${\operatorname {Sing} D}\cap C$
 and such that 
 $(C,\Theta )$
 is log canonical.
$(C,\Theta )$
 is log canonical.
 Since there exists a unique zero-dimensional log canonical centre for 
 $(D,C)$
 along C, it follows that the support of
$(D,C)$
 along C, it follows that the support of 
 $\Theta $
 consists of at most two points, of which only one of coefficient one for
$\Theta $
 consists of at most two points, of which only one of coefficient one for 
 $\Theta $
. Thus
$\Theta $
. Thus 
 $(K_D+C)\cdot C <0$
. Since
$(K_D+C)\cdot C <0$
. Since 
 $f\vert _D$
 only contracts the curve C we see that
$f\vert _D$
 only contracts the curve C we see that 
 $f\vert _D$
 is in fact a
$f\vert _D$
 is in fact a 
 $(K_D+C)$
-negative contraction and is therefore of relative Picard number one.
$(K_D+C)$
-negative contraction and is therefore of relative Picard number one.
Proposition 5.9. Set up as above.
 Then the flipping contraction 
 $f\colon X\to Z$
 is a contraction of relative Picard number one.
$f\colon X\to Z$
 is a contraction of relative Picard number one.
Lemma 5.10. Set up as above. Suppose that 
 $Q \in C$
 is a point where
$Q \in C$
 is a point where 
 ${\mathcal F}$
 is terminal and X is singular.
${\mathcal F}$
 is terminal and X is singular.
Then, after possibly replacing X by an analytic neighbourhood of C, there exists an effective divisor T containing Q such that
- 
1.  $({\mathcal F}, T)$
 is log canonical; $({\mathcal F}, T)$
 is log canonical;
- 
2.  $K_{\mathcal F}+T$
 is Cartier at Q; and $K_{\mathcal F}+T$
 is Cartier at Q; and
- 
3.  $(K_{\mathcal F}+T)\cdot C = 0$
. $(K_{\mathcal F}+T)\cdot C = 0$
.
Proof. Since C is a curve we see that producing a divisor T as required is in fact an analytically local problem about Q. Thus, by Lemma 2.9 and since 
 ${\mathcal F}$
 admits simple singularities, we may assume that there exists a cyclic quasi-étale morphism
${\mathcal F}$
 admits simple singularities, we may assume that there exists a cyclic quasi-étale morphism 
 $q\colon V \rightarrow X$
 of order m, where
$q\colon V \rightarrow X$
 of order m, where 
 $V\subset {\mathbb C}^3$
 is an analytic open neighbourhood of the origin
$V\subset {\mathbb C}^3$
 is an analytic open neighbourhood of the origin 
 $0\in {\mathbb C}^3$
,
$0\in {\mathbb C}^3$
, 
 $q(0)=Q$
 and the foliation
$q(0)=Q$
 and the foliation  is induced by the
 is induced by the 
 $\mathbb Z/m{\mathbb Z}$
-equivariant morphism
$\mathbb Z/m{\mathbb Z}$
-equivariant morphism 
 $$\begin{align*}(x,y,z)\in V\mapsto (x,y)\in {\mathbb C}^2.\end{align*}$$
$$\begin{align*}(x,y,z)\in V\mapsto (x,y)\in {\mathbb C}^2.\end{align*}$$
By diagonalising this action we may freely assume that 
 ${\mathbb Z}/m {\mathbb Z}$
 acts by
${\mathbb Z}/m {\mathbb Z}$
 acts by 
 $(x, y,z) \mapsto (\zeta ^a x, \zeta ^b y, \zeta z)$
 where
$(x, y,z) \mapsto (\zeta ^a x, \zeta ^b y, \zeta z)$
 where 
 $\zeta $
 is a primitive m-th root of unity and
$\zeta $
 is a primitive m-th root of unity and 
 $a,b$
 are positive integers. Note that
$a,b$
 are positive integers. Note that 
 $q^{-1}(C) = \{x = y = 0\}$
. Let
$q^{-1}(C) = \{x = y = 0\}$
. Let 
 $T' = \{z = 0\} \subset {\mathbb C}^3$
 and let
$T' = \{z = 0\} \subset {\mathbb C}^3$
 and let 
 $T = q(T')$
. We claim that T satisfies all our desired properties.
$T = q(T')$
. We claim that T satisfies all our desired properties.
 First, 
 $({\mathcal F}', T')$
 is clearly log canonical, and so it follows that
$({\mathcal F}', T')$
 is clearly log canonical, and so it follows that 
 $({\mathcal F}, T)$
 is log canonical by Lemma 2.8.
$({\mathcal F}, T)$
 is log canonical by Lemma 2.8.
 Next, 
 $T_{{\mathcal F}'}(-T')$
 is generated by the vector field
$T_{{\mathcal F}'}(-T')$
 is generated by the vector field 
 $z\frac {\partial }{\partial z}$
 near Q which is invariant under the
$z\frac {\partial }{\partial z}$
 near Q which is invariant under the 
 ${\mathbb Z}/m{\mathbb Z}$
-action and therefore descends to a generating section of
${\mathbb Z}/m{\mathbb Z}$
-action and therefore descends to a generating section of 
 $T_{\mathcal F}(-T)$
. Thus,
$T_{\mathcal F}(-T)$
. Thus, 
 $K_{\mathcal F}+T$
 is Cartier near Q.
$K_{\mathcal F}+T$
 is Cartier near Q.
 Finally, by Lemma 5.7 and Proposition 2.13, we have 
 $K_{\mathcal F}\cdot C = -\frac {1}{m}$
. We claim that
$K_{\mathcal F}\cdot C = -\frac {1}{m}$
. We claim that 
 $T\cdot C = \frac {1}{m}$
, from which our claim follows. Indeed, note that
$T\cdot C = \frac {1}{m}$
, from which our claim follows. Indeed, note that 
 $T\cap C=\{Q\}$
 and that
$T\cap C=\{Q\}$
 and that 
 $mT$
 is Cartier at Q. Let
$mT$
 is Cartier at Q. Let  . Since
. Since 
 $q|_{C'}\colon C' \rightarrow C$
 is ramified to order m at Q and since
$q|_{C'}\colon C' \rightarrow C$
 is ramified to order m at Q and since 
 $T'$
 meets
$T'$
 meets 
 $C'$
 transversally at one point, our claim follows.
$C'$
 transversally at one point, our claim follows.
Proof of Proposition 5.6.
 By Lemma 5.7, we have that if  , then
, then 
 $C\cap \Sigma $
 consists of at most two points and it contains exactly one point at which
$C\cap \Sigma $
 consists of at most two points and it contains exactly one point at which 
 ${\mathcal F}$
 is not terminal. If
${\mathcal F}$
 is not terminal. If 
 $C\cap \Sigma $
 contains two points, then by Lemma 5.10 after possibly shrinking X to an analytic neighbourhood of C, we may find a divisor T such that
$C\cap \Sigma $
 contains two points, then by Lemma 5.10 after possibly shrinking X to an analytic neighbourhood of C, we may find a divisor T such that 
 $(K_{\mathcal F}+T)|_C\sim _{{\mathbb Q}}0$
 and
$(K_{\mathcal F}+T)|_C\sim _{{\mathbb Q}}0$
 and 
 $({\mathcal F},T)$
 is log canonical. If
$({\mathcal F},T)$
 is log canonical. If 
 $C\cap \Sigma $
 consists of only one point then Proposition 2.13 implies that
$C\cap \Sigma $
 consists of only one point then Proposition 2.13 implies that 
 $K_{\mathcal F}\cdot C=-1$
 and it follows immediately that there exists a divisor T, passing through a general point of C and satisfying the same properties as in the previous case. Thus, Proposition 5.9 implies our claim.
$K_{\mathcal F}\cdot C=-1$
 and it follows immediately that there exists a divisor T, passing through a general point of C and satisfying the same properties as in the previous case. Thus, Proposition 5.9 implies our claim.
5.4 Producing invariant divisors
 We work in the same set up as in Section 5.3. By Lemma 5.7, there exists a unique closed point 
 $P\in C$
 at which
$P\in C$
 at which 
 ${\mathcal F}$
 is not terminal. The goal of this section is to provide a precise description of the neighbourhood of a flipping curve, and use this precise description to produce a large number of
${\mathcal F}$
 is not terminal. The goal of this section is to provide a precise description of the neighbourhood of a flipping curve, and use this precise description to produce a large number of 
 ${\mathcal F}$
-invariant divisors containing C.
${\mathcal F}$
-invariant divisors containing C.
Proposition 5.11. Set up as above.
 Then, in an analytic neighbourhood U of C there exists a projective variety W and a meromorphic map 
 $F\colon U \dashrightarrow W$
 which is holomorphic on
$F\colon U \dashrightarrow W$
 which is holomorphic on 
 $U \setminus C$
 such that
$U \setminus C$
 such that 
 ${\mathcal F}$
 is induced by F.
${\mathcal F}$
 is induced by F.
Moreover,
- 
1. X is smooth at P; 
- 
2. the semisimple part of a vector field defining  ${\mathcal F}$
 near P has eigenvalues ${\mathcal F}$
 near P has eigenvalues $1, -a, -b$
 where $1, -a, -b$
 where $a, b \in {\mathbb Q}_{>0}$
; and $a, b \in {\mathbb Q}_{>0}$
; and
- 
3. there exists a  ${\mathcal F}$
-invariant ${\mathcal F}$
-invariant ${\mathbb Q}$
-divisor ${\mathbb Q}$
-divisor $D\ge 0$
 such that $D\ge 0$
 such that $(U, D)$
 is log canonical and C is a log canonical centre of $(U, D)$
 is log canonical and C is a log canonical centre of $(U, D)$
. $(U, D)$
.
Proof. Let T be the divisor whose existence is guaranteed by Proposition 5.6. Let 
 $\mathcal G$
 be the induced foliation on Z and let
$\mathcal G$
 be the induced foliation on Z and let 
 $D = f_{*}T$
. Since
$D = f_{*}T$
. Since 
 $K_{\mathcal F}+T=f^{*}(K_{\mathcal G}+D)$
, we have that
$K_{\mathcal F}+T=f^{*}(K_{\mathcal G}+D)$
, we have that 
 $(\mathcal G, D)$
 is log canonical. After replacing Z by a quasi-étale cover of Z, we may assume that
$(\mathcal G, D)$
 is log canonical. After replacing Z by a quasi-étale cover of Z, we may assume that 
 $K_{\mathcal G}+D$
 is Cartier and
$K_{\mathcal G}+D$
 is Cartier and 
 $\mathcal G(-D)$
 is generated by a vector field
$\mathcal G(-D)$
 is generated by a vector field 
 ${\partial }$
. Consider an embedding
${\partial }$
. Consider an embedding 
 $\iota \colon Z \hookrightarrow {\mathbb C}^m$
 and a lift
$\iota \colon Z \hookrightarrow {\mathbb C}^m$
 and a lift 
 $\widetilde {\partial }$
 of
$\widetilde {\partial }$
 of 
 $\partial $
 to a vector field on
$\partial $
 to a vector field on 
 ${\mathbb C}^m$
.
${\mathbb C}^m$
.
 Proposition 2.17 implies that, up to a formal change of coordinates and rescaling, 
 $\widetilde {\partial }$
 is a semisimple vector field and
$\widetilde {\partial }$
 is a semisimple vector field and 
 $\widetilde {\partial } = \sum _{i = 1}^{m'} \lambda _ix_i\partial _{x_i}$
 where
$\widetilde {\partial } = \sum _{i = 1}^{m'} \lambda _ix_i\partial _{x_i}$
 where 
 $m'\leq m$
 and
$m'\leq m$
 and 
 $\lambda _1, \dots , \lambda _{m'}$
 are positive integers. We may apply a theorem of Poincaré (see [Reference MartinetMar81, Remarques historiques 3.3]) to see that we may in fact take this change of coordinates to be holomorphic. We take U to be the preimage under f of the neighbourhood of
$\lambda _1, \dots , \lambda _{m'}$
 are positive integers. We may apply a theorem of Poincaré (see [Reference MartinetMar81, Remarques historiques 3.3]) to see that we may in fact take this change of coordinates to be holomorphic. We take U to be the preimage under f of the neighbourhood of 
 $f(C)$
 where this coordinate change is well defined.
$f(C)$
 where this coordinate change is well defined.
 Let 
 $\mathcal H$
 denote the foliation induced by
$\mathcal H$
 denote the foliation induced by 
 $\widetilde {\partial }$
. Let
$\widetilde {\partial }$
. Let 
 $b\colon \overline {{\mathbb C}^m} \rightarrow {\mathbb C}^m$
 be the weighted blow up in
$b\colon \overline {{\mathbb C}^m} \rightarrow {\mathbb C}^m$
 be the weighted blow up in 
 $x_1, \dots , x_{m'}$
 with weights
$x_1, \dots , x_{m'}$
 with weights 
 $\lambda _1, \dots , \lambda _{m'}$
. It is easy to check that
$\lambda _1, \dots , \lambda _{m'}$
. It is easy to check that 
 $b^{-1}\mathcal H$
 admits a holomorphic first integral
$b^{-1}\mathcal H$
 admits a holomorphic first integral 
 $\Phi \colon \overline {{\mathbb C}^m} \rightarrow \mathbb P(\lambda _1, \dots , \lambda _{m'}) \times {\mathbb C}^{m-m'}$
. This induces a meromorphic map
$\Phi \colon \overline {{\mathbb C}^m} \rightarrow \mathbb P(\lambda _1, \dots , \lambda _{m'}) \times {\mathbb C}^{m-m'}$
. This induces a meromorphic map 
 $F\colon X \dashrightarrow \mathbb P(\lambda _1, \dots , \lambda _{m'}) \times {\mathbb C}^{m-m'}$
 which is a meromorphic first integral of
$F\colon X \dashrightarrow \mathbb P(\lambda _1, \dots , \lambda _{m'}) \times {\mathbb C}^{m-m'}$
 which is a meromorphic first integral of 
 ${\mathcal F}$
.
${\mathcal F}$
.
 Since 
 $\mathcal G$
 has canonical singularities away from
$\mathcal G$
 has canonical singularities away from 
 $R:=f(C)$
, we see that
$R:=f(C)$
, we see that 
 $\Phi \vert _Z$
 is holomorphic on
$\Phi \vert _Z$
 is holomorphic on 
 $Z \setminus R$
, and hence F is holomorphic on
$Z \setminus R$
, and hence F is holomorphic on 
 $X \setminus C$
.
$X \setminus C$
.
We now verify our three remaining claims.
 We first show (1). Assume for sake of contradiction that X is not smooth at P. Since 
 ${\mathcal F}$
 admits simple singularities, there exists an analytic open neighbourhood V of P such that the restriction of
${\mathcal F}$
 admits simple singularities, there exists an analytic open neighbourhood V of P such that the restriction of 
 ${\mathcal F}$
 on V is as in Example 2.23. In particular,
${\mathcal F}$
 on V is as in Example 2.23. In particular, 
 $K_{\mathcal F}$
 is not Cartier at P. On the other hand, we have that
$K_{\mathcal F}$
 is not Cartier at P. On the other hand, we have that 
 $K_{\mathcal F}+T$
 is Cartier and, Proposition 5.6 implies that T intersect C in a single point Q such that
$K_{\mathcal F}+T$
 is Cartier and, Proposition 5.6 implies that T intersect C in a single point Q such that 
 ${\mathcal F}$
 is terminal at Q. In particular,
${\mathcal F}$
 is terminal at Q. In particular, 
 $Q\neq P$
 and therefore
$Q\neq P$
 and therefore 
 $K_{\mathcal F}$
 is Cartier at P, a contradiction. Thus, X is smooth at P.
$K_{\mathcal F}$
 is Cartier at P, a contradiction. Thus, X is smooth at P.
 We now show (2). We observe that the conditions of Lemma 2.18 are satisfied by C and 
 $f^{*}x_1, \dots , f^{*}x_m$
, and so we may apply the Lemma to conclude.
$f^{*}x_1, \dots , f^{*}x_m$
, and so we may apply the Lemma to conclude.
 Finally we verify (3). Let 
 $\overline {Z}$
 be the strict transform of
$\overline {Z}$
 be the strict transform of 
 $Z \subset {\mathbb C}^m$
 under b, let
$Z \subset {\mathbb C}^m$
 under b, let 
 $\overline {X}$
 be the normalisation of the component of
$\overline {X}$
 be the normalisation of the component of 
 $X\times _Z\overline {Z}$
 which dominates Z and let
$X\times _Z\overline {Z}$
 which dominates Z and let 
 $ \overline F\colon \overline {X} \to \mathbb P(\lambda _1, \dots , \lambda _{m'}) \times {\mathbb C}^{m-m'}$
 be the composition of the projection
$ \overline F\colon \overline {X} \to \mathbb P(\lambda _1, \dots , \lambda _{m'}) \times {\mathbb C}^{m-m'}$
 be the composition of the projection 
 $\pi \colon \overline {X} \to \overline {Z}$
 with restriction of
$\pi \colon \overline {X} \to \overline {Z}$
 with restriction of 
 $\Phi $
 to
$\Phi $
 to 
 $\overline {Z}$
. Notice that we have a birational contraction
$\overline {Z}$
. Notice that we have a birational contraction 
 $p\colon \overline {X} \to X$
 which defines an isomorphism
$p\colon \overline {X} \to X$
 which defines an isomorphism 
 $\overline {X} \setminus {\operatorname {Exc} \, \pi } \to X \setminus C$
. Moreover,
$\overline {X} \setminus {\operatorname {Exc} \, \pi } \to X \setminus C$
. Moreover, 
 $ \overline F$
 yields a holomorphic first integral of
$ \overline F$
 yields a holomorphic first integral of 
 $p^{-1}{\mathcal F}$
.
$p^{-1}{\mathcal F}$
.
 Let A be an ample divisor on 
 $\mathbb P(\lambda _1, \dots , \lambda _{m'}) \times {\mathbb C}^{m-m'}$
 and let
$\mathbb P(\lambda _1, \dots , \lambda _{m'}) \times {\mathbb C}^{m-m'}$
 and let 
 $H \in |kA|$
 be a general element, where
$H \in |kA|$
 be a general element, where 
 $k \gg 0$
. Since
$k \gg 0$
. Since 
 $p^{-1}{\mathcal F}$
 has simple singularities on
$p^{-1}{\mathcal F}$
 has simple singularities on 
 $\overline {X} \setminus {\operatorname {Exc} \, p}$
, we deduce that
$\overline {X} \setminus {\operatorname {Exc} \, p}$
, we deduce that 
 $(\overline {X} \setminus {\operatorname {Exc} \, p}, \overline F^{*}H|_{\overline {X}\setminus {\operatorname {Exc} \, p}})$
 is a simple normal crossings pair. In particular,
$(\overline {X} \setminus {\operatorname {Exc} \, p}, \overline F^{*}H|_{\overline {X}\setminus {\operatorname {Exc} \, p}})$
 is a simple normal crossings pair. In particular, 
 $(X \setminus C, p_{*} \overline F^{*}H|_{X \setminus C})$
 is log canonical. Since
$(X \setminus C, p_{*} \overline F^{*}H|_{X \setminus C})$
 is log canonical. Since 
 $p({\operatorname {Exc} \, p}) = C$
, by taking k to be sufficiently large, the multiplicity of the divisor
$p({\operatorname {Exc} \, p}) = C$
, by taking k to be sufficiently large, the multiplicity of the divisor 
 $p_{*} \overline F^{*}H$
 along C can be made arbitrarily large and so
$p_{*} \overline F^{*}H$
 along C can be made arbitrarily large and so 
 $(X, p_{*} \overline F^{*}H)$
 will not be log canonical at the generic point of C.
$(X, p_{*} \overline F^{*}H)$
 will not be log canonical at the generic point of C.
 Let 
 $\lambda $
 be the log canonical threshold of X with respect to
$\lambda $
 be the log canonical threshold of X with respect to 
 $p_{*} \overline F^{*}H$
 and set
$p_{*} \overline F^{*}H$
 and set 
 $D := \lambda p_{*} \overline F^{*}H$
. Then C is a log canonical centre of
$D := \lambda p_{*} \overline F^{*}H$
. Then C is a log canonical centre of 
 $(X, D)$
 and
$(X, D)$
 and 
 $(X, D)$
 is log canonical away from finitely many closed points of X. Theorem 4.3 then applies to show that
$(X, D)$
 is log canonical away from finitely many closed points of X. Theorem 4.3 then applies to show that 
 $(X, D)$
 is log canonical, and we may conclude.
$(X, D)$
 is log canonical, and we may conclude.
5.5 Singular flipping locus
 We now show that if X is a normal threefold and 
 ${\mathcal F}$
 is a foliation of rank one on X with simple singularities and which admits a flipping contraction
${\mathcal F}$
 is a foliation of rank one on X with simple singularities and which admits a flipping contraction 
 $f\colon X\to Z$
 of a
$f\colon X\to Z$
 of a 
 $K_{\mathcal F}$
-negative irreducible curve C then C is a smooth curve. Our method was inspired by [Reference McQuillanMcQ04, II.i]. We begin with the following:
$K_{\mathcal F}$
-negative irreducible curve C then C is a smooth curve. Our method was inspired by [Reference McQuillanMcQ04, II.i]. We begin with the following:
Lemma 5.12. Let 
 $\partial $
 be a vector field defined over a neighbourhood of
$\partial $
 be a vector field defined over a neighbourhood of 
 $0 \in {\mathbb C}^3$
 and assume that, in suitable coordinates, we may write
$0 \in {\mathbb C}^3$
 and assume that, in suitable coordinates, we may write 
 $$\begin{align*}\partial = at\frac{\partial}{\partial t}-b x\frac{\partial}{\partial x}-c y\frac{\partial}{\partial y} \end{align*}$$
$$\begin{align*}\partial = at\frac{\partial}{\partial t}-b x\frac{\partial}{\partial x}-c y\frac{\partial}{\partial y} \end{align*}$$
where 
 $a, b, c$
 are positive integers. Let
$a, b, c$
 are positive integers. Let 
 $C = \{x = y = 0\}$
 and D be a
$C = \{x = y = 0\}$
 and D be a 
 $\partial $
-invariant prime divisor such that
$\partial $
-invariant prime divisor such that 
 $D\cap C = \{0\}$
.
$D\cap C = \{0\}$
.
Then D meets C transversely.
Proof. We may write 
 $D = \{f = 0\}$
 where f is
$D = \{f = 0\}$
 where f is 
 $(a, -b, -c)$
-weighted homogeneous of degree d, that is,
$(a, -b, -c)$
-weighted homogeneous of degree d, that is, 
 $$\begin{align*}f(t,x, y) = \sum_{ia-bj-ck = d} a_{ijk}t^ix^jy^k \end{align*}$$
$$\begin{align*}f(t,x, y) = \sum_{ia-bj-ck = d} a_{ijk}t^ix^jy^k \end{align*}$$
for some 
 $a_{ijk}\in {\mathbb C}$
. Since D does not contain C we see that f is not an element of the ideal
$a_{ijk}\in {\mathbb C}$
. Since D does not contain C we see that f is not an element of the ideal 
 $(x, y)$
, which implies that
$(x, y)$
, which implies that 
 $a_{i00}$
 is nonzero for some
$a_{i00}$
 is nonzero for some 
 $i>0$
. In particular, d is a positive integer and, therefore,
$i>0$
. In particular, d is a positive integer and, therefore, 
 $a_{0jk} = 0$
 for all
$a_{0jk} = 0$
 for all 
 $j, k\ge 0$
. Thus,
$j, k\ge 0$
. Thus, 
 $D = \{t = 0\}$
 and our result follows.
$D = \{t = 0\}$
 and our result follows.
Proposition 5.13. Let X be a normal threefold and let 
 ${\mathcal F}$
 be a foliation of rank one on X with simple singularities and which admits a flipping contraction
${\mathcal F}$
 be a foliation of rank one on X with simple singularities and which admits a flipping contraction 
 $f\colon X\to Z$
 of a
$f\colon X\to Z$
 of a 
 $K_{\mathcal F}$
-negative irreducible curve C.
$K_{\mathcal F}$
-negative irreducible curve C.
Then C is a smooth curve.
Proof. Suppose by contradiction that C is not smooth. As in the proof of Lemma 5.7, Proposition 2.13 implies that C admits a unique cusp at a point 
 $P\in C\cap {\operatorname {Sing} {\mathcal F}}$
. We first prove the following:
$P\in C\cap {\operatorname {Sing} {\mathcal F}}$
. We first prove the following:
Claim 5.14. There exists a birational morphism 
 $p\colon X' \rightarrow X$
 such that if
$p\colon X' \rightarrow X$
 such that if  and
 and 
 $C'$
 is the strict transform of C in
$C'$
 is the strict transform of C in 
 $X'$
 then
$X'$
 then 
- 
1.  $C'$
 is smooth; $C'$
 is smooth;
- 
2. there is a p-exceptional prime divisor E in  $X'$
 which is $X'$
 which is ${\mathcal F}'$
-invariant and is tangent to ${\mathcal F}'$
-invariant and is tangent to $C'$
; $C'$
;
- 
3.  $K_{{\mathcal F}'} = p^{*}K_{\mathcal F}$
; and $K_{{\mathcal F}'} = p^{*}K_{\mathcal F}$
; and
- 
4.  $C'$
 spans a $C'$
 spans a $K_{{\mathcal F}'}$
-negative extremal ray $K_{{\mathcal F}'}$
-negative extremal ray $R'$
. $R'$
.
Proof of the Claim.
Lemma 2.27 implies that X is smooth at P. We may find a sequence of blow ups
 $$\begin{align*}p\colon X'=X_n\stackrel{p_{n}}{\longrightarrow}X_{n-1}\longrightarrow\dots \longrightarrow X_1\stackrel {p_1}\longrightarrow X\end{align*}$$
$$\begin{align*}p\colon X'=X_n\stackrel{p_{n}}{\longrightarrow}X_{n-1}\longrightarrow\dots \longrightarrow X_1\stackrel {p_1}\longrightarrow X\end{align*}$$
in 
 ${\mathcal F}$
-invariant closed points which resolve the cusp of C at P. Let E be the
${\mathcal F}$
-invariant closed points which resolve the cusp of C at P. Let E be the 
 $p_n$
-exceptional divisor in
$p_n$
-exceptional divisor in 
 $X'$
 and let
$X'$
 and let 
 $C'$
 be the strict transform of C in
$C'$
 be the strict transform of C in 
 $X'$
. We may assume that
$X'$
. We may assume that 
 $p_n(C')$
 is singular, which implies that E is tangent to
$p_n(C')$
 is singular, which implies that E is tangent to 
 $C'$
. Let
$C'$
. Let 
 ${\mathcal F}'=p^{-1}{\mathcal F}$
. Lemma 2.6 implies that E is
${\mathcal F}'=p^{-1}{\mathcal F}$
. Lemma 2.6 implies that E is 
 ${\mathcal F}'$
-invariant. By [Reference Bogomolov and McQuillanBM16, Lemma I.1.3], we have that
${\mathcal F}'$
-invariant. By [Reference Bogomolov and McQuillanBM16, Lemma I.1.3], we have that 
 $K_{{\mathcal F}'} = p^{*}K_{\mathcal F}$
.
$K_{{\mathcal F}'} = p^{*}K_{\mathcal F}$
.
 To prove (4), let G be a p-exceptional divisor so that 
 $-G$
 is p-ample and let
$-G$
 is p-ample and let 
 $H_R$
 be the supporting hyperplane of the ray R spanned by C. Then for
$H_R$
 be the supporting hyperplane of the ray R spanned by C. Then for 
 $\delta>0$
 sufficiently small we may find an ample divisor A on
$\delta>0$
 sufficiently small we may find an ample divisor A on 
 $X'$
 so that
$X'$
 so that 
 $p^{*}H_R-\delta G+A$
 is a big and nef divisor which is only zero on the strict transform of curves in
$p^{*}H_R-\delta G+A$
 is a big and nef divisor which is only zero on the strict transform of curves in 
 ${\operatorname {Null} \, H}_R$
. Thus,
${\operatorname {Null} \, H}_R$
. Thus, 
 $C'$
 spans a
$C'$
 spans a 
 $K_{{\mathcal F}'}$
-negative extremal ray, as claimed.
$K_{{\mathcal F}'}$
-negative extremal ray, as claimed.
 We now proceed with the proof of the Proposition. We may apply Lemma 5.4 (cf. Remark 5.5) to see that there exists a flipping contraction 
 $f'\colon X'\to Z'$
 in the category of algebraic spaces associated to
$f'\colon X'\to Z'$
 in the category of algebraic spaces associated to 
 $R'$
. Let
$R'$
. Let 
 $P' = C' \cap {\operatorname {Sing} {\mathcal F}}'$
 and let
$P' = C' \cap {\operatorname {Sing} {\mathcal F}}'$
 and let 
 $\partial '$
 be a local generator of
$\partial '$
 be a local generator of 
 ${\mathcal F}'$
 near P. By Proposition 5.11.(2), after a suitable renormalisation, the semisimple part of
${\mathcal F}'$
 near P. By Proposition 5.11.(2), after a suitable renormalisation, the semisimple part of 
 $\partial '$
 has eigenvalues
$\partial '$
 has eigenvalues 
 $(a, -b, -c)$
 where
$(a, -b, -c)$
 where 
 $a, b, c$
 are all positive integers. Thus, Lemma 5.12 implies that E is transverse to
$a, b, c$
 are all positive integers. Thus, Lemma 5.12 implies that E is transverse to 
 $C'$
, a contradiction.
$C'$
, a contradiction.
We now show that each connected component of the flipping locus is irreducible. The same result may be found in [Reference McQuillanMcQ04].
Lemma 5.15. Let X be a normal threefold and let 
 ${\mathcal F}$
 be a rank one foliation with simple singularities. Let
${\mathcal F}$
 be a rank one foliation with simple singularities. Let 
 $c\colon X\to Y$
 be a projective morphism in the category of algebraic spaces and let
$c\colon X\to Y$
 be a projective morphism in the category of algebraic spaces and let 
 $C_1$
 and
$C_1$
 and 
 $C_2$
 be two distinct irreducible curves in X such that
$C_2$
 be two distinct irreducible curves in X such that 
 $C_1 \cap C_2 \neq \emptyset $
. Assume that
$C_1 \cap C_2 \neq \emptyset $
. Assume that 
 $R_1=\mathbb R_+[C_1]$
 and
$R_1=\mathbb R_+[C_1]$
 and 
 $R_2=\mathbb R_+[C_2]$
 are distinct
$R_2=\mathbb R_+[C_2]$
 are distinct 
 $K_{{\mathcal F}}$
-negative extremal rays of
$K_{{\mathcal F}}$
-negative extremal rays of 
 $\overline {NE}(X/Y)$
. Suppose furthermore that
$\overline {NE}(X/Y)$
. Suppose furthermore that 
 ${\operatorname {loc} \, (R_1)}=C_1$
 and that the flipping contraction and flip associated to
${\operatorname {loc} \, (R_1)}=C_1$
 and that the flipping contraction and flip associated to 
 $R_1$
 exist.
$R_1$
 exist.
 Then for a general 
 $x\in X$
, there exists a
$x\in X$
, there exists a 
 ${\mathcal F}$
-invariant curve
${\mathcal F}$
-invariant curve 
 $\Sigma _x$
 in X passing through x and rational numbers
$\Sigma _x$
 in X passing through x and rational numbers 
 $a,b\ge 0$
 such that
$a,b\ge 0$
 such that 
 $[aC_1+bC_2]=[\Sigma _x]$
 in
$[aC_1+bC_2]=[\Sigma _x]$
 in 
 $\overline {NE}(X/Y)$
.
$\overline {NE}(X/Y)$
.
Proof. Consider the flip 
 $\phi \colon X \dashrightarrow X'$
 of
$\phi \colon X \dashrightarrow X'$
 of 
 $C_1$
 and let
$C_1$
 and let 
 $C^{\prime }_2$
 be the strict transform of
$C^{\prime }_2$
 be the strict transform of 
 $C_2$
 in
$C_2$
 in 
 $X'$
. It follows from the negativity lemma (cf. Lemma 2.7) that if
$X'$
. It follows from the negativity lemma (cf. Lemma 2.7) that if 
 ${\mathcal F}':=\phi _{*}{\mathcal F}$
 then
${\mathcal F}':=\phi _{*}{\mathcal F}$
 then 
 ${\mathcal F}'$
 is terminal at all, not necessarily closed, points of
${\mathcal F}'$
 is terminal at all, not necessarily closed, points of 
 $C^{\prime }_2$
. By Proposition 3.3, we may assume that there exists a point
$C^{\prime }_2$
. By Proposition 3.3, we may assume that there exists a point 
 $P\in C_2$
 such that
$P\in C_2$
 such that 
 ${\mathcal F}$
 is not terminal at P. As in the proof of Lemma 5.7, it follows that
${\mathcal F}$
 is not terminal at P. As in the proof of Lemma 5.7, it follows that 
 $C_2\cap ( {\operatorname {Sing} X} \cup {\operatorname {Sing} {\mathcal F}} )$
 consists of at most two points. Thus, there are at most two terminal non-Gorenstein singularities along
$C_2\cap ( {\operatorname {Sing} X} \cup {\operatorname {Sing} {\mathcal F}} )$
 consists of at most two points. Thus, there are at most two terminal non-Gorenstein singularities along 
 $C^{\prime }_2$
 and so we may apply foliation adjunction (cf. Proposition 2.13) to deduce that
$C^{\prime }_2$
 and so we may apply foliation adjunction (cf. Proposition 2.13) to deduce that 
 $K_{{\mathcal F}'}\cdot C^{\prime }_2 <0$
. Therefore, Proposition 3.3 implies that
$K_{{\mathcal F}'}\cdot C^{\prime }_2 <0$
. Therefore, Proposition 3.3 implies that 
 $C^{\prime }_2$
 moves in a family of
$C^{\prime }_2$
 moves in a family of 
 ${\mathcal F}'$
-invariant curves. Thus, the claim follows.
${\mathcal F}'$
-invariant curves. Thus, the claim follows.
6 Threefold contractions and flips
6.1 Divisorial contractions
Lemma 6.1. Let X be a 
 ${\mathbb Q}$
-factorial klt projective threefold and let
${\mathbb Q}$
-factorial klt projective threefold and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let R be a
${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let R be a 
 $K_{\mathcal F}$
-negative extremal ray such that
$K_{\mathcal F}$
-negative extremal ray such that  has dimension two.
 has dimension two.
Then
- 
1. D is  ${\mathcal F}$
-invariant; and ${\mathcal F}$
-invariant; and
- 
2. if  $\Gamma \geq 0$
 is a $\Gamma \geq 0$
 is a ${\mathbb Q}$
-divisor on X with ${\mathbb Q}$
-divisor on X with ${\mathcal F}$
-invariant support and such that ${\mathcal F}$
-invariant support and such that $(X, \Gamma +D)$
 is log canonical, then the divisorial contraction $(X, \Gamma +D)$
 is log canonical, then the divisorial contraction $c_R\colon X\to Y$
 associated to R exists in the category of projective varieties. $c_R\colon X\to Y$
 associated to R exists in the category of projective varieties.
Proof. Note that D is an irreducible divisor. Let 
 $\nu \colon D^\nu \rightarrow D$
 be the normalisation. and suppose for the sake of contradiction that D is not
$\nu \colon D^\nu \rightarrow D$
 be the normalisation. and suppose for the sake of contradiction that D is not 
 ${\mathcal F}$
-invariant.
${\mathcal F}$
-invariant.
 Let 
 $H_R$
 be the supporting hyperplane to R. By Lemma 2.28 we have for any ample divisor A and
$H_R$
 be the supporting hyperplane to R. By Lemma 2.28 we have for any ample divisor A and 
 $\epsilon>0$
 sufficiently small that
$\epsilon>0$
 sufficiently small that 
 $\mathbb B(H_R-\epsilon A) = D$
. In particular, if
$\mathbb B(H_R-\epsilon A) = D$
. In particular, if 
 $m>0$
 is sufficiently divisible we may write
$m>0$
 is sufficiently divisible we may write 
 $m(H_R-\epsilon A) = kD+G$
 where
$m(H_R-\epsilon A) = kD+G$
 where 
 $k>0$
 and G is movable. In particular, it follows that
$k>0$
 and G is movable. In particular, it follows that 
 $\nu ^{*}D \sim _{{\mathbb Q}} \frac {1}{k}(m(H_R-\epsilon A)-G)$
 is not pseudo-effective. From this we conclude that
$\nu ^{*}D \sim _{{\mathbb Q}} \frac {1}{k}(m(H_R-\epsilon A)-G)$
 is not pseudo-effective. From this we conclude that 
 $\nu ^{*}(K_{{\mathcal F}}+D)$
 is not pseudo-effective. On the other hand, by foliation adjunction, [Reference Cascini and SpicerCS25a, Proposition-Definition 3.7]
$\nu ^{*}(K_{{\mathcal F}}+D)$
 is not pseudo-effective. On the other hand, by foliation adjunction, [Reference Cascini and SpicerCS25a, Proposition-Definition 3.7] 
 $\nu ^{*}(K_{{\mathcal F}}+D) \sim _{{\mathbb Q}} \Delta \ge 0$
, a contradiction.
$\nu ^{*}(K_{{\mathcal F}}+D) \sim _{{\mathbb Q}} \Delta \ge 0$
, a contradiction.
 We will now show that the contraction exists supposing that 
 $\Gamma \geq 0$
 if a
$\Gamma \geq 0$
 if a 
 ${\mathbb Q}$
-divisor on X with
${\mathbb Q}$
-divisor on X with 
 ${\mathcal F}$
-invariant support and such that
${\mathcal F}$
-invariant support and such that 
 $(X, \Gamma +D)$
 is log canonical. We will prove that R is
$(X, \Gamma +D)$
 is log canonical. We will prove that R is 
 $(K_X+\Gamma +D)$
-negative. Let
$(K_X+\Gamma +D)$
-negative. Let 
 $\mathcal G$
 be the foliation on
$\mathcal G$
 be the foliation on 
 $D^{\nu }$
 and
$D^{\nu }$
 and 
 $\Delta $
 be the
$\Delta $
 be the 
 ${\mathbb Q}$
-divisor, whose existence is guaranteed by Proposition 2.14 and let
${\mathbb Q}$
-divisor, whose existence is guaranteed by Proposition 2.14 and let 
 $\Theta \ge 0$
 be the
$\Theta \ge 0$
 be the 
 ${\mathbb Q}$
-divisor on
${\mathbb Q}$
-divisor on 
 $D^{\nu }$
 such that
$D^{\nu }$
 such that 
 $$\begin{align*}(K_X+\Gamma+D)|_{D^\nu} = K_{S^\nu}+\Theta. \end{align*}$$
$$\begin{align*}(K_X+\Gamma+D)|_{D^\nu} = K_{S^\nu}+\Theta. \end{align*}$$
Since D is covered by curves 
 $\xi $
 such that
$\xi $
 such that 
 $(K_{\mathcal G}+\Delta )\cdot \xi <0$
, by a similar argument as in the proof of Lemma 2.11, it follows that
$(K_{\mathcal G}+\Delta )\cdot \xi <0$
, by a similar argument as in the proof of Lemma 2.11, it follows that 
 $\mathcal G$
 is algebraically integrable. Proposition 2.14 also implies that for any curve
$\mathcal G$
 is algebraically integrable. Proposition 2.14 also implies that for any curve 
 $C\subset D^{\nu }$
 which is not
$C\subset D^{\nu }$
 which is not 
 $\mathcal G$
-invariant, we have that
$\mathcal G$
-invariant, we have that 
 $\mu _C\Delta \geq \mu _C\Theta $
. Since
$\mu _C\Delta \geq \mu _C\Theta $
. Since 
 $(D^\nu , \Theta )$
 is log canonical and since
$(D^\nu , \Theta )$
 is log canonical and since 
 $\mathcal G$
 is algebraically integrable, Lemma 2.12 implies that all the
$\mathcal G$
 is algebraically integrable, Lemma 2.12 implies that all the 
 $(K_{\mathcal G}+\Delta )$
-negative curves in
$(K_{\mathcal G}+\Delta )$
-negative curves in 
 $D^\nu $
 which are
$D^\nu $
 which are 
 $\mathcal G$
-invariant are in fact
$\mathcal G$
-invariant are in fact 
 $(K_{D^\nu }+\Theta )$
-negative. Thus, R is
$(K_{D^\nu }+\Theta )$
-negative. Thus, R is 
 $(K_X+D)$
-negative and, therefore, the divisorial contraction associated to R exists [Reference AmbroAmb03, Theorem 5.6].
$(K_X+D)$
-negative and, therefore, the divisorial contraction associated to R exists [Reference AmbroAmb03, Theorem 5.6].
Theorem 6.2. Let X be a projective 
 ${\mathbb Q}$
-factorial klt threefold and let
${\mathbb Q}$
-factorial klt threefold and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let R be a
${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let R be a 
 $K_{\mathcal F}$
-negative extremal ray such that
$K_{\mathcal F}$
-negative extremal ray such that  has dimension two. Let
 has dimension two. Let 
 $\Gamma \geq 0$
 be a
$\Gamma \geq 0$
 be a 
 ${\mathbb Q}$
-divisor on X with
${\mathbb Q}$
-divisor on X with 
 ${\mathcal F}$
-invariant support, and such that D is not contained in the support of
${\mathcal F}$
-invariant support, and such that D is not contained in the support of 
 $\Gamma $
 and
$\Gamma $
 and 
 $(X, \Gamma )$
 is log canonical.
$(X, \Gamma )$
 is log canonical.
 Then the divisorial contraction associated to R exists. In particular, there exists a projective birational morphism 
 $c_R\colon X \rightarrow Y$
, whose exceptional divisor coincides with D and such that, if
$c_R\colon X \rightarrow Y$
, whose exceptional divisor coincides with D and such that, if 
 ${\mathcal F}'$
 is the foliation induced on Y then
${\mathcal F}'$
 is the foliation induced on Y then 
- 
1. Y is projective; 
- 
2.  $\rho (X/Y) = 1$
; $\rho (X/Y) = 1$
;
- 
3.  ${\mathcal F}'$
 has canonical singularities and it is terminal at every point of ${\mathcal F}'$
 has canonical singularities and it is terminal at every point of $c({\operatorname {Exc} \, c})$
; and $c({\operatorname {Exc} \, c})$
; and
- 
4.  $(Y, (c_R)_{*}\Gamma )$
 is log canonical. $(Y, (c_R)_{*}\Gamma )$
 is log canonical.
Proof. If 
 $(X, \Gamma +D)$
 is log canonical we may apply Lemma 6.1 to produce our desired contraction.
$(X, \Gamma +D)$
 is log canonical we may apply Lemma 6.1 to produce our desired contraction.
 So assume that 
 $(X, \Gamma +D)$
 is not log canonical. Let
$(X, \Gamma +D)$
 is not log canonical. Let 
 $\lambda $
 denote the log canonical threshold of X with respect to D. Then
$\lambda $
 denote the log canonical threshold of X with respect to D. Then 
 $\lambda <1$
 and Theorem 4.3 implies that
$\lambda <1$
 and Theorem 4.3 implies that 
 $(X,\Gamma +\lambda D)$
 admits a one-dimensional log canonical centre
$(X,\Gamma +\lambda D)$
 admits a one-dimensional log canonical centre 
 $C\subset X$
. Proposition 4.6 implies that C is not contained in
$C\subset X$
. Proposition 4.6 implies that C is not contained in 
 ${\operatorname {Sing} {\mathcal F}}$
. Let
${\operatorname {Sing} {\mathcal F}}$
. Let 
 $\nu \colon D^{\nu }\to D$
 be the normalisation of D. By Proposition 2.13, there exists a foliated pair
$\nu \colon D^{\nu }\to D$
 be the normalisation of D. By Proposition 2.13, there exists a foliated pair 
 $(\mathcal G,\Delta )$
 on
$(\mathcal G,\Delta )$
 on 
 $D^\nu $
 such that
$D^\nu $
 such that 
 $$\begin{align*}K_{\mathcal F}|_{D^\nu}=K_{\mathcal G}+\Delta. \end{align*}$$
$$\begin{align*}K_{\mathcal F}|_{D^\nu}=K_{\mathcal G}+\Delta. \end{align*}$$
Claim 6.3. 
C is 
 ${\mathcal F}$
-invariant.
${\mathcal F}$
-invariant.
Proof. By [Reference Cascini and SpicerCS25a, Lemma 4.2] to check invariance we may freely replace X by the index one cover associated to 
 $K_{{\mathcal F}}$
 in a neighbourhood of a general point of C. Since
$K_{{\mathcal F}}$
 in a neighbourhood of a general point of C. Since 
 $(X, D)$
 is not log canonical it follows that
$(X, D)$
 is not log canonical it follows that 
 $C \subset {\operatorname {Sing} X} \cup {\operatorname {Sing} D}$
, and so by [Reference SeidenbergSei67, Theorem 5] we conclude that C is
$C \subset {\operatorname {Sing} X} \cup {\operatorname {Sing} D}$
, and so by [Reference SeidenbergSei67, Theorem 5] we conclude that C is 
 ${\mathcal F}$
-invariant.
${\mathcal F}$
-invariant.
 Since C is not contained in 
 ${\operatorname {Sing} {\mathcal F}}$
 and
${\operatorname {Sing} {\mathcal F}}$
 and 
 $\nu ^{-1}(C)$
 is not contained in the singular locus of
$\nu ^{-1}(C)$
 is not contained in the singular locus of 
 $D^{\nu }$
, it follows that
$D^{\nu }$
, it follows that 
 $\nu ^{-1}(C)$
 is
$\nu ^{-1}(C)$
 is 
 $\mathcal G$
-invariant. Since
$\mathcal G$
-invariant. Since 
 $D={\operatorname {loc} \, R}$
, it follows that
$D={\operatorname {loc} \, R}$
, it follows that 
 $[C]\in R$
 and, in particular,
$[C]\in R$
 and, in particular, 
 $K_{\mathcal F}\cdot C<0$
. Theorem 4.9 implies that
$K_{\mathcal F}\cdot C<0$
. Theorem 4.9 implies that 
 $(K_X+\Gamma +\lambda D)\cdot C<0$
 and so R is
$(K_X+\Gamma +\lambda D)\cdot C<0$
 and so R is 
 $(K_X+\Gamma +\lambda D)$
-negative. Thus, we can realise the
$(K_X+\Gamma +\lambda D)$
-negative. Thus, we can realise the 
 $K_{\mathcal F}$
-contraction as a
$K_{\mathcal F}$
-contraction as a 
 $(K_X+\Gamma +\lambda D)$
-negative contraction. In particular, (1) and (2) hold. Lemma 2.7 implies (3). The negativity lemma (cf. [Reference Kollár and MoriKM98, Lemma 3.38]) implies (4).
$(K_X+\Gamma +\lambda D)$
-negative contraction. In particular, (1) and (2) hold. Lemma 2.7 implies (3). The negativity lemma (cf. [Reference Kollár and MoriKM98, Lemma 3.38]) implies (4).
6.2 Flips
Lemma 6.4. Let X be a normal threefold and let 
 ${\mathcal F}$
 be a rank one foliation on X with simple singularities. Let
${\mathcal F}$
 be a rank one foliation on X with simple singularities. Let 
 $c\colon X\to Y$
 be a projective morphism in the category of algebraic spaces and let R be a
$c\colon X\to Y$
 be a projective morphism in the category of algebraic spaces and let R be a 
 $K_{\mathcal F}$
-negative extremal ray of
$K_{\mathcal F}$
-negative extremal ray of 
 $\overline {NE}(X/Y)$
 such that
$\overline {NE}(X/Y)$
 such that 
 ${\operatorname {loc} \, R} $
 has dimension one and
${\operatorname {loc} \, R} $
 has dimension one and 
 $c\colon X\to Y$
 is the associated flipping contraction. Let
$c\colon X\to Y$
 is the associated flipping contraction. Let 
 $H_R$
 be a supporting hyperplane to R for
$H_R$
 be a supporting hyperplane to R for 
 $\overline {NE}(X/Y)$
.
$\overline {NE}(X/Y)$
.
 Then each connected component of 
 ${\operatorname {Exc} \, c}$
 is irreducible, the flip associated to R exists and
${\operatorname {Exc} \, c}$
 is irreducible, the flip associated to R exists and 
 $H_R$
 descends to a
$H_R$
 descends to a 
 ${\mathbb Q}$
-Cartier divisor M on Y.
${\mathbb Q}$
-Cartier divisor M on Y.
Proof. Lemma 2.26 implies that X has quotient singularities. In particular, X is klt and 
 ${\mathbb Q}$
-factorial. The problem of descending
${\mathbb Q}$
-factorial. The problem of descending 
 $H_R$
 and of constructing the flip is étale local on the base. Thus, we may freely replace Y by an étale neighbourhood of a point in
$H_R$
 and of constructing the flip is étale local on the base. Thus, we may freely replace Y by an étale neighbourhood of a point in 
 $c({\operatorname {Exc} \, c})$
.
$c({\operatorname {Exc} \, c})$
.
 By shrinking about a Zariski neighbourhood of 
 $c({\operatorname {Exc} \, c})$
 we may freely assume that
$c({\operatorname {Exc} \, c})$
 we may freely assume that 
 ${\operatorname {Exc} \, c}$
 is connected. We will show that
${\operatorname {Exc} \, c}$
 is connected. We will show that 
 ${\operatorname {Exc} \, c}$
 is in fact irreducible and that the flip exists. Let
${\operatorname {Exc} \, c}$
 is in fact irreducible and that the flip exists. Let 
 $C_1, \dots , C_r$
 be the irreducible components of
$C_1, \dots , C_r$
 be the irreducible components of 
 ${\operatorname {Exc} \, c}$
.
${\operatorname {Exc} \, c}$
.
 We first claim that after replacing Y by an étale neighbourhood of 
 $c({\operatorname {Exc} \, c})$
, we may assume that
$c({\operatorname {Exc} \, c})$
, we may assume that 
 $C_1, \dots , C_r$
 span distinct extremal rays in
$C_1, \dots , C_r$
 span distinct extremal rays in 
 $\overline {NE}(X/Y)$
. Indeed, let
$\overline {NE}(X/Y)$
. Indeed, let 
 $\widehat {X}$
 denote the formal completion of X along
$\widehat {X}$
 denote the formal completion of X along 
 ${\operatorname {Exc} \, c}$
 and let
${\operatorname {Exc} \, c}$
 and let 
 $\hat {c}$
 denote the restricted map. Then, for any
$\hat {c}$
 denote the restricted map. Then, for any 
 $i=1,\dots ,r$
, we may find a formal
$i=1,\dots ,r$
, we may find a formal 
 ${\mathbb Q}$
-Cartier divisors
${\mathbb Q}$
-Cartier divisors 
 $D_i \subset \widehat {X}$
 such that
$D_i \subset \widehat {X}$
 such that 
 $D_i\cdot C_j = \delta _{ij}$
 for any
$D_i\cdot C_j = \delta _{ij}$
 for any 
 $j=1,\dots ,r$
, where
$j=1,\dots ,r$
, where 
 $\delta _{ij}$
 is the Kronecker delta. By the approximation theorems (cf. Section 2.10), after replacing Y by an étale neighbourhood of
$\delta _{ij}$
 is the Kronecker delta. By the approximation theorems (cf. Section 2.10), after replacing Y by an étale neighbourhood of 
 $c({\operatorname {Exc} \, c})$
, for any
$c({\operatorname {Exc} \, c})$
, for any 
 $j=1,\dots ,r$
, we may find a divisor
$j=1,\dots ,r$
, we may find a divisor 
 $\tilde D_j$
 which approximate
$\tilde D_j$
 which approximate 
 $\hat {c}_{*}D_{j}$
. Thus, our claim follows.
$\hat {c}_{*}D_{j}$
. Thus, our claim follows.
 Let 
 $R_1=\mathbb R_+[C_1]$
. By Lemma 5.4 (cf. Remark 5.5) the contraction
$R_1=\mathbb R_+[C_1]$
. By Lemma 5.4 (cf. Remark 5.5) the contraction 
 $f\colon X \to Z$
 over Y associated to
$f\colon X \to Z$
 over Y associated to 
 $R_1$
 exists. We will show that the flip of
$R_1$
 exists. We will show that the flip of 
 $R_1$
 exists. Let
$R_1$
 exists. Let 
 $D\ge 0$
 be a
$D\ge 0$
 be a 
 ${\mathcal F}$
-invariant
${\mathcal F}$
-invariant 
 ${\mathbb Q}$
-divisor in an analytic neighbourhood of
${\mathbb Q}$
-divisor in an analytic neighbourhood of 
 $C_1$
 such that
$C_1$
 such that 
 $(X,D)$
 is log canonical around
$(X,D)$
 is log canonical around 
 $C_1$
 and
$C_1$
 and 
 $C_1$
 is a log canonical centre of
$C_1$
 is a log canonical centre of 
 $(X,D)$
 and whose existence is guaranteed by Proposition 5.11(3). Theorem 4.9 implies that
$(X,D)$
 and whose existence is guaranteed by Proposition 5.11(3). Theorem 4.9 implies that 
 $(K_X+D)\cdot C <0$
.
$(K_X+D)\cdot C <0$
.
 Fix 
 $n\geq 0$
 and let
$n\geq 0$
 and let 
 $X_n$
 denote the n-th infinitesimal neighbourhood of
$X_n$
 denote the n-th infinitesimal neighbourhood of 
 $C_1$
 in X. By our approximation results (cf. Section 2.10), after possibly replacing Z by an étale neighborhood of
$C_1$
 in X. By our approximation results (cf. Section 2.10), after possibly replacing Z by an étale neighborhood of 
 $f(C_1)$
, we may find a divisor
$f(C_1)$
, we may find a divisor 
 $\tilde {D}$
 such that
$\tilde {D}$
 such that 
 $\tilde {D}\vert _{X_n} = D\vert _{X_n}$
. By Lemma 2.22, it follows that taking n to be sufficiently large, the pair
$\tilde {D}\vert _{X_n} = D\vert _{X_n}$
. By Lemma 2.22, it follows that taking n to be sufficiently large, the pair 
 $(X, \tilde D)$
 is log canonical and
$(X, \tilde D)$
 is log canonical and 
 $$\begin{align*}(K_X+\tilde D)\cdot C<0. \end{align*}$$
$$\begin{align*}(K_X+\tilde D)\cdot C<0. \end{align*}$$
In particular, the 
 $K_{\mathcal F}$
-flipping contraction (resp. flip) can be realised as a
$K_{\mathcal F}$
-flipping contraction (resp. flip) can be realised as a 
 $(K_X+\tilde D)$
-flipping contraction (resp. flip) and the basepoint free theorem implies that
$(K_X+\tilde D)$
-flipping contraction (resp. flip) and the basepoint free theorem implies that 
 $H_R$
 descends to a
$H_R$
 descends to a 
 ${\mathbb Q}$
-Cartier divisor on Z.
${\mathbb Q}$
-Cartier divisor on Z.
 We may now apply Lemma 5.15 to see that in fact 
 ${\operatorname {Exc} \, c}$
 is irreducible, hence
${\operatorname {Exc} \, c}$
 is irreducible, hence 
 $Z = Y$
 and the flip of
$Z = Y$
 and the flip of 
 $R_1$
 is in fact the flip of R.
$R_1$
 is in fact the flip of R.
Theorem 6.5. Let X be a normal projective threefold and let 
 ${\mathcal F}$
 be a rank one foliation on X with simple singularities. Let R be a
${\mathcal F}$
 be a rank one foliation on X with simple singularities. Let R be a 
 $K_{\mathcal F}$
-negative extremal ray such that
$K_{\mathcal F}$
-negative extremal ray such that 
 $ {\operatorname {loc} \, R} $
 has dimension one.
$ {\operatorname {loc} \, R} $
 has dimension one.
 Then the flipping contraction 
 $c_R\colon X\to Y$
 associated to R exists in the category of projective varieties. Moreover, the flip
$c_R\colon X\to Y$
 associated to R exists in the category of projective varieties. Moreover, the flip 
 $\phi \colon X \dashrightarrow X^{+}$
 associated to R exists and if
$\phi \colon X \dashrightarrow X^{+}$
 associated to R exists and if 
 ${\mathcal F}^{+}$
 is the foliation induced on
${\mathcal F}^{+}$
 is the foliation induced on 
 $X^{+}$
 then
$X^{+}$
 then 
- 
1.  $X^{+}$
 is projective and has quotient singularities; $X^{+}$
 is projective and has quotient singularities;
- 
2.  $\rho (X/Y) = \rho (X^{+}/Y)=1$
; $\rho (X/Y) = \rho (X^{+}/Y)=1$
;
- 
3.  ${\mathcal F}^{+}$
 has simple singularities and ${\mathcal F}^{+}$
 has simple singularities and ${\mathcal F}^{+}$
 is terminal at every point of ${\mathcal F}^{+}$
 is terminal at every point of ${\operatorname {Exc} \, \phi }^{-1}$
; and ${\operatorname {Exc} \, \phi }^{-1}$
; and
- 
4. if  $\Gamma \geq 0$
 is a $\Gamma \geq 0$
 is a ${\mathbb Q}$
-divisor on X with ${\mathbb Q}$
-divisor on X with ${\mathcal F}$
-invariant support such that ${\mathcal F}$
-invariant support such that $(X, \Gamma )$
 is log canonical, then $(X, \Gamma )$
 is log canonical, then $(X^{+},\phi _{*} \Gamma )$
 is log canonical. $(X^{+},\phi _{*} \Gamma )$
 is log canonical.
Proof. Lemma 2.26 implies that X has quotient singularities. In particular, X is klt and 
 ${\mathbb Q}$
-factorial. Let
${\mathbb Q}$
-factorial. Let 
 $c_R\colon X\to Y$
 be the flipping contraction associated to R in the category of algebraic spaces and whose existence is guaranteed by Lemma 5.4. Let
$c_R\colon X\to Y$
 be the flipping contraction associated to R in the category of algebraic spaces and whose existence is guaranteed by Lemma 5.4. Let 
 $H_R$
 be a supporting hyperplane to R for
$H_R$
 be a supporting hyperplane to R for 
 $\overline {NE}(X)$
. By Lemma 6.4, each connected component of
$\overline {NE}(X)$
. By Lemma 6.4, each connected component of 
 ${\operatorname {Exc} \, c}_R$
 is irreducible,
${\operatorname {Exc} \, c}_R$
 is irreducible, 
 $H_R$
 descends to a
$H_R$
 descends to a 
 ${\mathbb Q}$
-Cartier divisor M on Y and the flip
${\mathbb Q}$
-Cartier divisor M on Y and the flip 
 $\phi \colon X\dashrightarrow X^{+}$
 associated to R exists. In particular,
$\phi \colon X\dashrightarrow X^{+}$
 associated to R exists. In particular, 
 $M^{\dim Z}\cdot Z>0$
 for all positive dimensional
$M^{\dim Z}\cdot Z>0$
 for all positive dimensional 
 $Z \subset Y$
 and so M is ample by the Nakai-Moishezon criterion and, in particular, Y is projective.
$Z \subset Y$
 and so M is ample by the Nakai-Moishezon criterion and, in particular, Y is projective.
 Thus, also 
 $X^{+}$
 is projective and
$X^{+}$
 is projective and 
 $\rho (X/Y)=\rho (X^{+}/Y)=1$
. By Proposition 3.1, it follows that
$\rho (X/Y)=\rho (X^{+}/Y)=1$
. By Proposition 3.1, it follows that 
 ${\mathcal F}^{+}$
 has simple singularities, and Lemma 2.26 implies that
${\mathcal F}^{+}$
 has simple singularities, and Lemma 2.26 implies that 
 $X^{+}$
 has quotient singularities. Thus, (1) and (2) follow. Lemma 2.7 implies (3).
$X^{+}$
 has quotient singularities. Thus, (1) and (2) follow. Lemma 2.7 implies (3).
 We now prove (4). Let 
 $\Gamma $
 be an
$\Gamma $
 be an 
 ${\mathcal F}$
-invariant divisor such that
${\mathcal F}$
-invariant divisor such that 
 $(X, \Gamma )$
 is log canonical. As in the proof of Proposition 5.11(3), up to replacing X by an analytic neighbourhood of a connected component C of
$(X, \Gamma )$
 is log canonical. As in the proof of Proposition 5.11(3), up to replacing X by an analytic neighbourhood of a connected component C of 
 ${\operatorname {Exc} \, c}_R$
, we may find a
${\operatorname {Exc} \, c}_R$
, we may find a 
 ${\mathbb Q}$
-divisor
${\mathbb Q}$
-divisor 
 $D\ge 0$
 whose support is
$D\ge 0$
 whose support is 
 ${\mathcal F}$
-invariant and such that
${\mathcal F}$
-invariant and such that 
 $(X, \Gamma +D)$
 is not log canonical and C is the only non-log canonical centre of
$(X, \Gamma +D)$
 is not log canonical and C is the only non-log canonical centre of 
 $(X,\Gamma +D)$
 of positive dimension. Thus, if
$(X,\Gamma +D)$
 of positive dimension. Thus, if 
 $\lambda $
 is the log canonical threshold of
$\lambda $
 is the log canonical threshold of 
 $( X,\Gamma )$
 with respect to D along C then by Theorem 4.3 we have that
$( X,\Gamma )$
 with respect to D along C then by Theorem 4.3 we have that 
 $( X, \Gamma +\lambda D)$
 is log canonical and by Theorem 4.9, we have that
$( X, \Gamma +\lambda D)$
 is log canonical and by Theorem 4.9, we have that 
 $-(K_{ X}+\Gamma +\lambda D)$
 is ample over Y. It follows by the negativity lemma (cf. [Reference Kollár and MoriKM98, Lemma 3.38]) that
$-(K_{ X}+\Gamma +\lambda D)$
 is ample over Y. It follows by the negativity lemma (cf. [Reference Kollár and MoriKM98, Lemma 3.38]) that 
 $(X^{+}, \phi _{*}(\Gamma +\lambda D))$
 is log canonical and, therefore,
$(X^{+}, \phi _{*}(\Gamma +\lambda D))$
 is log canonical and, therefore, 
 $(X^{+}, \phi _{*}\Gamma )$
 is log canonical. Thus, (4) follows.
$(X^{+}, \phi _{*}\Gamma )$
 is log canonical. Thus, (4) follows.
7 Termination of flips
The goal of this section is to prove the following:
Theorem 7.1 (Termination of flips).
 Let X be a normal variety and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities.
${\mathcal F}$
 be a rank one foliation on X with canonical singularities.
 Then any sequence of 
 $K_{\mathcal F}$
-flips terminates.
$K_{\mathcal F}$
-flips terminates.
We begin with the following
Lemma 7.2. Let X be a normal variety and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let
${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let 
 $\phi \colon X \dashrightarrow X^{+}$
 be a
$\phi \colon X \dashrightarrow X^{+}$
 be a 
 $K_{\mathcal F}$
-flip and let
$K_{\mathcal F}$
-flip and let 
 $Z^{+}\subset X^{+}$
 be the flipped locus.
$Z^{+}\subset X^{+}$
 be the flipped locus.
 Then 
 $Z^{+}\cap {\operatorname {Sing}^{+}{\mathcal F}} = \emptyset $
.
$Z^{+}\cap {\operatorname {Sing}^{+}{\mathcal F}} = \emptyset $
.
Note that the corresponding statement for higher-rank foliations, including the absolute case, is easily shown to be false.
Proof. Suppose not and let 
 $P\in Z^{+}\cap {\operatorname {Sing}{\mathcal F}^{+}}$
 be a closed point. Then Lemma 2.9 implies that
$P\in Z^{+}\cap {\operatorname {Sing}{\mathcal F}^{+}}$
 be a closed point. Then Lemma 2.9 implies that 
 ${\mathcal F}^{+}$
 is not terminal near P. Thus, there exists an exceptional divisor E over X centred at P and such that
${\mathcal F}^{+}$
 is not terminal near P. Thus, there exists an exceptional divisor E over X centred at P and such that 
 $a(E,{\mathcal F}^{+})=0$
. The negativity Lemma (cf. Lemma 2.7) implies that
$a(E,{\mathcal F}^{+})=0$
. The negativity Lemma (cf. Lemma 2.7) implies that 
 $a(E,{\mathcal F})<0$
, a contradiction.
$a(E,{\mathcal F})<0$
, a contradiction.
Proposition 7.3 (Special termination).
 Let X be a normal variety and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let
${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let 
 $$\begin{align*}X=X_0 \dashrightarrow X_1 \dashrightarrow X_2\dashrightarrow \dots \end{align*}$$
$$\begin{align*}X=X_0 \dashrightarrow X_1 \dashrightarrow X_2\dashrightarrow \dots \end{align*}$$
be a sequence of 
 $K_{\mathcal F}$
-flips and let
$K_{\mathcal F}$
-flips and let 
 ${\mathcal F}_i$
 be the induced foliation on
${\mathcal F}_i$
 be the induced foliation on 
 $X_i$
.
$X_i$
.
 Then, after finitely many flips, the flipping and flipped locus do not meet any log canonical centres of 
 ${\mathcal F}_i$
 properly.
${\mathcal F}_i$
 properly.
 Note that, using the same notation as in Proposition 7.3, since 
 ${\mathcal F}_i$
 is canonical, a log canonical centre for
${\mathcal F}_i$
 is canonical, a log canonical centre for 
 ${\mathcal F}_i$
 is just a canonical centre. Moreover, by Lemma 2.9, if
${\mathcal F}_i$
 is just a canonical centre. Moreover, by Lemma 2.9, if 
 $P\in X$
 is a zero-dimensional log canonical centre for
$P\in X$
 is a zero-dimensional log canonical centre for 
 ${\mathcal F}$
 then
${\mathcal F}$
 then 
 $P\in {\operatorname {Sing}^{+}{\mathcal F}}$
.
$P\in {\operatorname {Sing}^{+}{\mathcal F}}$
.
Proof. Let 
 $\phi _i\colon X_i\dashrightarrow X_{i+1}$
 denote the
$\phi _i\colon X_i\dashrightarrow X_{i+1}$
 denote the 
 $K_{{\mathcal F}_i}$
-flip and let
$K_{{\mathcal F}_i}$
-flip and let  . By Lemma 7.2, it follows that
. By Lemma 7.2, it follows that 
 $\phi _i^{-1}$
 is isomorphic around
$\phi _i^{-1}$
 is isomorphic around 
 $S_{i+1}$
. Therefore, the number of irreducible components of
$S_{i+1}$
. Therefore, the number of irreducible components of 
 $S_i$
 is not increasing as i increases.
$S_i$
 is not increasing as i increases.
 Lemma 7.2 also implies that if a connected component of 
 $S_i$
 intersects the flipping locus, then it is contained in the flipping locus and, therefore, the number of connected components of
$S_i$
 intersects the flipping locus, then it is contained in the flipping locus and, therefore, the number of connected components of 
 $S_i$
 decreases after such a flip. Thus, our claim follows.
$S_i$
 decreases after such a flip. Thus, our claim follows.
Remark 7.4. In fact, this argument shows that each flip contracts an entire component of the singular locus of the foliation, that is, if 
 $Z \subset {\operatorname {Sing} {\mathcal F}}$
 meets the flipping locus then in fact it is contained in the flipping locus. This also follows from the explicit description of the flip given in [Reference McQuillanMcQ04], but it is interesting to note that this can also be proven by a simple discrepancy calculation.
$Z \subset {\operatorname {Sing} {\mathcal F}}$
 meets the flipping locus then in fact it is contained in the flipping locus. This also follows from the explicit description of the flip given in [Reference McQuillanMcQ04], but it is interesting to note that this can also be proven by a simple discrepancy calculation.
8 Running the MMP
8.1 Running the MMP with simple singularities
Proposition 8.1. Let X be a normal projective threefold and let 
 $({\mathcal F},\Delta )$
 be a rank one foliated pair on X with log canonical singularities and such that
$({\mathcal F},\Delta )$
 be a rank one foliated pair on X with log canonical singularities and such that 
 ${\mathcal F}$
 admits simple singularities. Assume that
${\mathcal F}$
 admits simple singularities. Assume that 
 $K_{\mathcal F}+\Delta $
 is pseudo-effective.
$K_{\mathcal F}+\Delta $
 is pseudo-effective.
 Then 
 $({\mathcal F}, \Delta )$
 admits a minimal model
$({\mathcal F}, \Delta )$
 admits a minimal model 
 $\psi \colon X\dashrightarrow Y$
. Moreover, if
$\psi \colon X\dashrightarrow Y$
. Moreover, if  and
 and  , then the following hold:
, then the following hold: 
- 
1.  $\mathcal G$
 admits simple singularities; $\mathcal G$
 admits simple singularities;
- 
2.  $(\mathcal G,\Gamma )$
 is log canonical; $(\mathcal G,\Gamma )$
 is log canonical;
- 
3. if  $\Theta \ge 0$
 is a $\Theta \ge 0$
 is a ${\mathbb Q}$
-divisor on X with ${\mathbb Q}$
-divisor on X with ${\mathcal F}$
-invariant support such that ${\mathcal F}$
-invariant support such that $(X,\Delta +\Theta )$
 is log canonical, then $(X,\Delta +\Theta )$
 is log canonical, then $(Y,\psi _{*}(\Delta +\Theta ))$
 is log canonical. $(Y,\psi _{*}(\Delta +\Theta ))$
 is log canonical.
Proof. Lemma 2.26 implies that X has quotient singularities. In particular, X is klt and 
 ${\mathbb Q}$
-factorial.
${\mathbb Q}$
-factorial.
 If 
 $K_{\mathcal F}+\Delta $
 is nef then there is nothing to prove, so we may assume that
$K_{\mathcal F}+\Delta $
 is nef then there is nothing to prove, so we may assume that 
 $K_{\mathcal F}+\Delta $
 is not nef. Let R be a
$K_{\mathcal F}+\Delta $
 is not nef. Let R be a 
 $(K_{\mathcal F}+\Delta )$
-negative extremal ray. By Theorem 2.30 and Remark 2.31, we may find an
$(K_{\mathcal F}+\Delta )$
-negative extremal ray. By Theorem 2.30 and Remark 2.31, we may find an 
 ${\mathcal F}$
-invariant curve C spanning R. In particular, C is a log canonical centre for
${\mathcal F}$
-invariant curve C spanning R. In particular, C is a log canonical centre for 
 ${\mathcal F}$
. Since
${\mathcal F}$
. Since 
 $({\mathcal F}, \Delta )$
 is log canonical, it follows that no component of
$({\mathcal F}, \Delta )$
 is log canonical, it follows that no component of 
 $\Delta $
 is
$\Delta $
 is 
 ${\mathcal F}$
-invariant and
${\mathcal F}$
-invariant and 
 $\Delta \cdot C \geq 0$
. Thus,
$\Delta \cdot C \geq 0$
. Thus, 
 $K_{\mathcal F}\cdot C<0$
.
$K_{\mathcal F}\cdot C<0$
.
 We may therefore apply Theorem 6.2 and Theorem 6.5 to conclude that the contraction associated to R exists and, if the contraction is small, that the flip exists. Call this step of the MMP 
 $\phi \colon X\dashrightarrow X'$
 and let
$\phi \colon X\dashrightarrow X'$
 and let 
 ${\mathcal F}'$
 be the induced foliation on
${\mathcal F}'$
 be the induced foliation on 
 $X'$
. Theorem 6.2 and Theorem 6.5 (and their proofs) imply that
$X'$
. Theorem 6.2 and Theorem 6.5 (and their proofs) imply that 
 $X'$
 is projective,
$X'$
 is projective, 
 ${\mathcal F}'$
 has simple singularities and that if
${\mathcal F}'$
 has simple singularities and that if 
 $\Theta \ge 0$
 is a
$\Theta \ge 0$
 is a 
 ${\mathbb Q}$
-divisor on X with
${\mathbb Q}$
-divisor on X with 
 ${\mathcal F}$
-invariant support such that
${\mathcal F}$
-invariant support such that 
 $(X,\Delta +\Theta )$
 is log canonical, then
$(X,\Delta +\Theta )$
 is log canonical, then 
 $(X',\phi _{*}(\Delta +\Theta ))$
 is log canonical. Moreover, Lemma 2.7 implies that
$(X',\phi _{*}(\Delta +\Theta ))$
 is log canonical. Moreover, Lemma 2.7 implies that 
 $({\mathcal F}', \Delta ')$
 is log canonical. Thus, replacing
$({\mathcal F}', \Delta ')$
 is log canonical. Thus, replacing 
 $X, \Delta $
 and
$X, \Delta $
 and 
 $\Theta $
 by
$\Theta $
 by 
 $X', \phi _{*}\Delta $
 and
$X', \phi _{*}\Delta $
 and 
 $\phi _{*}\Theta $
, we may continue this process.
$\phi _{*}\Theta $
, we may continue this process.
Each divisorial contraction drops the Picard number by one, and so we can only contract a divisor finitely many times. By Theorem 7.1 we can only have finitely many flips and so this process must eventually terminate in our desired minimal model.
Remark 8.2. Let 
 $p\colon X \to Z$
 be a fibration between normal projective varieties. Let
$p\colon X \to Z$
 be a fibration between normal projective varieties. Let 
 $({\mathcal F},\Delta )$
 be a rank one foliated pair on X with log canonical singularities and such that
$({\mathcal F},\Delta )$
 be a rank one foliated pair on X with log canonical singularities and such that 
 ${\mathcal F}$
 admits simple singularities.
${\mathcal F}$
 admits simple singularities.
 Suppose that 
 $K_{{\mathcal F}}+\Delta $
 is pseudo-effective over Z. We can run a relative
$K_{{\mathcal F}}+\Delta $
 is pseudo-effective over Z. We can run a relative 
 $(K_{\mathcal F}+\Delta )$
-MMP over Z, call it
$(K_{\mathcal F}+\Delta )$
-MMP over Z, call it 
 $\psi \colon X \dashrightarrow Y/Z$
 which terminates in a model where
$\psi \colon X \dashrightarrow Y/Z$
 which terminates in a model where 
 $K_{\psi _{*}{\mathcal F}}+\psi _{*}\Delta $
 is nef over Z. Indeed, the proof of Proposition 8.1 can be adapted to this setting by requiring that at each step of the MMP we only contract/flip extremal rays which are
$K_{\psi _{*}{\mathcal F}}+\psi _{*}\Delta $
 is nef over Z. Indeed, the proof of Proposition 8.1 can be adapted to this setting by requiring that at each step of the MMP we only contract/flip extremal rays which are 
 $p^{*}H$
-trivial, where H is an ample divisor on Z.
$p^{*}H$
-trivial, where H is an ample divisor on Z.
8.2 Foliated plt blow ups
In this section, we explain how to perform a foliated analogue of the classical plt blow up. We begin with the following:
Lemma 8.3. Let X be a normal projective threefold and let 
 $({\mathcal F}, \Delta )$
 be a foliated pair on X with log canonical singularities. Let E be a valuation which is exceptional over X and such that
$({\mathcal F}, \Delta )$
 be a foliated pair on X with log canonical singularities. Let E be a valuation which is exceptional over X and such that 
 $a(E,{\mathcal F},\Delta )<0$
.
$a(E,{\mathcal F},\Delta )<0$
.
 Then 
 $a(E,{\mathcal F},\Delta )=-1$
. In particular, if
$a(E,{\mathcal F},\Delta )=-1$
. In particular, if 
 $a(E,{\mathcal F},\Delta )>-1$
 for any exceptional divisor E over X then
$a(E,{\mathcal F},\Delta )>-1$
 for any exceptional divisor E over X then 
 $({\mathcal F},\Delta )$
 is canonical.
$({\mathcal F},\Delta )$
 is canonical.
Proof. Let 
 $p\colon Y \rightarrow X$
 be the birational morphism whose existence is guaranteed by Theorem 2.25 and such that E is a divisor on Y. Let
$p\colon Y \rightarrow X$
 be the birational morphism whose existence is guaranteed by Theorem 2.25 and such that E is a divisor on Y. Let  and let
 and let  . We may write
. We may write 
 $$\begin{align*}K_{{\mathcal F}_Y}+\Delta_Y +F' = p^{*}(K_{\mathcal F}+\Delta) +F" \end{align*}$$
$$\begin{align*}K_{{\mathcal F}_Y}+\Delta_Y +F' = p^{*}(K_{\mathcal F}+\Delta) +F" \end{align*}$$
where 
 $F', F"\ge 0$
 are p-exceptional
$F', F"\ge 0$
 are p-exceptional 
 ${\mathbb Q}$
-divisor with no common components. After possibly passing to a higher resolution, we may assume that
${\mathbb Q}$
-divisor with no common components. After possibly passing to a higher resolution, we may assume that 
 $({\mathcal F}_Y, \Delta _Y+F)$
 is log canonical (cf. [Reference McQuillan and PanazzoloMP13, pag. 282, Corollary]), where
$({\mathcal F}_Y, \Delta _Y+F)$
 is log canonical (cf. [Reference McQuillan and PanazzoloMP13, pag. 282, Corollary]), where  and the sum runs over all the prime p-exceptional divisors.
 and the sum runs over all the prime p-exceptional divisors.
 Assume by contradiction that 
 $a(E,{\mathcal F},\Delta )\in (-1,0)$
. In particular, E is contained in the support of
$a(E,{\mathcal F},\Delta )\in (-1,0)$
. In particular, E is contained in the support of 
 $F'$
. Since
$F'$
. Since 
 $({\mathcal F},\Delta )$
 is log canonical, it follows that E is not
$({\mathcal F},\Delta )$
 is log canonical, it follows that E is not 
 ${\mathcal F}'$
-invariant. Let
${\mathcal F}'$
-invariant. Let 
 $\epsilon>0$
 be a positive rational number such that
$\epsilon>0$
 be a positive rational number such that 
 $({\mathcal F}_Y,\Delta _Y+F'+\epsilon E)$
 is log canonical. By Proposition 8.1,
$({\mathcal F}_Y,\Delta _Y+F'+\epsilon E)$
 is log canonical. By Proposition 8.1, 
 $({\mathcal F}_Y,\Delta _Y+F'+\epsilon E)$
 admits a minimal model
$({\mathcal F}_Y,\Delta _Y+F'+\epsilon E)$
 admits a minimal model 
 $\phi \colon Y\dashrightarrow X'$
 over X, which, in particular, contracts E, contradicting Item (1) of Lemma 6.1.
$\phi \colon Y\dashrightarrow X'$
 over X, which, in particular, contracts E, contradicting Item (1) of Lemma 6.1.
Theorem 8.4. Let X be a normal projective threefold and let 
 $({\mathcal F}, \Delta = \sum a_iD_i)$
 be a foliated pair on X where
$({\mathcal F}, \Delta = \sum a_iD_i)$
 be a foliated pair on X where 
 $a_i \in [0, \epsilon (D_i)]$
.
$a_i \in [0, \epsilon (D_i)]$
.
 Then there exists a birational morphism 
 $\pi \colon X' \rightarrow X$
 such that, if
$\pi \colon X' \rightarrow X$
 such that, if  and
 and 
 $\Delta '=\pi ^{-1}_{*}\Delta $
, and
$\Delta '=\pi ^{-1}_{*}\Delta $
, and 
 $\{E_i\}$
 is the set of all
$\{E_i\}$
 is the set of all 
 $\pi $
-exceptional divisors then
$\pi $
-exceptional divisors then 
- 
1.  ${\mathcal F}'$
 has simple singularities; ${\mathcal F}'$
 has simple singularities;
- 
2.  $(X', \sum E_i)$
 is log canonical, where the sum is over all the $(X', \sum E_i)$
 is log canonical, where the sum is over all the $\pi $
-exceptional divisors; and $\pi $
-exceptional divisors; and
- 
3. there exists a  $\pi $
-exceptional $\pi $
-exceptional ${\mathbb Q}$
-divisor ${\mathbb Q}$
-divisor $E'\ge 0$
 on $E'\ge 0$
 on $X'$
 such that and $X'$
 such that and $$\begin{align*}K_{{\mathcal F}'}+\Delta' + \sum \epsilon(E_i)E_i+ E' = \pi^{*}(K_{\mathcal F}+\Delta) \end{align*}$$ $$\begin{align*}K_{{\mathcal F}'}+\Delta' + \sum \epsilon(E_i)E_i+ E' = \pi^{*}(K_{\mathcal F}+\Delta) \end{align*}$$ $({\mathcal F}', \Delta '+\sum \epsilon (E_i)E_i)$
 is log canonical. $({\mathcal F}', \Delta '+\sum \epsilon (E_i)E_i)$
 is log canonical.
Moreover if 
 $({\mathcal F},\Delta )$
 is log canonical but not canonical at the generic point of a subvariety P of X then
$({\mathcal F},\Delta )$
 is log canonical but not canonical at the generic point of a subvariety P of X then 
- 
(4) there exists a unique prime  $\pi $
-exceptional divisor $\pi $
-exceptional divisor $E_0$
 on $E_0$
 on $X'$
 which is not $X'$
 which is not ${\mathcal F}'$
-invariant and which is centred on P; and ${\mathcal F}'$
-invariant and which is centred on P; and
- 
(5) no other  $\pi $
-exceptional divisor has centre $\pi $
-exceptional divisor has centre $=P$
. $=P$
.
We call the morphism 
 $\pi $
 a
$\pi $
 a 
 $\mathbf{foliated\ plt\ blow\ up}$
 of
$\mathbf{foliated\ plt\ blow\ up}$
 of 
 $({\mathcal F},\Delta )$
.
$({\mathcal F},\Delta )$
.
Proof. Let 
 $p\colon Y \rightarrow X$
 be the birational morphism whose existence is guaranteed by Theorem 2.25. Let
$p\colon Y \rightarrow X$
 be the birational morphism whose existence is guaranteed by Theorem 2.25. Let  and let
 and let  . We may write
. We may write 
 $$\begin{align*}K_{{\mathcal F}_Y}+\Delta_Y +\sum \epsilon(E_i)E_i+F' = p^{*}(K_{\mathcal F}+\Delta) +F" \end{align*}$$
$$\begin{align*}K_{{\mathcal F}_Y}+\Delta_Y +\sum \epsilon(E_i)E_i+F' = p^{*}(K_{\mathcal F}+\Delta) +F" \end{align*}$$
where 
 $F', F"\ge 0$
 are p-exceptional
$F', F"\ge 0$
 are p-exceptional 
 ${\mathbb Q}$
-divisor with no common components and
${\mathbb Q}$
-divisor with no common components and 
 $\{E_i\}$
 is the set of all p-exceptional divisors. After possibly passing to a higher resolution, we may assume that
$\{E_i\}$
 is the set of all p-exceptional divisors. After possibly passing to a higher resolution, we may assume that 
 $({\mathcal F}_Y, \Delta _Y+\sum \epsilon (E_i)E_i)$
 is log canonical and that
$({\mathcal F}_Y, \Delta _Y+\sum \epsilon (E_i)E_i)$
 is log canonical and that 
 $(Y, \Delta _Y+\sum E_i)$
 is log canonical (cf. [Reference McQuillan and PanazzoloMP13, pag. 282, Corollary]).
$(Y, \Delta _Y+\sum E_i)$
 is log canonical (cf. [Reference McQuillan and PanazzoloMP13, pag. 282, Corollary]).
 If 
 $({\mathcal F},\Delta )$
 is log canonical but not canonical at the generic point of a subvariety P of X, Lemma 8.3 implies that there exists an exceptional divisor
$({\mathcal F},\Delta )$
 is log canonical but not canonical at the generic point of a subvariety P of X, Lemma 8.3 implies that there exists an exceptional divisor 
 $E_i$
 centred over P such that
$E_i$
 centred over P such that 
 $\epsilon (E_i) = 1$
 and
$\epsilon (E_i) = 1$
 and 
 $E_i$
 is not contained in the support of
$E_i$
 is not contained in the support of 
 $F'+F"$
.
$F'+F"$
.
 By Proposition 8.1 (see also Remark 8.2), we may run a 
 $(K_{{\mathcal F}_Y}+\Delta _Y + \sum \max \{\epsilon (E_i)-t, 0\}E_i)$
-MMP over X for any
$(K_{{\mathcal F}_Y}+\Delta _Y + \sum \max \{\epsilon (E_i)-t, 0\}E_i)$
-MMP over X for any 
 $t>0$
 sufficiently small. Let
$t>0$
 sufficiently small. Let 
 $\phi \colon Y\dashrightarrow X'$
 be the output of this MMP. Let
$\phi \colon Y\dashrightarrow X'$
 be the output of this MMP. Let  and let
 and let  . By Proposition 8.1, we see that
. By Proposition 8.1, we see that 
 $(X',\sum \phi _{*}E_i)$
 is log canonical. It is easy to verify that
$(X',\sum \phi _{*}E_i)$
 is log canonical. It is easy to verify that 
 $X'$
 and
$X'$
 and 
 ${\mathcal F}'$
 satisfy (1)-(5).
${\mathcal F}'$
 satisfy (1)-(5).
This has the following useful consequence which allows us to reduce the MMP with log canonical singularities to the MMP with canonical singularities.
Corollary 8.5. Let X be a projective threefold with log canonical singularities and let 
 ${\mathcal F}$
 be a foliation on X with log canonical singularities. Let R be a
${\mathcal F}$
 be a foliation on X with log canonical singularities. Let R be a 
 $K_{\mathcal F}$
-negative extremal ray and let C be an
$K_{\mathcal F}$
-negative extremal ray and let C be an 
 ${\mathcal F}$
-invariant curve such that
${\mathcal F}$
-invariant curve such that 
 $[C] \in R$
. Suppose that there exists a closed point
$[C] \in R$
. Suppose that there exists a closed point 
 $P \in C$
 such that
$P \in C$
 such that 
 ${\mathcal F}$
 is not canonical at P.
${\mathcal F}$
 is not canonical at P.
 Then 
 ${\operatorname {loc} \, R} = X$
 and R is
${\operatorname {loc} \, R} = X$
 and R is 
 $K_X$
-negative.
$K_X$
-negative.
Proof. Since C is 
 $K_{\mathcal F}$
-negative, it is not contained in
$K_{\mathcal F}$
-negative, it is not contained in 
 ${\operatorname {Sing} {\mathcal F}}$
, see [Reference McQuillanMcQ04, Fact II.d.3]. Proposition 2.13 implies that
${\operatorname {Sing} {\mathcal F}}$
, see [Reference McQuillanMcQ04, Fact II.d.3]. Proposition 2.13 implies that 
 ${\mathcal F}$
 is terminal at all points of
${\mathcal F}$
 is terminal at all points of 
 $C \setminus P$
. Let
$C \setminus P$
. Let 
 $\pi \colon X' \rightarrow X$
 be a foliated plt blow up of
$\pi \colon X' \rightarrow X$
 be a foliated plt blow up of 
 ${\mathcal F}$
, whose existence is guaranteed by Theorem 8.4, and write
${\mathcal F}$
, whose existence is guaranteed by Theorem 8.4, and write 
 $K_{{\mathcal F}'}+E = \pi ^{*}K_{\mathcal F}$
 where
$K_{{\mathcal F}'}+E = \pi ^{*}K_{\mathcal F}$
 where 
 $E \geq 0$
 and
$E \geq 0$
 and 
 ${\mathcal F}' = \pi ^{-1}{\mathcal F}$
. In particular,
${\mathcal F}' = \pi ^{-1}{\mathcal F}$
. In particular, 
 $\mu _{E_0} E=1$
 where
$\mu _{E_0} E=1$
 where 
 $E_0$
 is the unique p-exceptional divisor
$E_0$
 is the unique p-exceptional divisor 
 $E_0$
 centred at P and which is not
$E_0$
 centred at P and which is not 
 ${\mathcal F}'$
-invariant. By Lemma 2.6 and since
${\mathcal F}'$
-invariant. By Lemma 2.6 and since 
 ${\mathcal F}$
 is log canonical, it follows that no component of E is centred on C. Since
${\mathcal F}$
 is log canonical, it follows that no component of E is centred on C. Since 
 ${\mathcal F}$
 is terminal at all points of
${\mathcal F}$
 is terminal at all points of 
 $C \setminus P$
, it follows that
$C \setminus P$
, it follows that 
 $E=E_0$
.
$E=E_0$
.
 Then 
 $K_{{\mathcal F}'}$
 is not nef and there exists a curve
$K_{{\mathcal F}'}$
 is not nef and there exists a curve 
 $C'$
 in
$C'$
 in 
 $X'$
 spanning a
$X'$
 spanning a 
 $K_{{\mathcal F}'}$
-negative rational curve and such that
$K_{{\mathcal F}'}$
-negative rational curve and such that 
 $\pi (C')=C$
.
$\pi (C')=C$
.
 Notice that 
 $K_{{\mathcal F}'}\cdot C' <0$
. Let
$K_{{\mathcal F}'}\cdot C' <0$
. Let 
 $P' = E_0 \cap C'$
. Next, observe that
$P' = E_0 \cap C'$
. Next, observe that 
 ${\mathcal F}'$
 has simple singularities and, therefore, Lemma 2.6 implies that for any exceptional divisor
${\mathcal F}'$
 has simple singularities and, therefore, Lemma 2.6 implies that for any exceptional divisor 
 $E_1$
 centred at a closed point of E, we have
$E_1$
 centred at a closed point of E, we have 
 $$\begin{align*}a(E_1,{\mathcal F}')> a(E_1,{\mathcal F})\ge \epsilon(E_1)=0. \end{align*}$$
$$\begin{align*}a(E_1,{\mathcal F}')> a(E_1,{\mathcal F})\ge \epsilon(E_1)=0. \end{align*}$$
Thus, 
 ${\mathcal F}'$
 is terminal at all closed points of
${\mathcal F}'$
 is terminal at all closed points of 
 $E_0$
. In particular,
$E_0$
. In particular, 
 ${\mathcal F}'$
 is terminal at
${\mathcal F}'$
 is terminal at 
 $P'$
, and so
$P'$
, and so 
 ${\mathcal F}'$
 is terminal at all points of
${\mathcal F}'$
 is terminal at all points of 
 $C'$
.
$C'$
.
 By Proposition 3.3, it follows that 
 $C'$
 moves in a family of pairwise disjoint curves covering
$C'$
 moves in a family of pairwise disjoint curves covering 
 $X'$
. Let B be a general curve in such a family. Then
$X'$
. Let B be a general curve in such a family. Then 
 $$\begin{align*}K_{X'}\cdot B = K_{{\mathcal F}'}\cdot B = -2.\end{align*}$$
$$\begin{align*}K_{X'}\cdot B = K_{{\mathcal F}'}\cdot B = -2.\end{align*}$$
 We may write 
 $K_{X'}+F = \pi ^{*}K_X$
 where F is an exceptional
$K_{X'}+F = \pi ^{*}K_X$
 where F is an exceptional 
 $\pi $
-divisor. Since X is log canonical, it follows that
$\pi $
-divisor. Since X is log canonical, it follows that 
 $\mu _{E_0}F\le 1$
 and since
$\mu _{E_0}F\le 1$
 and since 
 $B\cdot G=0$
 for every
$B\cdot G=0$
 for every 
 $\pi $
-exceptional divisor G which is
$\pi $
-exceptional divisor G which is 
 ${\mathcal F}'$
-invariant, it follows that
${\mathcal F}'$
-invariant, it follows that 
 $$\begin{align*}K_X\cdot \pi(B) = (K_{X'}+F)\cdot B \leq (K_{{\mathcal F}'}+E_0)\cdot B <0.\end{align*}$$
$$\begin{align*}K_X\cdot \pi(B) = (K_{X'}+F)\cdot B \leq (K_{{\mathcal F}'}+E_0)\cdot B <0.\end{align*}$$
Since 
 $\pi (B)$
 spans R, our result follows.
$\pi (B)$
 spans R, our result follows.
 We now show that, in the case of dimension three, Theorem 2.30 holds without any 
 ${\mathbb Q}$
-factoriality hypothesis.
${\mathbb Q}$
-factoriality hypothesis.
Theorem 8.6. Let X be a normal projective threefold and let 
 $({\mathcal F}, \Delta )$
 be a rank one foliated pair on X.
$({\mathcal F}, \Delta )$
 be a rank one foliated pair on X.
 Then there are 
 ${\mathcal F}$
-invariant rational curves
${\mathcal F}$
-invariant rational curves 
 $C_1,C_2,\dots $
 not contained in
$C_1,C_2,\dots $
 not contained in 
 ${\operatorname {Sing} {\mathcal F}}$
 such that
${\operatorname {Sing} {\mathcal F}}$
 such that 
 $$\begin{align*}0<-(K_{\mathcal F}+\Delta)\cdot C_i\le 2\dim X\end{align*}$$
$$\begin{align*}0<-(K_{\mathcal F}+\Delta)\cdot C_i\le 2\dim X\end{align*}$$
and
 $$ \begin{align*}\overline{\mathrm{NE}}(X)=\overline{\mathrm{NE}}(X)_{K_{\mathcal F}+\Delta\ge 0}+Z_{-\infty}+ \sum_i \mathbb R_+[C_i]\end{align*} $$
$$ \begin{align*}\overline{\mathrm{NE}}(X)=\overline{\mathrm{NE}}(X)_{K_{\mathcal F}+\Delta\ge 0}+Z_{-\infty}+ \sum_i \mathbb R_+[C_i]\end{align*} $$
where 
 $Z_{-\infty }\subset \overline {\mathrm {NE}}(X)$
 is a subset contained in the span of the images of
$Z_{-\infty }\subset \overline {\mathrm {NE}}(X)$
 is a subset contained in the span of the images of 
 $\overline {\mathrm {NE}}(W) \rightarrow \overline {\mathrm {NE}}(X)$
 where
$\overline {\mathrm {NE}}(W) \rightarrow \overline {\mathrm {NE}}(X)$
 where 
 $W \subset X$
 are the non-log canonical centres of
$W \subset X$
 are the non-log canonical centres of 
 $({\mathcal F}, \Delta )$
.
$({\mathcal F}, \Delta )$
.
Proof. We use the notation of Theorem 2.30 and its proof. Let 
 $p\colon X' \rightarrow X$
 be a plt blow up of
$p\colon X' \rightarrow X$
 be a plt blow up of 
 $({\mathcal F}, \Delta )$
, whose existence is guaranteed by Theorem 8.4, and write
$({\mathcal F}, \Delta )$
, whose existence is guaranteed by Theorem 8.4, and write 
 $K_{{\mathcal F}'}+\Delta ' = p^{*}(K_{\mathcal F}+\Delta )$
. Notice that for any
$K_{{\mathcal F}'}+\Delta ' = p^{*}(K_{\mathcal F}+\Delta )$
. Notice that for any 
 $(K_{\mathcal F}+\Delta )$
-negative extremal ray R there exists a
$(K_{\mathcal F}+\Delta )$
-negative extremal ray R there exists a 
 $(K_{{\mathcal F}'}+\Delta ')$
-negative extremal ray
$(K_{{\mathcal F}'}+\Delta ')$
-negative extremal ray 
 $R'$
 with
$R'$
 with 
 $p_{*}R' = R$
. Therefore, we see that Theorem 2.30 on
$p_{*}R' = R$
. Therefore, we see that Theorem 2.30 on 
 $X'$
 implies Theorem 2.30 on X.
$X'$
 implies Theorem 2.30 on X.
8.3 MMP with log canonical singularities
We make note of an easy consequence of the negativity lemma which will nevertheless be crucial.
Lemma 8.7. Let X be a projective variety and let 
 $({\mathcal F}, \Delta )$
 be a rank one foliated pair with log canonical singularities. Let
$({\mathcal F}, \Delta )$
 be a rank one foliated pair with log canonical singularities. Let 
 $\phi \colon X \dashrightarrow X^{+}$
 be a step of a
$\phi \colon X \dashrightarrow X^{+}$
 be a step of a 
 $(K_{\mathcal F}+\Delta )$
-MMP and let
$(K_{\mathcal F}+\Delta )$
-MMP and let 
 $D \subset X$
 be an
$D \subset X$
 be an 
 ${\mathcal F}$
-invariant divisor such that
${\mathcal F}$
-invariant divisor such that 
 $\phi $
 is an isomorphism at the generic point of D and write
$\phi $
 is an isomorphism at the generic point of D and write  . Let
. Let 
 ${\mathcal F}^{+}$
 be the foliation induced on
${\mathcal F}^{+}$
 be the foliation induced on 
 $X^{+}$
 and let
$X^{+}$
 and let  . Write
. Write 
 $$\begin{align*}(K_{\mathcal F}+\Delta)\vert_D = K_{\mathcal G}+\Theta\end{align*}$$
$$\begin{align*}(K_{\mathcal F}+\Delta)\vert_D = K_{\mathcal G}+\Theta\end{align*}$$
and
 $$\begin{align*}(K_{{\mathcal F}^{+}}+\Delta^{+})\vert_{D^{+}} = K_{\mathcal G^{+}}+\Theta^{+}\end{align*}$$
$$\begin{align*}(K_{{\mathcal F}^{+}}+\Delta^{+})\vert_{D^{+}} = K_{\mathcal G^{+}}+\Theta^{+}\end{align*}$$
where 
 $(\mathcal G,\Theta )$
 and
$(\mathcal G,\Theta )$
 and 
 $(\mathcal G^{+},\Theta ^{+})$
 are the induced foliated pairs on D and
$(\mathcal G^{+},\Theta ^{+})$
 are the induced foliated pairs on D and 
 $D^{+}$
, respectively. Let
$D^{+}$
, respectively. Let 
 $W\xrightarrow {g}D$
 and
$W\xrightarrow {g}D$
 and 
 $W\xrightarrow {h}D^{+}$
 be a resolution of
$W\xrightarrow {h}D^{+}$
 be a resolution of 
 $D \dashrightarrow D^{+}$
.
$D \dashrightarrow D^{+}$
.
 Then 
 $g^{*}(K_{\mathcal G}+\Theta )-h^{*}(K_{\mathcal G^{+}}+\Theta ^{+}) \geq 0$
 and is nonzero if
$g^{*}(K_{\mathcal G}+\Theta )-h^{*}(K_{\mathcal G^{+}}+\Theta ^{+}) \geq 0$
 and is nonzero if 
 $\phi $
 is not an isomorphism in a neighborhood of D.
$\phi $
 is not an isomorphism in a neighborhood of D.
In particular, the following hold:
- 
1. If  $K_{\mathcal G}+\Theta $
 is not pseudo-effective then $K_{\mathcal G}+\Theta $
 is not pseudo-effective then $K_{\mathcal G^{+}}+\Theta ^{+}$
 is not pseudoeffective. $K_{\mathcal G^{+}}+\Theta ^{+}$
 is not pseudoeffective.
- 
2. If  $K_{\mathcal G}+\Theta \equiv 0$
 and $K_{\mathcal G}+\Theta \equiv 0$
 and $\phi $
 is not an ismorphism in a neighborhood of D then $\phi $
 is not an ismorphism in a neighborhood of D then $K_{\mathcal G^{+}}+\Theta ^{+}$
 is not pseudo-effective. $K_{\mathcal G^{+}}+\Theta ^{+}$
 is not pseudo-effective.
Proof. The result follows immediately from the fact that 
 $\phi $
 is
$\phi $
 is 
 $(K_{{\mathcal F}}+\Delta )$
-negative and Proposition 2.13.
$(K_{{\mathcal F}}+\Delta )$
-negative and Proposition 2.13.
Theorem 8.8. Let X be a 
 ${\mathbb Q}$
-factorial klt projective threefold and let
${\mathbb Q}$
-factorial klt projective threefold and let 
 ${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let R be a
${\mathcal F}$
 be a rank one foliation on X with canonical singularities. Let R be a 
 $K_{\mathcal F}$
-negative extremal ray such that
$K_{\mathcal F}$
-negative extremal ray such that  has dimension one.
 has dimension one.
 Then the flipping contraction 
 $c_R\colon X\to Z$
 associated to R exists in the category of projective varieties. Moreover, the flip
$c_R\colon X\to Z$
 associated to R exists in the category of projective varieties. Moreover, the flip 
 $\phi \colon X \dashrightarrow X^{+}$
 associated to R exists and if
$\phi \colon X \dashrightarrow X^{+}$
 associated to R exists and if 
 ${\mathcal F}^{+}$
 is the foliation induced on
${\mathcal F}^{+}$
 is the foliation induced on 
 $X^{+}$
 then
$X^{+}$
 then 
- 
1.  $X^{+}$
 is projective and has klt singularities; $X^{+}$
 is projective and has klt singularities;
- 
2.  ${\mathcal F}^{+}$
 has canonical singularities and ${\mathcal F}^{+}$
 has canonical singularities and ${\mathcal F}^{+}$
 is terminal at every point of ${\mathcal F}^{+}$
 is terminal at every point of ${\operatorname {Exc} \, \phi }^{-1}$
; and ${\operatorname {Exc} \, \phi }^{-1}$
; and
- 
3.  $\rho (X/Z) = \rho (X^{+}/Z)= 1$
. $\rho (X/Z) = \rho (X^{+}/Z)= 1$
.
Proof. Let C be a connected component of 
 ${\operatorname {loc} \, R}$
. By Theorem 2.30 and Remark 2.31, we may assume that no component of C is contained in
${\operatorname {loc} \, R}$
. By Theorem 2.30 and Remark 2.31, we may assume that no component of C is contained in 
 ${\operatorname {Sing} {\mathcal F}}$
. By Lemma 5.4, the contraction
${\operatorname {Sing} {\mathcal F}}$
. By Lemma 5.4, the contraction 
 $f\colon X \rightarrow Z$
 associated to R exists in the category of algebraic spaces.
$f\colon X \rightarrow Z$
 associated to R exists in the category of algebraic spaces.
 By Proposition 3.3 and Proposition 2.13, there exists a unique closed point 
 $P\in C$
 around which
$P\in C$
 around which 
 ${\mathcal F}$
 is not terminal and every irreducible component of C passes through P. Let
${\mathcal F}$
 is not terminal and every irreducible component of C passes through P. Let 
 $p\colon Y \rightarrow X$
 be a foliated plt blow up, whose existence is guaranteed by Theorem 8.4, let
$p\colon Y \rightarrow X$
 be a foliated plt blow up, whose existence is guaranteed by Theorem 8.4, let  and write
 and write 
 $$\begin{align*}{\operatorname{Exc} \, p} = \sum E_\ell+\sum F_j+\sum G_k \end{align*}$$
$$\begin{align*}{\operatorname{Exc} \, p} = \sum E_\ell+\sum F_j+\sum G_k \end{align*}$$
where 
 $p(E_\ell ) = P$
,
$p(E_\ell ) = P$
, 
 $p(G_k)$
 is an irreducible component of C and
$p(G_k)$
 is an irreducible component of C and 
 $F_j$
 are all the other exceptional divisors which do not satisfy either of the previous conditions. Note that, by definition of a plt blow-up, every p-exceptional divisor maps to a canonical centre. Thus, since P is the only closed point in C around which
$F_j$
 are all the other exceptional divisors which do not satisfy either of the previous conditions. Note that, by definition of a plt blow-up, every p-exceptional divisor maps to a canonical centre. Thus, since P is the only closed point in C around which 
 ${\mathcal F}$
 is not terminal, it follows that the centre of
${\mathcal F}$
 is not terminal, it follows that the centre of 
 $F_j$
 is not contained in C.
$F_j$
 is not contained in C.
 Since 
 ${\mathcal F}$
 admits canonical singularities, we have that
${\mathcal F}$
 admits canonical singularities, we have that 
 $K_{\mathcal G}=p^{*}K_{\mathcal F}$
 and Lemma 2.6 implies that
$K_{\mathcal G}=p^{*}K_{\mathcal F}$
 and Lemma 2.6 implies that 
 ${\operatorname {Exc} \, p}$
 is
${\operatorname {Exc} \, p}$
 is 
 $\mathcal G$
-invariant. It follows that
$\mathcal G$
-invariant. It follows that 
 $K_{\mathcal G}\vert _{G_k}$
 is not pseudoeffective for all k, that
$K_{\mathcal G}\vert _{G_k}$
 is not pseudoeffective for all k, that 
 $K_{\mathcal G}\vert _{E_\ell } \equiv 0$
 for all
$K_{\mathcal G}\vert _{E_\ell } \equiv 0$
 for all 
 $\ell $
 and
$\ell $
 and 
 $K_{\mathcal G}\vert _{F_j}$
 is numerically trivial over X for all j.
$K_{\mathcal G}\vert _{F_j}$
 is numerically trivial over X for all j.
 By Proposition 8.1, we may run a 
 $K_{\mathcal G}$
-MMP which only contracts/flips curves which are trivial with respect to
$K_{\mathcal G}$
-MMP which only contracts/flips curves which are trivial with respect to 
 $p^{*}H_R$
. This MMP will therefore be an MMP over Z, denote it by
$p^{*}H_R$
. This MMP will therefore be an MMP over Z, denote it by 
 $\psi \colon Y \dashrightarrow Y^{+}$
. We observe the following facts:
$\psi \colon Y \dashrightarrow Y^{+}$
. We observe the following facts: 
- 
•  $\psi $
 is an isomorphism in a neighbourhood of a general fibre of the induced morphism $\psi $
 is an isomorphism in a neighbourhood of a general fibre of the induced morphism $F_j \rightarrow p(F_j)$
. $F_j \rightarrow p(F_j)$
.
- 
•  $\psi $
 contracts all the divisors $\psi $
 contracts all the divisors $G_k$
. Indeed, by Lemma 8.7 if $G_k$
. Indeed, by Lemma 8.7 if $Y_i\dashrightarrow Y_{i+1}$
 is some intermediate step of the MMP, $Y_i\dashrightarrow Y_{i+1}$
 is some intermediate step of the MMP, $\mathcal G_i$
 is the induced foliation on $\mathcal G_i$
 is the induced foliation on $Y_i$
 and $Y_i$
 and $G^i_k \neq 0$
 is the strict transform of $G^i_k \neq 0$
 is the strict transform of $G_k$
 on $G_k$
 on $Y_i$
 then $Y_i$
 then $K_{\mathcal G_i}\vert _{G^i_k}$
 is not pseudoeffective and so $K_{\mathcal G_i}\vert _{G^i_k}$
 is not pseudoeffective and so $\psi $
 must eventually contract $\psi $
 must eventually contract $G_k$
. $G_k$
.
- 
•  $\psi $
 contracts all the $\psi $
 contracts all the $E_\ell $
. Indeed, again by Lemma 8.7, if $E_\ell $
. Indeed, again by Lemma 8.7, if $Y_i \dashrightarrow Y_{i+1}$
 is some intermediate step of the MMP, $Y_i \dashrightarrow Y_{i+1}$
 is some intermediate step of the MMP, $\mathcal G_i$
 is the induced foliation on $\mathcal G_i$
 is the induced foliation on $Y_i$
 and $Y_i$
 and $E^i_\ell \neq 0$
 is the strict transform of $E^i_\ell \neq 0$
 is the strict transform of $E_\ell $
 on $E_\ell $
 on $Y_i$
 then either $Y_i$
 then either $Y \dashrightarrow Y_i$
 is an isomorphism in a neighbourhood of $Y \dashrightarrow Y_i$
 is an isomorphism in a neighbourhood of $E_\ell $
, in which case $E_\ell $
, in which case $K_{\mathcal G_i}\vert _{E^i_\ell } \equiv 0$
, or $K_{\mathcal G_i}\vert _{E^i_\ell } \equiv 0$
, or $Y \dashrightarrow Y_i$
 is not an isomorphism near $Y \dashrightarrow Y_i$
 is not an isomorphism near $E_\ell $
. In the latter case, if we choose i to be the smallest positive integer such that $E_\ell $
. In the latter case, if we choose i to be the smallest positive integer such that is not an isomorphism near is not an isomorphism near $E_\ell $
, then it follows that $E_\ell $
, then it follows that $K_{\mathcal G_{i}}\vert _{E^{i}_\ell }$
 is not pseudo-effective and arguing as in (2), we see that $K_{\mathcal G_{i}}\vert _{E^{i}_\ell }$
 is not pseudo-effective and arguing as in (2), we see that $\psi $
 contracts $\psi $
 contracts $E_\ell $
. Thus, our claim follows if we can show that for all $E_\ell $
. Thus, our claim follows if we can show that for all $\ell $
 there exists an $\ell $
 there exists an $i_\ell $
 such that $i_\ell $
 such that $Y \dashrightarrow Y_{i_\ell }$
 is not an isomorphism near $Y \dashrightarrow Y_{i_\ell }$
 is not an isomorphism near $E_\ell $
. This, however, follows from the fact that each connected component of $E_\ell $
. This, however, follows from the fact that each connected component of $\sum E_\ell $
 has nonempty intersection either with one of the divisor $\sum E_\ell $
 has nonempty intersection either with one of the divisor $G_k$
 or with every irreducible component in $G_k$
 or with every irreducible component in $p^{-1}(C)$
 which is a curve dominating an irreducible component of C. Our claim then follows by proceeding by induction on the number of divisors $p^{-1}(C)$
 which is a curve dominating an irreducible component of C. Our claim then follows by proceeding by induction on the number of divisors $E_\ell $
. $E_\ell $
.
 Next, write 
 $K_Y = \pi ^{*}K_X +\sum a_jF_j +H$
 where H is supported on the
$K_Y = \pi ^{*}K_X +\sum a_jF_j +H$
 where H is supported on the 
 $E_\ell $
 and
$E_\ell $
 and 
 $G_k$
. Since X is klt we may find an
$G_k$
. Since X is klt we may find an 
 $\epsilon>0$
 such that
$\epsilon>0$
 such that 
 $a_j> -(1-\epsilon )$
 for all j. Let
$a_j> -(1-\epsilon )$
 for all j. Let 
 $F^{+}_j = \psi _{*}F_j$
 and notice that
$F^{+}_j = \psi _{*}F_j$
 and notice that 
 $F^{+}_j \neq 0$
 for all j. Observe that we still have morphisms
$F^{+}_j \neq 0$
 for all j. Observe that we still have morphisms 
 $F^{+}_j \rightarrow p(F_j)$
 and that
$F^{+}_j \rightarrow p(F_j)$
 and that 
 $K_{\mathcal G^{+}}\vert _{F^{+}_j}$
 is numerically trivial over the generic point of
$K_{\mathcal G^{+}}\vert _{F^{+}_j}$
 is numerically trivial over the generic point of 
 $p(F_j)$
.
$p(F_j)$
.
 By the last property in Theorems 6.2 and 6.5 we know that 
 $(Y^{+}, \sum F^{+}_j)$
 is log canonical. We may therefore run a
$(Y^{+}, \sum F^{+}_j)$
 is log canonical. We may therefore run a 
 $(K_{Y^{+}}+\sum F^{+}_j)$
-MMP which only contracts/flips curves which are trivial with respect to
$(K_{Y^{+}}+\sum F^{+}_j)$
-MMP which only contracts/flips curves which are trivial with respect to 
 $K_{\mathcal G^{+}}$
 and
$K_{\mathcal G^{+}}$
 and 
 $\psi _{*}p^{*}H_R$
, call this MMP
$\psi _{*}p^{*}H_R$
, call this MMP 
 $\rho \colon Y^{+} \dashrightarrow X^{+}$
. Observe that this will again be an MMP over Z and that the following hold:
$\rho \colon Y^{+} \dashrightarrow X^{+}$
. Observe that this will again be an MMP over Z and that the following hold: 
- 
1.  $\rho _{*}F^{+}_j = 0$
 for all j, in particular, $\rho _{*}F^{+}_j = 0$
 for all j, in particular, $f^{+}\colon X^{+} \rightarrow Z$
 is a small morphism. $f^{+}\colon X^{+} \rightarrow Z$
 is a small morphism.
- 
2. Set  ${\mathcal F}^{+} = \rho _{*}\mathcal G^{+}$
. Then ${\mathcal F}^{+} = \rho _{*}\mathcal G^{+}$
. Then $K_{{\mathcal F}^{+}}$
 is nef over Z. $K_{{\mathcal F}^{+}}$
 is nef over Z.
 We claim that 
 $f^{+}\colon X^{+} \rightarrow Z$
 is the desired flip. Let
$f^{+}\colon X^{+} \rightarrow Z$
 is the desired flip. Let 
 $\Sigma _1,\dots ,\Sigma _\ell $
 be the irreducible components of
$\Sigma _1,\dots ,\Sigma _\ell $
 be the irreducible components of 
 ${\operatorname {Exc} \, f^{+}}$
.
${\operatorname {Exc} \, f^{+}}$
.
Claim 8.9. 
 $[\Sigma _i]$
 all span the same extremal ray
$[\Sigma _i]$
 all span the same extremal ray 
 $R^{+} \subset \overline {\mathrm {NE}}(X^{+})$
.
$R^{+} \subset \overline {\mathrm {NE}}(X^{+})$
.
Proof of Claim.
 Without loss of generality, we may assume that 
 $K_X$
 is ample over Z. Otherwise, we would be able to realise the flipping contraction and flip as a consequence of the fact that R is
$K_X$
 is ample over Z. Otherwise, we would be able to realise the flipping contraction and flip as a consequence of the fact that R is 
 $(K_X+ D)$
-negative for some suitable
$(K_X+ D)$
-negative for some suitable 
 ${\mathbb Q}$
-divisor D such that
${\mathbb Q}$
-divisor D such that 
 $(X, D)$
 is klt.
$(X, D)$
 is klt.
 Suppose for the sake of contradiction that the curves 
 $\Sigma _1,\dots ,\Sigma _\ell $
 do not all span the same extremal ray in
$\Sigma _1,\dots ,\Sigma _\ell $
 do not all span the same extremal ray in 
 $\overline {NE}(X^{+})$
. Let
$\overline {NE}(X^{+})$
. Let 
 $\rho \colon X^{+} \dashrightarrow W$
 be the birational contraction obtained by running a
$\rho \colon X^{+} \dashrightarrow W$
 be the birational contraction obtained by running a 
 $K_{X^{+}}$
-MMP which only contracts/flips which are trivial with respect to the strict transform of
$K_{X^{+}}$
-MMP which only contracts/flips which are trivial with respect to the strict transform of 
 $H_R$
. Observe that X is the log canonical model of W over Z, and so we have a morphism
$H_R$
. Observe that X is the log canonical model of W over Z, and so we have a morphism 
 $W \rightarrow X$
 which is small. However, X is
$W \rightarrow X$
 which is small. However, X is 
 ${\mathbb Q}$
-factorial and so
${\mathbb Q}$
-factorial and so 
 $W \rightarrow X$
 is necessarily an isomorphism.
$W \rightarrow X$
 is necessarily an isomorphism.
 We make the following general observation. Suppose that 
 $\phi \colon W_0 \dashrightarrow W_1$
 is a
$\phi \colon W_0 \dashrightarrow W_1$
 is a 
 $K_{W_0}$
-flip which flips a curve
$K_{W_0}$
-flip which flips a curve 
 $C_1$
 and where
$C_1$
 and where 
 $C_1^{+}$
 is the flipped curve. Suppose moreover there exists a curve
$C_1^{+}$
 is the flipped curve. Suppose moreover there exists a curve 
 $C_2 \subset W_0$
 such that
$C_2 \subset W_0$
 such that 
 $C_2$
 does not lie on
$C_2$
 does not lie on 
 ${\mathbb R}_+[C_1]$
 and let
${\mathbb R}_+[C_1]$
 and let 
 $C^{+}_2 = \phi _{*}C_2$
. Then
$C^{+}_2 = \phi _{*}C_2$
. Then 
 $C_2^{+}$
 and
$C_2^{+}$
 and 
 $C_1^{+}$
 do not lie on the same ray. Indeed, let M be a supporting hyperplane to
$C_1^{+}$
 do not lie on the same ray. Indeed, let M be a supporting hyperplane to 
 ${\mathbb R}_+[C_1]$
 and let
${\mathbb R}_+[C_1]$
 and let 
 $M' = \phi _{*}M$
. Since M is the pull back of a divisor on the base of the flip we have that
$M' = \phi _{*}M$
. Since M is the pull back of a divisor on the base of the flip we have that 
 $0< M\cdot C_2=M'\cdot C_2^{+}$
 and
$0< M\cdot C_2=M'\cdot C_2^{+}$
 and 
 $0 = M\cdot C_1= M'\cdot C^{+}_1$
, as required.
$0 = M\cdot C_1= M'\cdot C^{+}_1$
, as required.
 By inductively applying the above observation we see that if 
 $\Sigma ^{+}_i$
 denotes the strict transforms (resp. flipped curve) of
$\Sigma ^{+}_i$
 denotes the strict transforms (resp. flipped curve) of 
 $\Sigma _i$
, then not all the
$\Sigma _i$
, then not all the 
 $\Sigma ^{+}_i$
 span the same ray in
$\Sigma ^{+}_i$
 span the same ray in 
 $\overline {NE}(X)$
. However, on the other hand, the
$\overline {NE}(X)$
. However, on the other hand, the 
 $\Sigma ^{+}_i$
 are all f-exceptional and so all span R, a contradiction.
$\Sigma ^{+}_i$
 are all f-exceptional and so all span R, a contradiction.
 Observe that the claim implies that 
 $K_{{\mathcal F}^{+}}$
 is ample over Z. Indeed, by construction
$K_{{\mathcal F}^{+}}$
 is ample over Z. Indeed, by construction 
 $K_{{\mathcal F}^{+}}$
 is nef over Z and it is necessarily not numerically trivial over Z and so
$K_{{\mathcal F}^{+}}$
 is nef over Z and it is necessarily not numerically trivial over Z and so 
 $K_{{\mathcal F}^{+}}\cdot \Sigma _i>0$
 for all i as required.
$K_{{\mathcal F}^{+}}\cdot \Sigma _i>0$
 for all i as required.
 Next, observe that either 
 $K_X$
 is nef over Z or
$K_X$
 is nef over Z or 
 $-K_X$
 is nef over Z. If
$-K_X$
 is nef over Z. If 
 $-K_X$
 is nef over Z then, since f is birational, it is also big over Z and we may write
$-K_X$
 is nef over Z then, since f is birational, it is also big over Z and we may write 
 $-K_X\sim _{{\mathbb Q},f} A+E$
 where A is an ample
$-K_X\sim _{{\mathbb Q},f} A+E$
 where A is an ample 
 ${\mathbb Q}$
-divisor over Z and
${\mathbb Q}$
-divisor over Z and 
 $E\ge 0$
. Thus, if
$E\ge 0$
. Thus, if 
 $D:=\epsilon E$
 for some sufficiently small rational number
$D:=\epsilon E$
 for some sufficiently small rational number 
 $\epsilon>0$
, then
$\epsilon>0$
, then 
 $D \geq 0$
,
$D \geq 0$
, 
 $-(K_X+D)$
 is ample over Z and
$-(K_X+D)$
 is ample over Z and 
 $(X, D)$
 is klt. Thus, the contraction of R can be realised as a
$(X, D)$
 is klt. Thus, the contraction of R can be realised as a 
 $(K_X+D)$
-negative contraction, and so Z is projective. If
$(K_X+D)$
-negative contraction, and so Z is projective. If 
 $K_X$
 is nef over Z then
$K_X$
 is nef over Z then 
 $-K_{X^{+}}$
 is nef over Z and arguing as in the previous case we may conclude that Z is projective. In particular,
$-K_{X^{+}}$
 is nef over Z and arguing as in the previous case we may conclude that Z is projective. In particular, 
 $\rho (X/Z)=\rho (X^{+}/Z)=1$
 and our claims follow.
$\rho (X/Z)=\rho (X^{+}/Z)=1$
 and our claims follow.
Theorem 8.10. Let X be a 
 ${\mathbb Q}$
-factorial projective threefold with klt singularities and let
${\mathbb Q}$
-factorial projective threefold with klt singularities and let 
 $({\mathcal F}, \Delta )$
 be a log canonical foliated pair of rank one on X. Assume that
$({\mathcal F}, \Delta )$
 be a log canonical foliated pair of rank one on X. Assume that 
 $K_{\mathcal F}+\Delta $
 is pseudo-effective.
$K_{\mathcal F}+\Delta $
 is pseudo-effective.
 Then 
 $({\mathcal F}, \Delta )$
 admits a minimal model.
$({\mathcal F}, \Delta )$
 admits a minimal model.
Proof. If 
 $K_{\mathcal F}+\Delta $
 is nef there is nothing to show. So we may assume that
$K_{\mathcal F}+\Delta $
 is nef there is nothing to show. So we may assume that 
 $K_{\mathcal F}+\Delta $
 is not nef. Let R be a
$K_{\mathcal F}+\Delta $
 is not nef. Let R be a 
 $(K_{\mathcal F}+\Delta )$
-negative extremal ray and let
$(K_{\mathcal F}+\Delta )$
-negative extremal ray and let 
 $H_R$
 be a supporting hyperplane to R. We want to show that the contraction, and possibly the flip, associated to R exists. Assuming this claim, we may argue as in Proposition 8.1 to conclude that a minimal model exists.
$H_R$
 be a supporting hyperplane to R. We want to show that the contraction, and possibly the flip, associated to R exists. Assuming this claim, we may argue as in Proposition 8.1 to conclude that a minimal model exists.
 Arguing as in Proposition 8.1, we may again reduce to the case where we have a 
 ${\mathcal F}$
-invariant curve C spanning R which is
${\mathcal F}$
-invariant curve C spanning R which is 
 $K_{\mathcal F}$
-negative. By Theorem 2.30, we have that C is not contained in
$K_{\mathcal F}$
-negative. By Theorem 2.30, we have that C is not contained in 
 ${\operatorname {Sing} {\mathcal F}}$
 and Proposition 2.13 implies that there exists at most one closed point
${\operatorname {Sing} {\mathcal F}}$
 and Proposition 2.13 implies that there exists at most one closed point 
 $P\in C$
 at which
$P\in C$
 at which 
 ${\mathcal F}$
 is singular.
${\mathcal F}$
 is singular.
 Suppose that 
 ${\mathcal F}$
 has simple singularities in a neighbourhood of C. Then Theorem 6.2 and Theorem 6.5 imply that the contraction, and possibly the flip, of R exists.
${\mathcal F}$
 has simple singularities in a neighbourhood of C. Then Theorem 6.2 and Theorem 6.5 imply that the contraction, and possibly the flip, of R exists.
 Now suppose that 
 ${\mathcal F}$
 is log canonical and not canonical at P. In this case, Corollary 8.5 implies that
${\mathcal F}$
 is log canonical and not canonical at P. In this case, Corollary 8.5 implies that 
 ${\operatorname {loc} \, R}=X$
, a contradiction.
${\operatorname {loc} \, R}=X$
, a contradiction.
 Now suppose that 
 ${\mathcal F}$
 is canonical but not simple at P. If
${\mathcal F}$
 is canonical but not simple at P. If 
 ${\operatorname {loc} \, R}$
 is a divisor, then Theorem 6.2 implies the existence of a contraction. Thus, we may assume that
${\operatorname {loc} \, R}$
 is a divisor, then Theorem 6.2 implies the existence of a contraction. Thus, we may assume that 
 ${\operatorname {loc} \, R}$
 is a curve and the claim follows from Theorem 8.8.
${\operatorname {loc} \, R}$
 is a curve and the claim follows from Theorem 8.8.
Acknowledgements
We would like to thank Florin Ambro, Federico Bongiorno, Mengchu Li, Jihao Liu, James McKernan and Michael McQuillan for many useful discussions. We are grateful to the referee for carefully reading the paper and for several useful suggestions and corrections.
Competing interest
The authors have no competing interests to declare.
Financial support
The first author is partially supported by a Simons collaboration grant. The second author is partially funded by EPSRC grant EP/X029387/1.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 is not an isomorphism near
 is not an isomorphism near  
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
