1 Introduction

A widely accepted fact in the scientific community is the accelerated expansion of the universe which is strongly supported by observations [1,2,3,4,5,6,7]. Since the General Relativity theory (GR) does not adequately explain this phenomenon, two ways have been investigated: (i) exotic component of the matter, called dark energy, has been considered, or (ii) alternative models to the GR have been proposed. In this paper, the study developed considers the second case, i.e. modified gravity theory. The f(R) theory is the simplest and most popular way to modify GR [8]. Several studies have already been done on this type of theory, such as the Newtonian limit [9], gravitational stability [10], cosmological evolution of solar-system tests [11], inflation [12], among others. Another theory is f(RT) gravity [13], which is a generalization of f(R) theory. In this case, the Ricci scalar R in the Hilbert-Einstein action is changed by some function dependent on the Ricci scalar R and the trace of the energy–momentum tensor T. The dependence on T can be induced by imperfect fluids or conformal anomalies arising from quantum effects [14, 15]. This gravitational theory has also been considered in the context of Palatini formalism. In general, Palatini-type theories are very attractive as they present a good analysis of the initial and current dynamics of the universe [16,17,18].

In the present work, an extension of f(RT) gravity is proposed. The action is described by a function \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) where \(R_{\mu \nu }\) and \(T^{\mu \nu }\) are the Ricci tensor and the energy–momentum tensor, respectively. The stability of this theory has been investigated in various contexts, such as, stability analysis of stellar radiating filaments [19], stability of cylindrical stellar model [20] and stability of Einstein Universe [21]. Furthermore, \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) gravity has already been investigated in \(\Lambda \)CDM Universe [22], cosmic evolution in the background of non-minimal coupling [23], among others. However, study about causality and its violation has not been investigated in this theory. This is an important test to be performed by all alternative gravitational theories, since GR allows for such a discussion.

To investigate the causality problem in \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) gravity the Gödel-type metric [24] is considered. It is a generalization of the Gödel metric proposed by Kurt Gödel, in 1949 [25]. It is the first exact solution for the GR with rotating matter. This metric leads to the possibility of Closed Timelike Curves (CTCs). These CTCs are not exclusive to the Gödel solution, they appear in other cosmological models that have some hyperbolic or spherical symmetry, such as Kerr black hole, Van-Stockum model, cosmic string, among others [26, 27]. The Gödel-type metric provides more information about the violation of causality. It allows the calculation of a critical radius \(r_c\) that defines causal and non-causal regions. The causality problem has already been studied in several different models. In [28] it shows that Gödel and type-Gödel are solutions to the f(R) theory, as well as in [29] that both Gödel and type-Gödel are solutions to the k-essence theory. Causality is also discussed in Chern–Simons gravity [30, 31], f(T) gravity [32], f(RT) gravity [33], bumblebee gravity [34], Horava–Lifshitz gravity [35], Brans–Dicke theory [36] and f(RQ) gravity [37]. More recently causality is discuss in \(f(R,\phi ,X)\) and f(RT) Palatini gravity [38, 39]. In this paper, the main objective is to investigate whether the \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) gravity allows for causality violation. The analysis is divided into two parts, first the content of matter is just a perfect fluid and then the content of matter is a perfect fluid plus a scalar field.

The present paper is organized as follows. In Sect. 2, \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) gravity is introduced and the field equations are derived. In Sect. 3, the Gödel-type metric is discussed. Considering a perfect fluid as matter content, the standard Gödel solution is obtained. In Sect. 4, the problem of causality is verified for a perfect fluid plus a scalar field as the content of matter. This content of matter leads to a causal Gödel-type solution. In Sect. 5, remarks and conclusions are presented.

2 \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) gravity

In this section, the gravitational field equations for \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) gravity are obtained. The action that describes this theory is

$$\begin{aligned} S=\frac{1}{2\kappa ^2}\int d^4x \sqrt{-g} \left[ f(R,T,R_{\mu \nu }T^{\mu \nu }) + {\mathcal {L}}_m\right] , \end{aligned}$$
(1)

where \(\kappa ^2 = 8\pi G\), g is the determinant of the metric tensor \(g_{\mu \nu }\), R is the Ricci scalar, \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) is a function that depends on the Ricci scalar, the trace of energy–momentum and the tensor product \(R_{\mu \nu }T^{\mu \nu }\), respectively, and \({\mathcal {L}}_m\) is the matter Lagrangian.

Varying the action (1) in relation to the metric \(g^{\mu \nu }\) leads to

$$\begin{aligned} \delta S= & {} \frac{1}{2\kappa ^2} \int d^4x \nonumber \\{} & {} \times \left[ \delta \sqrt{-g} f + \sqrt{-g} \left( f_R \delta R + f_T\delta T + f_Q \delta R_{\mu \nu }T^{\mu \nu }\right) \right] \nonumber \\{} & {} + \int d^4x \delta \left( \sqrt{-g} {\mathcal {L}}_m\right) , \end{aligned}$$
(2)

with \(f_R \equiv \frac{\partial f}{\partial R}\), \(f_T \equiv \frac{\partial f}{\partial T}\) and \(f_Q \equiv \frac{\partial f}{\partial Q}\), where \(Q \equiv R_{\mu \nu }T^{\mu \nu }\).

Considering the definition of the energy–momentum tensor, we get

$$\begin{aligned} T_{\mu \nu } = \frac{-2}{\sqrt{-g}} \frac{\partial \left( \sqrt{-g}{\mathcal {L}}_m\right) }{\partial g^{\mu \nu }} = -2 \frac{\partial {\mathcal {L}}_m}{\partial g^{\mu \nu }} + g_{\mu \nu } {\mathcal {L}}_m, \end{aligned}$$
(3)

where \({\mathcal {L}}_m\) is assumed to be dependent only on the metric and not on the first derivatives. The variation in the energy–momentum tensor trace is given as

$$\begin{aligned} \delta T&= \delta \left( g^{\alpha \beta } T_{\alpha \beta }\right) , \end{aligned}$$
(4)
$$\begin{aligned}&= \left( \frac{\delta g^{\alpha \beta }}{\delta g^{\mu \nu }}\right) T_{\alpha \beta } + \frac{\delta T_{\alpha \beta }}{\delta g^{\mu \nu }} g^{\alpha \beta }, \end{aligned}$$
(5)
$$\begin{aligned}&=\left( T_{\mu \nu } + \Theta _{\mu \nu }\right) , \end{aligned}$$
(6)

with \(\Theta _{\mu \nu }\) being a tensor defined as

$$\begin{aligned} \Theta _{\mu \nu } \equiv \frac{\delta T_{\alpha \beta }}{\delta g^{\mu \nu }} g^{\alpha \beta }. \end{aligned}$$
(7)

Using Eq. (3) this tensor can be written as

$$\begin{aligned} \Theta _{\mu \nu } = -2T_{\mu \nu } + g_{\mu \nu } {\mathcal {L}}_m -2 g^{\alpha \beta } \frac{\partial ^2 {\mathcal {L}}_m}{\partial g^{\mu \nu }\partial g^{\alpha \beta }}. \end{aligned}$$
(8)

The variations \(\delta R\) and \(\delta T\) are known [40]. They are given as

$$\begin{aligned}{} & {} f_R \delta R + f_T \delta T \nonumber \\{} & {} \quad = \left[ R_{\mu \nu }f_R + \left( g_{\mu \nu } \Box - \nabla _ \mu \nabla _ \nu \right) f_R + \left( T_{\mu \nu } + \Theta _{\mu \nu }\right) f_T\right] \delta g^{\mu \nu }. \nonumber \\ \end{aligned}$$
(9)

The variation corresponding to the term \(R_{\mu \nu }T^{\mu \nu }\) is composed of two parts, i.e.

$$\begin{aligned}{} & {} f_Q T^{\mu \nu }\delta R_{\mu \nu }\nonumber \\{} & {} \quad = \left[ \frac{1}{2} \Box (f_Q T_{\mu \nu }) + g_{\mu \nu } \nabla _\alpha \nabla _\beta (f_Q T^{\alpha \beta }) - \nabla _\alpha \nabla _\nu (f_Q T^\alpha _{\mu })\right] \nonumber \\ \end{aligned}$$
(10)

and

$$\begin{aligned}{} & {} f_Q R_{\mu \nu }\delta T^{\mu \nu }\nonumber \\{} & {} \quad = f_Q \left[ -G_{\mu \nu } {\mathcal {L}}_m - \frac{1}{2} RT_{\mu \nu } + 2R^\alpha _{\mu } T_{\alpha \nu } - 2R^{\alpha \beta } \frac{\delta ^2 {\mathcal {L}}_m}{\delta g^{\mu \nu }\delta g^{\alpha \beta }}\right] \delta g^{\mu \nu }. \nonumber \\ \end{aligned}$$
(11)

Considering the perfect fluid as matter content, it is assumed that the Lagrangian of the matter is \({\mathcal {L}}_m = -p\). This choice implies that

$$\begin{aligned} \frac{\delta ^2 {\mathcal {L}}_m}{\delta g^{\mu \nu }\delta g^{\alpha \beta }} =0. \end{aligned}$$
(12)

Then the tensor \(\Theta _{\mu \nu }\) becomes

$$\begin{aligned} \Theta _{\mu \nu } = -2T_{\mu \nu } - pg_{\mu \nu }. \end{aligned}$$
(13)

Taking these results to Eq. (2), the complete set of the field equations is given by

$$\begin{aligned}{} & {} R_{\mu \nu } f_R -\frac{1}{2} g_{\mu \nu } f + \left( g_{\mu \nu } \Box - \nabla _\mu \nabla _\nu \right) f_R + f_T\left( T_{\mu \nu } + \Theta _{\mu \nu }\right) \nonumber \\{} & {} \quad +\frac{1}{2} \left( \Box (T_{\mu \nu } f_Q) + g_{\mu \nu } \nabla _\alpha \nabla _\beta (T^{\alpha \beta } f_Q) \right) \nonumber \\{} & {} \quad - \nabla _\alpha (\nabla _{(\mu } T^{\alpha }_{\nu )}f_Q) + \Xi _{\mu \nu } f_Q = \kappa ^2 T_{\mu \nu }, \end{aligned}$$
(14)

with

$$\begin{aligned} \Xi _{\mu \nu } = -G_{\mu \nu } p -\frac{1}{2}RT_{\mu \nu } + 2R^{\alpha }_{(\mu }T_{\nu )\alpha }. \end{aligned}$$
(15)

In the next section, these field equations will be studied considering the cosmological background described by the Gödel-type solutions.

3 Gödel-type metric and perfect fluid

Here the modified Einstein equations are solved considering the Gödel-type metric and a perfect fluid as the content of matter. Before solving the field equations obtained in the previous section, the main characteristics of this solution are presented.

The Gödel-type solution is described by the line element

$$\begin{aligned} ds^2= & {} -dt^2 - 2H(r) dtd\phi + dr^2 \nonumber \\{} & {} \quad + \left( D^2(r)-H^2(r)\right) d\phi ^2 + dz^2, \end{aligned}$$
(16)

where H(r) and D(r) are functions that satisfies the relations

$$\begin{aligned} \frac{H'(r)}{D(r)}=2\omega \quad \textrm{and}\quad \frac{D''(r)}{D(r)}=m^2. \end{aligned}$$
(17)

The prime implies the derivative with respect to r. It is important to note that \(\omega \) and \(m^2\) are free parameters that characterize all properties of the metric [24, 41]. This is a generalization of the solution proposed by Gödel. The Gödel metric is an exact solution of Einstein equations for a homogeneous rotating universe. This solution leads to the possibility of Closed Time-like Curves (CTCs) that allow violation of causality. As an immediate consequence, this makes time travel theoretically possible in this space-time. For a more detailed investigation of causality, as well as its violation, the Gödel-type solution is used. From the parameters \(\omega \) and \(m^2\) three different classes are defined, i.e. hyperbolic, trigonometric and linear class [24]. Here only the hyperbolic class is considered. For this class, the functions H(r) and D(r) are given as

$$\begin{aligned} H(r)&= \frac{4\omega }{m^2} senh^2 \left( \frac{mr}{2} \right) , \end{aligned}$$
(18)
$$\begin{aligned} D(r)&= \frac{1}{m} senh(mr). \end{aligned}$$
(19)

An important quantity that is calculated from Gödel-type solution is the critical radius, beyond which CTCs exist. It is defined as

$$\begin{aligned} r_c = \frac{2}{m} senh ^{-1} \left( \frac{4\omega ^2}{m^2}-1\right) ^{-1}. \end{aligned}$$
(20)

From this, two relationships between the parameters \(\omega ^2\) and \(m^2\) are interesting. (i) \(m^2=2\omega ^2\) that leads to the Gödel solution with a finite critical radius given by

$$\begin{aligned} r_c = \frac{2}{m} senh ^{-1} \left( 1\right) . \end{aligned}$$
(21)

As a consequence, non-causal regions are allowed. And (ii) \(m^2=4\omega ^2\) implies an infinite critical radius. In other words, this condition leads to a causal solution.

For simplicity, a new basis (a local Lorentz co-frame) is chosen, such that the metric becomes [24],

$$\begin{aligned} ds^2 = \eta _{AB} \theta ^A \theta ^B = (\theta ^{(0)})^2 - (\theta ^{(1)})^2 - (\theta ^{(2)})^2 - (\theta ^{(3)})^2, \nonumber \\ \end{aligned}$$
(22)

where \(\eta _{AB}\) is the Minkowski metric and \( \theta ^A = e^A\ _{\mu }\ dx^\mu \) with

$$\begin{aligned} \theta ^{(0)}&= dt + H(r)d\phi ,\nonumber \\ \theta ^{(1)}&= dr, \nonumber \\ \theta ^{(2)}&= D(r)d\phi ,\nonumber \\ \theta ^{(3)}&= dz, \end{aligned}$$
(23)

and \(e^A\ _{\mu }\) is the tetrad that satisfies the relation \( e^A\,_\mu e^\mu \,_B=\delta ^A_B\). Here the capital Latin letters label Lorentz indices and run from 0 to 3.

In the local Lorentz co-frame (23), the non-zero Ricci tensor components are

$$\begin{aligned} R_{(0)(0)}= & {} \frac{1}{2} \left( \frac{H'}{D}\right) ^2, \nonumber \\ R_{(1)(1)}= & {} R_{(2)(2)} = R_{(0)(0)} - \frac{D''}{D}. \end{aligned}$$
(24)

It is interesting to note that all components are constants, i.e.

$$\begin{aligned} R_{(0)(0)} = 2\omega ^2, \ R_{(1)(1)} = \ R_{(2)(2)}= 2\omega ^2 - m^2. \end{aligned}$$
(25)

The non-vanishing components of the Einstein tensor in flat (local) space-time take the form,

$$\begin{aligned} G_{(0)(0)}&= 3\omega ^2-m^2, \end{aligned}$$
(26)
$$\begin{aligned} G_{(1)(1)}&= \omega ^2, \end{aligned}$$
(27)
$$\begin{aligned} G_{(2)(2)}&= \omega ^2, \end{aligned}$$
(28)
$$\begin{aligned} G_{(3)(3)}&= m^2-\omega ^2, \end{aligned}$$
(29)

where \(G_{AB}=e^\mu _A e^\nu _B G_{\mu \nu }\) has been used. The Ricci scalar is \(R = 2(m^2 - w^2)\).

Assuming that the content of matter is a perfect fluid, the energy–momentum tensor that describes it is

$$\begin{aligned} T_{AB}=(\rho +p)u_A u_B-p\eta _{AB}, \end{aligned}$$
(30)

with \(u_A = (1,0,0,0)\) being the four-velocity of fluid. Thus, in flat space-time the tensor given in Eq. (13) becomes

$$\begin{aligned} \Theta _{AB} = -2T_{AB} - p\eta _{AB}. \end{aligned}$$
(31)

Taking the Minkowski metric as

$$\begin{aligned} \eta _{AB} = \left( \begin{array}{cccc} 1 &{} 0 &{} 0 &{} 0 \\ 0 &{} -1 &{} 0 &{} 0 \\ 0 &{} 0 &{} -1 &{} 0 \\ 0 &{} 0 &{} 0 &{} -1 \end{array}\right) , \end{aligned}$$
(32)

the components of the tensors (30) and (31) are

$$\begin{aligned} T_{AB} =\left( \begin{array}{cccc} \rho &{} 0 &{} 0 &{} 0 \\ 0 &{} p &{} 0 &{} 0 \\ 0 &{} 0 &{} p &{} 0 \\ 0 &{} 0 &{} 0 &{} p \end{array}\right) ;\ \ \Theta _{AB} = \left( \begin{array}{cccc} -2\rho - p &{} 0 &{} 0 &{} 0 \\ 0 &{} -p &{} 0 &{} 0 \\ 0 &{} 0 &{} -p &{} 0 \\ 0 &{} 0 &{} 0 &{} -p \end{array}\right) . \nonumber \\ \end{aligned}$$
(33)

The trace of \(T_{AB}\) and \(\Theta _{AB}\) are \(T= \rho -3p\) and \(\Theta = 2(p-\rho )\). Using the components of the energy–momentum tensor and the Ricci tensor, the components of \(Q=R_{AB}T^{AB}\) are given as

$$\begin{aligned} Q = \left( \begin{matrix}2 \omega ^{2} \rho &{} 0 &{} 0 &{} 0\\ 0 &{} \left( 2 \omega ^{2}- m^{2} \right) p &{} 0 &{} 0\\ 0 &{} 0 &{} \left( 2 \omega ^{2}- m^{2} \right) p &{} 0\\ 0 &{} 0 &{} 0 &{} 0\end{matrix}\right) . \end{aligned}$$
(34)

It should be noted that the derivatives of the functions \(f_R\) and \(f_Q\) vanish since the Ricci scalar and Q are constants. Then the field equations (14) are rewritten as

$$\begin{aligned}&R_{AB} f_R \nonumber \\&\quad = \kappa ^2 T_{AB} + \frac{1}{2} \eta _{AB} f - f_T\left( T_{AB} + \Theta _{AB}\right) - \Xi _{AB} f_Q. \end{aligned}$$
(35)

Taking the trace of this equation leads to

$$\begin{aligned} R f_R = \kappa ^2 T +2 f- f_T\left( T + \Theta \right) - \Xi f_Q, \end{aligned}$$
(36)

where \(\Xi = \eta ^{AB} \Xi _{AB}\). Combining these equations we have

$$\begin{aligned} f_R G_{AB}= & {} \kappa ^2 T_{AB} - f_T\left( T_{AB} + \Theta _{AB}\right) - \Xi _{AB} f_Q \nonumber \\{} & {} -\frac{1}{2} \eta _{AB} \left[ f + \kappa ^2 T - f_T (T + \Theta ) -\Xi f_Q\right] \end{aligned}$$
(37)

with \(G_{AB} = R_{AB} - \frac{1}{2} R \eta _{AB}\) being the Einstein tensor. In order to solve the set of field equations, let us explicitly write Eq. (15) in flat space-time. Then

$$\begin{aligned}{} & {} \Xi _{AB} \nonumber \\{} & {} \quad = \left( \begin{matrix}-( 3\omega ^{2}-m^{2})p - (m^{2} - 5 \omega ^{2}) \rho &{} 0 &{} 0 &{} 0\\ 0 &{} \left( m^{2} -4 \omega ^{2}\right) p &{} 0 &{} 0\\ 0 &{} 0 &{} \left( m^{2} -4 \omega ^{2}\right) p &{} 0\\ 0 &{} 0 &{} 0 &{} -2\left( m^2-\omega ^2\right) p\end{matrix}\right) . \end{aligned}$$
(38)

As a consequence \(\Xi =\left( m^2+3\omega ^2\right) p-\left( m^2-5\omega ^2\right) \rho \).

Using these results the field equations (37) become

$$\begin{aligned}{} & {} 2f_R\left( 3\omega ^2-m^2\right) +f=\kappa ^2\left( \rho +3p\right) +f_T\left( \rho +p\right) \nonumber \\{} & {} \quad +f_Q\left[ \left( 9\omega ^2-m^2\right) p+\left( m^2-5\omega ^2\right) \rho \right] , \end{aligned}$$
(39)
$$\begin{aligned}{} & {} 2f_R\omega ^2-f =\kappa ^2\left( \rho -p\right) +f_T\left( \rho +p\right) \nonumber \\{} & {} \quad +f_Q\left[ \left( 5\omega ^2-3m^2\right) p+\left( m^2-5\omega ^2\right) \rho \right] , \end{aligned}$$
(40)
$$\begin{aligned}{} & {} 2f_R\left( m^2-\omega ^2\right) -f=\kappa ^2\left( \rho -p\right) +f_T\left( \rho +p\right) \nonumber \\{} & {} \quad +f_Q\left[ \left( 3m^2-7\omega ^2\right) p+\left( m^2-5\omega ^2\right) \rho \right] . \end{aligned}$$
(41)

Equations (40) and (41) lead to

$$\begin{aligned} \left( 2\omega ^2-m^2\right) \left( 2f_R-6pf_Q\right) =0. \end{aligned}$$
(42)

Assuming \(f_R>0\) and \(f_Q>0\), Eq. (42) gives us

$$\begin{aligned} m^2=2\omega ^2. \end{aligned}$$
(43)

This condition defines the Gödel solution, and the remaining field equations read

$$\begin{aligned} m^2f_R+f= & {} \kappa ^2\left( \rho +3p\right) +f_T\left( \rho +p\right) \nonumber \\{} & {} +f_Q\left( 7p-3\rho \right) \frac{m^2}{2}, \end{aligned}$$
(44)
$$\begin{aligned} m^2f_R-f= & {} \kappa ^2\left( \rho -p\right) +f_T\left( \rho +p\right) \nonumber \\{} & {} -f_Q\left( 3p+9\rho \right) \frac{m^2}{8}. \end{aligned}$$
(45)

Since these equations allow the Gödel solution, a critical radius, which defines regions where causality is violated, can be calculated. Then the critical radius in \(f(R,T, R_{\mu \nu }T^{\mu \nu })\) gravity is

$$\begin{aligned} r_c=2\sinh ^{-1}(1)\sqrt{\frac{2f_R-\frac{f_Q}{16}\left( 19p-39\rho \right) }{2\kappa ^2\rho +f+2f_T(\rho +p)}}. \end{aligned}$$
(46)

Note that the \(r_c\) depends on the gravity theory and the content of matter. It is important to emphasize that this quantity is obtained for any \(f(R,T, R_{\mu \nu }T^{\mu \nu })\) gravity. A similar result is obtained for other gravity theories such as f(R) and f(RT).

It is shown that for a perfect fluid as the content of matter non-causal Gödel curves are unavoidable. From this result, a natural question arises: is there any condition that leads to a causal Gödel-type solution in this gravitational theory? In the next section, such an investigation is developed.

4 Matter content: perfect fluid and scalar field

Here the content of matter is a combination of perfect fluid and scalar field [42, 43]. The main idea is to investigate the possibility of finding a causal solution in this theory. The total energy–momentum tensor that describes this combination is given as

$$\begin{aligned} T_{AB} = T_{AB}^M + T_{AB}^S, \end{aligned}$$
(47)

where \(T_{AB}^M\) and \(T_{AB}^S\) are the energy–momentum tensor of the perfect fluid and scalar field, respectively. The Lagrangian for the scalar field \(\Phi \) is

$$\begin{aligned} {\mathcal {L}}^S = \eta ^{AB} \nabla _A \Phi \nabla _B \Phi , \end{aligned}$$
(48)

and the corresponding energy–momentum tensor reads

$$\begin{aligned} T_{AB}^S=\nabla _A \phi \nabla _B \phi - \frac{1}{2} \eta _{AB}\eta ^{CD}\nabla _C \phi \nabla _D \phi . \end{aligned}$$
(49)

The energy–momentum tensor for the perfect fluid is given in Eq. (30). Then the total energy–momentum tensor is

$$\begin{aligned} T_{AB}{} & {} =\left( \rho + p\right) u_Au_B -p\eta _{AB} + \nabla _A \phi \nabla _B \phi \nonumber \\{} & {} \quad - \frac{1}{2} \eta _{AB}\eta ^{CD}\nabla _C \phi \nabla _D \phi . \end{aligned}$$
(50)

The components of the energy–momentum tensor of matter are given in Eq. (33), while to write the components associated with the scalar field it is considered \(\Phi = \epsilon z + \epsilon \), with \(\epsilon = const\). Then

$$\begin{aligned} T_{00}^S = -T_{11}^S = -T_{22}^S = T_{33}^S = \frac{\epsilon ^2}{2}. \end{aligned}$$
(51)

The trace of \(T_{AB}\) is given by

$$\begin{aligned} T=\rho -3p+\epsilon ^2. \end{aligned}$$
(52)

In the same way, the tensor \(\Theta _{AB}\) must be rewritten considering the contributions of the scalar field. Thus

$$\begin{aligned} \Theta _{AB} = \Theta _{AB}^M + \Theta _{AB}^S, \end{aligned}$$
(53)

where \(\Theta _{AB}^M\) is already known in Eq. (33) and \(\Theta _{AB}^S\) is given as

$$\begin{aligned} \Theta _{AB}^S = - T_{AB}^S + \frac{1}{2} T^S \eta _{AB}, \end{aligned}$$
(54)

with \(T^S\) being the trace of \(T_{AB}^S\).

Using the total Lagrangian

$$\begin{aligned} {\mathcal {L}}_m = {\mathcal {L}}^{PF} + {\mathcal {L}}^{S} = p - \epsilon ^2, \end{aligned}$$
(55)

where \( {\mathcal {L}}^{PF}\) and \({\mathcal {L}}^{S}\) are the Lagrangians of the perfect fluid and the scalar field, respectively, the tensor \(\Xi _{AB}\) becomes

$$\begin{aligned} \Xi _{AB}= & {} -G_{AB} p +G_{AB}\epsilon ^2 -\frac{1}{2}RT_{AB}\nonumber \\{} & {} + \eta ^{CD} R_{AD} T_{BC} + \eta ^{CD} R_{BD} T_{AC}. \end{aligned}$$
(56)

With these results, the field equations (37) are written as

$$\begin{aligned} f_R G_{AB}&= \kappa ^2 \left[ \left( \rho + p\right) u_Au_B -p\eta _{AB} + T_{AB}^S \right] - \Xi _{AB} f_Q \nonumber \\&\quad -\frac{1}{2} \left[ \kappa ^2 \left( \rho - 3p + \epsilon ^2 \right) +f \right. \nonumber \\&\quad \left. +f_T \left( \rho + p - 2\epsilon ^2 \right) - \Xi f_Q \right] \eta _{AB} \nonumber \\&\quad +f_T \left[ \left( \rho + p \right) u_Au_B - \frac{1}{2} \epsilon ^2 \eta _{AB}\right] . \end{aligned}$$
(57)

This equation leads to the following set of field equations

$$\begin{aligned}{} & {} 2f_R\left( 3\omega ^2-m^2\right) +f=\kappa ^2\left( \rho +3p\right) +f_T\left( \rho +p+\epsilon ^2\right) \nonumber \\{} & {} \quad +f_Q\left[ \left( 9\omega ^2-m^2\right) p+\left( m^2-5\omega ^2\right) \rho -2\omega ^2\epsilon ^2\right] , \end{aligned}$$
(58)
$$\begin{aligned}{} & {} 2f_R\omega ^2-f=\kappa ^2\left( \rho -p\right) +f_T\left( \rho +p-\epsilon ^2\right) \nonumber \\{} & {} \quad +f_Q\left[ \left( -3m^2+5\omega ^2\right) p+\left( m^2-5\omega ^2\right) \rho +\left( m^2-2\omega ^2\right) \epsilon ^2\right] , \nonumber \\ \end{aligned}$$
(59)
$$\begin{aligned}{} & {} 2\left( m^2-\omega ^2\right) f_R-f=\kappa ^2\left( \rho -p+2\epsilon ^2\right) +f_T\left( \rho +p-\epsilon ^2\right) \nonumber \\{} & {} \quad +f_Q\left[ \left( 3m^2-7\omega ^2\right) p+\left( m^2-5\omega ^2\right) \rho \right] . \end{aligned}$$
(60)

For simplicity, after some manipulation, these equations are rewritten as

$$\begin{aligned} \kappa ^2\epsilon ^2{} & {} =\left( m^2-2\omega ^2\right) f_R\nonumber \\{} & {} \quad +f_Q\left[ -3p\left( m^2-\omega ^2\right) +\frac{\epsilon ^2}{2}\left( m^2-2\omega ^2\right) \right] , \end{aligned}$$
(61)
$$\begin{aligned}{} & {} \kappa ^2p+\frac{1}{2}f_T\epsilon ^2=\frac{1}{2}\left( 2\omega ^2-m^2\right) f_R\nonumber \\{} & {} \quad +\frac{1}{2}f+\frac{f_Q}{4}\left[ m^2\epsilon ^2-\left( 4\omega ^2+2m^2\right) p\right] , \end{aligned}$$
(62)
$$\begin{aligned}{} & {} \kappa ^2\rho +f_T\left( \rho +p-\frac{\epsilon ^2}{2}\right) =\frac{1}{2}\left( 6\omega ^2-m^2\right) f_R\nonumber \\{} & {} \quad -\frac{1}{2}f+f_Q\left[ 2\left( 5\omega ^2-2m^2\right) p-\frac{\epsilon ^2}{2}\left( m^2+2\omega ^2\right) \right] .\nonumber \\ \end{aligned}$$
(63)

Assuming that these equations satisfy the conditions \(f_R > 0\), \(f_T > 0\) and \(f_Q > 0\) implies that the set of equations satisfy a causal solution, i.e.

$$\begin{aligned} m^2= 4\omega ^2. \end{aligned}$$
(64)

As a consequence of Eq. (64) the critical radius goes to infinity, i.e. \(r_c \rightarrow \infty \). Therefore, for this combination of perfect fluid and scalar field as matter content, a causal Gödel-type solution is allowed in \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) gravity. In addition, due to the consistency of the equations, a relationship between the constant \(\epsilon \) associated with the scalar field and the pressure p of the perfect fluid is required.

It is important to say that by making \(f_Q\) go to zero in the field equations, the results already obtained for the f(RT) theory are recovered. This reinforces the principle of correspondence between theories.

5 Discussions and final remarks

In this paper, \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) gravity is considered and the causality violation is investigated using the Gödel-type metric. It was shown that this theory generalizes GR implying a geometry-matter coupling. An important question that must be answered by all modified theories is: does the new theory contain all solutions of the GR? In order to answer this question, this work investigated whether an exact solution of GR, such as Gödel metric or Gödel-type metric, holds in \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) gravity.

Considering the hyperbolic class of Gödel-type solution and the perfect fluid as matter content, the non-causal Gödel solution is obtained. From this, a finite critical radius is calculated that leads to the possible existence of CTCs. In this case, the critical radius is a function that depends on the function \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) and the derivatives of its variables, \(f_R\), \(f_T\) and \(f_Q\). To investigate causal solutions in this gravitational theory, different content of matter is considered, i.e., a combination between perfect fluid and scalar field. With these considerations, a condition emerges from the set of field equations that implies an infinite critical radius. Thus, the violation of causality is avoided in this theory. Furthermore, the result presented here is a generalization of the results obtained for f(R) and f(RT) gravities. However, a different condition arises for the causal solution in \(f(R,T,R_{\mu \nu }T^{\mu \nu })\) gravity, namely, there is a certain connection between the contents of matter, i.e., the perfect fluid pressure and the scalar field are related.